Agent skill
update-instructions-anton-abyzov-specweave-2
Smart merge for CLAUDE.md and AGENTS.md instruction files that preserves user customizations while updating SpecWeave sections. Use after plugin refresh, version upgrade, or when instruction files need sync. Parses SW-managed sections and preserves user content.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/update-instructions-anton-abyzov-specweave-2
SKILL.md
Update Instructions Skill
Smart merge for CLAUDE.md and AGENTS.md instruction files.
What It Does
- Reads existing instruction files (if present)
- Parses SW-managed sections (marked with
<!-- SW:SECTION:X -->) - Preserves user content (anything between or after SW sections)
- Updates SW sections with latest template content
- Writes merged result back to file
When to Use
- After running
specweave refresh-marketplace - After upgrading SpecWeave version (
npm update -g specweave) - When CLAUDE.md or AGENTS.md seem outdated
- To sync instruction files with latest framework features
Usage
/sw:update-instructions
Or via CLI:
npx specweave update-instructions
How Merge Works
Fresh Install (no existing file)
Creates new file with all SW sections + meta header
Legacy File (no SW markers)
Prepends new SW content, preserves original below separator
Marked File (has SW markers)
Updates SW sections in-place, preserves user content between sections
Section Format
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 -->
User Customization
Add custom content between SW sections or after the last section:
<!-- SW:END:docs -->
## My Custom Section
This will be preserved during updates!
Files Affected
CLAUDE.md- Claude Code instruction fileAGENTS.md- Generic AI tool instruction file
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?