espennilsen/pi / skills/skill-creator
skill-creator
VerifiedCreate, review, and improve skills for Pi agents. A skill is a folder with a SKILL.md that teaches an agent specialized workflows, domain knowledge, or tool integrations. Use when asked to create a new skill, improve an existing skill, review a skill for quality, scaffold a skill from a workflow, or convert documentation into a skill. Also triggers on "make a skill for", "build a skill", "skill for [topic]", "teach the agent to", or "package this workflow as a skill".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.1 KB |
| references/patterns.md | markdown | 6.6 KB |
| references/writing-guide.md | markdown | 9.6 KB |
| scripts/init-skill.shexecutable | script | 2.5 KB |
| scripts/validate.pyexecutable | script | 8.0 KB |
scripts/init-skill.sh
View on GitHub#!/usr/bin/env bash
# init-skill.sh — Scaffold a new skill directory
#
# Usage:
# bash scripts/init-skill.sh <skill-name> [target-directory]
#
# Examples:
# bash scripts/init-skill.sh pdf-processor
# bash scripts/init-skill.sh pdf-processor ~/.pi/agent/skills
# bash scripts/init-skill.sh my-tool .pi/skills
#
# Creates:
# <target>/<skill-name>/
# ├── SKILL.md (template with TODOs)
# ├── scripts/ (empty, ready for executable code)
# └── references/ (empty, ready for documentation)
set -euo pipefail
SKILL_NAME="${1:-}"
TARGET_DIR="${2:-.}"
if [[ -z "$SKILL_NAME" ]]; then
echo "Usage: bash init-skill.sh <skill-name> [target-directory]"
echo ""
echo "Skill name must be kebab-case (lowercase, hyphens, digits only)."
exit 1
fi
# Validate skill name
if ! [[ "$SKILL_NAME" =~ ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$ ]]; then
echo "❌ Invalid skill name: '$SKILL_NAME'"
echo " Must be kebab-case: lowercase letters, digits, hyphens."
echo " No leading/trailing hyphens, no consecutive hyphens."
exit 1
fi
if [[ ${#SKILL_NAME} -gt 64 ]]; then
echo "❌ Skill name too long (${#SKILL_NAME} chars, max 64)"
exit 1
fi
SKILL_DIR="$TARGET_DIR/$SKILL_NAME"
if [[ -d "$SKILL_DIR" ]]; then
echo "❌ Directory already exists: $SKILL_DIR"
exit 1
fi
# Create structure
mkdir -p "$SKILL_DIR"/{scripts,references}
# Generate SKILL.md
cat > "$SKILL_DIR/SKILL.md" << 'TEMPLATE'
---
name: SKILL_NAME_PLACEHOLDER
description: >
TODO: What this skill does (1 sentence). Use when [specific trigger
scenarios]. Also triggers on "[phrase 1]", "[phrase 2]", "[phrase 3]".
---
# TODO: Skill Title
TODO: Brief overview (1-2 sentences). What does this skill enable?
## Workflow
### Step 1: TODO
TODO: First major step with specific instructions.
### Step 2: TODO
TODO: Next step. Include error handling for common failures.
## Tips
- TODO: Non-obvious best practices
- TODO: Common mistakes to avoid
TEMPLATE
# Replace placeholder with actual name
if [[ "$(uname)" == "Darwin" ]]; then
sed -i '' "s/SKILL_NAME_PLACEHOLDER/$SKILL_NAME/" "$SKILL_DIR/SKILL.md"
else
sed -i "s/SKILL_NAME_PLACEHOLDER/$SKILL_NAME/" "$SKILL_DIR/SKILL.md"
fi
echo "✅ Skill scaffolded: $SKILL_DIR/"
echo ""
echo " $SKILL_DIR/"
echo " ├── SKILL.md ← edit this (TODOs marked)"
echo " ├── scripts/ ← add executable code"
echo " └── references/ ← add detailed docs"
echo ""
echo "Next: Edit SKILL.md — fill in the description and workflow."
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |