agentleFS
learningmatter-mitlearningmatter-mit/AtomisticSkills/.agents/skills/chem-irc-verification/SKILL.md

chem-irc-verification

Skill174 starsChanged 6 months agoMITView on GitHub

Verify non-periodic molecular TS connectivity with forward/reverse IRC using endpoint connectivity and RMSD checks.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify that a saddle-point-optimized TS connects the intended reactant and product.

    line 9
  2. Distinctive:

    all candidate assignments with total RMSD

    line 86
  3. Very specific:

    Default criterion: both pairs must pass with rmsd_threshold = 0.20 A.

    line 96
  4. Very specific:

    Use the same backend/model/head as TS optimization to avoid model inconsistency.

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

IRC Verification with Sella

Verify that a saddle-point-optimized TS connects the intended reactant and product.

Scope

  • Domain: molecular chemistry only (non-periodic systems).
  • Trigger: user has optimized reactant/product + optimized TS and needs IRC endpoint verification.
  • Exclusions: periodic systems and barrier-only workflows.

Tool

verify_irc_sella.py

Runs forward/reverse IRC from the TS, optionally relaxes endpoints, then checks mapping quality.

Use with MACE

# Env: mace-agent
python .agents/skills/chem-irc-verification/scripts/verify_irc_sella.py \
  --reactant reactant_optimized.xyz \
  --product product_optimized.xyz \
  --ts ts_optimized.xyz \
  --model_type mace \
  --model_name MACE-OFF23-small \
  --fmax 0.02 \
  --steps 1000 \
  --rmsd_threshold 0.20 \
  --relax_endpoints true \
  --endpoint_relax_fmax 0.02 \
  --output_dir results/irc

Use with FAIRChem (UMA)

# Env: fairchem-agent
python .agents/skills/chem-irc-verification/scripts/verify_irc_sella.py \
  --reactant reactant_optimized.xyz \
  --product product_optimized.xyz \
  --ts ts_optimized.xyz \
  --model_type fairchem \
  --model_name uma-s-1p1 \
  --task_name omol \
  --fmax 0.02 \
  --steps 1000 \
  --rmsd_threshold 0.20 \
  --relax_endpoints true \
  --endpoint_relax_fmax 0.02 \
  --output_dir results/irc

Arguments

  • --reactant: required optimized reactant geometry.
  • --product: required optimized product geometry.
  • --ts: required saddle-point-optimized TS geometry.
  • --model_type: required backend (mace or fairchem).
  • --model_name: optional model identifier/checkpoint.
  • --task_name: optional model head/task (for UMA molecular runs use omol).
  • --device: auto|cpu|cuda (default auto).
  • --fmax: IRC convergence threshold in eV/A (default 0.02).
  • --steps: maximum IRC steps per direction (default 1000).
  • --rmsd_threshold: endpoint RMSD threshold in A (default 0.20).
  • --relax_endpoints: true|false, relax IRC endpoints before matching (default true).
  • --endpoint_relax_fmax: force threshold for optional endpoint relaxation (default 0.02).
  • --output_dir: required output directory.

Outputs

  • irc_forward.traj, irc_reverse.traj: IRC trajectories.
  • irc_forward.log, irc_reverse.log: IRC logs.
  • irc_forward_endpoint.xyz, irc_reverse_endpoint.xyz: terminal endpoint geometries.
  • irc_verification_results.json: endpoint assignment and pass/fail summary.

irc_verification_results.json fields include:

  • selected endpoint assignment (endpoint_mapping)
  • per-pair metrics (connectivity_match, rmsd_angstrom, thresholds)
  • all candidate assignments with total RMSD
  • final decision (verification_passed)

Verification Criterion

Verification passes only if both mapped endpoint-target pairs satisfy:

  • same formula and atom order
  • connectivity graph match
  • Kabsch-aligned RMSD <= rmsd_threshold

Default criterion: both pairs must pass with rmsd_threshold = 0.20 A.

Model Guidance

  • Recommended for molecules:
    • MACE-OFF23-small / MACE-OFF23-medium
    • uma-s-1p1 with --task_name omol
  • Use the same backend/model/head as TS optimization to avoid model inconsistency.

Prerequisites And Constraints

  • Activate mace-agent or fairchem-agent depending on backend.
  • Script enforces pbc=False for all inputs.
  • Reactant/product/TS must have identical composition and consistent atom ordering.

Examples

See examples/ directory for sample inputs and outputs.

Author: Juno Nam Contact: GitHub @recisic

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.