pre-commit-review
ADVISORY validation of code against design principles that linters cannot enforce. Loaded by go-code-reviewer agent for design analysis guidance. Also invoked by @refactoring (after pattern application). Can be manually invoked for standalone code review. Categorizes findings as Design Debt, Readability Debt, or Polish Opportunities. Does NOT block commits.
What this skill does
<objective> Expert design analysis that detects issues linters can't catch. Returns detailed report to caller with categorized findings and fix recommendations. **Pure Analysis & Reporting** - Generates report, doesn't fix anything or invoke skills. **Reference**: See `reference.md` for complete detection checklist with examples. **Examples**: See `examples.md` for real-world review scenarios. </objective> <quick_start> 1. **Read files** under review (all staged or specific files) 2. **Check package sizes** — normally surfaced automatically by the plugin's PostToolUse hook (`hooks/check-package-sizes.sh`). For review-only sessions (no recent edits), count non-test `.go` files per touched directory: red (≥13) → Design Debt; yellow (8–12) → Polish. 3. **Apply design principles** checklist from reference.md (LLM reasoning) 4. **Search usage patterns** with Grep tool 5. **Categorize findings**: Bugs, Design Debt, Readability Debt, Polish 6. **Generate structured report** with file:line locations and fix recommendations 7. **Return report** to caller (no fixes, no skill invocations) </quick_start> <input_output> <input> - Files to review (specific files or all staged changes) - Review mode: `full` (first run) or `incremental` (subsequent runs) - Previous findings (optional, for incremental mode) - Context (invoked by refactoring, orchestrator, subagent, or user) </input> <output> - Structured report with categorized findings - Each finding: `file:line`, issue, why it matters, fix strategy, effort estimate - Prioritized by impact and effort - Format: Parseable for combined analysis (when invoked by orchestrator) </output> </input_output> <invocation_modes> <direct_skill_invocation context="User or Orchestrator"> - Full control, can invoke other skills - Can make changes based on findings - Interactive mode with user feedback </direct_skill_invocation> <subagent_mode context="Task tool with go-code-reviewer"> - Read-only analysis, returns report only - Cannot invoke other skills - Used for parallel execution by orchestrator - Designed for speed and focused analysis </subagent_mode> </invocation_modes> <who_invokes> 1. **go-code-reviewer agent** - Loads this skill for design analysis guidance during parallel quality analysis 2. **@refactoring skill** - After applying patterns, validates design quality remains high 3. **User** - Manual code review before commit </who_invokes> <detection_capabilities> **What Reviewer Detects (That Linters Can't):** - Primitive obsession (with juiciness scoring) - Unstorified functions (mixed abstraction levels) - Missing domain concepts (implicit types that should be explicit) - Non-self-validating types (defensive code in methods, reliance on upstream validation, re-validation of composed types) - Poor comment quality (explaining what instead of why) - File structure issues (too long, too many types) - Package size zone violations: surfaced automatically by the plugin's PostToolUse hook after edits. Thresholds: ≥13 non-test `.go` files at one directory level = red (Design Debt, hard gate); 8–12 = yellow (Polish, review before adding the next file). For review-only sessions where no edit has fired the hook, verify manually before reporting. When a violation is reported, apply the 3-step design review: (1) does the package name reflect a real-world domain concept — not a role or container? (2) are there big structs with disjoint method sets or primitive-obsession fields hiding new types? (3) only after that review, decide whether to extract sub-packages, new leaf types, or both. - Generic package extraction opportunities - Design bugs (nil deref, ignored errors, resource leaks) - Test quality (weak assertions, missing use cases, mock overuse, conditionals in tests) **Division of Labor:** - **Linter handles**: Complexity metrics, line counts, formatting, syntax - **Reviewer handles**: Design patterns, domain modeling, conceptual issues See [reference.md](./reference.md) for complete detection checklist with examples. </detection_capabilities> <workflow> <full_review_mode context="First Run"> 1. Read all files under review (using Read tool) 2. Check package sizes: the plugin's PostToolUse hook surfaces yellow/red zones automatically after edits; for review-only sessions, count non-test `.go` files per touched directory. Red (≥13) → Design Debt finding. Yellow (8–12) → Polish finding. 3. Apply design principles checklist from reference.md (LLM reasoning) 4. Search for usage patterns across codebase (using Grep tool) 5. Categorize findings: - Bugs (nil deref, ignored errors, resource leaks) - Design Debt (types, architecture, validation) - Readability Debt (abstraction, flow, clarity) - Polish (naming, docs, minor improvements) 6. Generate structured report with recommendations 7. Return report to caller (doesn't invoke other skills or make fixes) </full_review_mode> <incremental_review_mode context="Subsequent Runs"> Used after fixes have been applied to verify resolution and detect new issues. 1. Read ONLY changed files since last review (using git diff) 2. Compare against previous findings: - Mark resolved issues as Fixed - Identify issues that still exist 3. Analyze changed code for NEW issues introduced by fixes 4. Generate delta report: - Fixed: Issues from previous run that are now resolved - Remaining: Issues that still need attention - New: Issues introduced by recent changes 5. Return concise delta report (not full analysis) **When to Use Incremental Mode:** - After @refactoring skill applies fixes - During iterative fix loop in Phase 4 of autopilot workflow - User requests re-review after making changes **Benefits:** - Faster execution (only analyzes changed files) - Clear feedback on what was fixed vs what remains - Detects regressions introduced by fixes </incremental_review_mode> </workflow> <detection_approach> **LLM-Powered Analysis** (not AST parsing or metrics calculation): The reviewer reads code like a senior developer and applies design principles: - Reads files with Read tool - Searches patterns with Grep tool (find usages, duplications) - Applies checklist from reference.md using LLM reasoning - Pattern matches against anti-patterns - Counts occurrences and calculates juiciness scores - Generates findings with specific locations and fix guidance </detection_approach> <report_format> <full_report context="First Run"> ``` 📊 CODE REVIEW REPORT Scope: [files reviewed] Mode: FULL SUMMARY Total findings: 18 🐛 Bugs: 2 (fix immediately) 🔴 Design Debt: 5 (fix before commit) 🟡 Readability Debt: 8 (improves maintainability) 🟢 Polish: 3 (nice to have) Estimated fix effort: 3.5 hours [Detailed findings by category] [Recommendations by priority] [Skills to use for fixes] ``` </full_report> <incremental_report context="Subsequent Runs"> ``` 📊 CODE REVIEW DELTA REPORT Scope: [changed files only] Mode: INCREMENTAL SUMMARY ✅ Fixed: 4 (resolved from previous run) ⚠️ Remaining: 2 (still need attention) 🆕 New: 1 (introduced by recent changes) [Detailed delta findings] ``` </incremental_report> <structured_output context="For Orchestrator Parsing"> When invoked as subagent for combined analysis, output follows strict format: ``` 🐛 BUGS ──────────────────────────────────────────────── file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant] 🔴 DESIGN DEBT ──────────────────────────────────────────────── file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant] 🟡 READABILITY DEBT ──────────────────────────────────────────────── file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant] 🟢 POLISH ──────────────────────────────────────────────── file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant] ``` **Effort Estimates:** - **Trivial**: <5 minutes (extract constant, rename varia
Related 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.