
skill-creator
by aliou
SKILL.md
name: skill-creator description: Create skills for Pi. Use when asked to create a new skill, update an existing skill, or learn about skill authoring best practices.
Skill Creator
Guide for creating effective Pi skills. Skills are markdown-based instructions that extend the agent's capabilities for specific domains or workflows.
Skill Anatomy
skill-name/
├── SKILL.md # Required - frontmatter + instructions
├── scripts/ # Optional - executable Python/Bash
├── references/ # Optional - detailed docs loaded as needed
└── assets/ # Optional - templates, examples (not auto-loaded)
SKILL.md Structure
---
name: skill-name # Required: hyphen-case, lowercase, max 64 chars
description: When to use # Required: max 1024 chars, explain triggering conditions
---
# Skill Title
Instructions for the agent...
Frontmatter rules:
name: hyphen-case only (e.g.,my-skill-name), max 64 charactersdescription: explain WHEN to use this skill, max 1024 characters, no HTML brackets
Context Budget
Skills share context with system prompt, conversation history, and user requests. Be ruthless about brevity.
Progressive disclosure:
- Metadata (~100 words) - Always visible, triggers skill activation
- SKILL.md body (<5K words) - Loaded when skill triggers
- Bundled resources - Loaded only when explicitly referenced
Guidelines:
- Keep SKILL.md under 500 lines
- Move detailed documentation to
references/ - Challenge each line: "Does the agent really need this?"
- Prefer examples over explanations
Degrees of Freedom
Match constraint level to task fragility:
| Level | Format | When to Use |
|---|---|---|
| High | Text instructions | Multiple valid approaches, creative tasks |
| Medium | Pseudocode/templates | Repeatable patterns with variations |
| Low | Exact scripts | Fragile operations, strict sequences |
Creation Workflow
Step 1: Understand with Examples
Gather 3-5 concrete usage examples. For each, identify:
- What triggers the skill?
- What steps does the agent take?
- What resources are needed?
Step 2: Plan Structure
Analyze examples to identify:
- Scripts: Repeated deterministic operations
- References: Detailed docs needed occasionally
- Assets: Templates, boilerplate for output
Step 3: Initialize
bun scripts/init_skill.ts <skill-name> --path <output-dir>
Options:
--resources scripts,references,assets- Create resource directories--examples- Include example files
Step 4: Implement
- Write SKILL.md with clear instructions
- Create scripts for deterministic operations
- Add references for detailed documentation
- Include assets for output templates
Step 5: Validate
bun scripts/quick_validate.ts <path/to/skill>
Checks:
- SKILL.md exists with valid YAML
- Required frontmatter fields present
- Naming conventions followed
- Field length limits respected
Step 6: Iterate
Test the skill on real tasks, identify gaps, update and revalidate.
Design Patterns
Multi-Step Workflows
For sequential processes, use numbered steps with clear completion criteria:
## Workflow
1. **Analyze** - Examine input, identify requirements
- Output: List of requirements
2. **Plan** - Design approach based on requirements
- Output: Implementation plan
3. **Execute** - Implement the plan
- Output: Completed artifact
See references/workflows.md for advanced patterns.
Output Formatting
For consistent output, provide templates or examples:
## Output Format
Generate a summary with this structure:
### Summary
[One paragraph overview]
### Key Points
- Point 1
- Point 2
### Recommendations
1. First recommendation
2. Second recommendation
See references/output-patterns.md for more patterns.
Scripts
Scripts should:
- Be executable (
chmod +x) - Include usage help (
--help) - Validate inputs before processing
- Print clear success/error messages
- Exit with appropriate codes (0 success, 1 error)
Common Mistakes
- Too verbose - Agent already knows common patterns
- Unclear triggers - Description doesn't explain when to activate
- Missing examples - Abstract instructions without concrete cases
- Context bloat - Loading everything upfront instead of progressively
Quick Reference
# Create new skill
bun scripts/init_skill.ts my-skill --path ~/code/src/github.com/aliou/pi-extensions/skills/ --resources scripts,references
# Validate skill
bun scripts/quick_validate.ts ~/code/src/github.com/aliou/pi-extensions/skills/my-skill
# Symlink to make skill available
ln -s ~/code/src/github.com/aliou/pi-extensions/skills/my-skill ~/.local/share/agents/skills/my-skill
Skill Location
Write skills in ~/code/src/github.com/aliou/pi-extensions/skills/ and symlink them to ~/.local/share/agents/skills/ to make them available globally.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です