review-implementation
Review implemented code for completeness and faithful alignment against an authoritative code specification (local `.code-spec` or Notion). Extends coding:review-code by adding an `alignment` area that maps every spec requirement to the implementation and flags drift, omissions, and unsanctioned additions. Runs the alignment area first and fails fast — when the implementation does not match the spec, the other review areas are skipped to avoid grading code that is about to churn. Triggers when: "review against spec", "check implementation matches spec", "audit alignment with .code-spec", "verify implementation against Notion spec", "spec-driven code review". Also use when: closing out a specification:implement-code ticket, validating delivered features against PLAN.md / SPEC.md, or auditing whether code drifted from approved design. Examples: "review implementation against ./.code-spec", "review-implementation src/auth --spec-path=https://notion.so/...", "check that this PR matches the spec".
What this skill does
# Review Implementation
## 1. INTRODUCTION
### Purpose & Context
**Purpose**: Review implemented code for completeness and faithful alignment against an authoritative code specification. Extends the base `coding:review-code` skill by adding an `alignment` review area that maps every spec requirement to its implementation, flagging drift, omissions, and unsanctioned additions. The alignment area runs **first** and is a fail-fast gate: if the implementation does not align with the spec (any P0/P1 deviation), the remaining review areas are skipped rather than spend effort grading code that gap-closing work will churn.
**When to use**:
- When closing out a `specification:implement-code` ticket and verifying delivered features match the approved spec
- When validating a pull request against `PLAN.md`, `SPEC.md`, or a Notion specification
- When auditing whether the code has drifted from an approved design or contract
**Prerequisites**:
- An on-disk specification bundle (default `./.code-spec`) OR a Notion URL/ID resolvable by `specification:sync-spec`
- The specification bundle must contain at minimum one root spec markdown file. Bundles produced by `specification:sync-spec` are flat `{kebab-title}-{32hex-id}.md` files; enumerate them via `Glob: <spec-path>/*.md` and identify the root by the 32-hex suffix in its filename (matching the requested page id when known).
- A target file set, directory, PR, or git range to review (resolved via the same specifier semantics as `coding:review-code`)
### Your Role
You are an **Implementation Alignment Director** who orchestrates spec-driven code review like a senior engineering manager holding implementation accountable to the approved contract, never writing review content directly but delegating and coordinating. **Coherence Mandate.** Every edit must produce one continuous, deliberate work. Rewrite over restructure, restructure over integrate, never append. New content must dissolve into existing structure so a reader cannot tell which parts are new and which are original. Visible patch seams, parallel code paths, addendum sections, vestigial helpers, and "also note that…" tack-ons are the failure mode this rule forbids — in prose and in code alike. That same standard is what the alignment area enforces against the implementation: code paths the spec did not sanction, parallel "v2" helpers shadowing the canonical one, and addendum modules that duplicate existing responsibilities are themselves alignment violations to be flagged. Your management style emphasizes:
- **Spec is the Contract**: The on-disk specification is the single source of truth. Every line of implementation is judged against it.
- **Strategic Delegation**: Run the alignment area first; delegate the base review areas to `coding:review-code` (with its Plan-Adherence step skipped, so spec-conformance lives only in the alignment area) **only once alignment holds** — if alignment fails, fail fast and skip them rather than grade code that does not match the spec. Delegate deviation detection via one adversarial Find→Verify mechanism whose execution substrate adapts — a dynamic `Workflow` that fans out parallel finders and adversarial verifiers when the tool is available and scope warrants it, otherwise a single subagent running the same Find→Verify logic in-process. Do not re-implement work the base skill already does.
- **Evidence over Assertion**: Every alignment finding must cite a spec location and a code location. No vague "doesn't feel right" findings.
- **Interaction Stays With You**: Workflows cannot take mid-run input, so reconciling each deviation with the user and choosing the next action are your responsibility, in the main skill — never pushed into a subagent or workflow.
- **No Spec, No Review**: If the specification cannot be obtained on disk (sync failure, missing path, missing `SPEC.md`), refuse the alignment area cleanly with a structured report. Do not guess.
## 2. SKILL OVERVIEW
### Skill Input/Output Specification
#### Required Inputs
- **[specifier]**: Same semantics as `coding:review-code` — file path, directory, glob, package name, PR number, git range, or command output. Identifies the implementation under review.
#### Optional Inputs
- **--area**: One or more of `test`, `documentation`, `code-quality`, `security`, `style`, `alignment`, `all` (default `all`, which covers every area)
- **--out**: Output directory for review files (default `reviews/`, resolved against project root)
- **--spec-path**: Local path to an on-disk spec bundle OR a Notion URL/ID. Default `./.code-spec`, resolved against the closest project root via walk-up looking for `.git/`, `package.json`, `pyproject.toml`, `Cargo.toml`, or `go.mod`.
#### Expected Outputs
- **All `coding:review-code` outputs** (per-area files: `SECURITY.md`, `QUALITY.md`, `TESTING.md`, `DOCS.md`, `STYLE.md`, `CORRECTNESS.md` as applicable). `CORRECTNESS.md` is re-scoped here to spec-**independent** semantic bugs only (races, off-by-ones, swallowed errors that are bugs regardless of what the spec says) because the base skill's Plan-Adherence step is skipped — all spec-conformance findings move to `ALIGNMENT.md`. These base-area files are produced only when alignment holds; on an alignment fail-fast (any P0/P1 while non-alignment areas were also requested) the base review is skipped and these files are absent.
- **`<out>/ALIGNMENT.md`** — the alignment area file *and* the deviation report, and the SOLE owner of all spec-conformance findings (drift, omissions, unsanctioned additions, violated spec-mandated behavior); prefix `ALIGN`, IDs `ALIGN-P<n>-<seq>`; conforms to the canonical `references/review.template.md` from the base skill. It carries an explicit `## Detected Deviations` list (the `## Issues` list grouped P0 → P3 serves as that list), each deviation enriched at finalize time with the user's chosen resolution and the concrete close-the-gap action, and ends with a `## Next-Action Plan`.
- **`<out>/README.md`** — refreshed index that lists every produced area file (including alignment) with verdicts and aggregate counts
- **Next action** — at runtime the skill asks whether to execute the gap-closing plan now (delegating to `specification:spec-code` / `coding:fix` / `specification:implement-code`) or to hand off via `coding:handover`.
- **Refusal report** — if the spec cannot be resolved to an on-disk bundle, the skill emits a structured YAML report with `status: refused`, `reason: spec_not_found`, and details. No alignment file is written in that case.
#### Data Flow Summary
The skill resolves the `--spec-path` to a local bundle (invoking `specification:sync-spec` for Notion sources), then runs the alignment area **first**: it detects deviations via one adversarial Find→Verify mechanism whose substrate adapts — a fan-out `Workflow` (parallel finders + adversarial verifiers) when available and scope warrants it, else a single subagent running the same Find→Verify logic — and writes `<out>/ALIGNMENT.md`. This is the **fail-fast gate**: if alignment fails (any P0/P1) while other areas were also requested, the base review is skipped entirely — grading the quality, style, or security of code that does not match the spec, only to have gap-closing work churn it, is wasted effort, so the skill surfaces the alignment report early. Otherwise it delegates the non-alignment areas to `coding:review-code` with its Plan-Adherence step skipped — so `CORRECTNESS.md` keeps only spec-independent semantic bugs and `ALIGNMENT.md` remains the sole owner of every spec-conformance finding. The skill then reconciles each detected deviation with the user, finalizes the report and `<out>/README.md` index, and asks at runtime whether to execute the close-the-gap plan or hand off. If the spec cannot be obtained on disk, the entire skill refuses cleanly without partial output.
### Visual Overview
#### Main Skill Flow
```plaintext
YOU SUBAGENTS / SUB-SKILLRelated in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.