Back to list
anton-abyzov

update-instructions

by anton-abyzov

Autonomous AI Development Framework. Build production software with specs, tests, and docs that write themselves. Works with Claude, Cursor, Copilot.

23🍴 3📅 Jan 24, 2026

SKILL.md


name: update-instructions description: 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.

Update Instructions Skill

Smart merge for CLAUDE.md and AGENTS.md instruction files.

What It Does

  1. Reads existing instruction files (if present)
  2. Parses SW-managed sections (marked with <!-- SW:SECTION:X -->)
  3. Preserves user content (anything between or after SW sections)
  4. Updates SW sections with latest template content
  5. 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 file
  • AGENTS.md - Generic AI tool instruction file

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon