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

Structure Heterostructure

ASecurity

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.

199 stars
0 votes
0 copies
0 views
Added 9/20/2026
developmentgo

Works with

mcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

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

Installs into .claude/skills of the current project.

Are you the author of Structure Heterostructure?

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

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

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

Download Zip
Files
SKILL.md
---
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.

| Parameter | Description | Default |
|-----------|-------------|---------|
| `substrate` | Substrate structure dict | (required) |
| `film` | Film structure dict | (required) |
| `substrate_miller` | Substrate surface orientation | [0,0,1] |
| `film_miller` | Film surface orientation | [0,0,1] |
| `max_area` | Maximum supercell area (A^2) | 400 |
| `max_area_ratio_tol` | Area ratio tolerance | 0.09 |
| `max_length_tol` | Length mismatch tolerance | 0.09 |
| `max_angle_tol` | Angle mismatch tolerance | 0.09 |
| `max_results` | Max number of matches to return | 20 |
| `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
  }
}}
```

| Parameter | Description | Default |
|-----------|-------------|---------|
| `match` | Match from search results (`match_id`) | (required) |
| `termination_index` | Which termination to use | 0 |
| `gap` | Interface gap in Angstroms | 2.0 |
| `vacuum` | Vacuum above the slab in Angstroms | 20.0 |
| `substrate_thickness` | Substrate slab thickness | 10.0 |
| `film_thickness` | Film slab thickness | 10.0 |
| `twist_angle` | In-plane rotation of the film | 0.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.

### 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 Level | Tolerance Values | Use Case |
|----------------|-----------------|----------|
| Tight | 0.03 | Epitaxial growth, accurate interfaces |
| Standard | 0.09 | General screening, most applications |
| Loose | 0.15 | Exploratory, 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.

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

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

281612 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2132 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →