pycalphad
Skill by K-Dense-AI
Computes finite-temperature CALPHAD equilibria, phase fractions, and phase compositions from TDB databases using pycalphad. Built for alloy phase stability, temperature sweeps, and reproducible phase-fraction checks.
Install pycalphad
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pycalphad ~/.claude/skills/pycalphadRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/pycalphad ~/.gemini/antigravity-cli/skills/pycalphadAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
pycalphad is an agent skill for computing finite-temperature CALPHAD equilibria from thermodynamic TDB databases with the pycalphad library. Given elemental mole fractions, a pressure, and a list of temperatures, it returns stable phases, phase fractions, and phase compositions. A bundled script runs the calculation locally, checks mass balance, repeats the run at doubled sampling density, and writes a JSON report and a CSV of equilibrium vertices.
The skill is aimed at researchers and engineers who study alloy phase stability, tie lines, or lever-rule checks and need reproducible phase-fraction results with explicit components and conditions. It ships a hypothetical teaching model, not an assessed Cu-Ni database. The source states that numerical checks do not establish experimental accuracy, so real materials need a suitable licensed database.
Written from the project's SKILL.md and checked against it.
What it can do
- Equilibrium calculationComputes stable phases, phase fractions, and compositions at a fixed bulk composition and pressure.
- Temperature sweepsRuns equilibria over up to 1000 explicit positive temperatures in one request.
- Mass balance checksChecks phase fractions sum to one and reconstructed bulk composition matches the request.
- Sampling stability checkRepeats the calculation at doubled phase-constitution sampling density and compares results.
- Reproducible reportsExports a JSON report with database hash, settings, versions, and checks, plus a CSV of vertices.
What you need
- Python 3.12 or later
- pycalphad 0.11.2
- NumPy
- Network access for installation
- A suitable licensed thermodynamic database for real-material predictions
Try asking
- Run a pycalphad equilibrium for my Cu-Ni TDB at X(Ni)=0.5 from 900 K to 1300 K.
- Check the lever-rule phase fractions for my alloy at 1100 K using this TDB.
- Export the phase compositions and mass balance report for this equilibrium sweep.
Good to know
- The bundled ideal-cu-ni.tdb is a hypothetical teaching model, not an assessed Cu-Ni database.
- Does not predict precipitation rates, retained metastable microstructures, or properties of phases missing from the database.
- Successful numerical checks do not establish the database's experimental accuracy.
- URL database downloads are not supported; the Database loader reads local paths, file-like objects, or TDB text.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pycalphad/SKILL.md, skills/pycalphad/scripts/equilibrate.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
assets/equilibrium.json443 B -
assets/ideal-cu-ni.tdb702 B -
references/model-and-validation.md10 KB -
scripts/equilibrate.py11 KB
Alternatives to pycalphad
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
pycalphad: common questions
What does pycalphad compute?
According to the source, it computes finite-temperature CALPHAD equilibria, phase fractions, and phase compositions at a fixed bulk elemental mole composition and pressure. Results are constrained by the selected database, components, phases, and conditions.
Does the skill include a real Cu-Ni thermodynamic database?
No. The source says the bundled ideal-cu-ni.tdb is an original hypothetical teaching model and not an assessed Cu-Ni database. Users should supply their own database for real alloys.
Can it predict precipitation kinetics?
No. The source states the skill does not predict precipitation rates or retained metastable microstructures. It only computes constrained equilibrium results.
How do I install pycalphad?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pycalphad free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pycalphad safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pycalphad?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
