ask-matt
MAmattpocock/skills336k4,217 new stars in the last 7 days
Create, modify, and improve PINA skills. Use when the user wants to create a new skill for PINA development guidance, edit an existing PINA skill, or add cross-tool compatibility (opencode, Claude Code, Codex CLI) to a skill. Covers skill directory structure, SKILL.md front matter conventions, symlinks for Claude Code compatibility, and updating AGENTS.md for Codex CLI.
Important
Read RULES.md before using this skill — it applies to all skills.
Use this skill to create new PINA development skills or modify existing ones.
Each PINA skill lives at .opencode/skills/<name>/SKILL.md and must be made
available to all three tools (opencode, Claude Code, Codex CLI).
A PINA skill is a markdown file with YAML front matter that provides guided
instructions for a specific PINA development task. Skills are auto-discovered
by opencode, symlinked for Claude Code, and discoverable via the root
AGENTS.md for Codex CLI.
.opencode/skills/<name>/
├── SKILL.md (required)
│ ├── YAML front matter (name, description, license, compatibility, metadata)
│ └── Markdown instructions
└── (optional resources)
Understand what the user wants the skill to do:
.opencode/skills/ for related skills. If this skill extends an existing workflow, reference it.Read the existing PINA skills for style and structure. Key patterns:
| File | Purpose | Reference pattern |
|---|---|---|
create-problem/SKILL.md | Entry point, decision tree, templates | Multiple templates per audience, step-by-step flow, checklist |
define-equations/SKILL.md | Equation definition | Zoo reference table, custom signatures, edge cases |
define-domains/SKILL.md | Domain creation | Domain types table, common patterns, discretisation |
condition-setup/SKILL.md | Condition binding | Condition types table, data type options |
Use the same front matter format as existing skills:
---
name: <kebab-case-name>
description: >-
One or two sentences describing when this skill triggers. Include specific
user phrases and contexts that should activate it. Be slightly "pushy" —
err on the side of including near-miss use cases so the skill triggers when
it should.
license: MIT
compatibility: opencode, codex, claude
metadata:
audience: users
workflow: <workflow-name>
---
description is the primary trigger — include when-to-use context that matches real user phrasingOrganise content with progressive disclosure:
# [Title]
> [!IMPORTANT]
> Read [RULES.md](../RULES.md) before using this skill — it applies to all skills.
> (If sub-skill: This is a sub-skill of **parent-skill**. Load the entry-point skill first.)
Use this skill to [concise purpose statement].
## Step 1 — [First step]
...
## Step N — [Last step]
## Templates
...
## Checklist
- [ ] ...
Every new skill must be made available to all three tools. Include this checklist item and guide the user through the steps:
.opencode/skills/<name>/SKILL.md is auto-discovered. No extra step needed.mkdir -p .claude/skills/<name>
ln -sf ../../../.opencode/skills/<name>/SKILL.md .claude/skills/<name>/SKILL.md
mkdir -p .agents/skills/<name>
ln -sf ../../../.opencode/skills/<name>/SKILL.md .agents/skills/<name>/SKILL.md
The relative path ../../../.opencode/skills/<name>/SKILL.md works from both symlink directories (3 .. to root, then into .opencode/).After writing the skill, verify both symlinks resolve:
test -f .claude/skills/<name>/SKILL.md && echo "claude: OK"
test -f .agents/skills/<name>/SKILL.md && echo "codex: OK"
Present the skill to the user for review. Check:
description clearly convey when to use this skill?---
name: my-new-skill
description: >-
Guides users through [task]. Use when the user asks about [topic] or needs
help with [specific problem].
license: MIT
compatibility: opencode, codex, claude
metadata:
audience: users
workflow: my-workflow
---
After creating .opencode/skills/my-new-skill/SKILL.md:
mkdir -p .claude/skills/my-new-skill
ln -sf ../../../.opencode/skills/my-new-skill/SKILL.md .claude/skills/my-new-skill/SKILL.md
mkdir -p .agents/skills/my-new-skill
ln -sf ../../../.opencode/skills/my-new-skill/SKILL.md .agents/skills/my-new-skill/SKILL.md
test -f .claude/skills/my-new-skill/SKILL.md && echo "claude: OK"
test -f .agents/skills/my-new-skill/SKILL.md && echo "codex: OK"
name is kebab-case, unique across .opencode/skills/description front matter includes trigger context (when to use)compatibility: opencode, codex, claude is setmetadata.audience and metadata.workflow are set.claude/skills/<name>/SKILL.md symlink exists and resolves.agents/skills/<name>/SKILL.md symlink exists and resolvesMAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
OBobra/superpowers331k5,030 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days