skill-forge-benchmark
Benchmark Claude Code skill performance with variance analysis, tracking pass rate, execution time, and token usage across…
Improve and iterate on existing Claude Code skills based on usage feedback, test results, or changing requirements. Handles under/over-triggering fixes, instruction refinement, new sub-skill addition, and architecture evolution. Use when user says "improve skill", "fix skill",
$ npx -y skills add AgriciDaniel/skill-forge --skill skill-forge-evolve --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/skill-forge-evolveContext preview
The summary Claude sees to decide when to auto-load this skill.
Improve and iterate on existing Claude Code skills based on usage feedback, test results, or changing requirements. Handles under/over-triggering fixes, instruction refinement, new sub-skill addition, and architecture evolution. Use when user says "improve skill", "fix skill",
name: skill-forge-evolve description: > Improve and iterate on existing Claude Code skills based on usage feedback, test results, or changing requirements. Handles under/over-triggering fixes, instruction refinement, new sub-skill addition, and architecture evolution. Use when user says "improve skill", "fix skill", "skill not triggering", "skill triggers too much", "update skill", or "evolve skill".
Ask the user or analyze logs to identify the problem category:
**Category A: Triggering Issues**
**Category B: Execution Issues**
**Category C: Architecture Issues**
**Category D: Quality Issues**
1. Read current description 2. Identify missing trigger phrases 3. Add domain keywords and paraphrases 4. Add file type mentions if relevant 5. Test with 5 queries that should now trigger
**Common causes:**
**Fix template:**
# Before (under-triggers) description: Analyzes code quality # After (specific triggers) description: > Static code analysis and quality assessment. Checks code style, complexity, security vulnerabilities, and test coverage. Use when user says "code review", "code quality", "lint", "static analysis", "code smell", "code audit", or "check my code".
1. Read current description 2. Identify why unrelated queries trigger it 3. Add negative triggers ("Do NOT use for...") 4. Make description more specific 5. Test with 5 queries that should NOT trigger
**Fix template:**
# Before (over-triggers) description: Processes documents for review # After (specific + negative triggers) description: > Processes PDF legal documents for contract clause extraction and compliance review. Use for legal contracts, NDAs, terms of service. Do NOT use for general document editing, formatting, or non-legal PDFs.
1. Identify the failing step in the workflow 2. Add explicit validation gates between steps 3. Add error handling with clear recovery instructions 4. Add "If X fails, then Y" fallback paths 5. Consider adding a script for fragile operations
1. Replace vague instructions with specific ones 2. Add concrete examples of expected input/output 3. Add explicit "do this, not that" comparisons 4. Add quality check steps before final output 5. Consider adding a validation script
Use structured workspaces to track improvements across iterations:
eval-workspace/
iteration-1/ # First version
eval-0/with_skill/ # Eval results
eval-0/baseline/
benchmark.json # Aggregated metrics
benchmark.md # Human-readable report
feedback.json # User feedback
iteration-2/ # After first improvement
eval-0/with_skill/
eval-0/baseline/
benchmark.json
benchmark.md
feedback.json**The iteration loop:** 1. Apply the fix to the skill 2. Run `/skill-forge eval <path>` into `iteration-<N+1>/` 3. Run `/skill-forge benchmark <path>` with `--previous iteration-<N>/` 4. Review benchmark comparison for regressions 5. Collect user feedback into `feedback.json` 6. Read feedback and iterate (back to Step 2)
**Stop iterating when:**
For quick fixes without full eval pipeline:
1. Apply the fix 2. Test with the original failing case 3. Test with 3 other cases (regression check) 4. If fix works: -> Update the directive/SKILL.md -> Document the learning in references or SKILL.md 5. If fix fails: -> Diagnose why -> Try alternative approach -> Repeat
For triggering issues (Category A), use the automated optimization loop:
1. Generate trigger eval set: `python scripts/generate_eval_set.py <path>` 2. Review and refine the eval set with the user 3. Run optimization: `python scripts/optimize_description.py <path> --eval-set evals.json` 4. Review the train/test split scores and improvement suggestions 5. Apply suggested description changes 6. Re-run optimization to measure improvement 7. Select the description with the highest **test score** (not train — avoids overfitting) 8. Iterate up to 5 times or until test score plateaus
When a skill outgrows its tier:
**Tier 1 -> Tier 2** (needs scripts): 1. Identify the fragile/deterministic operation 2. Create script in `scripts/` 3. Update SKILL.md to reference the script 4. Test script independently
**Tier 2 -> Tier 3** (needs sub-skills): 1. Identify distinct workflows that can be separated 2. Extract each into its own `skills/{parent}-{child}/SKILL.md` 3. Update main SKILL.md with routing table 4. Move shared knowledge to `references/` 5. Update install.sh
**Tier 3 -> Tier 4** (needs agents): 1. Identify workflows that can run in parallel 2. Create agent definitions in `agents/` 3. Update the audit/full-analysis sub-ski
Blog: Learn how to build Claude Code skills Design, scaffold, build, review, evolve, and publish production-grade Claude Code skills following the Agent Skills open standard.
Benchmark Claude Code skill performance with variance analysis, tracking pass rate, execution time, and token usage across…
Scaffold and build Claude Code skills from plans or descriptions. Generates SKILL.md files, sub-skills, scripts, references,…
Convert Claude Code skills to work on OpenAI Codex, Google Gemini CLI, Google Antigravity, and Cursor. Analyzes platform-specific…
Run evaluation pipelines on Claude Code skills to test triggering accuracy, workflow correctness, and output quality. Spawns…
Architecture and design planning for new Claude Code skills. Guides through use case definition, complexity tier selection,…
Package and distribute Claude Code skills for sharing via GitHub, Claude.ai uploads, or team deployment. Creates install scripts,…