AgentSkillsCN

update-refs

更新 Claude Pilot 代码库中各处的命名与文档引用。当您需要重命名功能、更新功能描述、调整术语用法,或在修改命令、技能或工作流后确保整体一致性时,可使用此工具。触发条件包括“更新引用”“在代码库中将 X 重命名为 Y”“同步文档”“更新所有对 X 的提及”等。

SKILL.md
--- frontmatter
name: update-refs
description: Update naming and documentation references across the Claude Pilot codebase. Use when renaming features, updating descriptions, changing terminology, or ensuring consistency after modifying commands, skills, or workflows. Triggers on "update references", "rename X to Y across codebase", "sync documentation", or "update all mentions of X".
version: 1.1.0

Update References

Ensure naming and documentation consistency across all codebase locations.

Checklist

When updating terminology, feature names, descriptions, or counts, check ALL locations:

1. User-Facing Messages

LocationWhat to Check
launcher/banner.pyWelcome banner text, feature descriptions
launcher/cli.pyPilot CLI help text and messages
installer/cli.pyInstaller CLI help text, prompts
installer/steps/finalize.pyPost-install instructions
installer/ui.pyUI banner and status messages

2. Documentation & Website

LocationWhat to Check
README.mdFeature descriptions, usage examples, counts (rules, hooks, skills, commands)
docs/site/index.htmlSEO meta tags, page title, structured data
docs/site/src/pages/Index.tsxSEO description, structured data counts
docs/site/src/components/HeroSection.tsxStats bar counts (rules, hooks, skills, LSPs, MCP)
docs/site/src/components/WhatsInside.tsxFeature cards, descriptions, item counts
docs/site/src/components/DeepDiveSection.tsxUnder the Hood subtitle counts, hooks pipeline, rules categories
docs/site/src/components/WorkflowSteps.tsx/spec workflow details, All Commands grid
docs/site/src/components/ComparisonSection.tsxBefore & After comparison table
docs/site/src/components/PricingSection.tsxStandard plan feature counts, value proposition
docs/site/src/components/InstallSection.tsxInstallation instructions
docs/site/src/components/Footer.tsxFooter links
docs/site/src/components/NavBar.tsxNavigation links

3. Package & Install

LocationWhat to Check
pyproject.tomlPackage name, description, metadata
install.shShell installer script messages
launcher/__init__.pyPackage docstring

4. Claude Configuration (Plugin Source)

LocationWhat to Check
pilot/commands/*.mdCommand descriptions in frontmatter (spec, sync, vault, learn, plus internal phases)
pilot/skills/*/SKILL.mdSkill descriptions in frontmatter
pilot/rules/*.mdStandard rules content
pilot/hooks/hooks.jsonHook configuration and event triggers
pilot/hooks/*.pyHook script messages and logic
pilot/agents/*.mdSub-agent definitions (plan-verifier, spec-verifier)
pilot/settings.jsonLSP server configuration
pilot/modes/*.jsonLanguage mode definitions

5. Project-Level Claude Config

LocationWhat to Check
.claude/rules/*.mdProject-specific rules (git-commits.md, project.md)
.claude/skills/*/SKILL.mdProject-specific skills (lsp-cleaner, pr-review, update-refs)

No Hardcoded Counts

Do NOT add specific counts (e.g., "22 rules", "7 hooks", "14 skills") to user-facing text.

The project deliberately avoids quantity-focused messaging. Use qualitative descriptions instead:

❌ Don't✅ Do
"22 rules loaded every session""Production-tested rules loaded every session"
"7 hooks auto-lint on every edit""Hooks auto-lint, format, type-check on every edit"
"14 coding skills""Coding skills activated dynamically"
"5 MCP servers + 3 LSP servers""MCP servers + language servers pre-configured"
"2,900+ lines of best practices""Production-tested best practices"

Why: Quality over quantity. Counts become stale and create maintenance burden across many files. The value is in what the system does, not how many components it has.

Workflow

  1. Search first - Use Grep to find all occurrences:

    code
    Grep pattern="old term" glob="*.{md,py,tsx,json,ts}"
    
  2. Update systematically - Work through checklist above, section by section

  3. Verify consistency - Search again to confirm no misses:

    code
    Grep pattern="old term" glob="*.{md,py,tsx,json,ts}"
    
  4. Build website - Verify site compiles after changes:

    bash
    cd docs/site && npm run build
    

Common Updates

Change TypeKey Locations
Command rename/addpilot/commands/*.md, README.md, WorkflowSteps.tsx, WhatsInside.tsx, counts table
Skill renamepilot/skills/*/SKILL.md, README.md, WhatsInside.tsx, DeepDiveSection.tsx
Rule add/removepilot/rules/*.md, README.md, all count locations (see table above)
Hook changepilot/hooks/hooks.json, pilot/hooks/*.py, DeepDiveSection.tsx, README.md
Feature descriptionlauncher/banner.py, README.md, site components, Index.tsx structured data
Workflow changepilot/commands/.md, pilot/rules/.md, README.md, WorkflowSteps.tsx
Package renamepyproject.toml, install.sh, launcher/init.py, README.md
Installer messageinstaller/.py, installer/steps/.py
Terminology changeSearch all locations in checklist above — grep for old term, replace everywhere