Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .sync-state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"last_sync": "2026-05-04",
"sources_checked": 6,
"changes_applied": [
{
"source": "garrytan/gstack",
"pr": "https://github.com/garrytan/gstack/pull/1313",
"target_skill": "eng-review/SKILL.md",
"description": "Hardened 5 STOP gates (Step 0 + 4 review sections) with: tool_use-not-prose reminder, named blocked next steps, anti-rationalization clause. Added 'obvious fix still needs approval' to Architecture gate. Updated completion summary Step 0 line and added Lake Score metric."
}
],
"changes_deferred": [
{
"source": "garrytan/gstack",
"pr": "https://github.com/garrytan/gstack/pull/1233",
"description": "browser-skills runtime v1 — adds domain skill pattern (hackernews-frontpage/SKILL.md) and new browse binary capabilities (53 files, mainly TypeScript source). No changes to browse/SKILL.md.tmpl. Deferred: browse SKILL.md may need a separate pass to document any new commands exposed by the binary update; requires judgment on scope."
},
{
"source": "addyosmani/agent-skills",
"pr": "https://github.com/addyosmani/agent-skills/pull/101",
"description": "Fix JSON escaping in session-start hook (jq --arg). Hook infrastructure change, not skill content. Dropped."
},
{
"source": "anthropics/skills",
"pr": "https://github.com/anthropics/skills/pull/1081",
"description": "Remove non-existent 'purpose' field from Files API examples. API documentation fix, no skill content change. Dropped."
}
]
}
13 changes: 7 additions & 6 deletions eng-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Before reviewing anything, answer these questions:
4. **TODOS cross-reference:** Read `TODOS.md` if it exists. Are any deferred items blocking this plan? Can any deferred items be bundled into this PR without expanding scope? Does this plan create new work that should be captured as a TODO?
5. **Completeness check:** Is the plan doing the complete version or a shortcut? With AI-assisted coding, the cost of completeness (100% test coverage, full edge case handling, complete error paths) is much cheaper. If the plan proposes a shortcut that saves human-hours but only saves minutes with Claude Code, recommend the complete version.

If the complexity check triggers (8+ files or 2+ new classes/services), proactively recommend scope reduction via AskUserQuestion — explain what's overbuilt, propose a minimal version that achieves the core goal, and ask whether to reduce or proceed as-is. If the complexity check does not trigger, present your Step 0 findings and proceed directly to Section 1.
If the complexity check triggers (8+ files or 2+ new classes/services), proactively recommend scope reduction via AskUserQuestion — explain what's overbuilt, propose a minimal version that achieves the core goal, and ask whether to reduce or proceed as-is. **STOP.** Do NOT proceed to Section 1 (Architecture review) or edit the plan file with a proposed scope reduction until the user responds. Loading the AskUserQuestion schema via ToolSearch and then writing the recommendation as chat prose is the failure mode this gate exists to prevent. If the complexity check does not trigger, present your Step 0 findings and proceed directly to Section 1.

Always work through the full interactive review: one section at a time (Architecture → Code Quality → Tests → Performance) with at most 8 top issues per section.

Expand All @@ -113,7 +113,7 @@ Evaluate:
* Whether key flows deserve ASCII diagrams in the plan or in code comments.
* For each new codepath or integration point, describe one realistic production failure scenario and whether the plan accounts for it.

**STOP.** For each issue found in this section, call AskUserQuestion individually. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Only proceed to the next section after ALL issues in this section are resolved.
**STOP.** For each issue found in this section, call AskUserQuestion individually — the AskUserQuestion call is a tool_use, not prose — call the tool directly. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Do NOT proceed to the next review section or edit the plan file with the proposed fix until the user responds. An issue with an "obvious fix" is still an issue and still needs explicit user approval before it lands in the plan. Loading the AskUserQuestion schema via ToolSearch and then writing the recommendation as chat prose is the failure mode this gate exists to prevent.

### 2. Code quality review
Evaluate:
Expand All @@ -124,14 +124,14 @@ Evaluate:
* Areas that are over-engineered or under-engineered relative to my preferences.
* Existing ASCII diagrams in touched files — are they still accurate after this change?

**STOP.** For each issue found in this section, call AskUserQuestion individually. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Only proceed to the next section after ALL issues in this section are resolved.
**STOP.** For each issue found in this section, call AskUserQuestion individually — the AskUserQuestion call is a tool_use, not prose — call the tool directly. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Do NOT proceed to the next review section or edit the plan file with the proposed fix until the user responds. Loading the AskUserQuestion schema via ToolSearch and then writing the recommendation as chat prose is the failure mode this gate exists to prevent.

### 3. Test review
Make a diagram of all new UX, new data flow, new codepaths, and new branching if statements or outcomes. For each, note what is new about the features discussed in this branch and plan. Then, for each new item in the diagram, make sure there is an appropriate test (unit, integration, or e2e).

For LLM/prompt changes: check if the project defines prompt-related file patterns in its configuration (CLAUDE.md, etc.). If this plan touches ANY of those patterns, state which eval suites must be run, which cases should be added, and what baselines to compare against. Then use AskUserQuestion to confirm the eval scope with the user.

**STOP.** For each issue found in this section, call AskUserQuestion individually. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Only proceed to the next section after ALL issues in this section are resolved.
**STOP.** For each issue found in this section, call AskUserQuestion individually — the AskUserQuestion call is a tool_use, not prose — call the tool directly. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Do NOT proceed to the next review section or edit the plan file with the proposed fix until the user responds. Loading the AskUserQuestion schema via ToolSearch and then writing the recommendation as chat prose is the failure mode this gate exists to prevent.

### Test Plan Artifact

Expand Down Expand Up @@ -175,7 +175,7 @@ Evaluate:
* Caching opportunities.
* Slow or high-complexity code paths.

**STOP.** For each issue found in this section, call AskUserQuestion individually. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Only proceed to the next section after ALL issues in this section are resolved.
**STOP.** For each issue found in this section, call AskUserQuestion individually — the AskUserQuestion call is a tool_use, not prose — call the tool directly. One issue per call. Present options, state your recommendation, explain WHY. Do NOT batch multiple issues into one AskUserQuestion. Do NOT proceed to the next review section or edit the plan file with the proposed fix until the user responds. Loading the AskUserQuestion schema via ToolSearch and then writing the recommendation as chat prose is the failure mode this gate exists to prevent.

## CRITICAL RULE — How to ask questions
Follow the AskUserQuestion format from the Preamble above. Additional rules for plan reviews:
Expand Down Expand Up @@ -223,7 +223,7 @@ If any failure mode has no test AND no error handling AND would be silent, flag

### Completion summary
At the end of the review, fill in and display this summary so the user can see all findings at a glance:
- Step 0: Scope Challenge (scope reduction: yes/no)
- Step 0: Scope Challenge — ___ (scope accepted as-is / scope reduced per recommendation)
- Architecture Review: ___ issues found
- Code Quality Review: ___ issues found
- Test Review: diagram produced, ___ gaps identified
Expand All @@ -232,6 +232,7 @@ At the end of the review, fill in and display this summary so the user can see a
- What already exists: written
- TODOS.md updates: ___ items proposed to user
- Failure modes: ___ critical gaps flagged
- Lake Score: X/Y recommendations chose complete option

## Retrospective learning
Check the git log for this branch. If there are prior commits suggesting a previous review cycle (e.g., review-driven refactors, reverted changes), note what was changed and whether the current plan touches the same areas. Be more aggressive reviewing areas that were previously problematic.
Expand Down