claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
Applies layered n-tier architecture with enforced boundaries. Use when designing moderate systems needing clear presentation, domain, and persistence layers.
Claude Code
$ npx -y skills add athola/claude-night-market --skill architecture-paradigm-layered --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill architecture-paradigm-layered -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill architecture-paradigm-layered -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill architecture-paradigm-layered -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill architecture-paradigm-layered -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill architecture-paradigm-layered -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill architecture-paradigm-layered -a windsurf -y
name: architecture-paradigm-layered description: Applies layered n-tier architecture with enforced boundaries. Use when designing moderate systems needing clear presentation, domain, and persistence layers. alwaysApply: false category: architectural-pattern tags: - architecture - layered - n-tier - separation-of-concerns - monolith dependencies: [] tools: [] usage_patterns: - paradigm-implementation - legacy-system-modernization - team-structure-alignment - compliance-requirements complexity: low estimated_tokens: 700
1. **Define the Layers**: Establish a clear set of layers. A common stack includes: Presentation -> Application/Service -> Domain -> Data Access. 2. **Enforce Dependency Direction**: Code in a given layer may only depend on the layer immediately below it. Forbid any "upward" dependencies or imports. 3. **Centralize Cross-Cutting Concerns**: Implement concerns like logging, authentication, and validation as centralized middleware or policies, rather than duplicating this logic in each layer. 4. **Test Each Layer Appropriately**: Apply testing strategies suitable for each layer, such as unit tests for the domain layer, service-layer tests for orchestration logic, and integration tests for persistence adapters. 5. **Document and Enforce Interactions**: Maintain up-to-date dependency diagrams and use automated architecture tests to prevent developers from creating "shortcut" dependencies that violate the layering rules.
**Layer Implementation Patterns**:
**Architecture Enforcement Tools**:
**Common Layer Stacks**:
**Enterprise ERP Systems**: SAP and Oracle ERP use layered architecture to separate user interfaces from business logic and database operations, enabling different frontend applications to share the same business rules.
**Banking Applications**: Financial institutions employ layered architecture to maintain strict separation between customer-facing interfaces, transaction processing, and secure data storage for regulatory compliance.
**E-commerce Platforms**: Traditional e-commerce sites use layered architecture to separate product catalogs, shopping cart logic, order processing, and payment handling into distinct layers.
Vocabulary for the tools and abstractions an implementation of this paradigm tends to carry. Not dependencies, and not ``tools:`` frontmatter.
per layer, allowed dependency direction, and the policy for cross-layer exceptions.
stated layer boundaries.
and fail the build on any upward dependency.
policy and are not duplicated across layer implementations.
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.