Skip to content
Merged
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
36 changes: 21 additions & 15 deletions skills/egm-lite/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ end the turn, and wait for that trigger. Do not execute subsequent phases.
are identical aliases bound to the most recently completed section:
- *Pre-Implementation (after Section 2A Checklist or Section 5 Spec
Triage):* Triggers Section 2B (Spec Review) on `egm_lite_checklist.md`.
- *Post-Implementation (after Section 3 Exec or Section 5 Diff Triage):*
- *Post-Implementation (after Section 3 Exec or Section 5 active-task
diff triage):*
Triggers Section 4 (Diff Review) on modified workspace files.
- *Existing Diff (no task in progress; the workspace has changes, or the
user supplies a diff or pull request):* Triggers Section 4 (Diff Review)
on that diff.
- *Standalone Diff:* An explicitly supplied diff or pull request to
review takes precedence. Otherwise, workspace changes can be reviewed
standalone when no EGM Lite task is in progress. Both trigger Section 4.
* **Banned State Transitions (Negative Invariants):**
- *No Spec Review Before Checklist:* Never run Section 2B before
`egm_lite_checklist.md` is generated by Section 2A.
Expand Down Expand Up @@ -284,29 +285,30 @@ spec triage).
## 4. ADVERSARIAL DIFF REVIEW

**Trigger:** Active ONLY when the user explicitly commands **`review`** or
**`goldfish`** following Section 3 or Section 5 diff triage, or with no task in
progress on an existing diff (workspace changes, or a diff or pull request the
user supplies).
**`goldfish`** following Section 3 or Section 5 diff triage, or for a standalone
diff as defined in State Transitions & Command Aliases.

**Persona:** The Goldfish (Reviewer via Subagent)

Isolate the review in a clean context window to eliminate confirmation bias.

### A. Subagent Delegation (True Context Separation)

1. Read `egm_lite_checklist.md` and collect every task change against its
recorded baseline, including changes already committed during the task,
1. Choose scope before reading a checklist. Its presence alone does not
establish an active task. Standalone review uses the supplied diff or PR,
or tracked and untracked changes if no target was supplied. If any review
material is inaccessible, report incomplete coverage and stop.
For active-task review, read `egm_lite_checklist.md` and collect every task
change against its recorded baseline, including commits made during the task,
staged and unstaged edits, deletions, and the contents of new untracked
files. In Git, use `git diff <starting-commit>` for tracked changes and
`git ls-files --others --exclude-standard` to discover untracked files.
Inspect the task files from that inventory. Check the input against
every checklist target, including any ignored target. If the baseline is
missing or any target cannot be inspected, stop and report incomplete
coverage rather than requesting an LGTM. For non-Git work, capture the
equivalent before/after content for each target. With no task in
progress there is no checklist or baseline: the review input is the
workspace changes (tracked and untracked) or the diff or pull request the
user supplied.
equivalent before/after content for each target. Keep the selected scope
for routing the review response in Section 5.
2. Pass the checklist (if any), task change inventory, and complete change
content to the fresh reviewer. Omit conversational history and authorial
justification.
Expand Down Expand Up @@ -365,8 +367,10 @@ modify repository files in this section.
spawned the review being handled:
* *Pre-Implementation (Spec Review):* Section 2B spawned it (subagent role
`Goldfish Specification Reviewer`).
* *Post-Implementation (Diff Review):* Section 4 spawned it (subagent role
`Goldfish Reviewer`).
* *Post-Implementation (Diff Review):* Section 4 selected active-task scope.
* *Standalone Diff Review:* Section 4 selected standalone scope.
Keep resolution in chat. Use the diff as evidence and skip all checklist
reads, checklist writes, and implementation commands.
2. **Perfect Execution (LGTM):** If the subagent returns an explicit
`[✅ LGTM]` with zero findings:

Expand All @@ -383,6 +387,7 @@ modify repository files in this section.
completion summary (modified files as clickable links and passing test
targets), and ask what the user wants to do next. Do not bleed back into
critique.
* *If Standalone Diff Review:* Report the clean result in chat and stop.
3. **Triage Findings (`PROPOSE FIX` vs. `CONTEST`):** If subagent reports
findings or nits, execute presentation-only triage: do not call file-editing
or VCS tools.
Expand Down Expand Up @@ -420,6 +425,7 @@ modify repository files in this section.
**`exec`** to update and implement immediately, or **`goldfish`** /
**`review`** to update and re-review (or, if no revisions remain, to
confirm that in chat).
* *If Standalone Diff Review:* Present the triaged findings in chat and stop.
* *If Post-Implementation (Diff Review):* Instruct user to type
**`checklist`** to update `egm_lite_checklist.md` with fix tasks, or
**`exec`** to update checklist and implement fixes immediately (or, if
Expand Down
7 changes: 7 additions & 0 deletions skills/egm-lite/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ When evaluating or exploring `egm-lite` interactively in chat, verify:
forbids premature task closure; Post-Implementation diff review triage
offers `checklist` or `exec`), and persists accepted `CONTEST` rationales in
`egm_lite_checklist.md`.
- **Standalone Diff Review:** In a fresh session, ask for a review of a
supplied diff with no checklist. Run once with a clean reviewer response
and once with findings. Both runs report the review in chat without
reading or creating a checklist or offering `checklist` or `exec`.
Repeat with an unrelated checklist present and verify it is untouched.
Supply an inaccessible PR and verify the assistant reports incomplete
coverage without dispatching a reviewer.
- **Top-Level Invariants & Graceful Recovery:** `goldfish` and `review` are
interchangeable aliases bound to state, invalid state leaps (e.g. diff
review with nothing to review, spec review before checklist creation) emit a
Expand Down
Loading