/swarmstorm:dependency-graphfrom swarmstorm
Generates a deterministic Mermaid dependency graph for JavaScript/TypeScript projects at file or folder level using dependency-cruiser. Useful for exploring module dependencies, reverse dependencies, or neighborhood graphs.
Ships in swarmstorm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The graph is parsed, never written by hand or guessed. scripts/graph.mjs runs dependency-cruiser over the code, with the project's own TypeScript (from TypeScript 7 on, with TypeScript 6, which its answer then names), and turns the ask into options. The same options give the same graph on the same commit.
Translate the ask into options, then run it once:
node <skill-dir>/scripts/graph.mjs --root <the package's folder> [--from <path>] [--to <path>] [--focus <path> --depth <n>] [--steps <n>] [--level <n>] [--only <regex>] [--exclude <regex>] --title "<title>" --out <path>
--from that module or folder.--to it.--focus it, --depth the hops.--steps <n> follows imports only n steps from --from.--level 2 folds src/<area>/… into one node per area; the coarser view first, then open the part that matters.--exclude "tests|generated"; node_modules and Node's own modules are always out.The root is the folder holding the package's tsconfig.json (its extends resolves from there); in a monorepo, one package per graph. The first run installs dependency-cruiser and the project's TypeScript (TypeScript 6 for a project on 7 or later) into a cache, needing the network once.
Through the aiview skill: kind report from YYYY-MM-DD-<subject>.dependency-graph.report.md, tags dependency-graph and the module, group the piece of work it serves. The script writes it at the path aiview path gives, with the commit, the counts and the command that makes it again. Open it and tell the person the URL. A graph over about a hundred nodes is folded with --level or narrowed before it is shown.
What the graph shows is said under it, in a few lines: the cycles, a dependency against the project's stated boundaries (its conventions file), a module far more depended on than the rest. Nothing beyond what the edges show.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ovich/swarmstorm --plugin swarmstorm38 skills in this plugin
/aiviewUse whenever a document is produced for the user to read and react to while it evolves: a brainstorm board, a plan, a design language, a prototype, a PR analysis, a review report, a live PDF. Also when a document must be registered, opened, listed, moved or retired, or a prototype's bindings checked. Not for code, tests or configuration, or any file nobody opens in a browser./brainstormUse when a person wants to think an idea through and keep the discussion: a feature, a tool choice, an architecture question, before a plan or without one, with the agent through an interview. Produces a board in aiview holding the decisions, the diagrams and what was investigated. Not for a swarm of seats working it (brainswarm), not for an implementation plan and not for bug fixes./brainswarmOther plugins' skills for the same job