Update CLAUDE.md and AGENTS.md instruction files with smart merge. Preserves user customizations while updating SpecWeave sections. Use after plugin refresh, version upgrade, or when instruction files need sync. Activates for: update instructions, refresh claude.md, merge agents.md, sync instruction files, upgrade specweave config.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
Smart merge for CLAUDE.md and AGENTS.md instruction files.
<!-- SW:SECTION:X -->)bash scripts/refresh-marketplace.shnpm update specweave)/sw:update-instructions
Or via CLI:
npx specweave update-instructions
Creates new file with all SW sections + meta header
Prepends new SW content, preserves original below separator
Updates SW sections in-place, preserves user content between sections
Template sections (in .template files):
<!-- SECTION:rules required -->
## Rules
Content here...
<!-- /SECTION -->
Generated sections (in output files):
<!-- SW:META template="claude" version="1.0.0" sections="header,rules,..." -->
<!-- SW:SECTION:header version="1.0.0" -->
Content...
<!-- SW:END:header -->
Add custom content between SW sections or after the last section:
<!-- SW:END:docs -->
## My Custom Section
This will be preserved during updates!
CLAUDE.md - Claude Code instruction fileAGENTS.md - Generic AI tool instruction file