Add a new skill
.agents/skills/<id>/SKILL.md + skills.json
Skills are markdown that AI agents fetch and follow — accuracy matters more than volume. Everything lives in the public Midnight-skills registry.
Today: 42 skills · 10 runnable templates · 5 shared references
Pick what fits — each has one place it lives in the registry.
.agents/skills/<id>/SKILL.md + skills.json
Edit that skill's SKILL.md — fix errors, add gotchas
.agents/skills/midnight-common-errors/errors.json
references/ — provider wiring, gotchas, version pins
templates/<name>/ + templatePath in skills.json
community.skills in skills.json (your own repo)
Clone the registry and run the same checks CI runs.
git clone https://github.com/Kali-Decoder/Midnight-skills.git && cd Midnight-skillsnpm installnpm run sync:registrynpm run validate:registry && npm run check:versionsSTEP 01
Kebab-case id, unique across skills.json. The file lives at .agents/skills/<id>/SKILL.md.
STEP 02
Frontmatter name + a trigger-rich description, a numbered workflow, copy-paste code, a troubleshooting table. Keep it under ~500 lines; move long listings to <skill>/references/.
STEP 03
Add an entry with category, taskHint, routerBullets and short tags. Optionally add it to a learning path.
STEP 04
npm run sync:registry regenerates the router, README tables and package.json. Never hand-edit those blocks — CI fails if they drift.
STEP 05
npm run validate:registry and npm run check:versions — the same checks CI runs on your PR. Version literals must match references/versions.json.
STEP 06
Title it Add skill: … or Update <skill>: …. Say what task it helps with and which network you tested on.
Copy these, then fill them in. tags are the short UI pills; routerBullets are what agents read when choosing a skill.
.agents/skills/your-skill-name/SKILL.md
---
name: your-skill-name
description: >
What this skill does AND when an agent should use it.
Include trigger phrases: "user asks about X", "errors like Y".
---
# Your Skill Title
One-sentence summary of the outcome.
## Workflow
1. First step
2. Second step
## Troubleshooting
| Symptom | Cause | Fix |
|---------|-------|-----|
## Related Skills
| Task | Skill |
|------|-------|
skills.json → skills[]
{
"id": "your-skill-name",
"name": "Your Skill Display Name",
"path": ".agents/skills/your-skill-name/SKILL.md",
"description": "Short description for README and site (1–2 sentences).",
"enabled": true,
"featured": false,
"category": "foundation",
"taskHint": "Short phrase for the router task table",
"tags": ["Compact", "Privacy"],
"routerBullets": ["First bullet for the router index.", "Second bullet."]
}
Live from the registry — pick the category your skill fits.
| Category | Use for | Examples |
|---|---|---|
foundation18 | Concepts, the Compact language, toolchain and protocol references | Midnight Environment Setup, Why Midnight, ZK vs FHE vs MPC |
full-template10 | End-to-end dApp build guides; the most detailed skills | Example Passport Dapp, Android Example Voting, Example Counter |
wallet5 | Browser or headless wallet integration | 1AM Wallet, React Wallet Connector, Dynamic Midnight Wallet |
sdk5 | TypeScript SDK usage — midnight-js, indexer, providers | Multinetwork, Midnight.js, DUST Gas Sponsorship |
domain4 | Specific product patterns — tokens, NFTs, security | Security Checklist, Security, NFT |
Read the full guide, look at how existing skills are written, then open your PR.