Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Fetch

ASecurity

Fetch crystal structures from Materials Project/OPTIMADE databases and molecules from PubChem. Search, select, and load structures into the CatGO viewer.

199 stars
0 votes
0 copies
0 views
Added 9/20/2026
ai-agentsgodatabase

Works with

mcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add Hello-QM/catgo-LRG --skill fetch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Fetch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hello-qm-fetch/badge)](https://www.skillsdirectory.com/skills/hello-qm-fetch)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: structure-fetch
description: Fetch crystal structures from Materials Project/OPTIMADE databases and molecules from PubChem. Search, select, and load structures into the CatGO viewer.
---

# Structure Fetching Skill

## When to Use

Use this skill when the user wants to:
- Load a known crystal structure (e.g., "get TiO2 rutile")
- Search for materials by composition or elements
- Fetch a molecule by name or formula from PubChem
- Browse structures from OPTIMADE-compliant databases

## Data Sources

| Source | Tool action | What it has |
|---|---|---|
| Materials Project | `catgo_fetch(action: "crystal")` | ~150k inorganic crystals, DFT-relaxed |
| Alexandria | `catgo_fetch(action: "search", provider: "alexandria")` | ~5M structures, PBE/PBEsol |
| MC3D | `catgo_fetch(action: "search", provider: "mc3d")` | Curated crystal database |
| 2DMatPedia | `catgo_fetch(action: "search", provider: "twodmatpedia")` | 2D materials |
| PubChem | `catgo_fetch(action: "molecule")` | ~110M molecules, 3D conformers |

## MCP Tool Examples

### Fetch a crystal by formula (Materials Project)

```json
catgo_fetch(action: "crystal", formula: "TiO2", provider: "mp")
```

This loads the lowest-energy TiO2 structure from Materials Project directly
into the viewer. The formula is automatically normalized for OPTIMADE
(alphabetical element order: "O2Ti").

### Fetch a specific structure by ID

```json
catgo_fetch(action: "crystal", structure_id: "mp-2657", provider: "mp")
```

### Search for structures (returns list, does not auto-load)

```json
catgo_fetch(action: "search", formula: "Fe2O3", provider: "mp", limit: 10)
```

Returns a list of matching structures with IDs, space groups, and energies.
The user then picks one to load:

```json
catgo_fetch(action: "crystal", structure_id: "mp-19770", provider: "mp")
```

### Search by elements (any compound containing these elements)

```json
catgo_fetch(action: "search", elements: ["Ti", "O"], provider: "mp", limit: 5)
```

This finds all compounds containing Ti and O (TiO2, Ti2O3, SrTiO3, etc.).

### Search across multiple providers

```json
catgo_fetch(action: "search", formula: "BaTiO3", provider: "alexandria", limit: 5)
```

### Fetch a molecule from PubChem

By name:

```json
catgo_fetch(action: "molecule", query: "aspirin")
```

By formula:

```json
catgo_fetch(action: "molecule", query: "C6H12O6")
```

By PubChem CID:

```json
catgo_fetch(action: "molecule", cid: 2244)
```

### Add a molecule to existing structure

To add a molecule into the current structure (e.g., adding an adsorbate
above a surface), use `catgo_structure` instead:

```json
catgo_structure(action: "add_molecule", query: "water", count: 1)
```

This fetches from PubChem and merges into the current viewer structure.
For multiple copies (e.g., a water layer):

```json
catgo_structure(action: "add_molecule", query: "water", count: 5, spacing: 2.8)
```

## Workflow: Search -> Select -> Load -> Build

A typical session for setting up a catalysis calculation:

1. Search for the bulk crystal:
```json
catgo_fetch(action: "search", formula: "RuO2", provider: "mp", limit: 5)
```

2. Load the desired polymorph:
```json
catgo_fetch(action: "crystal", structure_id: "mp-825", provider: "mp")
```

3. Verify it loaded correctly:
```json
catgo_view(action: "get_state")
```

4. Build a slab for surface chemistry:
```json
catgo_structure(action: "slab", miller_index: [1, 1, 0],
                min_slab_size: 10.0, min_vacuum_size: 15.0)
```

5. Place an adsorbate:
```json
catgo_structure(action: "add_molecule", query: "OH")
```

## Formula Normalization

OPTIMADE requires formulas in alphabetical element order:
- User says "TiO2" -> query sends "O2Ti"
- User says "Fe2O3" -> query sends "Fe2O3" (already alphabetical)
- User says "H2O" -> query sends "H2O" (already alphabetical)

Unicode subscripts are automatically converted: TiO₂ -> TiO2.

The `catgo_fetch` tool handles this normalization internally. You do not
need to manually reorder formulas.

## Provider-Specific Notes

### Materials Project (mp)
- Highest quality: structures are DFT-relaxed with standardized settings
- Has computed properties: band gap, formation energy, stability
- Preferred for common inorganic materials

### Alexandria
- Largest database (~5M structures)
- Good for finding exotic compositions
- PBE and PBEsol relaxed

### PubChem
- Molecules only (no periodic structures)
- 3D conformers from MMFF94 or experimental data
- Returns the first conformer; may not be the global minimum
- Always optimize the geometry after fetching for DFT work

## Common Mistakes

- Searching with non-alphabetical formula on OPTIMADE (handled automatically)
- Expecting PubChem molecules to be DFT-optimized (they are not)
- Loading a crystal when a molecule is needed, or vice versa
- Not checking `catgo_view(action: "get_state")` after loading to confirm
  the structure is correct

Attribution

Hello-QMHello-QM
View sourceMore from Hello-QM →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

1023331 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3331 votes

catchup

Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.

611 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →