/grain:mapfrom grain
A structural overview of the repo — dependency layers, top concepts, certified change shapes, decisions in force
Ships in grain. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
!node -e "const f=process.argv[1];if(!require('fs').existsSync(f)){console.error('grain: '+f+' is not reachable from this environment (a host path inside a container?), so grain did not run');process.exit(0)}const r=require('child_process').spawnSync(process.execPath,process.argv.slice(1),{stdio:'inherit'});process.exit(r.status===null?1:r.status)" "${CLAUDE_PLUGIN_ROOT}/bin/grain.mjs" map
Relay the overview above: layers: (modules from leaves to top, by dependency depth — a leaf has nothing else in
this repo depending on how it is called), concepts: (the repo's own top vocabulary, where commit messages and
code agree), changes: (recurring certified shapes of past commits, each with how many changes fit it), and
decisions: (how many maintainer decisions are in force). Good for orienting in an unfamiliar repository before
asking anything more specific — treat it as a map, not a set of claims to cite as evidence on its own. Do not edit
anything unless asked. Quote the trailing as of <sha> line.
7-day visitors to each command page
Other plugins' commands for the same job
23 commands in this plugin
/advisegrain advise: $ARGUMENTSWhat this repository's own history and imports say about the architecture graph it ALREADY has — places a finer cut beats, rules the graph could take on, and (as data, not advice) places that change together with nothing connecting them/checkgrain check: $ARGUMENTSAsk the repo how a file — or your whole uncommitted change — sits against the local norm (deviations with evidence and exemplars)/cochangegrain cochange: $ARGUMENTSWhich parts of a set of files or graph nodes change together more often than chance, and how well a proposed cut of them into parts follows the seams the history shows/completenessgrain completeness: $ARGUMENTSAsk the repo which other files historically change together with the given file(s) — co-change, above a confidence floor/decidegrain decide: $ARGUMENTSRecord a maintainer decision — steer (promote a pattern), boundary (forbid an import direction), or waive (excuse one scope) — or list/withdraw one/explaingrain explain: $ARGUMENTSShow the full local-to-global convention lattice around one file (no acceptance cut)npx claudepluginhub krzysztofdudek/grain --plugin grain