④ Build your first custom skill
Goal
Create a reusable custom Skill—for example my-team/commit-message-checker—to enforce your commit-message policy.
Outcome:
- Teammates invoke via
/commit-message-checker - Policy updates propagate in one place
Prerequisites
- Know your team’s rules
- Basic Markdown (+ optional Python)
Steps
Step 1 — Enable skill-maker (~2 minutes)
You’ll answer:
- Trigger scenarios?
- Inputs / outputs?
- External tools?
Step 2 — Generated skeleton (~5 minutes)
Typical layout:
Step 3 — Author SKILL.md (~20 minutes)
Front matter is critical:
Natural-language triggers:
Step 4 — Implement checker (~20 minutes)
tools/check.py:
Step 5 — Contract tests (~10 minutes)
Step 6 — Dry run (~5 minutes)
Expect “violates policy” plus fix hints.
Step 7 — Publish to tenant (~3 minutes)
Teammates see it automatically.
Acceptance checklist
SKILL.mdfront matter completetools/check.pyruns- Contract tests green
- Teammates can call
/commit-message-checker - Captured one real violation caught in the wild