Agent skill

Mat Phase Field Conservative

by learningmatter-mit in learningmatter-mit/AtomisticSkills

Simulate conservative phase-fields (spinodal decomposition and phase separation) using the Cahn-Hilliard equation.

MITAuto-check passed

Install Mat Phase Field Conservative

skills CLI
$ npx skills add learningmatter-mit/AtomisticSkills --skill mat-phase-field-conservative -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install learningmatter-mit/AtomisticSkills mat-phase-field-conservative --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/learningmatter-mit/AtomisticSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mat-phase-field-conservative .claude/skills/mat-phase-field-conservative && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mat-phase-field-conservative
GitHub stars
175
Token cost
~748 tokens
SKILL.md length
294 words
Files
4 (incl. scripts)
Skills in repo
129
Repo updated
First seen
Licence
MIT

At a glance

Simulate conservative phase-fields (spinodal decomposition and phase separation) using the Cahn-Hilliard equation.

  • Works in 2 steps: Mathematical Formulation → Running the Spinodal Decomposition…
  • SKILL.md covers Goal, Instructions, Examples and Constraints, plus 1 more section
  • Runs Python scripts from its folder

What it does

Mat Phase Field Conservative is an agent skill from learningmatter-mit/AtomisticSkills. Simulate conservative phase-fields (spinodal decomposition and phase separation) using the Cahn-Hilliard equation.

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `examples/benchmark-spinodal/README.md` and `scripts/run_spinodal_decomposition.py`).

The repository describes itself as: Integrating AtomisticSkills into Agentic IDEs (Cursor, Claude Code, Codex, Google Antigravity, Hermes Agent, etc). The licence is MIT.

Example prompts

  • “/mat-phase-field-conservative”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Mathematical Formulation
  2. Running the Spinodal Decomposition Simulation

What it can do on your machine

Read from SKILL.md and the folder at commit 7f2d86d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • doi.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mat Phase Field Conservative loads about 748 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 294 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~748

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from learningmatter-mit/AtomisticSkills at commit 7f2d86d, republished under its MIT licence (© learningmatter-mit). 294 words, ~748 tokens.

Download SKILL.mdSave it as .claude/skills/mat-phase-field-conservative/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
mat-phase-field-conservative
description
Simulate conservative phase-fields (spinodal decomposition and phase separation) using the Cahn-Hilliard equation.
metadata.category
materials
metadata.venv
cpu

Conservative Phase-Field: Cahn-Hilliard

Goal

To simulate the morphological evolution of spinodal decomposition (phase separation) in a binary alloy system using the Cahn-Hilliard equation. This skill solves the 4th-order partial differential equation to track the conservative concentration field $c(\mathbf{r}, t)$ over time.

Instructions

1. Mathematical Formulation

The Cahn-Hilliard equation describes the evolution of a conserved concentration field $c$ down a free energy gradient: $$ \frac{\partial c}{\partial t} = \nabla \cdot \left( M \nabla \frac{\delta F}{\delta c} \right) $$ Where $M$ is the mobility, and $F$ is the Ginzburg-Landau free energy functional incorporating a double-well local potential $f(c) = a c^2(1-c)^2$ and a gradient energy penalty $\frac{\kappa}{2} |\nabla c|^2$.

2. Running the Spinodal Decomposition Simulation

Use the provided script to set up a 2D grid and solve the Cahn-Hilliard equation using FiPy.

bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_spinodal_decomposition.py \
    --grid-size 100 \
    --dx 0.25 \
    --steps 100 \
    --dt 0.01 \
    --output spinodal_output.gif

Parameters:

  • --grid-size: Number of grid points per dimension (e.g., 100 for a 100x100 2D grid).
  • --dx: Size of each grid cell.
  • --steps: Total number of time steps to run.
  • --dt: Time step size. Use small values for stability unless using fully implicit solvers.
  • --output: Filepath to save the resulting .gif animation or final .png image.

Examples

Classic Spinodal Decomposition

To benchmark the solver and reproduce the classic interconnected "worm-like" bicontinuous morphology of spinodal decomposition:

bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_spinodal_decomposition.py \
    --grid-size 100 \
    --steps 200 \
    --dt 1e-2 \
    --output examples/benchmark-spinodal/classic_spinodal.gif

See the examples/benchmark-spinodal/README.md for the expected output.

Constraints

  • Environments: Scripts require the cpu environment. Each code block MUST specify the environment.
  • Conservation: The Cahn-Hilliard PDE inherently conserves the global integral of $c$. If using explicit time-stepping with too large of a dt, numerical instability may break conservation.

References

  • Cahn, J. W., & Hilliard, J. E., "Free Energy of a Nonuniform System. I. Interfacial Free Energy", The Journal of Chemical Physics, 1958. DOI
  • Guyer, J. E., Wheeler, D., & Warren, J. A., "FiPy: Partial Differential Equations with Python", Computing in Science & Engineering, 2009. DOI

Author: Bowen Deng

© learningmatter-mit, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in skills/mat-phase-field-conservative of learningmatter-mit/AtomisticSkills.

  • SKILL.md
  • examples/benchmark-spinodal/README.md
  • examples/benchmark-spinodal/classic_spinodal.gif
  • scripts/run_spinodal_decomposition.py

Open the folder on GitHubat commit 7f2d86d

Compare with similar skills

Mat Phase Field Conservative next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mat Phase Field Conservative compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mat Phase Field Conservative this skilllearningmatter-mit/AtomisticSkills175—~748Automated safety check: PassMIT
Esign Field Placementaffaan-m/ECC274k—~2.6kAutomated safety check: PassMIT
Eas Simulatorsickn33/agentic-awesome-skills47k1 repos~6kAutomated safety check: NotesMIT
Fieldsparcadei/Continuous-Claude-v33.9k1 repos~693Automated safety check: NotesMIT
Password Field Securitythedaviddias/Front-End-Checklist74k—~458Automated safety check: PassMIT
Field Notes Editorial Templatenexu-io/open-design100k—~574Automated safety check: PassApache-2.0

Similar skills

  • Deterministic method for placing signature, date, and text fields in a web e-signature composer through a browser automation session, using a fixed signature page, numeric Location panel coordinates…

    274k GitHub stars~2.6k tokensUpdated 2 days ago
    Productivity & AutomationAuto-check passed
  • Eas Simulator

    sickn33/agentic-awesome-skills

    Curated upstream guidance for Eas Simulator; use when the workflow matches the user goal.

    47k GitHub starsUsed in 1 repo~6k tokens
    MobileAuto-check: notes
  • Fields

    parcadei/Continuous-Claude-v3

    Problem-solving strategies for fields in abstract algebra. An agent skill from parcadei/Continuous-Claude-v3.

    3.9k GitHub starsUsed in 1 repo~693 tokens
    Research & ScienceAuto-check: notes
  • Password Field Security

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing headers, forms, cookies, or third-party integrations related to Secure password input fields.

    74k GitHub stars~458 tokensUpdated yesterday
    Auto-check passed
  • Editorial "Field Notes" report template with soft paper background, serif hero typography, rounded pastel insight cards, and a retention chart panel.

    100k GitHub stars~574 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Issue Fields Migration

    github/awesome-copilot

    Official

    Bulk-migrate metadata to GitHub issue fields from two sources: repo labels (e.g.

    40k GitHub starsUsed in 1 repo~6.1k tokens
    Auto-check passed

More from learningmatter-mit/AtomisticSkills

All 129 skills in this repo
  • Drug Binding Site Definition

    learningmatter-mit/AtomisticSkills

    Define a docking search box (center coordinates + box dimensions in Angstroms) from a co-crystal ligand, binding-site residues, or a saved JSON specification.

    175 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Drug Complex System Builder

    learningmatter-mit/AtomisticSkills

    Build a solvated, charge-neutralized protein-ligand complex for OpenMM molecular dynamics simulation.

    175 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Drug Pocket Detection

    learningmatter-mit/AtomisticSkills

    Identify and rank ligandable pockets on a protein structure or model using geometry (fpocket) or an ML predictor (P2Rank).

    175 GitHub stars~4k tokensUpdated yesterday
    Auto-check passed
  • Chem Bond Dissociation

    learningmatter-mit/AtomisticSkills

    Calculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation.

    175 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Chem Conformer Search

    learningmatter-mit/AtomisticSkills

    Generate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting.

    175 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Chem DB Mof

    learningmatter-mit/AtomisticSkills

    Query multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al.

    175 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed

Questions about Mat Phase Field Conservative

What does Mat Phase Field Conservative do?

Simulate conservative phase-fields (spinodal decomposition and phase separation) using the Cahn-Hilliard equation. Mat Phase Field Conservative is an agent skill from learningmatter-mit/AtomisticSkills. Simulate conservative phase-fields (spinodal decomposition and phase separation) using the Cahn-Hilliard equation.

How do I install Mat Phase Field Conservative in Claude Code?

Run `npx skills add learningmatter-mit/AtomisticSkills --skill mat-phase-field-conservative -a claude-code`. Or copy the skill folder (skills/mat-phase-field-conservative in learningmatter-mit/AtomisticSkills) into .claude/skills/mat-phase-field-conservative in your project. Claude Code loads it when a task matches its description.

How do I install Mat Phase Field Conservative in Codex?

Run `npx skills add learningmatter-mit/AtomisticSkills --skill mat-phase-field-conservative -a codex`. Or copy the skill folder (skills/mat-phase-field-conservative in learningmatter-mit/AtomisticSkills) into .agents/skills/mat-phase-field-conservative in your project. Codex loads it when a task matches its description.

Can I use Mat Phase Field Conservative in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add learningmatter-mit/AtomisticSkills --skill mat-phase-field-conservative -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mat-phase-field-conservative, .gemini/skills/mat-phase-field-conservative, .github/skills/mat-phase-field-conservative and .opencode/skills/mat-phase-field-conservative in your project.

What does Mat Phase Field Conservative need to run?

Going by SKILL.md and its folder, Mat Phase Field Conservative needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Mat Phase Field Conservative access the network?

SKILL.md names 1 domain. As links in the text: doi.org. This is read from the text; nothing was executed.

Is Mat Phase Field Conservative safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Mat Phase Field Conservative use?

Mat Phase Field Conservative is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mat Phase Field Conservative use?

About 748 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mat Phase Field Conservative?

Skills that share tags, products or a category with Mat Phase Field Conservative: Esign Field Placement (affaan-m/ECC, 274k stars), Eas Simulator (sickn33/agentic-awesome-skills, 47k stars), Fields (parcadei/Continuous-Claude-v3, 3.9k stars) and Password Field Security (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mat Phase Field Conservative?

learningmatter-mit (a GitHub organization) maintains it in learningmatter-mit/AtomisticSkills, which has 175 GitHub stars. The repository holds 129 skills in this directory. The repository was last updated on October 6, 2026.

Source: learningmatter-mit/AtomisticSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.