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 Strain

ASecurity

Use when the user asks to apply strain, deformation, lattice distortion, or mechanical loading to a periodic structure (uniaxial, biaxial, hydrostatic, or shear).

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

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-strain --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Structure Strain?

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

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

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

Download Zip
Files
SKILL.md
---
name: strain-deformation
description: >
  Use when the user asks to apply strain, deformation, lattice distortion,
  or mechanical loading to a periodic structure (uniaxial, biaxial,
  hydrostatic, or shear).
tags: [structure, strain, deformation, mechanical, elastic]
---

# Strain / Deformation

## Overview

Applies mechanical strain to periodic structures by deforming the lattice.
This is used for:

- **Strain engineering**: Tuning electronic structure and catalytic activity
- **Elastic property calculations**: Computing elastic tensors from stress-strain curves
- **Phase stability**: Testing structural stability under deformation
- **Epitaxial strain**: Modeling lattice mismatch in thin films and heterostructures

Four strain types are supported:
- **Uniaxial**: Stretch/compress along a single axis (a, b, or c)
- **Biaxial**: Stretch/compress in the ab-plane simultaneously
- **Hydrostatic**: Uniform expansion/compression in all three directions
- **Shear**: Off-diagonal deformation (tilting)

## MCP Tool: catgo_structure (via REST /build/strain)

Strain is applied through the `/build/strain` endpoint. In the full MCP
server, use the `catgo_build_strain` tool.

### Apply Uniaxial Strain

Stretch a structure by 2% along the c-axis:

```json
POST /build/strain
{
  "structure": { ... },
  "strain_type": "uniaxial",
  "axis": "c",
  "magnitude": 0.02,
  "n_steps": 1
}
```

### Apply Biaxial Strain

Stretch in the ab-plane (common for surface/thin-film studies):

```json
POST /build/strain
{
  "structure": { ... },
  "strain_type": "biaxial",
  "magnitude": 0.03,
  "n_steps": 1
}
```

### Apply Hydrostatic Strain

Uniform expansion by 1%:

```json
POST /build/strain
{
  "structure": { ... },
  "strain_type": "hydrostatic",
  "magnitude": 0.01,
  "n_steps": 1
}
```

### Apply Shear Strain

Off-diagonal deformation:

```json
POST /build/strain
{
  "structure": { ... },
  "strain_type": "shear",
  "magnitude": 0.02,
  "n_steps": 1
}
```

### Generate Multiple Strain Steps

Generate a series of strained structures (e.g., for elastic constant
calculations). Setting `n_steps > 1` creates structures at evenly
spaced magnitudes from `-|magnitude|` to `+|magnitude|`:

```json
POST /build/strain
{
  "structure": { ... },
  "strain_type": "uniaxial",
  "axis": "c",
  "magnitude": 0.05,
  "n_steps": 11
}
```

This returns 11 structures at -5%, -4%, ..., 0%, ..., +4%, +5% strain.

## Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| strain_type | string | "uniaxial" | Type: `uniaxial`, `biaxial`, `hydrostatic`, `shear` |
| axis | string | "c" | Axis for uniaxial strain: `a`, `b`, or `c` |
| magnitude | float | 0.02 | Strain magnitude (fraction, e.g., 0.02 = 2%) |
| n_steps | int | 1 | Number of strain steps (1 = single deformation) |
| structure | dict | -- | Structure in pymatgen dict format |

## Complete Workflow: Elastic Constants via Stress-Strain

### 1. Fetch and relax structure

```json
{"tool": "catgo_fetch", "arguments": {
  "action": "crystal", "formula": "Cu", "provider": "mp"
}}
```

```json
{"tool": "catgo_workflow", "arguments": {
  "action": "create", "name": "Cu elastic constants"
}}
```

```json
{"tool": "catgo_workflow", "arguments": {
  "action": "add_node", "workflow_id": "wf_elastic",
  "node_type": "cell_opt",
  "params": {"software": "vasp", "ENCUT": 520,
             "system_name": "Cu cell opt"}
}}
```

### 2. Apply strain series and compute stresses

For each deformation mode (6 independent strains for cubic symmetry),
apply a series of strains and run single-point calculations to get
stress tensors.

### 3. Fit elastic tensor

Use the workflow `elastic_analysis` node to fit the elastic tensor from
the stress-strain data:

```json
{"tool": "catgo_workflow", "arguments": {
  "action": "add_node", "workflow_id": "wf_elastic",
  "node_type": "elastic_analysis",
  "params": {"sym_reduce": true, "n_strains": 6, "strain_magnitude": 0.02}
}}
```

## Deformation Matrix Reference

| Strain Type | Deformation Matrix |
|-------------|-------------------|
| Uniaxial (c) | diag(1, 1, 1+e) |
| Biaxial (ab) | diag(1+e, 1+e, 1) |
| Hydrostatic | diag(1+e, 1+e, 1+e) |
| Shear | [[1, e, 0], [0, 1, 0], [0, 0, 1]] |

Where `e` is the strain magnitude.

## Common Pitfalls

1. Strain magnitudes are fractional (0.02 = 2%). Typical values for
   elastic property calculations are 0.5-5%.
2. Always relax the original structure first (cell_opt) before applying
   strain. Straining an unrelaxed structure gives meaningless results.
3. For strain-activity relationships in catalysis, apply strain to the
   slab (not the bulk) and re-optimize adsorbate positions. The strained
   slab should have fixed lattice vectors during geo_opt (ISIF=2).
4. When using `n_steps > 1`, structures are generated symmetrically
   around zero strain. This is important for elastic constant fitting
   (need both tensile and compressive data).
5. Shear strain breaks symmetry. For elastic constant calculations,
   use the full set of 6 independent deformations for the relevant
   crystal system.

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 →