command · sumi · v0.6.1
/sumi:init
Set up Sumitsubo in the current project — detect stack and commands, write the managed CLAUDE.md block, create .sumi/ (config, tasks, reviews) and recommend stack and design plugins.
- Reference
- sumi
- command
- /sumi:init
- source
- plugins/sumi/commands/init.md
Initialize the Sumitsubo framework in this repository. Arguments (optional stack override): $ARGUMENTS
- Detect (read, don't guess):
- Stack from files:
nuxt.config.*→ nuxt;next.config.*orapp/layout.tsx→ react/next;config/settings_schema.json+sections/→ shopify;style.csswithTheme Name:/functions.php/theme.json→ wordpress;firebase.json/firestore.rules→ firebase. - Package manager from the lockfile (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lock).
- Commands from
package.jsonscripts (dev, build, test, lint, typecheck) or platform CLIs (shopify theme dev, wp-env).
- Stack from files:
- Create
.sumi/if missing: copy${CLAUDE_PLUGIN_ROOT}/templates/config.jsonto.sumi/config.jsonwith the detectedstack; create.sumi/tasks/and.sumi/reviews/(with a.gitkeep). Ask the user once whether.sumi/should be committed (recommended for team/client repos so feature files travel with the code) or kept local (add to.git/info/exclude). - CLAUDE.md: read
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.managed.md, fill the{{…}}placeholders with detected facts, then:- If
CLAUDE.mdhas a<!-- sumi:begin…<!-- sumi:end -->block, replace only that block. - Otherwise insert the block at the top, preserving everything else verbatim.
- Never delete or rewrite user content outside the markers.
- If
- Recommend plugins for what was detected (only those not already enabled):
sumi-nuxt,sumi-react,sumi-shopify,sumi-wordpress, andsumi-designfor any project with UI. Show the exact/plugin install <name>@sumitsubocommands (or, from a terminal,npx sumitsubo --stack <stack>). - Models: set
modelProfiletobalancedunless the user explicitly asks for another profile (economyfor small sites or tight plan limits;performanceonly on explicit request — it is Opus-heavy). Then, with one confirmation, write"model": "opusplan"(or the profile's session model) to.claude/settings.local.json(personal, not committed), creating the file if needed and never touching other keys. Generated folders the project produces (e.g. a content build step) go intoreview.excludein.sumi/config.json. - Status line note: if Ponytail asks to add its status line to
~/.claude/settings.jsonand the edit is blocked, explain that it is optional and cosmetic; its suggested path includes a version number and would break on update. - Report per
sumi:output. Subject: the detected stack and package manager. Body: a table of files created or changed, and the recommended plugins from step 4 with their exact install commands. Next step:/sumi-design:directionfor a new UI project,/sumi:featureotherwise.