Claude Code Plugin Reference (night-market edition)
An author-facing reference for how Claude Code plugins, skills, commands, agents, and hooks actually behave, with verified contracts and re-verification commands.
Dev & CodingAdvanced★ 339⑂ 36AI score 8/10Last updated: Sep 24, 2026
What it does
- Documents manifest fields (
plugin.json,metadata.json,openpackage.yml,marketplace.json) and the local rules layered on them. - Spells out the SKILL.md frontmatter contract: 160-char description cap,
roletaxonomy, hub-and-spoke progressive loading, required Exit Criteria section. - Covers hook mechanics in depth: register only in
hooks/hooks.json, read the payload from stdin JSON (neverCLAUDE_TOOL_*env vars), per-event verdict JSON shapes, timeout budgets, and plugin-cache execution constraints. - Lists Python 3.9 host-interpreter landmines (
datetime.UTC, bare unions, unguarded third-party imports) with the correct alternatives. - Ends with a checklist plus shell commands to re-verify every volatile claim.
Who it's for
- Developers authoring or debugging Claude Code plugins, skills, and hooks.
- Anyone chasing a hook that silently no-ops or gets killed by a timeout.
- Contributors to the claude-night-market repo, where most of these conventions are enforced by ratchets and CI.
Examples
- A PreToolUse hook never blocks: check it parses stdin JSON and emits
permissionDecisionas exactly allow/deny/ask. - Adding a new skill: verify it's in the plugin's
skillsarray, description ≤160 chars, and has an## Exit Criteriasection before committing. - A hook shelling out to a subprocess: assert in a test that the internal timeout is strictly less than the timeout registered in
hooks.json.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/athola/claude-night-market/HEAD/.claude/skills/claude-code-plugin-reference/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/claude-code-plugin-reference folder from the GitHub repo athola/claude-night-market into my ~/.claude/skills/claude-code-plugin-reference/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/athola/claude-night-market.git && mkdir -p ~/.claude/skills && cp -r claude-night-market/.claude/skills/claude-code-plugin-reference ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and cd into a folder where you keep source checkouts.
- Clone the repo:
git clone https://github.com/athola/claude-night-market.git - Make sure the skills folder exists:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r claude-night-market/.claude/skills/claude-code-plugin-reference ~/.claude/skills/ - Restart Claude Code, then ask something like "I'm writing a plugin hook — what are the rules?" to trigger the skill.
- Optional: to run the verification commands in the document, execute them from the cloned repo root, since they reference repo-local paths.
View source on GitHub ↗License: MIT