Skip to content

Open-source skills for designing and reviewing software with AI agents

build(packaging): refresh runtime copies after main merge

Olivere0fd3ddb2ced
diff --git a/distributions/claude/agents/codebase_details.md b/distributions/claude/agents/codebase_details.md
index 58c387c..67d1514 100644
--- a/distributions/claude/agents/codebase_details.md
+++ b/distributions/claude/agents/codebase_details.md
@@ -44,6 +44,10 @@ Audit the target document file and line range specified by the caller:
* **Unstated Assumptions**: Hardcoded constants, environment variables, or system dependencies in the code that are not documented.
* **Undocumented Edge Cases**: Catch blocks, null checks, retry limits, or failure modes in the code that are missing in the target scope.
* **Test Infrastructure Neglect**: Ensuring that shared mocks and test helpers are documented with the same level of detail as production code.
+* **Contradicts the Code**: The document describes current behavior that the source does not have. Report as 🔴 Blocker: every later reader inherits the false statement.
+* **Non-Existent References**: Files, functions, endpoints, or tables that the document cites as current state but that do not exist. Check every one.
+
+**Proposed files are not findings.** An implementation plan lists files it will create. Their absence is not a defect. Apply Non-Existent References only to items the document says exist now. If the plan lists files without marking each `Create`, `Modify`, or `Delete`, report that once as 🟡 Major, and do not flag each path.
---
diff --git a/distributions/claude/skills/egm_draft/SKILL.md b/distributions/claude/skills/egm_draft/SKILL.md
index 19524c5..1f67074 100644
--- a/distributions/claude/skills/egm_draft/SKILL.md
+++ b/distributions/claude/skills/egm_draft/SKILL.md
@@ -60,6 +60,15 @@ the aligned problem and requirements from the brainstorm phase.
strictly one question (`len(questions) == 1`), be the sole tool call in the
turn, and provide clear, action-oriented options without `(Recommended)`
prefixes.
+13. **Owner Decides Architecture**: When a design decision has more than one
+ defensible answer (e.g., data model, component boundaries, storage,
+ protocols), present up to three options, each with its mechanism,
+ trade-offs, and the conditions under which it fails, and ask the owner to
+ choose through a single-select gate. Do not rank the options, mark a
+ default, or pick one. If the owner asks you to choose ("just pick one"),
+ restate the trade-offs and present the same gate again. Decide mechanical
+ choices with one defensible answer (e.g., file naming, formatting)
+ yourself.
## Inputs
diff --git a/distributions/claude/skills/egm_resolve/SKILL.md b/distributions/claude/skills/egm_resolve/SKILL.md
index 59b759f..f762263 100644
--- a/distributions/claude/skills/egm_resolve/SKILL.md
+++ b/distributions/claude/skills/egm_resolve/SKILL.md
@@ -53,13 +53,33 @@ The caller or orchestration driver provides exactly these parameters:
### Step 2: Evaluate & Categorize
-For each finding in the list, determine:
+Give each finding exactly one category:
* **CONTEST**: The critique is inaccurate or relies on a misunderstanding of
- the codebase. Provide exact code or design doc evidence defending current
- text.
+ the codebase. Cite evidence that the reviewer could read: a file and
+ symbol, or a decision recorded in the document.
+* **ESCALATE**: The critique is inaccurate, but the evidence is outside every
+ file the reviewer could read (for example, a team convention or a verbal
+ decision). State that fact. Do not fix the finding. Give it to the user.
* **PROPOSE FIX**: The critique is valid. Define precise textual replacements
or structural formatting adjustments to resolve the gap.
+* **DECLINE**: The finding is a Nit. Record it. Do not fix it. You can use
+ PROPOSE FIX for a Nit if the fix is worth it.
+
+Apply these rules:
+
+* **A contest must be checkable.** "This was intentional" is not evidence.
+ If you cannot cite evidence the reviewer could read, use ESCALATE or
+ PROPOSE FIX.
+* **Do not add context only to satisfy a reviewer.** Add context when a human
+ reader of the document needs it. If only a zero-context subagent needs it,
+ use ESCALATE.
+* **Do not contest a comprehension gap.** If a fresh reader could not follow
+ the document, the document is missing context.
+* **Do not change a severity.** If you think a Blocker is a Nit, CONTEST it
+ and state the reason.
+* You wrote the document under review. A wish to contest is not evidence
+ that the reviewer is wrong.
### Step 3: Report Fixes
@@ -79,7 +99,7 @@ using your file-writing tool. Use this layout:
* **Affected Scope:** [Lines Start-End]([RelativePath]#L[Start]-L[End]) ([Sub-header])
* **Discrepancy Description:** [copied from FindingsList]
* **Rationale:** [copied from FindingsList]
-* ***AI Suggestion:*** [CONTEST | PROPOSE FIX]
+* ***AI Suggestion:*** [CONTEST | ESCALATE | PROPOSE FIX | DECLINE]
* ***Justification:*** [Detailed reason]
* ***Proposed Edit:***
* Location: [Line/Header]
@@ -89,6 +109,9 @@ using your file-writing tool. Use this layout:
### Step 4: Interactive Resolution Gate
+If any finding is `ESCALATE`, list those findings first in the chat message.
+They need the user's knowledge, not only approval.
+
Before proceeding, output a visible chat message to the user: *"I have compiled
the audit findings into `goldfish_review_report.md`. Please review the findings there and choose how you would like to
proceed:
@@ -115,12 +138,12 @@ Interpret the user's action/response as follows:
- **"Auto accept" / "Accept all suggestions" / User clicks "Proceed" without
contesting**: Apply all fixes where the AI suggestion was `PROPOSE FIX`
directly to `TargetFile` at `LineRange` in a single batch using
- your file-editing tool. Any items categorized as `CONTEST` are explicitly
- bypassed. Then proceed to Step 5.
+ your file-editing tool. Any items categorized as `CONTEST`, `ESCALATE`, or
+ `DECLINE` are explicitly bypassed. Then proceed to Step 5.
- **"Continue to next phase" / "No changes"**: Do not apply any automated
fixes. Then proceed to Step 5.
- **"Interactive breakdown"**: Enter a sequential breakdown loop over ALL
- finding items (both `PROPOSE FIX` and `CONTEST`):
+ finding items (all categories except `DECLINE`):
1. For each item `i`, output a visible chat message formatting the full
finding details and explanation in rich markdown:
@@ -129,7 +152,7 @@ Interpret the user's action/response as follows:
### Breakdown Item [i]: [Issue Title] [`[ReviewerPersona]`]
* **Scope:** [Lines Start-End]([RelativePath]#L[Start]-L[End]) ([Sub-header])
* **Description:** [Description]
- * **AI Suggestion:** [CONTEST | PROPOSE FIX]
+ * **AI Suggestion:** [CONTEST | ESCALATE | PROPOSE FIX]
* **Explanation & Justification:** [Detailed reason and background explaining why the fix is proposed or why the finding is contested]
* **Proposed Edit:** [Precise replacement text or deletion note]
```
@@ -141,6 +164,8 @@ Interpret the user's action/response as follows:
fix**, **Skip / ignore**, or **Discuss**.
* If `CONTEST`: Ask the user to reply with **Skip / agree with
contest**, **Overrule contest (propose fix)**, or **Discuss**.
+ * If `ESCALATE`: Ask the user to reply with **Confirm (no change)**,
+ **Add the fact to the document**, or **Discuss**.
2. Record the user's decisions in an internal memory checklist (e.g., *Item
1: Accepted*, *Item 2: Ignored*, *Item 3: Overruled*). **Do NOT call any
@@ -158,5 +183,5 @@ Interpret the user's action/response as follows:
file remains structurally coherent and valid markdown.
2. Mark the report as resolved (add a `Status: resolved` line at the top).
3. **Handoff**: Exit cleanly back to the caller (such as `egm-review-loop`)
- with the count of accepted fixes, contested items, and remaining unaddressed
- issues.
+ with the count of accepted fixes, contested items, escalated items,
+ declined items, and remaining unaddressed issues.