一键导入
evolve-claudemd
Update existing CLAUDE.md files by analyzing code changes, GitHub PRs/issues, Jira/Confluence since last modification, with full accuracy audit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update existing CLAUDE.md files by analyzing code changes, GitHub PRs/issues, Jira/Confluence since last modification, with full accuracy audit.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create initial CLAUDE.md files for a repo with none — auto-detects stack, pulls context from GitHub/Jira/Confluence, produces concise files focused on non-obvious patterns.
Query the NIH RePORTER API (api.reporter.nih.gov) for federally-funded research projects and publications. Covers POST /v2/projects/search and POST /v2/publications/search — criteria payload construction, pagination, rate-limit handling, and the criteria→response field-name mapping that trips up most callers.
| name | evolve-claudemd |
| description | Update existing CLAUDE.md files by analyzing code changes, GitHub PRs/issues, Jira/Confluence since last modification, with full accuracy audit. |
| hooks | {"PostToolUse":[{"matcher":"Write|Edit","hooks":[{"type":"command","command":"bash \"${CLAUDE_PLUGIN_ROOT}\"/skills/evolve-claudemd/scripts/claudemd-writeguard.sh","timeout":10}]}]} |
Update existing CLAUDE.md files by analyzing what changed in the codebase, GitHub, Jira, and Confluence since each file was last modified. Perform a full accuracy audit. Produce targeted, user-approved edits.
This skill is an orchestrator. It keeps your (the top-level agent's) context lean by pushing work down two layers:
scripts/*.sh) do the deterministic git/grep/parse plumbing and emit compact output. Run them; don't reimplement their logic inline.claudemd-* agent types) do the context-heavy gathering — 100s of PRs, Jira/Confluence, deep source reads. They burn that raw data in their own context and return only short digests. Dispatch them; do not pull raw PR bodies, full Confluence pages, or whole source trees into this conversation yourself.references/*.md) hold the bulky rules/rubrics/templates. Read each only at the step that consumes it.Run the steps in order. Steps 2 and 5 dispatch sub-agents; Step 6 is the user-approval gate; nothing is written before approval.
Run bash "${CLAUDE_PLUGIN_ROOT}"/skills/evolve-claudemd/scripts/preflight.sh. If it fails, stop and show its message. On success it prints the git remote= line — parse owner/repo from it for the GitHub sub-agent.
Run bash "${CLAUDE_PLUGIN_ROOT}"/skills/evolve-claudemd/scripts/discover.sh. It returns a JSON array (one record per CLAUDE.md: path, scope_dir, last_commit, last_date, commits_since, files_changed). Render a status table for the user:
| File | Last Updated | Commits Since | Files Changed |
|------|-------------|---------------|---------------|
Files with a null last_commit are uncommitted — audit against current state (see Edge Cases). If discover.sh returns [], warn the user there are no CLAUDE.md files and suggest /bootstrap-claudemd, then stop.
Dispatch these three agents in one message (independent work, run concurrently). Give each the scope info it needs; collect only their returned digests.
claudemd-code-analyst — per scope_dir + since_commit: what code/data-model changes imply CLAUDE.md edits.claudemd-github-analyst — owner/repo + each file's since_date: convention & anti-pattern candidates with PR/issue evidence.claudemd-tracker-analyst — Jira project key + since_date: constraints to add/lift with ticket/page evidence. (If you don't know the project key, ask the user.)For many CLAUDE.md files, run one code-analyst per scope; the github/tracker analysts can cover the repo once using the oldest since_date.
For each existing CLAUDE.md, dispatch claudemd-auditor (one per file, may run in parallel). It returns a baseline score and confirmed accuracy issues. The rubric lives in "${CLAUDE_PLUGIN_ROOT}"/skills/evolve-claudemd/references/scoring-rubric.md (the agent reads it).
Read "${CLAUDE_PLUGIN_ROOT}"/skills/evolve-claudemd/references/generation-rules.md. Apply the Generation Rules Filter and Validation Checklist to every proposed addition/removal from Steps 2–3 before presenting. Drop anything that fails the "if I remove this, will Claude mess up?" test or lacks a reason.
Dispatch claudemd-coverage-scout with the directories that lack their own CLAUDE.md and the existing CLAUDE.md locations. It returns own-file / roll-up / already-covered decisions plus anti-pattern guardrails from hack comments.
Scout the whole tree, depth-agnostically — not just top-level modules. The highest-value new files are often deeply nested sub-packages with a distinct sub-architecture (e.g. manager/search/, grid/internal/replica/, dbo/migration/). Gate every candidate on the evidence test "would an agent working from the parent CLAUDE.md make a mistake here?" — never on file count. Load-bearing directories are frequently small (a 4-file id-generator with a transaction gotcha warrants a note; a 50-file "more of the same DAOs" package does not). For a large tree, fan out several coverage-scout agents over disjoint subtrees in one message. Feed the confirmed guardrails and roll-up detail back down per the altitude rule (Step 4 / generation-rules rule 12): a roll-up bullet lands in its parent, a distinct sub-architecture becomes its own child file so its detail leaves the parent.
Read "${CLAUDE_PLUGIN_ROOT}"/skills/evolve-claudemd/references/report-templates.md. Build the executive summary (with current + projected scores) and a per-file report from the digests. For large change sets, chunk by module and present incrementally — large drift gets MORE scrutiny, not less.
Ask the user to approve, modify, or skip each change set. Write nothing until they approve.
For each approved set:
"${CLAUDE_PLUGIN_ROOT}"/skills/evolve-claudemd/references/generation-rules.md (Output Format + section order). Have the coverage-scout's findings in hand; deep-read the module's key files before writing.Verify every specific claim against source before writing it. Sub-agent digests are a map, not ground truth — before committing a bean name, class name, line number, constant, magic value, or exact behavior to a file, confirm it directly in the code (a targeted grep/Read). This catches digest generalizations (e.g. an autowired-List registry vs an explicit-arg setter) that would otherwise ship as authoritative-but-wrong guidance.
The write-guard hook runs after each write. If it reports an issue (empty section header), fix and rewrite.
Offer a commit; never commit without explicit approval. Suggested message:
Update CLAUDE.md files to reflect codebase evolution
- Updated N existing files
- Created N new module files
- Removed N stale references
/bootstrap-claudemd./evolve-claudemd periodically (monthly or after major feature work) to prevent drift.