From e9c6bf52fa4300f1bf77ae9ce5ceb40ac8efc07f Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Wed, 26 Aug 2026 19:22:36 +0200 Subject: [PATCH] optimize analyze-system: d1 triggers in skill description + d2 ordered TASKS mapped to OUTPUT sections in analyzer --- agents/analyzer.md | 13 ++++++------- skills/analyze/SKILL.md | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/agents/analyzer.md b/agents/analyzer.md index 135d405..7eccc81 100644 --- a/agents/analyzer.md +++ b/agents/analyzer.md @@ -25,14 +25,13 @@ Produce a clear analysis without proposing solutions. --- -## TASKS +## TASKS (in order — each step feeds the OUTPUT section named) -- Identify relevant parts of the codebase -- Understand current behavior -- List dependencies -- Highlight constraints -- Detect risks -- Identify ambiguities +1. **Locate** — find the relevant parts of the codebase (Glob/Grep from the target) → file list +2. **Understand** — read them; describe current behavior as-is → CONTEXT, KEY COMPONENTS +3. **Map dependencies** — imports, call sites, data flow in/out → KEY COMPONENTS roles +4. **Constrain** — invariants, contracts, conventions the code obeys → CONSTRAINTS +5. **Assess** — risks with probability, then ambiguities → RISKS, OPEN QUESTIONS --- diff --git a/skills/analyze/SKILL.md b/skills/analyze/SKILL.md index d8b9416..db6c353 100644 --- a/skills/analyze/SKILL.md +++ b/skills/analyze/SKILL.md @@ -1,6 +1,6 @@ --- name: analyze -description: Deep factual code analysis (read-only) or DEBUG mode (pass error/stack trace) — no solutions proposed, no file modifications +description: 'Deep factual code analysis (read-only) or DEBUG mode (pass error/stack trace) — no solutions proposed, no file modifications. Triggers: "analyze", "analyse", "how does X work", "comment ça marche", "investigate only", "root cause only, no fix", "pourquoi ce comportement", "debug analysis". Fix wanted → /bugfix or /hotfix instead.' argument-hint: allowed-tools: Read, Grep, Glob, Bash ---