Skip to content

Skills, agents and commands

The pillbox-skills repository contains the skills, agents, and slash commands that extend your AI assistant with Pillbox support and Spec-Driven Development.

ItemTypeWhat it does
pillbox skillSkillTeaches the agent how to use Pillbox MCP tools correctly
sdd skillSkillSDD orchestrator — coordinates the full spec-driven development cycle
code-quality skillSkillQuality bar for all code — hexagonal architecture, clean code, KISS, idiomatic conventions, no hacks
sdd-* agentsAgentsFive sub-agents for project setup, exploration, design, implementation and verification
sdd commandsCommands/sdd:new, /sdd:continue, /sdd:fix, /sdd:explore, /sdd:init, /sdd:status

The Pillbox skill is a usage guide embedded in the agent’s context. It tells the agent when to read context, how to store pills, and when to open or close prescriptions. Without it, the agent can still call MCP tools but will not follow any structured workflow.

The SDD skill is an orchestrator. When you invoke an /sdd:* command, the skill reads the current project state from Pillbox, selects the appropriate phase, and launches the corresponding sub-agents.

SDD sub-agents are specialized agents with narrow responsibilities. The orchestrator hands them pill IDs, not pasted content: each agent reads what it needs from Pillbox, writes its own pills and revises them in place when something changes.

AgentResponsibilityPills (compound)
sdd-initDetects the project stack and saves the project configconfig
sdd-explorerReads the codebase; returns facts, open questions and a suggested tierdiscovery
sdd-designerWrites Given/When/Then specs (only when the change has behaviour rules) and the task batches: file plan, acceptance criteria and verification commandsspecification, task
sdd-implementerWrites the code for one batch, runs the verification commands, records the evidence in the task pill and commits when authorizedrevises task
sdd-verifierIndependently validates the result against specs, tasks and code quality — never fixesfeedback

The orchestrator itself writes two pills: decision (intent, scope, constraints, choices and risks) and summary (the session recap that closes the prescription).

Each agent writes only its own compounds, but reads whatever pills it needs from the others — the designer reads the decision and discovery pills, the implementer reads the task and specification pills, and so on. Corrections revise the existing pill instead of adding a new one, and each domain keeps a single current specification: when a later change rewrites it, the new pill carries Supersedes: #id and the old one is discarded when the cycle closes.

The code-quality skill is the single quality bar of the cycle, rather than imitation of the existing code. Claude Code preloads it into the designer, implementer and verifier; OpenCode agents load it themselves. The designer designs within its architecture, the implementer reviews its own diff against it, and the verifier reports hacks that hide a failure as critical and any other breach as a warning. When the Context7 MCP server is installed, the three of them query it for current documentation instead of guessing an idiom or an API.

  1. The explorer maps the code and returns the open questions.
  2. The orchestrator asks you once — open questions, testing preferences, tier and commit policy — and writes the decision pill.
  3. The designer produces the specs and the task batches. You see one consolidated plan before any code is written.
  4. The implementer runs batch after batch, each one closed by its directed gate. The cycle only stops for a new decision, a failing check or a blocker.
  5. Once every batch is done, the orchestrator orders the full gate once and verifies according to the tier. If you chose to commit at close, it commits, saves the summary pill, discards the specifications this change superseded and closes the prescription.
TierWhenWhat runs
smallUp to three files, understood, no new behaviour rulesDecision with its own short task list, implementer, summary
standardTwo or more meaningful stepsExplorer, decision, designer, implementer, summary
largePhases, migrations, cutover, sensitive areasStandard, with one task pill per batch and the independent verifier

Commits always follow the policy you chose — per batch, at close or none — whatever the tier.

Every batch carries a Gate: line with its directed gate — the tests of the module it touches plus an incremental syntax/type check — and nothing else. The full gate — formatting, static analysis and the entire suite — runs exactly once per change, after the last batch and before verification; only a batch that touches migrations, schema, the build system or a public contract may require it per batch.

Verification is proportional to the tier: small and standard reuse the gate results and spot-check a single command, while large or sensitive changes launch the independent verifier. The verifier still reads the code against the specs, but reuses the recorded full-gate counts and commit instead of re-running the suite — it only re-runs the gate when the change touches migration, schema, security, data loss, a public contract or shared core.

The explorer scans the codebase once per change and stores what it finds in discovery pills; the designer, implementer and verifier then work from those IDs rather than re-exploring, and each batch reads only its decision, the specification of its domain and the active task. Gate runners report a command, a verdict and the counts — never full logs or per-test listings — so detail stays in the pills and never floods the chat.

Every compound has a soft size target below the 5000-character limit of a pill — for example 1500 for discovery, 3500 for decision, 4000 for specification, and 3000 for task at design time, leaving room for the implementer’s evidence. Long content is split by natural unit (one domain, one batch), so each pill stays searchable on its own.

Slash commands are shortcuts into the SDD skill. You invoke them from the chat; the skill takes over from there.

CommandWhat it does
/sdd:new <change name>Starts a cycle: exploration, one round of questions, decision and task plan
/sdd:continue [name]Runs or resumes the implementation batch by batch, then verifies and closes
/sdd:status [name]Shows the current phase and open prescriptions
/sdd:explore <topic>Runs an exploration pass without starting a full cycle
/sdd:fix <bug description>Focused fix for a bounded bug — the small tier of the cycle
/sdd:initInitializes Pillbox in a new project

The pillbox skill is installed by the main Pillbox installer:

Terminal window
pillbox skill install

The full set — pillbox, sdd and code-quality skills, all agents, and all commands — is installed by running the skills installer directly:

Terminal window
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/Kevinsillo/pillbox-skills/main/install.sh | bash
Terminal window
# Windows
irm https://raw.githubusercontent.com/Kevinsillo/pillbox-skills/main/install.ps1 | iex

The script detects installed providers (Claude Code and OpenCode), asks which to target, then copies the files to the correct locations.

ProviderSkillsAgentsCommands
Claude Code~/.claude/skills/~/.claude/agents/~/.claude/commands/
OpenCode~/.config/opencode/skills/~/.config/opencode/agents/~/.config/opencode/commands/