skill-perfection
Skill124 starsChanged 11 months agoMITView on GitHub
Use this skill when you need to QA audit and fix a plugin skill file. Provides a methodology for verifying skill content against official documentation, fixing issues in-place, and producing verification reports.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skill-perfectionSkill
- dspy-adapters-multimodalSkill
- dspy-advanced-module-compositionSkill
- dspy-better-togetherSkill
- dspy-bootstrap-fewshotSkill
- dspy-custom-module-designSkill
- dspy-debugging-observabilitySkill
- dspy-embedding-retrievalSkill
- dspy-evaluation-suiteSkill
- dspy-finetune-bootstrapSkill
- dspy-gepa-reflectiveSkill
- dspy-haystack-integrationSkill
- dspy-mcp-tool-integrationSkill
- dspy-miprov2-optimizerSkill
- dspy-optimize-anythingSkill
- dspy-optimizer-selectionSkill
- dspy-output-refinement-constraintsSkill
- dspy-production-deploymentSkill
- dspy-rag-pipelineSkill
- dspy-react-agent-builderSkill
- dspy-reasoning-modulesSkill
- dspy-signature-designerSkill
- dspy-simba-optimizerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Audit + Fix in One Pass: When you find an issue, fix it immediately, then continue.
- Distinctive: line 51
The preflight script is a helper, not a gatekeeper: If it produces confusing output, skip it.
- Distinctive: line 100
When you find an issue:
- Distinctive: line 107
All severities get fixed in one pass: - don't defer anything.
- Distinctive: line 113
Python: Check for matching parentheses, correct indentation, valid syntax
- Distinctive: line 114
JavaScript/TypeScript: Check for matching braces, valid syntax, correct imports
- Distinctive: line 115
Rust: Check for matching braces, semicolons, valid syntax
- Distinctive: line 116
Go: Check for matching braces, correct package structure
- Distinctive: line 119
If unsure about syntax validity, note it but don't block on it - focus on semantic correctness against official docs.
- Distinctive: line 129
If spot-checks pass → Proceed to Phase 4 If spot-checks fail → Fix those specific items, re-check only those
- Distinctive: line 130
If spot-checks fail → Fix those specific items, re-check only those
- Distinctive: line 136
Create a concise report (<100 lines):
- Distinctive: line 205
Limitation: Only useful for Python; advisory only
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Perfection
A systematic process for auditing and fixing plugin skills in a single pass.
Core Principle
Audit + Fix in One Pass: When you find an issue, fix it immediately, then continue. This eliminates redundant research and multiple iterations.
Process Overview
[Optional Preflight] → Audit+Fix (single pass) → Verify (spot-check) → ReportPhase 1: Preflight (Optional, Advisory)
A Python-based preflight script is bundled for Python-heavy skills only.
When to Use Preflight
| Skill Content | Use Preflight? |
| Mostly Python code blocks | ✅ Yes |
| Mixed Python + other languages | ⚠️ Optional (Python blocks only) |
| Non-Python (JS, Rust, Go, etc.) | ❌ Skip, go to Phase 2 |
| Skill about the preflight script itself | ❌ Skip (conflict of interest) |
Running Preflight
uv run python ${SKILL_DIR}/scripts/preflight.py <path-to-skill.md> --no-urlsInterpreting Results
| Result | Action |
✅ PASSED | Good signal. Proceed to Phase 2, trust syntax is valid. |
❌ FAILED with clear errors (syntax error at line X) | Fix those specific issues, then proceed to Phase 2. |
❌ FAILED with confusing/many errors | Ignore preflight entirely. Proceed to Phase 2, let LLM verify. |
| Script crashes or hangs | Ignore preflight entirely. Proceed to Phase 2. |
Key Rule: Preflight is Advisory
The preflight script is a helper, not a gatekeeper. If it produces confusing output, skip it. The LLM-based Phase 2 is always authoritative.
Signs to ignore preflight:
- More than 10 errors on a skill that "looks fine"
- Errors that don't make sense (line numbers don't match)
- Python tracebacks from the script itself
- Timeouts or hanging
When in doubt, skip preflight and let the LLM verify everything.
Phase 2: Audit + Fix (Single Pass) - THE CORE
This is the main phase. Work through the skill file section by section.
2.1 Identify the Technology
From the skill's content, identify:
- Primary technology/framework (e.g., LangGraph, React, Axum, Go-kit)
- Version constraints if mentioned
- Official documentation domain
2.2 Research Strategy
Batch similar lookups to minimize web calls:
Example: For a skill with 10 import statements from the same package,
do ONE search that covers them all, not 10 separate searches.Documentation priority:
- Official docs (use
site:filter) - Official GitHub repo (examples, tests, README)
- Package registry (PyPI, npm, crates.io, pkg.go.dev)
- Official blog/changelog
2.3 For Each Verifiable Item
| Item Type | What to Verify |
| Import/require statement | Package exists, path is current, not deprecated |
| API call | Signature matches official docs, parameters correct |
| Code example | Would execute, complete imports, correct syntax |
| URL/link | Accessible (WebFetch), points to claimed content |
| Version claim | Current/accurate |
| Best practice claim | Aligned with official recommendations |
2.4 Fix-As-You-Go
When you find an issue:
- STOP auditing that section
- FIX the issue immediately (Edit tool)
- LOG the change in memory:
{location, old, new, reason, source_url} - CONTINUE auditing
All severities get fixed in one pass - don't defer anything.
2.5 Syntax Verification (LLM-based)
For code blocks, verify syntax by reading carefully:
Python: Check for matching parentheses, correct indentation, valid syntax
JavaScript/TypeScript: Check for matching braces, valid syntax, correct imports
Rust: Check for matching braces, semicolons, valid syntax
Go: Check for matching braces, correct package structure
Any language: Apply your knowledge of that language's syntax rules
If unsure about syntax validity, note it but don't block on it - focus on semantic correctness against official docs.
Phase 3: Verification (Spot-Check)
After completing Phase 2:
- Re-read the modified skill file
- Spot-check 3-5 items you fixed (not everything)
- Verify URLs you added/modified (WebFetch)
If spot-checks pass → Proceed to Phase 4 If spot-checks fail → Fix those specific items, re-check only those
Do NOT do a full re-audit. You already verified everything in Phase 2.
Phase 4: Generate Report
Create a concise report (<100 lines):
# Skill Perfection Report
**Skill**: {skill-name}
**Date**: {date}
**Version**: {old} → {new}
**Status**: ✅ PERFECTED | ⚠️ NEEDS REVIEW
## Summary
- Items verified: {N}
- Issues found and fixed: {N}
## Changes Made
### High Priority
| Location | Change | Reason | Source |
|----------|--------|--------|--------|
| line 45 | `old` → `new` | why | [docs](url) |
### Medium/Low Priority
| Location | Change | Reason | Source |
|----------|--------|--------|--------|
| line 12 | `old` → `new` | why | [docs](url) |
## Verification
- [x] All imports verified against official docs
- [x] All API signatures match current documentation
- [x] Code examples are complete and correct
- [x] All URLs accessible
## Sources
1. {url}
2. {url}Save to: {skill-directory}/PERFECTION_REPORT.md
Efficiency Guidelines
| Metric | Target |
| Web searches | <20 per skill (batch similar items) |
| Iterations | 1 audit+fix pass + 1 spot-check |
| Report length | <100 lines |
Anti-Patterns
❌ Run preflight on non-Python skills ✅ Skip preflight, let LLM verify
❌ Trust confusing preflight output
✅ Ignore preflight when output doesn't make sense
❌ Separate audit pass, then separate update pass ✅ Fix issues as you find them
❌ Full re-audit after fixes ✅ Spot-check only changed items
❌ Research same API multiple times
✅ Batch similar lookups, cache results
Bundled Scripts
scripts/preflight.py
Purpose: Quick syntax check for Python-heavy skills Limitation: Only useful for Python; advisory only
# Use for Python skills
uv run python ${SKILL_DIR}/scripts/preflight.py skill.md --no-urls
# Skip for non-Python skills or if output is confusingIf preflight causes problems, ignore it entirely. The LLM-based audit is always the authoritative verification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

