Agent skill
update-docs
Propagate a change across all related docs, agents, skills, and rules using the cross-reference map. Use when adding/removing MCP tools, skills, or modifying conventions.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/update-docs-houtamelo-spire-csharp-analyze
SKILL.md
Update Docs
Change description: $ARGUMENTS
Step 1: Read the cross-reference map
Read .claude/rules/cross-reference-check.md to understand which files are grouped together.
Step 2: Identify affected groups
Based on the change description, determine which cross-reference groups are affected.
Step 3: Read all files in affected groups
Read every file in each affected group. Build a list of edits needed.
Step 4: Handle specific change types
MCP tool added
- Grep
.claude/agents/and.claude/skills/for thetools:frontmatter field. - For each agent/skill, read its description and role.
- If the new MCP tool is relevant to the agent's role, add it to the
tools:list. - If the agent/skill body references related tools or workflows, add a mention of the new tool where appropriate.
- Ask the user for confirmation before adding the tool to any agent you're uncertain about.
MCP tool removed
- Grep
.claude/for the tool name. - Remove the tool from every
tools:frontmatter list where it appears. - Remove or rewrite any instructions that reference the tool.
- Ask the user what should replace the tool's functionality (if anything).
Skill added
- Read the new skill's
SKILL.mdto understand what it does. - Read all agent definitions in
.claude/agents/. - For agents whose role overlaps with the skill's purpose, add a reference (e.g., "Use
/skill-namefor X"). - If the skill relates to a workflow step in
CLAUDE.md, update that step. - Ask the user for confirmation before adding references to agents you're uncertain about.
Skill removed
- Grep
.claude/andCLAUDE.mdfor the skill name. - Remove or rewrite all references.
- If the skill was part of a workflow step in
CLAUDE.md, update or remove that step.
Convention or format changed
- Identify the cross-reference group for the convention.
- Read all files in the group.
- Update each file to reflect the new convention.
- Check for inline examples or templates that use the old convention.
Other changes
- Use the cross-reference map to find all related files.
- Read each one and determine if it needs updating.
- Apply edits, asking the user when unsure.
Step 5: Apply edits
For each edit:
- If you're confident the edit is correct, apply it.
- If you're unsure whether a specific file should be changed, ask the user before editing.
Step 6: Verify
After all edits, grep for any remaining references to old names, removed tools, or stale conventions. Report any you find.
Constraints
- Always read before editing — never edit a file you haven't read in this session.
- Ask the user when unsure about a specific edit — don't guess.
- Do not delete files — only edit content within them (or report that a file should be deleted).
- Update the cross-reference map itself if the change adds or removes files from a group.
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?