improve-codebase-architecture
Scan a codebase for deepening opportunities, present them as a report, then grill through whichever one the user picks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan a codebase for deepening opportunities, present them as a report, then grill through whichever one the user picks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Execute one bounded plan item or checklist slice with a worker, checks, review, and commit handoff. Use only when there is an explicit plan to work through in iterations.
Run an independent clean-context review for a refactor iteration, risky change, or pre-commit gate. Use when the user wants a skeptical second pass that sees only the iteration goal, diff, changed files, and test results, without implementation backstory.
Prepare a clean, scoped git commit from the current repo changes. Use when the user wants help analyzing what changed, grouping files into a coherent commit, generating a short commit message, and optionally performing the commit after approval.
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
| name | improve-codebase-architecture |
| description | Scan a codebase for deepening opportunities, present them as a report, then grill through whichever one the user picks. |
Surface architectural friction and propose deepening opportunities — refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
Use this skill when the user wants architecture review or refactor candidates. Prefer it for explicit architecture audits or refactor-candidate surveys.
Do not use it for:
Scope before scanning:
git log --oneline) to find the codebase's hot spots — the files and areas that keep coming up — and let those paths pull your attention first. If the changes are scattered with no clear hot spot, widen the net.Read CONTEXT.md and docs/adr/ only if they exist and are relevant.
Then inspect the chosen area and note:
Apply the deletion test to anything you suspect is shallow.
Present candidates as a report. Use HTML in the temp directory only when visuals will help. Otherwise return concise markdown.
For each candidate, render a card with:
Strong, Worth exploring, Speculative, rendered as a badgeEnd the report with a Top recommendation section: which candidate you'd tackle first and why.
If CONTEXT.md exists, use its domain terms. If ADRs exist, mention only real conflicts worth reopening.
Do NOT propose interfaces yet. After the report is ready, ask the user: "Which of these would you like to explore?"
Once the user picks a candidate, use grilling to walk the constraints and decisions.