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

Moire

ASecurity

Use when the user asks to create a moire pattern, twisted bilayer structure, magic angle graphene, or any twisted 2D heterostructure.

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

Works with

mcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

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

Installs into .claude/skills of the current project.

Are you the author of Moire?

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

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

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

Download Zip
Files
SKILL.md
---
name: moire-superlattice
description: >
  Use when the user asks to create a moire pattern, twisted bilayer structure,
  magic angle graphene, or any twisted 2D heterostructure.
---

# Moire Superlattice

## Overview

A moire superlattice forms when two identical 2D layers are stacked with a
relative twist angle. The resulting interference pattern creates a periodic
supercell with properties that depend strongly on the twist angle.

Common applications:

- **Twisted bilayer graphene (TBG)**: magic-angle superconductivity (~1.1 deg)
- **Twisted TMDs**: MoS2/MoS2, WSe2/WSe2 moire excitons
- **Flat-band engineering**: correlated electron physics
- **Strain-engineered devices**: tunable band gaps

## MCP Tools

### catgo_moire_search -- Find commensurate angles

```json
{"tool": "catgo_moire_search", "arguments": {
  "structure": "<current viewer structure>",
  "max_angle": 30,
  "tolerance": 0.01
}}
```

Searches for twist angles that produce commensurate superlattices (exact
periodic boundary conditions). Returns a list of angles with supercell
sizes, atom counts, and lattice mismatch.

| Parameter | Description | Default |
|-----------|-------------|---------|
| `structure` | 2D monolayer structure (auto-fetched from viewer) | (required) |
| `max_angle` | Maximum twist angle to search (degrees) | 30 |
| `tolerance` | Commensurability tolerance | 0.01 |

### catgo_moire_build -- Build the twisted bilayer

```json
{"tool": "catgo_moire_build", "arguments": {
  "structure": "<current viewer structure>",
  "angle": 21.79,
  "interlayer_distance": 3.35
}}
```

| Parameter | Description | Default |
|-----------|-------------|---------|
| `structure` | 2D monolayer structure | (required) |
| `angle` | Twist angle in degrees (from search results) | (required) |
| `interlayer_distance` | Distance between layers in Angstroms | 3.35 |

### Router: `/moire/search` (POST), `/moire/build` (POST)

## Complete Workflow: Twisted Bilayer Graphene

### Step 1: Fetch graphene monolayer

```json
{"tool": "catgo_fetch", "arguments": {
  "action": "crystal", "formula": "C", "source": "mc3d"
}}
```

Or load a graphene structure from file.

### Step 2: Search for commensurate angles

```json
{"tool": "catgo_moire_search", "arguments": {
  "max_angle": 10,
  "tolerance": 0.01
}}
```

The result lists angles sorted by supercell size. Small angles produce
very large supercells (thousands of atoms).

### Step 3: Build the moire structure

Pick an angle from the search results:

```json
{"tool": "catgo_moire_build", "arguments": {
  "angle": 5.09,
  "interlayer_distance": 3.35
}}
```

### Step 4: Verify

```json
{"tool": "catgo_view", "arguments": {"action": "get_state"}}
```

Check: two layers visible, correct interlayer spacing, moire pattern
in the xy plane.

### Step 5: Relax (optional -- requires ML potential for large cells)

Magic-angle TBG (~1.1 deg) has ~11,000+ atoms. Use an MLP for relaxation:

```json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "create", "params": {"name": "TBG moire relaxation"}
}}
```

```json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "add_task", "params": {
    "workflow_id": "<wf_id>",
    "task_type": "geo_opt",
    "params": {"software": "mlp", "mlp_model": "mace",
               "system_name": "TBG-5.09deg"}
  }
}}
```

## Angle Selection Guide

| Angle (deg) | Approx. Atoms (graphene) | Notes |
|-------------|--------------------------|-------|
| 21.79 | ~28 | Smallest commensurate, good for testing |
| 13.17 | ~76 | Small, DFT-feasible |
| 9.43 | ~148 | Moderate |
| 5.09 | ~508 | Large, MLP recommended |
| 3.89 | ~868 | Very large |
| 1.08 | ~11,164 | Magic angle, MLP or tight-binding only |

## Common Pitfalls

1. Always start from a **monolayer** (single 2D layer). If you have a bulk
   structure, cut it down to one layer first.
2. Small twist angles produce very large supercells. Check atom count from
   `catgo_moire_search` before building.
3. The interlayer distance for graphene is ~3.35 A. For TMDs it is typically
   ~6.1-6.5 A (layer center to center). Use appropriate values.
4. Only commensurate angles from the search results give exact periodic
   boundary conditions. Arbitrary angles require approximation and may
   have significant strain.
5. DFT calculations on moire structures larger than ~200 atoms typically
   require ML potentials or tight-binding methods. Standard DFT is
   impractical for magic-angle TBG.
6. Van der Waals corrections (DFT-D3, rVV10) are essential for accurate
   interlayer interactions.

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 →