Guidance for AI coding agents working with this repository.
Note:
CLAUDE.mdis a symlink to this file.
This repo is a Claude Code plugin (d9-skills) and an Agent Skills repository.
.claude-plugin/
plugin.json # Plugin manifest
commands/
skillops.md # /d9-skills:skillops slash command
hooks/
hooks.json # SessionStart briefing + detect-xp reminder hooks
session-briefing.sh
detect-xp-reminder.sh
skills/
{skill-name}/
SKILL.md # Operational skills (12)
skillops/
{skill-name}/
SKILL.md # Pipeline skills (8)
scripts/
verify-skill-structure.mjs
generate-skill-pr-comment.js
Skills follow the Agent Skills Open Standard.
---
name: skill-name # Required. Lowercase, hyphens only. Must match directory name.
description: ... # Required. Max 1024 chars. What + when.
license: MIT # Optional.
metadata: # Optional. Extra fields.
version: "1.0.0"
tags: [tag1, tag2]
session_tokens: 5000 # Tokens consumed in the debugging session
author: anonymous-contributor
source: session-contribution
---Markdown instructions. Recommended sections:
- Purpose — What problem this prevents
- Triggers — When the skill should activate
- Behavior — Step-by-step actions
- Errors Prevented — Real error messages and descriptions
- Restrictions — Hard/soft boundaries
- Self-Check — Checkbox validation list
- Examples — At least 2, including 1 edge case
- Create directory:
mkdir -p skills/{skill-name} - Create
SKILL.mdfollowing the format above - Ensure
namein frontmatter matches the directory name - Open a PR
Skills are typically contributed via the SkillOps pipeline. Run /d9-skills:skillops (or /skillops from the main d9 repo) after a debugging session.
The pipeline skills live in skills/skillops/ and handle the full contribution flow:
- detect-xp — Detect reusable patterns
- match-existing — Compare against existing skills
- anonymize-session — Strip PII and decontextualize
- format-skill — Generate SKILL.md
- refine-skill-design — Quality audit (ASQM >= 17)
- submit-skill — Clone, branch, push, PR
- curate-skills — CI scoring and audit
- discover-skills — Search external catalogs
node scripts/verify-skill-structure.mjs skills/{skill-name}
node scripts/verify-skill-structure.mjs --all