examples
This Claude Code skill is a canonical example demonstrating gold-standard conventions for building multi-agent code review skills. Use it as a reference template when creating new skills, as it illustrates proper structure including persona definition, data shape specifications, constraint documentation, reference material organization, and workflow sequencing with argument binding and conditional routing logic.
git clone --depth 1 https://github.com/rsmdt/the-startup /tmp/examples && cp -r /tmp/examples/plugins/start/skills/writing-skills/examples/canonical- ~/.claude/skills/examplescanonical-skill.md
# Canonical Skill Example: review
A complete skill demonstrating all gold-standard conventions, annotated with convention callouts.
---
```yaml
---
name: review # kebab-case, matches skill directory name
description: Multi-agent code review # trigger-focused, no workflow details
with specialized perspectives
user-invocable: true
argument-hint: "PR number, branch # shown in / menu
name, file path, or 'staged'"
---
# Note: allowed-tools is deprecated — tools are available by default
```
## Persona <!-- PICS: P -->
Act as a code review orchestrator... <!-- role + expertise frame -->
**Review Target**: $ARGUMENTS <!-- binds argument to context -->
## Interface <!-- PICS: I -- data shapes, State included -->
Finding { <!-- data shape with inlined enums (no type aliases) -->
severity: CRITICAL | HIGH | MEDIUM | LOW
confidence: HIGH | MEDIUM | LOW
title: String
location: String
issue: String
fix: String
code_example?: String <!-- ? for optional -->
}
State {
target = $ARGUMENTS
perspectives = [] <!-- populated from reference/perspectives.md -->
mode: Standard | Team <!-- chosen by user in step 2 -->
findings: [Finding] <!-- collected from agents -->
}
## Constraints <!-- PICS: C -- markdown Always/Never lists -->
**Always:**
- Launch ALL applicable review activities simultaneously.
- Every finding must have a specific, implementable fix.
- Provide full file context to reviewers, not just diffs.
**Never:**
- Review code yourself -- always delegate to specialist agents.
- Present findings without actionable fix recommendations.
## Reference Materials <!-- optional, progressive disclosure -->
- reference/perspectives.md -- review perspectives
- reference/output-format.md -- output guidelines
- reference/checklists.md -- security, performance, quality checklists
- reference/classification.md -- severity/confidence definitions
## Workflow <!-- numbered ### headings, not fn definitions -->
### 1. Gather Context
Determine the review target from $ARGUMENTS.
match (target) { <!-- match for 3+ branch routing -->
/^\d+$/ => gh pr diff $target
"staged" => git diff --cached
default => git diff main...$target
}
Retrieve full file contents for context (not just diff).
Read reference/perspectives.md. Determine applicable conditional perspectives:
match (changes) { <!-- conditional perspective activation -->
async/await | Promise => +Concurrency
dependency changes => +Dependencies
}
### 2. Select Mode
Ask the user to choose between:
Standard (default) -- parallel fire-and-forget subagents
Agent Team -- persistent teammates with peer coordination
### 3. Launch Reviews
Launch one subagent per applicable perspective. Provide full file context to each.
### 4. Synthesize Findings
Process findings:
1. Deduplicate overlapping findings by location (within 5 lines).
2. Sort by severity descending, then confidence descending.
3. Assign IDs using pattern `$severityLetter$number` (C1, C2, H1, M1, L1...).
4. Build summary table.
Determine verdict:
verdict = match (criticalCount, highCount, mediumCount) {
(> 0, _, _) => REQUEST CHANGES
(0, 0, 0) => APPROVE
}
### 5. Next Steps
Read reference/output-format.md and present verdict-based options — ask the user to choose.
### Entry Point
match (mode) {
Standard => steps 1, 2, 3, 4, 5
Agent Team => steps 1, 2, 3 (with team), 4, 5
}Context enrichment for agentic AI application development using LangChain, Vercel AI SDK, and assistant-ui. Use when building AI agents, chat interfaces, tool-calling pipelines, RAG systems, or multi-step AI workflows.
Deep-dive codebase analysis that explains how things actually work — business rules, architecture patterns, auth flows, data models, integrations, and performance hotspots. Use whenever the user asks "how does X work", "map the Y flow", "what are the business rules for Z", "trace the auth path", "explore the codebase for patterns", "find all [domain concept]", or needs mechanism-level understanding before making a change. Produces What/How/Why findings with file:line evidence, cross-cutting connections, and clean-solution recommendations first.
REST and GraphQL API design patterns, OpenAPI/Swagger specifications, versioning strategies, and authentication patterns. Use when designing APIs, reviewing API contracts, evaluating API technologies, or implementing API endpoints.
System architecture patterns including monolith, microservices, event-driven, and serverless, with C4 modeling, scalability strategies, and technology selection criteria. Use when designing system architectures, evaluating patterns, or planning scalability.
You MUST use this before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design before implementation.
Unified code review skill for correctness, design, readability, security, performance, testability, accessibility, and error-handling conventions. Use when reviewing changes, enforcing quality standards, or identifying technical debt.
Create or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules.
Systematically diagnose and resolve bugs through conversational investigation and root cause analysis