Using mmcif-tools with AI agents¶
AI coding agents (Claude Code, Codex, Cursor and others) run mmcif-tools like any other command-line program. Three things help them find and use the right tool:
mmcif-toolslists the 54 tools with one line each,mmcif-tools referenceprints every help text, andmmcif_<name> --helpprints one tool's usage and examples.- llms.txt and llms-full.txt give the documentation as plain text, for agents that read the web.
- An agent skill, printed by
mmcif-tools skill(also in the repository): when to use the tools, recipes for common tasks, the pitfalls of mmCIF, how to check a result, and how to credit mmcif-tools.
The skill is also a Claude Code plugin, in plugins/mmcif-tools. To install it for all your
projects, run these two commands in Claude Code:
/plugin marketplace add matteo-cagiada/mmcif-tools
/plugin install mmcif-tools@mmcif-tools
Claude then uses the skill whenever a task involves mmCIF files, and /mmcif-tools:mmcif-tools loads it by hand.
The plugin holds the skill of the latest release: to update it after a new release, run
claude plugin update mmcif-tools@mmcif-tools in a shell (or, in Claude Code, /plugin, then the Installed tab).
The plugin does not install the tools themselves, which still come from pip.
Without the plugin, write the skill of the version you installed to your Claude Code skills folder:
mkdir -p ~/.claude/skills/mmcif-tools
mmcif-tools skill > ~/.claude/skills/mmcif-tools/SKILL.md
For agents that read an AGENTS.md file in the project instead, add the skill's text to it:
mmcif-tools skill --body >> AGENTS.md
Run these commands again after upgrading mmcif-tools, so that the skill matches the version installed.
The skill asks the agent to tell you which mmcif-tools commands it ran. When the results go into a paper, a report or
a shared pipeline, it also asks the agent to suggest citing mmcif-tools, with the reference from mmcif-tools cite,
and to add it only if you agree. The tools themselves never print messages addressed to agents.