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 Substitution

ASecurity

Use when the user asks for systematic element substitution, combinatorial materials screening, high-throughput composition search, or multi-site replacement across different element groups.

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

Works with

apimcp

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

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

Installs into .claude/skills of the current project.

Are you the author of Structure Substitution?

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

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

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

Download Zip
Files
SKILL.md
---
name: combinatorial-substitution
description: >
  Use when the user asks for systematic element substitution, combinatorial
  materials screening, high-throughput composition search, or multi-site
  replacement across different element groups.
---

# Combinatorial Substitution

## Overview

Combinatorial substitution systematically replaces elements at specified
sites across multiple groups, generating all combinations for materials
discovery. Unlike simple doping (which replaces one element with another),
this tool creates the full Cartesian product of substitutions across groups.

Common applications:

- **High-entropy alloy screening**: test multiple elements at different sublattices
- **Perovskite composition search**: vary A-site and B-site cations independently
- **Catalyst optimization**: systematic dopant combinations
- **Battery cathode design**: screen transition metals at different Wyckoff sites

## MCP Tool: catgo_substitution

```json
{"tool": "catgo_substitution", "arguments": {
  "structure": "<current structure dict>",
  "groups": [
    {
      "target_indices": [0, 4, 8],
      "replacement_elements": ["Ti", "Zr", "Hf"]
    },
    {
      "target_indices": [1, 5, 9],
      "replacement_elements": ["Mn", "Fe", "Co"]
    }
  ],
  "max_structures": 500
}}
```

| Parameter | Description | Default |
|-----------|-------------|---------|
| `structure` | Input structure dict | (required) |
| `groups` | Array of substitution groups | (required) |
| `groups[].target_indices` | Site indices to substitute in this group | (required) |
| `groups[].replacement_elements` | Elements to try at these sites | (required) |
| `max_structures` | Safety cap on total combinations | 500 |

**Total structures = product of replacement options per group.**
For the example above: 3 (group 1) x 3 (group 2) = 9 structures.

### Router: `/build/substitution` (POST)

## Combinatorics

The tool generates the Cartesian product across groups. Within each group,
all target sites receive the **same** element for a given combination.

| Groups | Elements per Group | Total Structures |
|--------|-------------------|-----------------|
| 1 group, 5 elements | 5 | 5 |
| 2 groups, 3 each | 3 x 3 | 9 |
| 2 groups, 5 each | 5 x 5 | 25 |
| 3 groups, 4 each | 4 x 4 x 4 | 64 |
| 3 groups, 6 each | 6 x 6 x 6 | 216 |

The `max_structures` cap (default 500) prevents accidental generation of
extremely large sets.

## Complete Workflow: Perovskite ABO3 Screening

### Step 1: Fetch a reference perovskite

```json
{"tool": "catgo_fetch", "arguments": {
  "action": "crystal", "formula": "SrTiO3", "source": "mp"
}}
```

### Step 2: Identify site indices

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

Identify A-site (Sr) and B-site (Ti) atom indices from the structure.

### Step 3: Generate all A/B combinations

```json
{"tool": "catgo_substitution", "arguments": {
  "groups": [
    {
      "target_indices": [0],
      "replacement_elements": ["Sr", "Ba", "Ca", "La"]
    },
    {
      "target_indices": [1],
      "replacement_elements": ["Ti", "Zr", "Hf", "Mn", "Fe"]
    }
  ]
}}
```

This generates 4 x 5 = 20 perovskite compositions: SrTiO3, SrZrO3,
BaTiO3, LaFeO3, etc.

### Step 4: Screen with MLP, then refine with DFT

For 20 structures, use a two-stage workflow:

```json
{"tool": "catgo_workflow_engine", "arguments": {
  "action": "create", "params": {"name": "Perovskite ABO3 screening"}
}}
```

First relax all candidates with an ML potential:

```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": "perovskite-screen-mlp"}
  }
}}
```

Then run DFT on the most promising candidates.

## Difference from Doping (catgo_structure action: doping)

| Feature | Doping | Combinatorial Substitution |
|---------|--------|---------------------------|
| Purpose | Replace one element with another | Screen multiple compositions |
| Output | 1 structure (or enumerated configs) | N structures (Cartesian product) |
| Groups | Single host/dopant pair | Multiple independent groups |
| MCP tool | `catgo_structure(action: doping)` | `catgo_substitution` |
| Use case | Targeted modification | Systematic screening |

Use **doping** when you want to modify a single structure.
Use **substitution** when you want to generate a library of compositions.

## Common Pitfalls

1. Always check site indices with `catgo_view` before substituting.
   Atom indices depend on the specific structure and may change after
   supercell expansion or slab generation.
2. The Cartesian product can grow rapidly. 4 groups x 6 elements each =
   1296 structures. Use `max_structures` to cap output.
3. All sites within a group receive the **same** element in each
   combination. If you need different elements at different sites within
   the same group, split them into separate groups.
4. Generated structures are unrelaxed. The substituted atoms keep the
   original positions. Always run geometry optimization before comparing
   energies.
5. For transition metal substitutions in oxides, enable spin polarization
   (ISPIN=2) and consider DFT+U corrections.
6. Charge neutrality is not enforced. Substituting Ca2+ for La3+ requires
   compensating defects or a charged cell.

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 →