Two scripts are available to dramatically improve your SKILL.md file:
enhance_skill_local.py - Uses Claude Code Max (no API key, recommended)enhance_skill.py - Uses Anthropic API (~$0.15-$0.30 per skill)Both analyze reference documentation and extract the best examples and guidance.
Problem: The auto-generated SKILL.md is often too generic:
Solution: Let Claude read your reference docs and create a much better SKILL.md with:
Recommended for Claude Code Max users:
# Option 1: Standalone enhancement
python3 cli/enhance_skill_local.py output/steam-inventory/
# Option 2: Integrated with scraper
python3 cli/doc_scraper.py --config configs/steam-inventory.json --enhance-local
What happens:
Requirements:
If you prefer API-based approach:
pip3 install anthropic
# Option 1: Environment variable (recommended)
export ANTHROPIC_API_KEY=sk-ant-...
# Option 2: Pass directly with --api-key
python3 cli/enhance_skill.py output/react/ --api-key sk-ant-...
# Standalone enhancement
python3 cli/enhance_skill.py output/steam-inventory/
# Integrated with scraper
python3 cli/doc_scraper.py --config configs/steam-inventory.json --enhance
# Dry run (see what would be done)
python3 cli/enhance_skill.py output/react/ --dry-run
## Quick Reference
### Common Patterns
*Quick reference patterns will be added as you use the skill.*
## Quick Reference
### Common API Patterns
**Granting promotional items:**
cpp void CInventory::GrantPromoItems() {
SteamItemDef_t newItems[2];
newItems[0] = 110;
newItems[1] = 111;
SteamInventory()->AddPromoItems( &s_GenerateRequestResult, newItems, 2 );
}
**Getting all items in player inventory:**
cpp SteamInventoryResult_t resultHandle; bool success = SteamInventory()->GetAllItems( &resultHandle );
[... 8 more practical examples ...]
export ANTHROPIC_API_KEY=sk-ant-...
# or
python3 cli/enhance_skill.py output/react/ --api-key sk-ant-...
Make sure you've run the scraper first:
python3 cli/doc_scraper.py --config configs/react.json
pip3 install anthropic
# Restore original
mv output/steam-inventory/SKILL.md.backup output/steam-inventory/SKILL.md
# Try again (it may generate different content)
python3 cli/enhance_skill.py output/steam-inventory/
Test Case: steam-economy skill
The LOCAL enhancement successfully:
LOCAL Enhancement (enhance_skill_local.py):
API Enhancement (enhance_skill.py):
Both:
| Aspect | Manual Edit | LOCAL Enhancement | API Enhancement |
|---|---|---|---|
| Time | 15-30 minutes | 30-60 seconds | 30-60 seconds |
| Code examples | You pick | AI picks best | AI picks best |
| Quick reference | Write yourself | Auto-generated | Auto-generated |
| Domain guidance | Your knowledge | From docs | From docs |
| Consistency | Varies | Consistent | Consistent |
| Cost | Free (your time) | Free (Max plan) | ~$0.20 per skill |
| Setup | None | None | API key needed |
| Quality | High (if expert) | 9/10 | 9/10 |
| Recommended? | For experts only | ✅ Yes | If no Max plan |
Use enhancement when:
Skip enhancement when:
To customize how Claude enhances the SKILL.md, edit enhance_skill.py and modify the _build_enhancement_prompt() method around line 130.
Example customization:
prompt += """
ADDITIONAL REQUIREMENTS:
- Focus on security best practices
- Include performance tips
- Add troubleshooting section
"""