Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Enable an AI agent to iteratively improve its own skills and instructions based on task feedback.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
assets/SKILL-TEMPLATE.md
1# Skill Template23Template for creating skills extracted from learnings. Copy and customize.45---67## SKILL.md Template89```markdown10---11name: skill-name-here12description: "Concise description of when and why to use this skill. Include trigger conditions."13---1415# Skill Name1617Brief introduction explaining the problem this skill solves and its origin.1819## Quick Reference2021| Situation | Action |22|-----------|--------|23| [Trigger 1] | [Action 1] |24| [Trigger 2] | [Action 2] |2526## Background2728Why this knowledge matters. What problems it prevents. Context from the original learning.2930## Solution3132### Step-by-Step33341. First step with code or command352. Second step363. Verification step3738### Code Example3940\`\`\`language41// Example code demonstrating the solution42\`\`\`4344## Common Variations4546- **Variation A**: Description and how to handle47- **Variation B**: Description and how to handle4849## Gotchas5051- Warning or common mistake #152- Warning or common mistake #25354## Related5556- Link to related documentation57- Link to related skill5859## Source6061Extracted from learning entry.62- **Learning ID**: LRN-YYYYMMDD-XXX63- **Original Category**: correction | insight | knowledge_gap | best_practice64- **Extraction Date**: YYYY-MM-DD65```6667---6869## Minimal Template7071For simple skills that don't need all sections:7273```markdown74---75name: skill-name-here76description: "What this skill does and when to use it."77---7879# Skill Name8081[Problem statement in one sentence]8283## Solution8485[Direct solution with code/commands]8687## Source8889- Learning ID: LRN-YYYYMMDD-XXX90```9192---9394## Template with Scripts9596For skills that include executable helpers:9798```markdown99---100name: skill-name-here101description: "What this skill does and when to use it."102---103104# Skill Name105106[Introduction]107108## Quick Reference109110| Command | Purpose |111|---------|---------|112| `./scripts/helper.sh` | [What it does] |113| `./scripts/validate.sh` | [What it does] |114115## Usage116117### Automated (Recommended)118119\`\`\`bash120./skills/skill-name/scripts/helper.sh [args]121\`\`\`122123### Manual Steps1241251. Step one1262. Step two127128## Scripts129130| Script | Description |131|--------|-------------|132| `scripts/helper.sh` | Main utility |133| `scripts/validate.sh` | Validation checker |134135## Source136137- Learning ID: LRN-YYYYMMDD-XXX138```139140---141142## Naming Conventions143144- **Skill name**: lowercase, hyphens for spaces145- Good: `docker-m1-fixes`, `api-timeout-patterns`146- Bad: `Docker_M1_Fixes`, `APITimeoutPatterns`147148- **Description**: Start with action verb, mention trigger149- Good: "Handles Docker build failures on Apple Silicon. Use when builds fail with platform mismatch."150- Bad: "Docker stuff"151152- **Files**:153- `SKILL.md` - Required, main documentation154- `scripts/` - Optional, executable code155- `references/` - Optional, detailed docs156- `assets/` - Optional, templates157158---159160## Extraction Checklist161162Before creating a skill from a learning:163164- [ ] Learning is verified (status: resolved)165- [ ] Solution is broadly applicable (not one-off)166- [ ] Content is complete (has all needed context)167- [ ] Name follows conventions168- [ ] Description is concise but informative169- [ ] Quick Reference table is actionable170- [ ] Code examples are tested171- [ ] Source learning ID is recorded172173After creating:174175- [ ] Update original learning with `promoted_to_skill` status176- [ ] Add `Skill-Path: skills/skill-name` to learning metadata177- [ ] Test skill by reading it in a fresh session178