command · sumi · v0.6.1
/sumi:sync
Update the Sumitsubo-managed block in CLAUDE.md to the installed framework version without touching anything outside the Sumitsubo markers.
- Reference
- sumi
- command
- /sumi:sync
- source
- plugins/sumi/commands/sync.md
- Read
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.managed.md(the current version) and the project'sCLAUDE.md. - Find the block between
<!-- sumi:beginand<!-- sumi:end -->. If there is none, tell the user to run/sumi:initand stop. - Preserve the "Project facts" values already filled in the existing block (stack, package manager, commands); carry them into the new template.
- Replace only the content between the markers (markers included). Everything above and below stays byte-for-byte identical.
- Keep a diff summary of what changed inside the managed block, and the version transition (e.g. v0.1.0 → v0.2.0), for the report.
- Check
.sumi/config.jsonagainst${CLAUDE_PLUGIN_ROOT}/templates/config.json: add missing keys with their defaults; never overwrite existing values. - Report per
sumi:output. Subject: the version transition. Body: the diff summary from step 5 and the config keys added in step 6 — sayn/awhen either is empty rather than omitting the row. Next step: none when nothing changed; otherwise reviewing the managed block.