Claude Code plugin
Install
/plugin marketplace add mirastacklabs-ai/platformcosmo
/plugin install platformcosmo@platformcosmoFrom a shell: claude plugin marketplace add mirastacklabs-ai/platformcosmo and claude plugin install platformcosmo@platformcosmo. The plugin ships a self-contained CLI, so no npm install is needed; it only needs Node.js 22.12 or newer on your PATH.
Skills
| Command | Does |
|---|---|
/platformcosmo:diagram <description> | Writes a spec, validates it, fixes errors, builds the SVG. Claude also uses it automatically when you ask for an architecture diagram. |
/platformcosmo:export <spec> [flags] | Re-exports an existing spec: static, steps, PNG, interactive, GIF, MP4, other themes. |
/platformcosmo:icons [add|list|search|remove] | Manages icon packs. Runs only when you invoke it, because adding a pack downloads files. |
What Claude does
- Writes
<name>.cosmo.json. It never writes SVG by hand. - Runs
pcosmo validateand fixes every error using the suggestions. - Runs
pcosmo buildand reports the output paths.
From an image
/platformcosmo:diagram also takes an attached image or an image path. Claude transcribes it into an inventory (components, groups, connections, order), maps it to a spec, and reports what it read plus its assumptions. See Getting started.
The pcosmo command
While the plugin is enabled, pcosmo is on the PATH of Claude's Bash tool. It is the same CLI as the npm package, bundled into one file. Outside Claude Code you can run it with node <plugin dir>/bin/pcosmo.mjs.
Updates
Claude Code caches plugins by version, so you get a new CLI and new skills when the plugin version is bumped (/plugin update platformcosmo). Icon packs you installed live in a separate user directory and survive updates.