update-instructions

Merge SpecWeave template updates into CLAUDE.md and AGENTS.md while preserving user content.

156|21|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/anton-abyzov/specweave --skill update-instructions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-instructions
Source: https://github.com/anton-abyzov/specweave/tree/main/plugins/specweave/skills/update-instructions
Command: npx skills add https://github.com/anton-abyzov/specweave --skill update-instructions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps CLAUDE.md and AGENTS.md instruction files in sync with the latest SpecWeave sections while preserving user customizations. Ideal after plugin refreshes, version upgrades, or when instruction files drift out of date.

Core Features & Use Cases

  • Reads existing CLAUDE.md and AGENTS.md and detects SW-managed sections
  • Preserves user content between SW sections
  • Updates SW sections with latest templates and merges changes in place
  • Works for fresh installs and legacy files with/without SW markers

Quick Start

/sw:update-instructions or npx specweave update-instructions

Frequently Asked Questions about update-instructions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep my CLAUDE.md and AGENTS.md instruction files in sync with framework updates?

Smart-merge updates to CLAUDE.md and AGENTS.md automatically sync SpecWeave sections to the latest templates while preserving your custom content between marked sections. Run the update after plugin refreshes or version upgrades to merge changes in place without losing your customizations.

Can I update instruction files without losing my custom changes?

Yes. The merge process detects SpecWeave-managed sections, preserves all user content outside those sections, and updates only the framework-managed blocks. Your customizations remain intact while SW sections get the latest templates.

What happens to legacy instruction files without SpecWeave markers during an update?

The Skill handles legacy files by detecting existing SW sections even without explicit markers, then applies the merge logic to update framework content while keeping your additions and modifications safe.

When should I run instruction file updates?

Run updates after plugin refreshes, SpecWeave version upgrades, fresh installs, or whenever CLAUDE.md and AGENTS.md drift out of sync with the latest framework sections. The Skill works for any instruction file state.

Does this work for both fresh installs and existing instruction files?

Yes. The merge logic applies to fresh installs, legacy files, marked files, and unmarked files. It reads existing instruction content, preserves user sections, updates SW-managed blocks, and writes the merged result back to disk.

Can I automate instruction file syncing as part of my development workflow?

Yes. Use `/sw:update-instructions` or `npx specweave update-instructions` to automate smart-merge updates. This integrates into build pipelines or refresh workflows to keep instruction files current without manual intervention.