optimize analyze-system: d1 triggers in skill description + d2 ordered TASKS mapped to OUTPUT sections in analyzer

This commit is contained in:
Bastien Chanot
2026-08-26 19:22:36 +02:00
parent 080d2d9f03
commit e9c6bf52fa
2 changed files with 7 additions and 8 deletions
+6 -7
View File
@@ -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 1. **Locate** — find the relevant parts of the codebase (Glob/Grep from the target) → file list
- Understand current behavior 2. **Understand** — read them; describe current behavior as-is → CONTEXT, KEY COMPONENTS
- List dependencies 3. **Map dependencies** — imports, call sites, data flow in/out → KEY COMPONENTS roles
- Highlight constraints 4. **Constrain** — invariants, contracts, conventions the code obeys → CONSTRAINTS
- Detect risks 5. **Assess** — risks with probability, then ambiguities → RISKS, OPEN QUESTIONS
- Identify ambiguities
--- ---
+1 -1
View File
@@ -1,6 +1,6 @@
--- ---
name: analyze 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: <file/area to analyze — OR paste error/stack trace for DEBUG mode> argument-hint: <file/area to analyze — OR paste error/stack trace for DEBUG mode>
allowed-tools: Read, Grep, Glob, Bash allowed-tools: Read, Grep, Glob, Bash
--- ---