seam-ripper
Ruthlessly analyze architectural seams—the interfaces, boundaries, and contracts between system components—to expose coupling problems, abstraction leaks, and design failures. Use when asked to review architecture, analyze coupling, find interface problems, improve module boundaries, audit dependencies, or redesign system structure. Produces uncompromising redesign proposals that prioritize correctness over backwards compatibility.
What this skill does
# Seam Ripper Systematically dissect a codebase's internal architecture to expose where it's wrong and propose what's right. ## Principles **No sacred cows.** Existing patterns are evidence of past decisions, not correct ones. **Seams reveal truth.** How components connect exposes what the system actually is, not what documentation claims. **Backwards compatibility is not a constraint.** The goal is correct architecture. Migration is a separate problem. **Complexity is guilt until proven innocent.** Every abstraction, indirection, and interface must justify its existence. ## Execution ### Phase 1: Map the Terrain Build a complete picture of the system's internal structure before judging it. 1. **Identify all modules/packages/namespaces** - List every bounded unit of code 2. **Trace import/dependency graphs** - What depends on what, and why 3. **Catalog public interfaces** - Every exported function, class, type, constant 4. **Find the data contracts** - Shared types, DTOs, schemas that cross boundaries 5. **Locate the integration points** - Where modules actually talk to each other Output a dependency map showing: - Module → Module edges with dependency reason - Circular dependencies (immediate red flags) - Fan-in/fan-out counts per module ### Phase 2: Interrogate Each Seam For every boundary identified, answer these questions: **Interface Clarity** - Can you understand what this module does from its public interface alone? - Are there "util" or "helper" exports? (smell: no clear responsibility) - Does the interface expose implementation details? **Dependency Direction** - Does this dependency make conceptual sense? - Is a "lower-level" module depending on a "higher-level" one? - Would inverting this dependency simplify both sides? **Coupling Assessment** - How many other modules break if this interface changes? - Is the coupling through data, behavior, or both? - Could this be an event/message instead of a direct call? **Abstraction Integrity** - Does this interface leak implementation details? - Are callers doing work that belongs inside the module? - Are there multiple ways to accomplish the same thing? **Contract Stability** - How often has this interface changed historically? - Are there versioned interfaces or deprecation warnings? (smell: unstable contract) - Do tests mock this interface? (evidence of coupling pain) ### Phase 3: Identify Patterns of Failure Look for these systemic problems: | Pattern | Symptoms | What's Actually Wrong | |---------|----------|----------------------| | **God Module** | Everything imports it, huge public API | Missing domain boundaries | | **Shotgun Surgery** | One change requires edits across many modules | Responsibility scattered | | **Feature Envy** | Module A constantly reaches into Module B's data | Wrong ownership of data/behavior | | **Inappropriate Intimacy** | Two modules share private details | Should be one module or have explicit contract | | **Middle Man** | Module just delegates to another | Unnecessary indirection | | **Parallel Hierarchies** | Adding X requires adding Y in another module | Missing abstraction | | **Speculative Generality** | Interfaces for flexibility never used | Premature abstraction | | **Dead Abstraction** | Interface with one implementation forever | Abstraction without purpose | ### Phase 4: Propose the Redesign For each significant problem, provide: **1. The Indictment** State clearly what is wrong and why it matters. Be specific: - "Module X has 47 public exports and is imported by 23 other modules" - "The User type is defined in `core` but has fields only used by `billing`" **2. The Correct Architecture** Describe what it should look like: - Clear module boundaries with stated responsibilities - Dependency direction that follows conceptual hierarchy - Interfaces that expose intent, not implementation **3. The Transformation** Concrete steps to get from wrong to right: - What moves where - What gets split or merged - What interfaces change - What new abstractions emerge **4. The Evidence** Explain why this is better: - Reduced coupling (quantify: N imports → M imports) - Clearer responsibilities - Easier to test, extend, or replace ## Output Format ```markdown # Seam Analysis: [System/Area Name] ## Dependency Map [Visual or textual representation of module dependencies] ## Critical Findings ### Finding 1: [Problem Name] **Location:** [modules/files involved] **Severity:** Critical | High | Medium **Pattern:** [which failure pattern] **Evidence:** [Specific code/structure references] **Indictment:** [Clear statement of what's wrong] **Redesign:** [Proposed correct architecture] **Transformation:** 1. [Step] 2. [Step] ... ### Finding 2: ... ## Recommended Architecture [Overall vision for how the system should be structured] ## Transformation Sequence [Ordered list of changes, grouped by logical phases] ``` ## Red Lines Refuse to: - Propose "incremental improvements" that preserve broken architecture - Accept "but it works" as justification for poor design - Recommend adapters/facades that hide problems instead of fixing them - Preserve interfaces just because they're widely used Always: - Name the actual problem, not a symptom - Propose the correct design, not a compromise - Quantify coupling and complexity where possible - Explain the conceptual model that makes the redesign correct
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.