thermo-nuclear-architecture-review
Run an extremely strict architecture and system design review for coupling, boundary violations, dependency direction, layering, and structural decay. Use for a thermo-nuclear architecture review, thermonuclear system design audit, or especially harsh architecture review.
What this skill does
# Thermo-Nuclear Architecture Review Use this skill for an unusually strict architecture and system design review. Do not merely check that layers exist. Actively hunt for architectural decay: coupling that makes changes expensive, boundaries that leak, dependencies that point the wrong way, and abstractions that serve no one. Above all, this skill should push the reviewer to be **ambitious** about system structure. Do not stop at "this module has too many dependencies." Look for systemic design problems: places where the architecture fights the domain, where changes require coordinated edits across distant modules, where adding a simple feature requires understanding the whole system. ## Core Prompt Start from this baseline: > Perform a deep architecture review of the current branch's changes. > Evaluate how the change fits into the existing system structure. > Identify coupling, boundary violations, wrong-way dependencies, and structural decay. > Be extremely thorough and rigorous. Architecture debt compounds. Fix it now or pay more later. ## Non-Negotiable Architecture Standards 0. **Dependencies must point inward. Stable dependencies. Stable abstractions.** - Business logic must not depend on infrastructure details. - Domain types must not import framework types. - Core modules must not import from peripheral modules. - Flag any import from a higher-level module into a lower-level module. - Flag any circular dependency, no matter how "small." 1. **Boundaries must be explicit and enforced.** - Every module boundary should be visible in the directory structure. - Cross-boundary communication goes through defined interfaces, not shared state. - Flag any place where one module reaches into another module's internals. - Flag any "convenience" import that bypasses a module's public API. - If two modules share a database table, that's a coupling problem, not a convenience. 2. **Changes should be local. If they're not, the architecture is wrong.** - Adding a field to a domain concept should not require changes in 10 files. - Adding a new variant of something should not require modifying existing code (OCP). - A bug in one feature should not be fixable only by editing a shared module. - Flag any change that requires coordinated edits across 3+ modules — that's a design smell. 3. **Abstractions must earn their keep.** - Every interface, abstract class, or wrapper must have at least two implementations or a clear future second implementation. - An abstraction with one implementation is indirection without benefit. - A pass-through layer (controller → service → repository where the service just calls the repo) is waste. - Flag any abstraction that exists "for future flexibility" without a concrete second use case. 4. **Coupling must be measured and minimized.** - Flag any module imported by more than 10 other modules — it's a god module. - Flag any module that imports more than 15 other modules — it knows too much. - Flag any pair of modules that import each other — circular coupling. - Flag any module that changes every sprint — it's a coupling hotspot. 5. **Data ownership must be clear.** - Every piece of state has exactly one owner. Shared mutable state is a finding. - Every table has exactly one writing service/module. Multiple writers is a finding. - Every concept lives in exactly one module. Duplication across modules is a finding. - Flag any data that is "owned by everyone" — that means no one owns it. 6. **Error handling must match the boundary.** - Internal errors are structured types, not strings. - Boundary errors are translated to the boundary's protocol (HTTP status, API error code). - Flag any internal error that leaks through a boundary without translation. - Flag any catch block that swallows errors silently. 7. **The architecture must serve the domain, not the framework.** - Domain logic must not be coupled to framework lifecycle hooks. - Business rules must not live in middleware or interceptors. - Flag any place where the domain shape is distorted to fit the framework. - The framework is a detail. The domain is the core. ## Primary Architecture Questions For every meaningful change, ask: - Does this change require coordinated edits across modules? How many? - Does this import cross a boundary? In the right direction? - Does this introduce shared mutable state? - Does this add a dependency to a god module? - Does this create or deepen circular coupling? - Is the new code in the right module, or is it convenience-driven placement? - Does this abstraction have (or will it have) more than one implementation? - Does this change the ownership of any data? - Would this change be easier if the architecture were cleaner? - Will the next person understand where this code lives and why? ## What to Flag Aggressively - Circular imports between modules. - Domain types importing infrastructure types (database, HTTP, framework). - A module that is imported everywhere (god module). - A module that imports everything (know-it-all module). - Shared mutable state across module boundaries. - Multiple modules writing to the same table or state. - Pass-through layers that add no logic. - Abstractions with exactly one implementation and no planned second. - Business logic in controllers, middleware, or framework hooks. - Changes that require editing 5+ files for a single concept. - "Utility" modules that become dumping grounds for unrelated functions. - Configuration or environment logic scattered across modules instead of centralized. - Error types that cross boundaries without translation. ## Preferred Remedies - Move the code to the module that owns the concept. - Replace the abstraction with direct calls until a second implementation is real. - Introduce an interface at the boundary to invert the dependency. - Extract shared logic into a module that both depend on (not one into the other). - Make the change local by restructuring ownership. - Delete the pass-through layer. - Consolidate the god module into focused sub-modules. - Make data ownership explicit with a single writer. Do not be satisfied with "the tests pass" when adding a feature requires touching 8 files. Do not be satisfied with "it's in a service layer" when the service is just a proxy to the repository. ## Review Tone Be direct, serious, and demanding about architecture. Architecture debt doesn't show up in tests — it shows up in velocity and bug rates months later. If the change is fighting the architecture, say so. If the architecture is making simple things hard, say that clearly. Good phrases: - `this domain type imports the ORM decorator. the domain now depends on the database. invert this dependency.` - `adding a field to this entity requires changes in 6 files across 3 modules. the architecture is fighting the domain.` - `this module is imported by 23 other modules. it's a god module. decompose it.` - `this interface has one implementation. this is indirection without benefit. remove the abstraction or show the second use case.` - `this service layer just calls the repository. it adds nothing. delete it and call the repo directly, or put real logic here.` - `these two modules import each other. that's circular coupling. extract the shared dependency.` - `this change puts business logic in a middleware. middleware is infrastructure. move the logic to the domain module.` ## Output Expectations Prioritize findings in this order: 1. Circular dependencies and wrong-way imports 2. God modules and coupling hotspots 3. Boundary violations and leaked internals 4. Shared mutable state and unclear data ownership 5. Unnecessary abstractions and pass-through layers 6. Domain-framework coupling 7. Structural decay that makes changes non-local Do not flood the review with minor naming nits if there are systemic coupling problems. A single circular dependency between co
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.