Get the FREE Ultimate OpenClaw Setup Guide →

elicitation

npx machina-cli add skill fusengine/agents/elicitation --openclaw
Files (1)
SKILL.md
4.6 KB

Elicitation Skill

Purpose

Enable expert agents to self-review and self-correct their code before external validation (sniper). Based on BMAD-METHOD's 75 elicitation techniques.


3 Execution Modes

Mode 1: MANUAL (default)

Expert presents 5 relevant techniques → User chooses → Expert applies

Mode 2: AUTO (--auto)

Expert auto-detects code type → Auto-selects techniques → Applies silently

Mode 3: SKIP (--skip)

Skip elicitation → Go directly to sniper validation

Quick Start

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

Workflow Overview

┌─────────────────────────────────────────────────────────┐
│              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        │
└─────────────────────────────────────────────────────────┘

Auto-Detection Matrix

Code Type DetectedAuto-Selected Techniques
Authentication/SecuritySecurity Audit, OWASP Check, Input Validation
API EndpointsError Handling, Type Coverage, API Contracts
Database/ORMN+1 Detection, Migration Safety, Data Integrity
UI ComponentsAccessibility, Edge Cases, Loading States
Business LogicSOLID Compliance, Unit Test Coverage, Edge Cases
RefactoringBreaking Changes, Regression Analysis, Backward Compat
Performance CriticalProfiling, Memory Analysis, Complexity Check

Technique Categories (12)

Full catalog: references/techniques-catalog.md

  1. Code Quality (7): Code review, Pattern detection, Complexity analysis...
  2. Security (7): OWASP audit, Input validation, Auth check...
  3. Performance (6): Profiling, N+1 detection, Memory analysis...
  4. Architecture (6): SOLID check, Dependency analysis, Coupling review...
  5. Testing (6): Edge cases, Boundary testing, Error paths...
  6. Documentation (6): API review, Comment check, Type coverage...
  7. UX (6): Accessibility, Error messages, Loading states...
  8. Data (6): Schema validation, Migration safety, Data integrity...
  9. Concurrency (6): Race conditions, Deadlock analysis, State sync...
  10. Integration (7): API contracts, Backward compat, Breaking changes...
  11. Observability (6): Logging, Metrics, Error tracking...
  12. Maintainability (6): Readability, Naming, File organization...

Total: 75 techniques


Integration with APEX

A-nalyze → P-lan → E-xecute → [ELICIT] → X-amine
                       │          │           │
                       ▼          ▼           ▼
                    Expert    Expert       sniper
                     code    self-review   (final)

Benefits:

  • Expert catches own mistakes before sniper
  • Faster validation (less sniper corrections)
  • Knowledge retention (expert learns from self-review)

Forbidden

  • ❌ Skip init step (must load context)
  • ❌ Apply techniques without understanding code type
  • ❌ Self-correct without documenting changes
  • ❌ Report without listing applied techniques
  • ❌ Use techniques outside expertise domain

Steps Reference

StepFilePurpose
0steps/step-00-init.mdLoad context, detect mode
1steps/step-01-analyze-code.mdAnalyze written code
2steps/step-02-select-techniques.mdSelect techniques
3steps/step-03-apply-review.mdApply review
4steps/step-04-self-correct.mdSelf-correct
5steps/step-05-report.mdGenerate report

Source

git clone https://github.com/fusengine/agents/blob/main/plugins/ai-pilot/skills/elicitation/SKILL.mdView on GitHub

Overview

An auto-review mechanism enabling expert agents to self-review and self-correct code before external validation. It leverages BMAD-METHOD's 75 elicitation techniques and supports manual, auto, or skip modes to streamline sniper validation.

How This Skill Works

The skill loads context, analyzes code to detect type, and selects applicable elicitation techniques (manual prompts or automatic). It then applies the review, performs self-corrections, and reports a summary before sniper validation, guided by the 75-technique BMAD-METHOD catalog.

When to Use It

  • Before sniper validation to catch mistakes early and reduce corrections
  • During refactoring to prevent regressions and maintain code quality
  • When you want silent, prompt-free review using AUTO mode (--auto)
  • When you need to bypass self-review for speed using SKIP (--skip)
  • When a documented record of applied techniques is required for audits

Quick Start

  1. Step 1: Run "Apply elicitation skill" (Manual mode, default)
  2. Step 2: Run "Apply elicitation skill --auto" (Auto mode)
  3. Step 3: Run "Apply elicitation skill --skip" (Skip)

Best Practices

  • Load context before analysis (Step 0) to ensure accurate code-type detection
  • Explicitly document each applied technique in the final report
  • Choose the appropriate mode based on urgency and risk (manual, auto, skip)
  • Verify self-corrections with targeted tests or lightweight checks
  • Keep technique usage within the BMAD-METHOD catalog and your domain expertise

Example Use Cases

  • Security API: Self-review for input validation and error handling in endpoints
  • UI Component: Accessibility checks and edge-case handling before release
  • Database/ORM: N+1 detection and data integrity review during migrations
  • Performance-Critical: Profiling and memory usage checks to avoid regressions
  • Business Logic: SOLID compliance and comprehensive edge-case coverage

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers