WannierTools Analysis
This skill is for WannierTools and similar topological post-processing from an already validated Wannier tight-binding model. Use it when the user needs help preparing wt.in, checking model handoff, or reviewing surface or topological analysis outputs.
When to use
Use this skill when the request mentions or implies:
WannierTools, wt.in, WT.out, wannier90_hr.dat
- bulk bands, surface states, surface Green's functions, Fermi arcs, nodal searches, Wilson loops
- topological invariants or surface-orientation setup from a Wannier model
Operating stance
Prioritize missing information in this order:
- whether the Wannier model is already physically validated
- target analysis mode: bulk, surface, Fermi arc, Wilson loop, or node search
- surface orientation, k-path, or k-plane definition
- number of occupied bands and model conventions
Never silently invent:
- a surface orientation without user intent
- a k-path or k-plane that has no physical or literature basis
- whether the supplied
hr.dat is actually trustworthy
- the number of occupied bands if the model origin is unclear
Workflow
1. Classify the request
- Setup: create or edit
wt.in and the directory layout.
- Review: inspect
wt.in, WT.out, and model files and summarize readiness or issues.
- Recovery: explain why the analysis failed or why the model handoff is not yet defensible.
2. Gather the minimum viable context
Before recommending a wt.in edit, establish:
- which validated Wannier model is being used
- what analysis is desired
- the intended surface normal or reciprocal-space path
- how many occupied bands the post-processing should treat as filled
3. Use the bundled helpers
scripts/make_wanniertools_input.py
Create a conservative wt.in.template for bulk, surface, Fermi-arc, or Wilson-loop workflows.
scripts/check_wanniertools_case.py
Check for missing wt.in and wannier90_hr.dat-style dependencies.
scripts/summarize_wanniertools_run.py
Summarize a working directory or WT.out using auditable heuristics.
scripts/recommend_wanniertools_recovery.py
Turn incomplete or blocked WannierTools runs into concrete recovery guidance.
scripts/export_status_report.py
Export a shareable markdown status report from a WannierTools working directory.
scripts/export_input_suggestions.py
Export conservative WannierTools input suggestion snippets based on detected recovery patterns.
4. Load focused references only when needed
- workflow and file expectations:
references/wanniertools.md
- model handoff and surface choices:
references/model-handoff.md
- common failures:
references/failure-modes.md
5. Deliver an auditable answer
Whenever you recommend a wt.in change, include:
- the target analysis mode
- the assumed model source and number of occupied bands
- unresolved geometry or topology choices the user must confirm
- what output files should appear if the next stage succeeds
Guardrails
- Do not treat WannierTools as a substitute for a bad Wannier model.
- Surface-state and Fermi-arc analysis require a defensible surface orientation, not a random choice.
- If the user cannot justify the occupied-band count, say that the analysis setup is underdetermined.
Quality bar
- Prefer explicit geometry and model assumptions over generic topological buzzwords.
- Distinguish model-readiness issues from post-processing issues.
- If the input still contains placeholders, say so directly.
1---2name: wanniertools-analysis3description: Use when the task involves WannierTools workflows, including wt.in design, handoff from wannier90_hr.dat or tight-binding models, surface-state, bulk-band, Fermi-arc, and Wilson-loop analyses, and diagnosis of WT.out or model-readiness issues.4---56# WannierTools Analysis78This skill is for WannierTools and similar topological post-processing from an already validated Wannier tight-binding model. Use it when the user needs help preparing `wt.in`, checking model handoff, or reviewing surface or topological analysis outputs.910## When to use1112Use this skill when the request mentions or implies:1314- `WannierTools`, `wt.in`, `WT.out`, `wannier90_hr.dat`15- bulk bands, surface states, surface Green's functions, Fermi arcs, nodal searches, Wilson loops16- topological invariants or surface-orientation setup from a Wannier model1718## Operating stance1920Prioritize missing information in this order:21221. whether the Wannier model is already physically validated232. target analysis mode: bulk, surface, Fermi arc, Wilson loop, or node search243. surface orientation, k-path, or k-plane definition254. number of occupied bands and model conventions2627Never silently invent:2829- a surface orientation without user intent30- a k-path or k-plane that has no physical or literature basis31- whether the supplied `hr.dat` is actually trustworthy32- the number of occupied bands if the model origin is unclear3334## Workflow3536### 1. Classify the request3738- **Setup**: create or edit `wt.in` and the directory layout.39- **Review**: inspect `wt.in`, `WT.out`, and model files and summarize readiness or issues.40- **Recovery**: explain why the analysis failed or why the model handoff is not yet defensible.4142### 2. Gather the minimum viable context4344Before recommending a `wt.in` edit, establish:4546- which validated Wannier model is being used47- what analysis is desired48- the intended surface normal or reciprocal-space path49- how many occupied bands the post-processing should treat as filled5051### 3. Use the bundled helpers5253- `scripts/make_wanniertools_input.py`54 Create a conservative `wt.in.template` for bulk, surface, Fermi-arc, or Wilson-loop workflows.55- `scripts/check_wanniertools_case.py`56 Check for missing `wt.in` and `wannier90_hr.dat`-style dependencies.57- `scripts/summarize_wanniertools_run.py`58 Summarize a working directory or `WT.out` using auditable heuristics.59- `scripts/recommend_wanniertools_recovery.py`60 Turn incomplete or blocked WannierTools runs into concrete recovery guidance.61- `scripts/export_status_report.py`62 Export a shareable markdown status report from a WannierTools working directory.63- `scripts/export_input_suggestions.py`64 Export conservative WannierTools input suggestion snippets based on detected recovery patterns.6566### 4. Load focused references only when needed6768- workflow and file expectations: `references/wanniertools.md`69- model handoff and surface choices: `references/model-handoff.md`70- common failures: `references/failure-modes.md`7172### 5. Deliver an auditable answer7374Whenever you recommend a `wt.in` change, include:7576- the target analysis mode77- the assumed model source and number of occupied bands78- unresolved geometry or topology choices the user must confirm79- what output files should appear if the next stage succeeds8081## Guardrails8283- Do not treat WannierTools as a substitute for a bad Wannier model.84- Surface-state and Fermi-arc analysis require a defensible surface orientation, not a random choice.85- If the user cannot justify the occupied-band count, say that the analysis setup is underdetermined.8687## Quality bar8889- Prefer explicit geometry and model assumptions over generic topological buzzwords.90- Distinguish model-readiness issues from post-processing issues.91- If the input still contains placeholders, say so directly.