/dev-standards:dev-standards-review-for-plan-updatesfrom dev-standards
After task reaches GREEN and before quality gate commits, surface C-class refactor discoveries as structured plan-update proposals. 任務綠燈後,呈 C 類重構發現供規劃者取捨。 Use when: task passed tests, before quality gate commit, surface refactor proposals, review completed task for technical debt, post-GREEN review
Ships in dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
審視剛完成任務的 diff,呈 C 類重構發現。不修改任務,不編輯代碼。生成結構化提案,由規劃者在完整發布節奏上下文中決定取捨。
git diff <task-base>..HEAD — 僅任務觸及的文件.claude/rules/karpathy-principles.md.claude/rules/refactor-discipline.md (urgency thresholds, backlog config).claude/rules/code-quality.md (project-specific complexity limits)尋找以下模式。每項示例展示信號與對應發現措辭:
| Signal | Example finding |
|---|---|
| Parameter bloat | "createOrder now has 9 params + 3 overloads — options object or builder" |
| Cross-task duplication | "Same validation pattern now written 3× across checkout/, cart/, admin/" |
| Naming drift | "User, Account, Customer all used for same concept — pick one in DOMAIN.md" |
| Grown responsibilities | "OrderService crossed 400 lines across last 3 tasks — split candidate" |
| Test setup duplication | "Same fixture built inline in 5 tests — extract builder" |
| Visible complexity debt | "Nested conditional now 4-deep in applyDiscount — guard-clause or state machine" |
| Dead branches | "Feature-flag branches exist for a flag that has been on everywhere for 30+ days" |
| Ponytail ceiling crossed | "ponytail: shortcut in rateLimit named global-lock ceiling; task now adds the throughput it was deferred against — upgrade to per-account locks" |
| Over-build introduced | "Task hand-rolled a CSV parser stdlib csv already ships — replace per [[ponytail]] ladder rung 2" |
**不審查:**樣式偏好、未用導入、格式、任何 linter 已處理之項。
掃 diff 中觸及或新增之 ponytail: 註解([[ponytail-debt]] 收割全庫;此處只看任務觸及者)。若捷徑所命之天花板因本任務而被跨越,提案升級之。
發現若屬架構性(淺模塊、缺 seam、調用者糾纏、無測試 seam —— 如 [[diagnose]] Phase 6 所浮),則以 deep-module 語彙措辭,並將更全分析經 [[refactor-first-assessment]](deepening lens)路由。提出計劃更新前,先以刪除測試(deletion test)判此發現是否 load-bearing。
.claude/rules/code-quality.md)閾值由項目自定。規則文件無覆蓋時默認:
應用前讀取項目 code-quality.md 中的覆蓋值。
生成 YAML 文件,含 proposals 列表。每條提案為結構化數據,非散文:
proposals:
- title: "Extract OrderCreation options object"
trigger: parameter_bloat
evidence:
symbol: "src/orders/create.ts:createOrder"
observation: "9 params, 3 overloads, callers pass flags positionally"
callers: 14 # from LCI
rationale: "Options object removes positional confusion"
estimated_tier: standard
blocks: []
urgency: low # low | medium | high
principle: refactor-discipline.C
提案引用證據;不嵌入代碼。
審查者不決策。決策屬於調用插件的規劃者——彼見發布節奏、進行中事項及團隊優先級。
生成提案前,從(evidence.symbol,trigger)計算指紋,在 .claude/refactor-rejects.txt 的拒絕列表中查驗。若存在則跳過生成。拒絕列表由規劃者在拒絕提案時寫入,存於項目,不在插件中。
refactor-backlog 文件夾中的 Dart 任務,標記 origin:review,並附帶發現它的任務鏈接。.workflow/loop-state.json 的 pending_plan_updates[] 下。此技能返回 YAML;包裝器負責持久化。
Invoke the
Skilltool withskill: dev-standards:grill-task— 被接受的提案作為新任務進行審問。
Invoke the
Skilltool withskill: dev-standards:decide— 若提案觸及架構決策,接受時調用 decide。
Invoke the
Skilltool withskill: dev-standards:ponytail-debt— 全庫收割ponytail:捷徑台帳,與此 diff 範圍審查互補。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub standardbeagle/standardbeagle-tools --plugin dev-standards25 skills in this plugin
/dev-standards-add-skillCreate new project-specific skill in `.claude/skills/` to codify recurring pattern. 在項目中新建可複用技能。 Use when: add skill, create skill, new skill, codify pattern, make reusable workflow/dev-standards-ce-compound記錄已解決問題以複利機構知識。Document solved problems in docs/solutions/ with structured YAML frontmatter. Use when: non-trivial problem solved + verified, prevent re-discovery, capture institutional learning before context fades, document best practice or workflow pattern. Skip: trivial (typo), solution unverified, problem in progress, project lacks docs/solutions/ convention./dev-standards-ce-setupDiagnose + configure compound-engineering env — CLI deps, plugin version, repo-local config. Guided install for missing tools, gitignore + config bootstrap. Use when: troubleshoot missing tools, verify CE setup, onboard repo, refresh config template, /ce-setup re-check. Skip: unrelated to compound-engineering tooling.