Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Universal skill diagnosis and optimization tool. Detect and fix skill execution issues including context explosion, long-tail forgetting, data flow disruption, and agent coordination failures. Supports Gemini CLI for deep analysis. Triggers on "skill tuning", "tune skill", "skill diagnosis", "optimize skill", "skill debug".
.claude/skills/skill-tuning/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-19 | ✗→✓ | ▲ Improved | — | — |
| case-20 | ✗→✓ | ▲ Improved | — | — |
| case-08 | ✗→✓ | ▲ Improved | — | — |
| case-13 | ✗→✓ | ▲ Improved | — | — |
| case-06 | ✗→✓ | ▲ Improved | — | — |
Autonomous diagnosis and optimization for skill execution issues.
┌─────────────────────────────────────────────────────┐
│ Phase 0: Read Specs (mandatory) │
│ → problem-taxonomy.md, tuning-strategies.md │
└─────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────┐
│ Orchestrator (state-driven) │
│ Read state → Select action → Execute → Update → ✓ │
└─────────────────────────────────────────────────────┘
↓ ↓
┌──────────────────────┐ ┌──────────────────┐
│ Diagnosis Phase │ │ Gemini CLI │
│ • Context │ │ Deep analysis │
│ • Memory │ │ (on-demand) │
│ • DataFlow │ │ │
│ • Agent │ │ Complex issues │
│ • Docs │ │ Architecture │
│ • Token Usage │ │ Performance │
└──────────────────────┘ └──────────────────┘
↓
┌───────────────────┐
│ Fix & Verify │
│ Apply → Re-test │
└───────────────────┘| Priority | Problem | Root Cause | Fix Strategy | |----------|---------|-----------|--------------| | P0 | Authoring Violation | Intermediate files, state bloat, file relay | eliminate_intermediate, minimize_state | | P1 | Data Flow Disruption | Scattered state, inconsistent formats | state_centralization, schema_enforcement | | P2 | Agent Coordination | Fragile chains, no error handling | error_wrapping, result_validation | | P3 | Context Explosion | Unbounded history, full content passing | sliding_window, path_reference | | P4 | Long-tail Forgetting | Early constraint loss | constraint_injection, checkpoint_restore | | P5 | Token Consumption | Verbose prompts, state bloat | prompt_compression, lazy_loading |
See specs/problem-taxonomy.md for:
See specs/tuning-strategies.md for:
| Step | Action | Orchestrator Decision | Output | |------|--------|----------------------|--------| | 1 | action-init | status='pending' | Backup, session created | | 2 | action-analyze-requirements | After init | Required dimensions + coverage | | 3 | Diagnosis (6 types) | Focus areas | state.diagnosis.{type} | | 4 | action-gemini-analysis | Critical issues OR user request | Deep findings | | 5 | action-generate-report | All diagnosis complete | state.final_report | | 6 | action-propose-fixes | Issues found | state.proposed_fixes] | | 7 | action-apply-fix | Pending fixes | Applied + verified | | 8 | action-complete | Quality gates pass | session.status='completed' |
| Category | Actions | Purpose | |----------|---------|---------| | Setup | action-init | Initialize backup, session state | | Analysis | action-analyze-requirements | Decompose user request via Gemini CLI | | Diagnosis | action-diagnose-{context,memory,dataflow,agent,docs,token_consumption} | Detect category-specific issues | | Deep Analysis | action-gemini-analysis | Gemini CLI: complex/critical issues | | Reporting | action-generate-report | Consolidate findings → final_report | | Fixing | action-propose-fixes, action-apply-fix | Generate + apply fixes | | Verify | action-verify | Re-run diagnosis, check gates | | Exit | action-complete, action-abort | Finalize or rollback |
Full action details: phases/actions/
Single source of truth: .workflow/.scratchpad/skill-tuning-{ts}/state.json
json{ "status": "pending|running|completed|failed", "target_skill": { "name": "...", "path": "..." }, "diagnosis": { "context": {...}, "memory": {...}, "dataflow": {...}, "agent": {...}, "docs": {...}, "token_consumption": {...} }, "issues": [{"id":"...", "severity":"...", "category":"...", "strategy":"..."}], "proposed_fixes": [...], "applied_fixes": [...], "quality_gate": "pass|fail", "final_report": "..." }
See phases/state-schema.md for complete schema.
See phases/orchestrator.md for:
bash# Basic skill diagnosis /skill-tuning "Fix memory leaks in my skill" # Deep analysis with Gemini /skill-tuning "Architecture issues in async workflow" # Focus on specific areas /skill-tuning "Optimize token consumption and fix agent coordination" # Custom issue /skill-tuning "My skill produces inconsistent outputs"
After completion, review:
.workflow/.scratchpad/skill-tuning-{ts}/state.json - Full state with final_reportstate.final_report - Markdown summary (in state.json)state.applied_fixes - List of applied fixes with verification results| Document | Purpose | |----------|---------| | specs/problem-taxonomy.md | Classification + detection patterns | | specs/tuning-strategies.md | Fix implementation guide | | specs/dimension-mapping.md | Dimension ↔ Spec mapping | | specs/quality-gates.md | Quality verification criteria | | phases/orchestrator.md | Workflow orchestration | | phases/state-schema.md | State structure definition | | phases/actions/ | Individual action implementations |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-19 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 19 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +41 percentage points is the difference between those two pass rates over the 19 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.