Agent skill

Structure Router

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

A skill your agent uses when the user asks to build, modify, or prepare atomic structures: slabs, adsorbates, supercells, doping, defects, or fetching from databases.

AGPL-3.0Auto-check passed

Install Structure Router

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

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

GitHub CLI
$ gh skill install Hello-QM/catgo-LRG structure-router --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/server/catgo/workflow/skills/structure .claude/skills/structure-router && 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
structure-router
GitHub stars
205
Token cost
~1.1k tokens
SKILL.md length
255 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, modify, or prepare atomic structures: slabs, adsorbates, supercells, doping, defects, or fetching from databases.

  • Works in 5 steps: Atom count: expected number of atoms for… → Vacuum: sufficient vacuum for surface… → No overlaps: minimum interatomic… → …
  • The user asks to build
  • SKILL.md covers Routing Table, MCP Tools, Standard Build Sequence and Python API, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Structure Router is an agent skill from Hello-QM/catgo-LRG. Use when the user asks to build, modify, or prepare atomic structures: slabs, adsorbates, supercells, doping, defects, or fetching from databases.

Its SKILL.md is about 1.1k 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
  • Prepare atomic structures: slabs
  • Fetching from databases

Example prompts

  • “/structure-router”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Atom count: expected number of atoms for the supercell size
  2. Vacuum: sufficient vacuum for surface calculations (>12 A)
  3. No overlaps: minimum interatomic distance > 0.5 A
  4. Correct composition: stoichiometry matches expectation
  5. Adsorbate position: reasonable height above surface (1.5-2.5 A)

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 and python).

    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

Structure Router loads about 1.1k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 255 words of instructions outside code blocks.

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

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). 255 words, ~1,119 tokens.

Download SKILL.mdSave it as .claude/skills/structure-router/SKILL.md (or your agent's skills folder).
name
structure-router
description
Use when the user asks to build, modify, or prepare atomic structures: slabs, adsorbates, supercells, doping, defects, or fetching from databases.

Structure Building Router

This skill routes structure building requests to the correct sub-skill.

Routing Table

User IntentSub-SkillKey Indicators
Surface slab from bulkslab/"slab", "surface", "Miller index", "(111)", "(110)"
Place adsorbate on surfaceadsorbate/"adsorb", "place OH", "add CO", "binding site"
Substitutional dopingdoping/"dope", "substitute", "replace Fe with Co"
Fetch crystal from database(direct)"get from MP", "fetch TiO2", "Materials Project"
Fetch molecule(direct)"get CO molecule", "fetch water"
Make supercell(direct)"supercell", "2x2x1", "expand"

MCP Tools

catgo_structure — Build and modify structures
json
{"tool": "catgo_structure", "arguments": {"action": "slab", ...}}
{"tool": "catgo_structure", "arguments": {"action": "supercell", ...}}
{"tool": "catgo_structure", "arguments": {"action": "add_atom", ...}}
{"tool": "catgo_structure", "arguments": {"action": "delete_atoms", ...}}
{"tool": "catgo_structure", "arguments": {"action": "replace_atom", ...}}
catgo_fetch — Retrieve structures from databases
json
{"tool": "catgo_fetch", "arguments": {"action": "crystal", "formula": "TiO2", "source": "mp"}}
{"tool": "catgo_fetch", "arguments": {"action": "molecule", "name": "water"}}
catgo_view — Inspect and push structures
json
{"tool": "catgo_view", "arguments": {"action": "get_state"}}
{"tool": "catgo_view", "arguments": {"action": "push", "structure": {...}}}

Standard Build Sequence

Most catalysis workflows follow this structure preparation pipeline:

1. Fetch bulk crystal      catgo_fetch(action: crystal)
2. Generate slab           catgo_structure(action: slab)
3. Make supercell          catgo_structure(action: supercell)
4. (Optional) Dope         catgo_structure(action: replace_atom)
5. Place adsorbate         catgo_structure(action: add_atom)
6. Verify structure        catgo_view(action: get_state)
Example: OH on Pt(111)
json
{"tool": "catgo_fetch", "arguments": {
  "action": "crystal", "formula": "Pt", "source": "mp"
}}
json
{"tool": "catgo_structure", "arguments": {
  "action": "slab", "miller_index": [1,1,1],
  "min_slab_size": 12.0, "min_vacuum_size": 15.0
}}
json
{"tool": "catgo_structure", "arguments": {
  "action": "supercell", "scaling": [2, 2, 1]
}}
json
{"tool": "catgo_structure", "arguments": {
  "action": "add_atom", "element": "O", "position": [2.77, 1.60, 14.5]
}}
json
{"tool": "catgo_structure", "arguments": {
  "action": "add_atom", "element": "H", "position": [2.77, 1.60, 15.47]
}}
json
{"tool": "catgo_view", "arguments": {"action": "get_state"}}

Python API

python
from catgo.workflow import Workflow

wf = Workflow("Structure prep")

# Fetch and input
inp = wf.add_task("structure_input", structure=bulk_json)

# Build slab
slab = wf.add_task("slab_gen",
    structure=inp.output.structure,
    miller_index=[1, 1, 1],
    min_slab_size=12.0,
    min_vacuum_size=15.0)

# Place adsorbate
ads = wf.add_task("adsorbate_place",
    structure=slab.output.structure,
    adsorbate="OH",
    site_type="top",
    site_index=0)

Verification Checklist

After building any structure, verify:

  1. Atom count: expected number of atoms for the supercell size
  2. Vacuum: sufficient vacuum for surface calculations (>12 A)
  3. No overlaps: minimum interatomic distance > 0.5 A
  4. Correct composition: stoichiometry matches expectation
  5. Adsorbate position: reasonable height above surface (1.5-2.5 A)

Use catgo_view(action: get_state) to inspect the current structure.

Common Pitfalls

  1. Always fetch the bulk crystal BEFORE cutting a slab. Do not try to cut a slab from an already-cut slab.
  2. Make the supercell BEFORE placing adsorbates. Supercell operation replicates all atoms, including adsorbates.
  3. For Materials Project fetch, use reduced formula (e.g., "TiO2" not "Ti2O4").
  4. After each structure modification, verify with catgo_view before proceeding to the next step.
  5. The viewer shows the structure in the browser. MCP tools modify the viewer state directly -- there is no separate "save" step.

© 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 server/catgo/workflow/skills/structure of Hello-QM/catgo-LRG.

Open the folder on GitHubat commit fd6291b

Compare with similar skills

Structure Router 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.

Structure Router compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Structure Router this skillHello-QM/catgo-LRG205—~1.1kAutomated safety check: PassAGPL-3.0
Compose Atomslobehub/lobehub83k—~2.6kAutomated safety check: PassCustom licence
Audit Preparationsickn33/agentic-awesome-skills47k1 repos~5.3kAutomated safety check: PassMIT
Router Onweave-os/router5.6k—~169Automated safety check: PassApache-2.0
Router Offweave-os/router5.6k—~183Automated safety check: PassApache-2.0
Acp Routeropenclaw/openclaw392k—~2.4kAutomated safety check: PassMIT

Similar skills

  • Compose Atoms

    lobehub/lobehub

    Splits a heavy front-end domain into capability atoms that each host imports separately, sinking state into each atom instead of adding mode or readOnly flags.

    83k GitHub stars~2.6k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Audit Preparation

    sickn33/agentic-awesome-skills

    Audit preparation register: required document, period covered, request and receipt dates, preparer and reviewer, auditor queries and adjustments.

    47k GitHub starsUsed in 1 repo~5.3k tokens
    Legal & ComplianceAuto-check passed
  • Router On

    weave-os/router

    Route Codex through the Weave Router again (turn it back on).

    5.6k GitHub stars~169 tokensUpdated yesterday
    Auto-check passed
  • Router Off

    weave-os/router

    Route Codex to its default provider again (turn the Weave Router off).

    5.6k GitHub stars~183 tokensUpdated yesterday
    Auto-check passed
  • Acp Router

    openclaw/openclaw

    Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either…

    392k GitHub stars~2.4k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Release Preparation

    CherryHQ/cherry-studio

    Prepares a Cherry Studio release by resolving the version, collecting commits, writing bilingual release notes, updating version files and creating a release branch.

    52k GitHub stars~4.3k tokensUpdated yesterday
    DevelopmentAuto-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 Structure Router

What does Structure Router do?

A skill your agent uses when the user asks to build, modify, or prepare atomic structures: slabs, adsorbates, supercells, doping, defects, or fetching from databases. Structure Router is an agent skill from Hello-QM/catgo-LRG. Use when the user asks to build, modify, or prepare atomic structures: slabs, adsorbates, supercells, doping, defects, or fetching from databases.

When should I use Structure Router?

Structure Router fits situations like: the user asks to build; prepare atomic structures: slabs; fetching from databases.

How do I install Structure Router in Claude Code?

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

How do I install Structure Router in Codex?

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

Can I use Structure Router 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 structure-router -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/structure-router, .gemini/skills/structure-router, .github/skills/structure-router and .opencode/skills/structure-router in your project.

What does Structure Router need to run?

SKILL.md names no scripts, command-line tools or credentials: Structure Router is instructions for the agent only. Our summary lists: Python 3.

Does Structure Router 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 Structure Router 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 Structure Router use?

Structure Router 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 Structure Router use?

About 1.1k tokens (SKILL.md is roughly 4.5k 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 Structure Router?

Skills that share tags, products or a category with Structure Router: Compose Atoms (lobehub/lobehub, 83k stars), Audit Preparation (sickn33/agentic-awesome-skills, 47k stars), Router On (weave-os/router, 5.6k stars) and Router Off (weave-os/router, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Structure Router?

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.