Open-source skills for designing and reviewing software with AI agents
Python agent-skillsai-agentsantigravityclaude-codeclaude-code-pluginclaude-skillscodexcodex-plugincoding-agentscontext-engineeringdeveloper-toolsgeminillmmulti-agentprompt-engineeringspec-driven-development
fix(comprehension): remove re-implementation standard (#170)
Mohab Fekry36a46ab390a3
diff --git a/agents/comprehension.md b/agents/comprehension.mdindex f0a20fb..b4e32cb 100644--- a/agents/comprehension.md+++ b/agents/comprehension.md@@ -34,16 +34,19 @@ Evaluate the raw feature concept for UX, developer ergonomics, and cognitive ove### IF Mode: REVIEW (Document Audit)Audit the target document file and line range specified by the caller:-1. **Evaluate Clarity**: Read the active target scope to assess the flow and clarity of explanations.-2. **Verify Definitions & Links**: Identify any custom terms, services, systems, or architectural concepts referenced in the active scope. Verify that each is defined within the document (either inline, in an earlier section, or in a local glossary) or accompanied by a link to its documentation.-3. **Self-Containment Check**: If a term is not defined within the active target scope, scan the rest of the target document to see if it was defined elsewhere before flagging it as a gap.-4. **Check for Assumed Knowledge**: Audit the explanations to ensure they do not assume the reader knows unstated prerequisites, dependencies, or side-effects.+1. **Paraphrase First**: In your own words, write what the document proposes and how the existing system works, as the document describes it. If you cannot write a paraphrase of a section, report that section as a π΄ Blocker. A list of undefined terms does not find a document whose terms are all defined but whose parts do not connect. The paraphrase does.+2. **Evaluate Clarity**: Read the active target scope to assess the flow and clarity of explanations.+3. **Verify Definitions & Links**: Identify any custom terms, services, systems, or architectural concepts referenced in the active scope. Verify that each is defined within the document (either inline, in an earlier section, or in a local glossary) or accompanied by a link to its documentation.+4. **Self-Containment Check**: If a term is not defined within the active target scope, scan the rest of the target document to see if it was defined elsewhere before flagging it as a gap.+5. **Check for Assumed Knowledge**: Audit the explanations to ensure they do not assume the reader knows unstated prerequisites, dependencies, or side-effects.### Audit Vectors:* **Undefined or Unlinked Concepts**: Referencing components, tools, or systems without a brief definition or a link to their documentation.* **Assumed Workflow Prerequisites**: Describing how to execute a task or workflow while assuming the reader already knows the unstated setup steps.* **Vague Explanations**: Using imprecise descriptions (e.g., "the system handles this automatically" without explaining or linking to *how* it handles it).+You do not know **this project**. You do know software. Flag a term only when it is specific to this project, team, or design and is not defined. Do not flag general engineering terms.+---# Output Format@@ -51,7 +54,9 @@ Audit the target document file and line range specified by the caller:Report your findings back to the orchestrator in plain, natural language.#### IF Mode: REVIEW-For each finding, include:+Start with your paraphrase, under two headings: **What this proposes** and **How the existing system works, per this document** (2-5 sentences each). The author compares it with the intent. A wrong paraphrase is a finding.++Then, for each finding, include:1. **Severity**: [Blocker | Major | Nit]2. **Affected Scope**: Section heading, concept term, or line numbers.3. **Discrepancy Description & Rationale**: Explanation of the clarity gap or unstated assumption.diff --git a/distributions/claude/agents/comprehension.md b/distributions/claude/agents/comprehension.mdindex f0a20fb..b4e32cb 100644--- a/distributions/claude/agents/comprehension.md+++ b/distributions/claude/agents/comprehension.md@@ -34,16 +34,19 @@ Evaluate the raw feature concept for UX, developer ergonomics, and cognitive ove### IF Mode: REVIEW (Document Audit)Audit the target document file and line range specified by the caller:-1. **Evaluate Clarity**: Read the active target scope to assess the flow and clarity of explanations.-2. **Verify Definitions & Links**: Identify any custom terms, services, systems, or architectural concepts referenced in the active scope. Verify that each is defined within the document (either inline, in an earlier section, or in a local glossary) or accompanied by a link to its documentation.-3. **Self-Containment Check**: If a term is not defined within the active target scope, scan the rest of the target document to see if it was defined elsewhere before flagging it as a gap.-4. **Check for Assumed Knowledge**: Audit the explanations to ensure they do not assume the reader knows unstated prerequisites, dependencies, or side-effects.+1. **Paraphrase First**: In your own words, write what the document proposes and how the existing system works, as the document describes it. If you cannot write a paraphrase of a section, report that section as a π΄ Blocker. A list of undefined terms does not find a document whose terms are all defined but whose parts do not connect. The paraphrase does.+2. **Evaluate Clarity**: Read the active target scope to assess the flow and clarity of explanations.+3. **Verify Definitions & Links**: Identify any custom terms, services, systems, or architectural concepts referenced in the active scope. Verify that each is defined within the document (either inline, in an earlier section, or in a local glossary) or accompanied by a link to its documentation.+4. **Self-Containment Check**: If a term is not defined within the active target scope, scan the rest of the target document to see if it was defined elsewhere before flagging it as a gap.+5. **Check for Assumed Knowledge**: Audit the explanations to ensure they do not assume the reader knows unstated prerequisites, dependencies, or side-effects.### Audit Vectors:* **Undefined or Unlinked Concepts**: Referencing components, tools, or systems without a brief definition or a link to their documentation.* **Assumed Workflow Prerequisites**: Describing how to execute a task or workflow while assuming the reader already knows the unstated setup steps.* **Vague Explanations**: Using imprecise descriptions (e.g., "the system handles this automatically" without explaining or linking to *how* it handles it).+You do not know **this project**. You do know software. Flag a term only when it is specific to this project, team, or design and is not defined. Do not flag general engineering terms.+---# Output Format@@ -51,7 +54,9 @@ Audit the target document file and line range specified by the caller:Report your findings back to the orchestrator in plain, natural language.#### IF Mode: REVIEW-For each finding, include:+Start with your paraphrase, under two headings: **What this proposes** and **How the existing system works, per this document** (2-5 sentences each). The author compares it with the intent. A wrong paraphrase is a finding.++Then, for each finding, include:1. **Severity**: [Blocker | Major | Nit]2. **Affected Scope**: Section heading, concept term, or line numbers.3. **Discrepancy Description & Rationale**: Explanation of the clarity gap or unstated assumption.diff --git a/distributions/claude/skills/egm-review/SKILL.md b/distributions/claude/skills/egm-review/SKILL.mdindex 2a1b3cc..e497822 100644--- a/distributions/claude/skills/egm-review/SKILL.md+++ b/distributions/claude/skills/egm-review/SKILL.md@@ -267,9 +267,10 @@ plain chat):* **Step 5 (Initial Zoom Out)**: Spawn `egm-synthesizer` (or directsubagent) with `Reviewers: [egm-zoom-out]` on `full file` β write`zoom_out_report.md`.- * **Step 6 (Comprehension Test)**: Spawn `egm-synthesizer` (or direct- subagent) with `Reviewers: [egm-comprehension]` on `FeatureRange` &- `DetailedRange` β write `comprehension_report.md`.+ * **Step 6 (Comprehension Test)**: Spawn the `egm-comprehension`+ subagent directly (not the synthesizer) on `FeatureRange` &+ `DetailedRange` β write its complete result to+ `comprehension_report.md`.* **Step 7 (Critic Review)**: Spawn `egm-synthesizer` (or directsubagents) with `Reviewers: [egm-design, egm-structural, egm-style]` on`FeatureRange` β write `critic_report.md`.@@ -324,12 +325,16 @@ plain chat):### Subflow: Comprehension Test-1. **Delegate to Synthesizer Subagent**: Spawn `egm-synthesizer` (or the- `egm-comprehension` subagent at `agents/comprehension.md`) on `FeatureRange`- & `DetailedRange` applying- `resources/document_standards/re-implementation-standard.md`.-2. **Delivery**: Write findings to `comprehension_report.md` using your- file-writing tool.+1. **Spawn the Reviewer Directly**: Spawn the `egm-comprehension` subagent+ at `agents/comprehension.md` on `FeatureRange` & `DetailedRange` with no+ document standard. Do not use the synthesizer: its report keeps only+ findings, and the author must see the paraphrase. The test is self-containment,+ not detail. Do not apply `re-implementation-standard.md`: it asks for+ code-level detail, which the Zoom Out standard forbids in `FeatureRange`.+2. **Delivery**: Write the complete reviewer result to+ `comprehension_report.md` using your file-writing tool. Start with the two+ paraphrase headings verbatim, then the findings. Keep the paraphrase when+ there are no findings.3. **Notify User (No Chat Dumps)**: Notify user that findings are written to`comprehension_report.md` (give its path).4. **Checkpoint Gate**: Present the Stage 6 tri-state gate:diff --git a/skills/egm-review/SKILL.md b/skills/egm-review/SKILL.mdindex 2a1b3cc..e497822 100644--- a/skills/egm-review/SKILL.md+++ b/skills/egm-review/SKILL.md@@ -267,9 +267,10 @@ plain chat):* **Step 5 (Initial Zoom Out)**: Spawn `egm-synthesizer` (or directsubagent) with `Reviewers: [egm-zoom-out]` on `full file` β write`zoom_out_report.md`.- * **Step 6 (Comprehension Test)**: Spawn `egm-synthesizer` (or direct- subagent) with `Reviewers: [egm-comprehension]` on `FeatureRange` &- `DetailedRange` β write `comprehension_report.md`.+ * **Step 6 (Comprehension Test)**: Spawn the `egm-comprehension`+ subagent directly (not the synthesizer) on `FeatureRange` &+ `DetailedRange` β write its complete result to+ `comprehension_report.md`.* **Step 7 (Critic Review)**: Spawn `egm-synthesizer` (or directsubagents) with `Reviewers: [egm-design, egm-structural, egm-style]` on`FeatureRange` β write `critic_report.md`.@@ -324,12 +325,16 @@ plain chat):### Subflow: Comprehension Test-1. **Delegate to Synthesizer Subagent**: Spawn `egm-synthesizer` (or the- `egm-comprehension` subagent at `agents/comprehension.md`) on `FeatureRange`- & `DetailedRange` applying- `resources/document_standards/re-implementation-standard.md`.-2. **Delivery**: Write findings to `comprehension_report.md` using your- file-writing tool.+1. **Spawn the Reviewer Directly**: Spawn the `egm-comprehension` subagent+ at `agents/comprehension.md` on `FeatureRange` & `DetailedRange` with no+ document standard. Do not use the synthesizer: its report keeps only+ findings, and the author must see the paraphrase. The test is self-containment,+ not detail. Do not apply `re-implementation-standard.md`: it asks for+ code-level detail, which the Zoom Out standard forbids in `FeatureRange`.+2. **Delivery**: Write the complete reviewer result to+ `comprehension_report.md` using your file-writing tool. Start with the two+ paraphrase headings verbatim, then the findings. Keep the paraphrase when+ there are no findings.3. **Notify User (No Chat Dumps)**: Notify user that findings are written to`comprehension_report.md` (give its path).4. **Checkpoint Gate**: Present the Stage 6 tri-state gate:diff --git a/skills/egm-review/test_scenarios.yaml b/skills/egm-review/test_scenarios.yamlindex 70d054a..7745fc3 100644--- a/skills/egm-review/test_scenarios.yaml+++ b/skills/egm-review/test_scenarios.yaml@@ -99,3 +99,27 @@ scenarios:- type: "forbidden_pattern"pattern: "(brilliant|amazing|fantastic|great job)"message: "Style audit must adhere to anti-sycophancy constraints and avoid flattery."++ - scenario_id: "comprehension_without_reimplementation_standard"+ description: "Verifies the Comprehension Test does not apply the re-implementation standard to a design document."+ eval_type: "deterministic"+ system_prompt:+ skill_file: "skills/egm-review/SKILL.md"+ turns:+ - user_input: "Run only Stage 6 (Comprehension Test) on docs/designs/rate_limit.md. Which document standard does the reviewer apply?"+ assertions:+ - type: "required_pattern"+ pattern: "(?i)(no (document )?standard|self-containment)"+ message: "Comprehension tests self-containment with no document standard, not the re-implementation standard."++ - scenario_id: "comprehension_report_keeps_paraphrase"+ description: "Verifies the Comprehension Test report keeps the reviewer's paraphrase."+ eval_type: "deterministic"+ system_prompt:+ skill_file: "skills/egm-review/SKILL.md"+ turns:+ - user_input: "Run only Stage 6 (Comprehension Test) on docs/designs/rate_limit.md. The reviewer reports no findings. What goes in comprehension_report.md?"+ assertions:+ - type: "required_pattern"+ pattern: "(?i)paraphrase"+ message: "The comprehension report must keep the paraphrase, also when there are no findings."