accept
免费Accept HQ membership invites from a magic link or raw token.
中文简介正在准备中。当前显示原文说明。
Find shallow modules and propose deepening refactors, ranked with file refs; never edits code. Use when code is hard to change or planning a refactor.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Find places where the architecture is the bug. Pattern adapted from mattpocock/skills improve-codebase-architecture.
/codebase-design/codebase-design is the single source of truth for the deep-module vocabulary — module, interface, implementation, depth, seam, adapter, leverage, locality. Load it for the full definitions and use those terms exactly; never drift into "component," "service," "API," or "boundary."
One-line summary: a deep module puts a lot of behaviour behind a small interface at a clean seam — depth buys leverage for callers and locality for maintainers.
Key heuristics (full treatment in /codebase-design):
[company] [path] argumentspath to cwd if cwd is inside repos/; else ask via AskUserQuestioncompanies/{co}/repos/...<repo>/GLOSSARY.md if present (domain glossary)<repo>/docs/adr/ if present (architectural decisions)<repo>/.claude/policies/ for any soft architecture rulesIf GLOSSARY.md exists, always use its vocabulary in candidate descriptions. ADRs record decisions the skill should not re-litigate; mark candidates that contradict an ADR with _contradicts ADR-NNNN — but worth reopening because…_ and only when friction is real.
Spawn parallel Agent subagent_type=Explore calls — one per top-level slice of the target. Each agent:
For each friction point, assign:
| Dimension | Question | Score 1-3 |
|---|---|---|
| Deletion test | Would deleting this concentrate complexity? | 3 = yes, strong; 1 = no, just moves it |
| Leverage | Behaviour-to-interface ratio after deepening | 3 = high (lots behind a small interface); 1 = low |
| Locality | Change/bug concentration after deepening | 3 = single place; 1 = stays scattered |
| Test surface | Does the deepened interface become a useful test seam? | 3 = yes, replaces N small unit tests; 1 = no improvement |
| Cost | Refactor effort | 3 = small; 1 = large |
Sum to a single rank. Present top 5–10.
Output via numbered list, NOT AskUserQuestion first (the list is too long for a 4-option question — present then ask):
## Candidate N — <name in GLOSSARY.md vocabulary>
**Files:** <file:line refs>
**Problem:** <friction described in glossary terms>
**Solution (plain English):** <what would change>
**Benefits:** locality: <X>, leverage: <Y>, test improvement: <Z>
**Score:** <total> (deletion: <d>, leverage: <l>, locality: <lo>, test: <t>, cost: <c>)
**Recommendation:** <Strong / Worth exploring / Speculative>
**ADR conflicts:** <none / contradicts ADR-NNNN — re-open because …>
The Recommendation badge is a plain-English read on top of the numeric score: Strong = high score and low risk, tackle first; Worth exploring = real friction but non-trivial cost or uncertainty; Speculative = plausible but the case isn't proven yet. Show both — the number ranks, the badge conveys confidence.
Then ask via AskUserQuestion (multiSelect: true): "Which candidates do you want to explore?" with up to 4 options (paginate if more).
For each picked candidate, drop into a one-question-at-a-time design conversation:
Design it twice. When the interface shape is non-obvious, don't settle on the first design. Reuse HQ's Explore fan-out: spin up parallel Agent sub-agents to design the deepened interface several radically different ways (e.g. a data-oriented shape, a callback/handler shape, a builder/pipeline shape). Then compare the returns on depth (behaviour-per-interface), locality (where change concentrates), and seam placement — and bring the winner (or a hybrid) back into the grilling conversation. See /codebase-design's DESIGN-IT-TWICE.md for the pattern.
Side effects happen inline:
GLOSSARY.md → add the term lazily.GLOSSARY.md right there./adr, framed as: "Want me to record this as an ADR so future architecture passes don't re-suggest it?" Only offer for reasons future explorers would actually need; skip ephemeral or self-evident ones.Do not write the refactor. This skill produces the design and the case for it. Implementation goes through /run-project or /tdd.
Save to workspace/reports/{slug}-architect.md:
# Architect: <repo> @ <path>
**HEAD:** <sha>
**GLOSSARY.md present:** yes / no
**ADRs present:** <count>
## Candidates
### 1. <name> — DECISION: <explored / declined / pending>
<full block from Step 4>
#### Grilling notes (if explored)
<key questions + answers>
#### Outcome
- ADR opened: <yes / no — link>
- Implementation queued: <yes — /prd or /run-project ref / no>
### 2. …
| Outcome | Next step |
|---|---|
| Candidate explored, design crystallised | /prd (PRD with userStories[] for the refactor) or /run-project (if scope is small) |
| Candidate rejected with load-bearing reason | /adr |
| New domain term surfaced | already updated GLOSSARY.md inline |
| Code change shouldn't proceed without test seam | hand off to /tdd |
| Pre-PR review on changed files only | /review --architect-pass |
/diagnose Phase 6 — entry point when "no good test seam" is the diagnosis./review --architect-pass — narrower scope (changed files only); same heuristics./adr — capture decisions that should not be re-litigated./prd — turn explored candidates into PRD + userStories./tdd — refactor under test once the candidate is designed.mattpocock/skills improve-codebase-architecture (repos/public/skills/skills/engineering/improve-codebase-architecture/SKILL.md).还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Accept HQ membership invites from a magic link or raw token.
中文简介正在准备中。当前显示原文说明。
Capture qualifying architecture decisions as ADRs in the right HQ or repo location.
中文简介正在准备中。当前显示原文说明。
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
中文简介正在准备中。当前显示原文说明。
Generate dark ASCII banner graphics for HQ and social launch assets.
中文简介正在准备中。当前显示原文说明。
Compare approaches to best-in-class prior art, merge existing work, verify cruft removal, and recommend the most durable design before PRD work.
中文简介正在准备中。当前显示原文说明。
Summarize estimate accuracy from the assistant time log.
中文简介正在准备中。当前显示原文说明。