Agent skill

Mat Phase Field Non Conservative

by learningmatter-mit in learningmatter-mit/AtomisticSkills

Simulate non-conservative phase-fields (grain growth and phase transformations) using the Allen-Cahn equation.

MITAuto-check passed

Install Mat Phase Field Non Conservative

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

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

GitHub CLI
$ gh skill install learningmatter-mit/AtomisticSkills mat-phase-field-non-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-non-conservative .claude/skills/mat-phase-field-non-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-non-conservative
GitHub stars
176
Token cost
~812 tokens
SKILL.md length
329 words
Files
8 (incl. scripts)
Skills in repo
129
Repo updated
First seen
Licence
MIT

At a glance

Simulate non-conservative phase-fields (grain growth and phase transformations) using the Allen-Cahn equation.

  • Works in 2 steps: Mathematical Formulation → Running Curvature-Driven Grain Growth
  • SKILL.md covers Goal, Instructions, Examples and Constraints, plus 1 more section
  • Runs Python scripts from its folder

What it does

Mat Phase Field Non Conservative is an agent skill from learningmatter-mit/AtomisticSkills. Simulate non-conservative phase-fields (grain growth and phase transformations) using the Allen-Cahn equation.

Its SKILL.md is about 810 tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts (for example `examples/benchmark-dendrite/README.md`, `examples/benchmark-grain/README.md` and `scripts/run_dendrite_growth.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-non-conservative”

Requirements

  • Python 3

Workflow steps

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

  1. Mathematical Formulation
  2. Running Curvature-Driven Grain Growth

What it can do on your machine

Read from SKILL.md and the folder at commit 6257444. 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 2 files 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 Non Conservative loads about 812 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 329 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
~812

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 6257444, republished under its MIT licence (© learningmatter-mit). 329 words, ~812 tokens.

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

Non-Conservative Phase-Field: Allen-Cahn

Goal

To simulate the morphological evolution of structural transformations (like solidification, melting, or curvature-driven grain growth) using the Allen-Cahn (time-dependent Ginzburg-Landau) equation. This tracks a non-conservative order parameter $\phi$ which distinguishes between phases (e.g., solid vs. liquid).

Instructions

1. Mathematical Formulation

The Allen-Cahn equation describes the evolution of a non-conserved order parameter $\phi$ down a free energy gradient: $$ \frac{\partial \phi}{\partial t} = -M \frac{\delta F}{\delta \phi} = M \left( \epsilon^2 \nabla^2 \phi - \frac{\partial f(\phi)}{\partial \phi} \right) $$ Where $M$ is the mobility, $\epsilon$ is the gradient energy coefficient controlling the interface thickness, and $f(\phi) = W \phi^2(1-\phi)^2$ is the double-well potential barrier between the two phases ($\phi=0$ and $\phi=1$).

Unlike Cahn-Hilliard, Allen-Cahn does not conserve the integral of $\phi$. It naturally drives systems to reduce their total interfacial area, resulting in curvature-driven boundary migration.

2. Running Curvature-Driven Grain Growth

Use the provided script to set up a 2D grid containing a circular solid grain in a liquid matrix and observe its capillarity-driven shrinkage.

bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_grain_growth.py \
    --grid-size 100 \
    --radius 30 \
    --steps 200 \
    --dt 0.1 \
    --output grain_growth.gif

Parameters:

  • --grid-size: Number of grid points per dimension (e.g., 100 for a 100x100 2D grid).
  • --radius: Initial radius of the circular grain in grid units.
  • --steps: Total number of time steps to run.
  • --dt: Time step size.
  • --output: Filepath to save the resulting .gif animation or .png.

Examples

Classic Shrinking Circular Grain

A universal mathematical benchmark for the Allen-Cahn equation is proving that a circular domain shrinks at a rate proportional to its curvature (the $v = M \gamma K$ law). The area of the circle must decrease linearly with time.

bash
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_grain_growth.py \
    --grid-size 100 \
    --radius 35 \
    --steps 300 \
    --dt 0.5 \
    --output examples/benchmark-grain/classic_shrinking_grain.gif

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

Constraints

  • Environments: Scripts require the cpu environment. Each code block MUST specify the environment.
  • Interface Thickness: The spatial resolution dx must be small enough to resolve the diffuse interface (typically requiring at least 4-5 grid points across the interface controlled by $\epsilon$).

References

  • Allen, S. M., & Cahn, J. W., "A macroscopic theory for antiphase boundary motion and its application to antiphase domain coarsening", Acta Metallurgica, 1979. 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 7 other files (scripts) in skills/mat-phase-field-non-conservative of learningmatter-mit/AtomisticSkills.

  • SKILL.md
  • examples/benchmark-dendrite/README.md
  • examples/benchmark-dendrite/dendrite.gif
  • examples/benchmark-grain/README.md
  • examples/benchmark-grain/grain_growth.gif
  • examples/benchmark-grain/grain_growth_area_decay.png
  • scripts/run_dendrite_growth.py
  • scripts/run_grain_growth.py

Open the folder on GitHubat commit 6257444

Compare with similar skills

Mat Phase Field Non 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 Non Conservative compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mat Phase Field Non Conservative this skilllearningmatter-mit/AtomisticSkills176—~812Automated safety check: PassMIT
TransformersK-Dense-AI/scientific-agent-skills48k1 repos~2.8kAutomated safety check: NotesApache-2.0
Esign Field Placementaffaan-m/ECC275k—~2.6kAutomated safety check: PassMIT
Hugging Face Transformers Usagedavila7/claude-code-templates32k12 repos~1.2kAutomated safety check: PassMIT
Eas Simulatorsickn33/agentic-awesome-skills47k1 repos~6kAutomated safety check: NotesMIT
Transformers JSsickn33/agentic-awesome-skills47k1 repos~444Automated safety check: PassApache-2.0

Similar skills

  • Transformers

    K-Dense-AI/scientific-agent-skills

    Hugging Face Transformers for loading Hub models, running pipeline inference, text generation, and Trainer fine-tuning on NLP, vision, audio, and multimodal tasks.

    48k GitHub starsUsed in 1 repo~2.8k tokens
    AI & LLM EngineeringAuto-check: notes
  • 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…

    275k GitHub stars~2.6k tokensUpdated 3 days ago
    Productivity & AutomationAuto-check passed
  • Hugging Face Transformers Usage

    davila7/claude-code-templates

    Loads pre-trained Hugging Face Transformers models for text, vision and audio tasks, runs inference with pipelines and fine-tunes on custom datasets.

    32k GitHub starsUsed in 12 repos~1.2k tokens
    AI & LLM EngineeringAuto-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
  • Transformers JS

    sickn33/agentic-awesome-skills

    Use Transformers.js to run state-of-the-art machine learning models directly in JavaScript/TypeScript.

    47k GitHub starsUsed in 1 repo~444 tokens
    AI & LLM EngineeringAuto-check passed
  • 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

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.

    176 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.

    176 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).

    176 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.

    176 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.

    176 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.

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

Questions about Mat Phase Field Non Conservative

What does Mat Phase Field Non Conservative do?

Simulate non-conservative phase-fields (grain growth and phase transformations) using the Allen-Cahn equation. Mat Phase Field Non Conservative is an agent skill from learningmatter-mit/AtomisticSkills. Simulate non-conservative phase-fields (grain growth and phase transformations) using the Allen-Cahn equation.

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

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

How do I install Mat Phase Field Non Conservative in Codex?

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

Can I use Mat Phase Field Non 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-non-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-non-conservative, .gemini/skills/mat-phase-field-non-conservative, .github/skills/mat-phase-field-non-conservative and .opencode/skills/mat-phase-field-non-conservative in your project.

What does Mat Phase Field Non Conservative need to run?

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

Does Mat Phase Field Non 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 Non 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 Non Conservative use?

Mat Phase Field Non 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 Non Conservative use?

About 812 tokens (SKILL.md is roughly 3.2k 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 Non Conservative?

Skills that share tags, products or a category with Mat Phase Field Non Conservative: Transformers (K-Dense-AI/scientific-agent-skills, 48k stars), Esign Field Placement (affaan-m/ECC, 275k stars), Hugging Face Transformers Usage (davila7/claude-code-templates, 32k stars) and Eas Simulator (sickn33/agentic-awesome-skills, 47k 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 Non Conservative?

learningmatter-mit (a GitHub organization) maintains it in learningmatter-mit/AtomisticSkills, which has 176 GitHub stars. The repository holds 129 skills in this directory. The repository was last updated on October 7, 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.