Agent skill

Heterostructure

by Hello-QM in Hello-QM/catgo-LRG

A skill your agent uses when the user asks to build a heterostructure, interface, van der Waals stack, substrate-film system, or lattice-matched bilayer from two different materials.

AGPL-3.0Auto-check passed

Install Heterostructure

skills CLI
$ npx skills add Hello-QM/catgo-LRG --skill heterostructure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Hello-QM/catgo-LRG heterostructure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Hello-QM/catgo-LRG.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/structure-heterostructure .claude/skills/heterostructure && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
heterostructure
GitHub stars
205
Token cost
~1.7k tokens
SKILL.md length
506 words
Files
1
Skills in repo
75
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when the user asks to build a heterostructure, interface, van der Waals stack, substrate-film system, or lattice-matched bilayer from two different materials.

  • Works in 5 steps: Fetch both materials → Search for lattice matches → Build the interface → …
  • The user asks to build a heterostructure
  • SKILL.md covers Overview, MCP Tools, Complete Workflow: TiO2/Pt… and Tolerance Guidelines, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Heterostructure is an agent skill from Hello-QM/catgo-LRG. Use when the user asks to build a heterostructure, interface, van der Waals stack, substrate-film system, or lattice-matched bilayer from two different materials.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AI-driven workbench for computational materials science — interactive 3D structure viewer, natural-language CatBot assistant, visual DAG workflow engine, HPC job submission… The licence is AGPL-3.0.

When your agent uses it

  • The user asks to build a heterostructure
  • Van der Waals stack
  • Substrate-film system
  • Lattice-matched bilayer from two different materials

Example prompts

  • “/heterostructure”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Fetch both materials
  2. Search for lattice matches
  3. Build the interface
  4. Verify
  5. Relax the interface

What it can do on your machine

Read from SKILL.md and the folder at commit fd6291b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Heterostructure loads about 1.7k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 506 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Hello-QM/catgo-LRG at commit fd6291b, republished under its AGPL-3.0 licence (© Hello-QM). 506 words, ~1,708 tokens.

Download SKILL.mdSave it as .claude/skills/heterostructure/SKILL.md (or your agent's skills folder).
name
heterostructure
description
Use when the user asks to build a heterostructure, interface, van der Waals stack, substrate-film system, or lattice-matched bilayer from two different materials.

Heterostructure Assembly

Overview

A heterostructure is a layered stack of two different materials joined at an interface. The Zur-McGill (ZSL) algorithm finds superlattice matches that minimize lattice mismatch between substrate and film.

Common applications:

  • Catalysis: oxide support + metal film (TiO2/Pt, Al2O3/Pd)
  • Electronics: semiconductor junctions (GaAs/AlAs, Si/Ge)
  • 2D vdW stacks: graphene/hBN, MoS2/WSe2
  • Energy: electrode/electrolyte interfaces for batteries
  • Photocatalysis: type-II heterojunctions for charge separation

MCP Tools

catgo_hetero_search -- Find lattice-matched superlattices
json
{"tool": "catgo_hetero_search", "arguments": {
  "substrate": {"<pymatgen structure dict>": "..."},
  "film": {"<pymatgen structure dict>": "..."},
  "params": {
    "substrate_miller": [0, 0, 1],
    "film_miller": [0, 0, 1],
    "max_area": 400,
    "max_area_ratio_tol": 0.09,
    "max_length_tol": 0.09,
    "max_angle_tol": 0.09,
    "max_results": 20,
    "mode": "bulk"
  }
}}

Returns matches sorted by area, with available terminations for each match.

ParameterDescriptionDefault
substrateSubstrate structure dict(required)
filmFilm structure dict(required)
substrate_millerSubstrate surface orientation[0,0,1]
film_millerFilm surface orientation[0,0,1]
max_areaMaximum supercell area (A^2)400
max_area_ratio_tolArea ratio tolerance0.09
max_length_tolLength mismatch tolerance0.09
max_angle_tolAngle mismatch tolerance0.09
max_resultsMax number of matches to return20
mode"bulk" or "slab" input mode"bulk"
catgo_hetero_build -- Build the interface
json
{"tool": "catgo_hetero_build", "arguments": {
  "substrate": {"<pymatgen structure dict>": "..."},
  "film": {"<pymatgen structure dict>": "..."},
  "match": {"match_id": 0},
  "termination_index": 0,
  "params": {
    "gap": 2.0,
    "vacuum": 20.0,
    "substrate_thickness": 10.0,
    "film_thickness": 10.0,
    "twist_angle": 0.0
  }
}}
ParameterDescriptionDefault
matchMatch from search results (match_id)(required)
termination_indexWhich termination to use0
gapInterface gap in Angstroms2.0
vacuumVacuum above the slab in Angstroms20.0
substrate_thicknessSubstrate slab thickness10.0
film_thicknessFilm slab thickness10.0
twist_angleIn-plane rotation of the film0.0
catgo_hetero_build_intermat -- One-step build (JARVIS pipeline)

An alternative builder that does search + build in one step using the intermat/JARVIS method. Useful when you want a quick result without separately inspecting matches.

json
{"tool": "catgo_hetero_build_intermat", "arguments": {
  "substrate": {"<pymatgen structure dict>": "..."},
  "film": {"<pymatgen structure dict>": "..."},
  "params": {
    "substrate_miller": [0, 0, 1],
    "film_miller": [0, 0, 1],
    "separation": 3.0,
    "vacuum": 25.0
  }
}}
Router: /heterostructure/search (POST), /heterostructure/build (POST), /heterostructure/build-intermat (POST), and more

Additional endpoints: /batch-build, /build-manual, /search-lateral, /build-lateral, /grid-scan.

Complete Workflow: TiO2/Pt Interface

Step 1: Fetch both materials
json
{"tool": "catgo_fetch", "arguments": {
  "action": "crystal", "formula": "TiO2", "source": "mp"
}}

Save this structure, then fetch the second:

json
{"tool": "catgo_fetch", "arguments": {
  "action": "crystal", "formula": "Pt", "source": "mp"
}}
Step 2: Search for lattice matches
json
{"tool": "catgo_hetero_search", "arguments": {
  "substrate": "<TiO2 structure>",
  "film": "<Pt structure>",
  "params": {
    "substrate_miller": [1, 1, 0],
    "film_miller": [1, 1, 1],
    "max_area": 200
  }
}}

Review the returned matches. Each lists:

  • Superlattice area
  • Strain (length and angle mismatch)
  • Available terminations (e.g., O-terminated vs Ti-terminated)
Step 3: Build the interface

Select the best match (smallest area with acceptable strain):

json
{"tool": "catgo_hetero_build", "arguments": {
  "substrate": "<TiO2 structure>",
  "film": "<Pt structure>",
  "match": {"match_id": 0},
  "termination_index": 0,
  "params": {
    "gap": 2.5,
    "vacuum": 20.0,
    "substrate_thickness": 12.0,
    "film_thickness": 10.0
  }
}}
Step 4: Verify
json
{"tool": "catgo_view", "arguments": {"action": "get_state"}}

Check: correct interface geometry, appropriate vacuum, no overlapping atoms at the interface.

Show full SKILL.md (201 more words)Show less
Step 5: Relax the interface
json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "create", "params": {"name": "TiO2-Pt interface relax"}
}}
json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "add_task", "params": {
    "workflow_id": "<wf_id>",
    "task_type": "geo_opt",
    "params": {"software": "vasp", "ENCUT": 520,
               "system_name": "TiO2-Pt interface"}
  }
}}

Tolerance Guidelines

Mismatch LevelTolerance ValuesUse Case
Tight0.03Epitaxial growth, accurate interfaces
Standard0.09General screening, most applications
Loose0.15Exploratory, when few matches found

Tighter tolerances produce fewer but higher-quality matches. Loosen tolerances if no matches are found, or increase max_area.

Common Pitfalls

  1. Both substrate and film must be bulk crystals (not slabs). The builder cuts slabs internally based on the Miller indices you specify.
  2. Large max_area values (> 500 A^2) can produce structures with thousands of atoms. Start small and increase if needed.
  3. The gap parameter controls the initial interface distance before relaxation. Too small (< 1.5 A) causes atomic overlap; too large (> 4 A) may not capture interface bonding.
  4. Always relax the interface with DFT. The as-built structure has ideal geometry that does not reflect real interface reconstruction.
  5. For oxide/metal interfaces, use DFT+U on the oxide side. The metal does not need U corrections.
  6. Van der Waals corrections (DFT-D3) are important for weakly bonded interfaces (2D/2D stacks, vdW heterostructures).
  7. Strain from lattice mismatch is applied to the film by default. For large mismatches (> 5%), the film may be significantly distorted. Consider if this is physically reasonable.

© Hello-QM, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/structure-heterostructure of Hello-QM/catgo-LRG.

Open the folder on GitHubat commit fd6291b

Compare with similar skills

Heterostructure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Heterostructure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Heterostructure this skillHello-QM/catgo-LRG205—~1.7kAutomated safety check: PassAGPL-3.0
Network Interface Healthaffaan-m/ECC275k1 repos~1.4kAutomated safety check: PassMIT
Make Interfaces Feel Betteraffaan-m/ECC275k1 repos~1.2kAutomated safety check: PassMIT
Sci Fi Interfacesickn33/agentic-awesome-skills47k1 repos~3.1kAutomated safety check: PassMIT
Network Interface Healthaffaan-m/ECC275k—~1kAutomated safety check: PassMIT
Better Interfacetrycompai/crm11k—~2kAutomated safety check: PassMIT

Similar skills

  • Diagnose interface errors, drops, CRCs, duplex mismatches, flapping, speed negotiation issues, and counter trends on routers, switches, and Linux hosts.

    275k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Apply concrete design-engineering details that make interfaces feel polished.

    275k GitHub starsUsed in 1 repo~1.2k tokens
    Frontend & DesignAuto-check passed
  • Sci Fi Interface

    sickn33/agentic-awesome-skills

    Web and App implementation guide for Sci-Fi Interface Design.

    47k GitHub starsUsed in 1 repo~3.1k tokens
    MobileAuto-check passed
  • ルーター、スイッチ、Linuxホスト上のインターフェースエラー、ドロップ、CRC、デュプレックス不一致、フラッピング、速度ネゴシエーション問題、カウンタートレンドを診断する。

    275k GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Better Interface

    trycompai/crm

    User-invoked, cross-discipline interface review that coordinates better-accessibility, better-layout, better-writing, better-typography, better-colors, and better-ui.

    11k GitHub stars~2k tokensUpdated 27 days ago
    Frontend & DesignAuto-check passed
  • Make Interfaces Feel Better

    samuelclay/NewsBlur

    Design engineering principles for making interfaces feel polished.

    7.6k GitHub starsUsed in 10 repos~1.5k tokens
    Frontend & DesignAuto-check passed

More from Hello-QM/catgo-LRG

All 75 skills in this repo
  • Campaign Md Orchestration

    Hello-QM/catgo-LRG

    Drive a file-first, agent-in-the-loop computational campaign via a folder + markdown tree (no DB).

    205 GitHub stars~1.6k tokensUpdated 16 days ago
    Auto-check passed
  • Lammps Deepmd

    Hello-QM/catgo-LRG

    Run LAMMPS molecular dynamics with DeePMD-kit machine learning potentials.

    205 GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Catgo Gibbs Pipeline

    Hello-QM/catgo-LRG

    Compute adsorption/reaction Gibbs free energies, free-energy diagrams, and electrochemical overpotentials (HER/ORR/OER/CO2RR/NRR) with VASP.

    205 GitHub stars~669 tokensUpdated 16 days ago
    Auto-check passed
  • Abinit

    Hello-QM/catgo-LRG

    Generate and manage ABINIT DFT calculations. An agent skill from Hello-QM/catgo-LRG.

    205 GitHub stars~963 tokensUpdated 16 days ago
    Auto-check passed
  • Adsorbate Placement

    Hello-QM/catgo-LRG

    A skill your agent uses when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.

    205 GitHub stars~3k tokensUpdated 16 days ago
    Auto-check passed
  • Adsorption Energy

    Hello-QM/catgo-LRG

    A skill your agent uses when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

    205 GitHub stars~1.4k tokensUpdated 16 days ago
    Auto-check passed

Questions about Heterostructure

What does Heterostructure do?

A skill your agent uses when the user asks to build a heterostructure, interface, van der Waals stack, substrate-film system, or lattice-matched bilayer from two different materials. Heterostructure is an agent skill from Hello-QM/catgo-LRG. Use when the user asks to build a heterostructure, interface, van der Waals stack, substrate-film system, or lattice-matched bilayer from two different materials.

When should I use Heterostructure?

Heterostructure fits situations like: the user asks to build a heterostructure; van der Waals stack; substrate-film system; lattice-matched bilayer from two different materials.

How do I install Heterostructure in Claude Code?

Run `npx skills add Hello-QM/catgo-LRG --skill heterostructure -a claude-code`. Or copy the skill folder (.claude/skills/structure-heterostructure in Hello-QM/catgo-LRG) into .claude/skills/heterostructure in your project. Claude Code loads it when a task matches its description.

How do I install Heterostructure in Codex?

Run `npx skills add Hello-QM/catgo-LRG --skill heterostructure -a codex`. Or copy the skill folder (.claude/skills/structure-heterostructure in Hello-QM/catgo-LRG) into .agents/skills/heterostructure in your project. Codex loads it when a task matches its description.

Can I use Heterostructure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Hello-QM/catgo-LRG --skill heterostructure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/heterostructure, .gemini/skills/heterostructure, .github/skills/heterostructure and .opencode/skills/heterostructure in your project.

What does Heterostructure need to run?

SKILL.md names no scripts, command-line tools or credentials: Heterostructure is instructions for the agent only.

Does Heterostructure access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Heterostructure safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Heterostructure use?

Heterostructure is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Heterostructure use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Heterostructure?

Skills that share tags, products or a category with Heterostructure: Network Interface Health (affaan-m/ECC, 275k stars), Make Interfaces Feel Better (affaan-m/ECC, 275k stars), Sci Fi Interface (sickn33/agentic-awesome-skills, 47k stars) and Network Interface Health (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Heterostructure?

Hello-QM (a GitHub user) maintains it in Hello-QM/catgo-LRG, which has 205 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on September 22, 2026.

Source: Hello-QM/catgo-LRG on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.