Auto-review skill for expert agents. After coding, expert applies elicitation techniques to self-correct before sniper validation. Inspired by BMAD-METHOD.
It sits between Execute and eXamine in the APEX flow, scores itself against an exit threshold (>=90% proceed, 70-89% document gaps, <70% iterate), and persists its findings to .claude/apex/docs/elicit-{task-slug}.json so a later pass can diff against prior verdicts instead of restarting.
Enable expert agents to self-review and self-correct their code before external validation (sniper). Based on BMAD-METHOD's 75 elicitation techniques.
Expert presents 5 relevant techniques ā User chooses ā Expert applies
Expert auto-detects code type ā Auto-selects techniques ā Applies silently
Skip elicitation ā Go directly to sniper validation
After Execute phase, expert runs:
# Manual mode (default)
> Apply elicitation skill
# Auto mode (no prompts)
> Apply elicitation skill --auto
# Skip self-review
> Apply elicitation skill --skip
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ELICITATION WORKFLOW ā
ā ā
ā Step 0: Init ā Load context ā
ā Step 1: Analyze Code ā Detect code type ā
ā Step 2: Select ā Choose techniques (or auto) ā
ā Step 3: Apply Review ā Execute techniques ā
ā Step 4: Self-Correct ā Fix own issues ā
ā Step 5: Report ā Summary before sniper ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
| Code Type Detected | Auto-Selected Techniques |
|---|---|
| Authentication/Security | Security Audit, OWASP Check, Input Validation |
| API Endpoints | Error Handling, Type Coverage, API Contracts |
| Database/ORM | N+1 Detection, Migration Safety, Data Integrity |
| UI Components | Accessibility, Edge Cases, Loading States |
| Business Logic | SOLID Compliance, Unit Test Coverage, Edge Cases |
| Refactoring | Breaking Changes, Regression Analysis, Backward Compat |
| Performance Critical | Profiling, Memory Analysis, Complexity Check |
Config/Docs/Plugin files (.md agents/skills, hooks.json, frontmatter YAML) |
CQ-01, DOC-01, INT-01 + validation by the strictest parser in the consumption chain (e.g. js-yaml strict for frontmatter, json.tool for JSON) -- never "looks well-formed" |
Full catalog: references/techniques-catalog.md
Total: 75 techniques
A-nalyze ā P-lan ā E-xecute ā [ELICIT] ā X-amine
ā ā ā
ā¼ ā¼ ā¼
Expert Expert sniper
code self-review (final)
Benefits:
Score = techniques applied / techniques selected, weighted by critical category (Security, Architecture).
| Score | Status | Action |
|---|---|---|
| ā„ 90% | š¢ | Proceed to sniper |
| 70-89% | š” | Document gaps, then proceed |
| < 70% | š“ | Iterate before sniper |
Self-correction failure: If a self-correction breaks the code ā revert that correction and keep the finding as a report item instead.
Step 5 persists .claude/apex/docs/elicit-{task-slug}.json so a later pass
diffs against prior verdicts instead of restarting from scratch. Full
contract, {task-slug} derivation, and JSON schema: references/artifact-contract.md.
| Step | File | Purpose |
|---|---|---|
| 0 | steps/step-00-init.md |
Load context, detect mode, load prior artifact if present |
| 1 | steps/step-01-analyze-code.md |
Analyze written code |
| 2 | steps/step-02-select-techniques.md |
Select techniques |
| 3 | steps/step-03-apply-review.md |
Apply review |
| 4 | steps/step-04-self-correct.md |
Self-correct |
| 5 | steps/step-05-report.md |
Generate report, persist elicit-{task-slug}.json |