architecture-boundary-guard
Prevents architecture drift and ensures strict adherence to bounded-context integrity.
Install
mkdir -p .claude/skills/architecture-boundary-guard && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10259" && unzip -o skill.zip -d .claude/skills/architecture-boundary-guard && rm skill.zipInstalls to .claude/skills/architecture-boundary-guard
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Enforce DDD and Hexagonal architecture boundaries for code changes. Use when implementing or reviewing any change that touches module boundaries, ports/adapters, controllers, or repositories.Key capabilities
- →Validate dependency directions between modules
- →Enforce port and adapter usage rules
- →Identify forbidden cross-context imports
- →Verify controller and use-case layering
- →Check mapper and scheduler architectural rules
- →Generate findings with specific file paths
How it works
The tool loads architectural conventions and checks code changes against defined dependency and layering rules. It identifies impacted modules to flag violations of bounded-context integrity.
Inputs & outputs
When to use architecture-boundary-guard
- →Review module boundaries
- →Validate cross-context imports
- →Check controller/use-case layering
About this skill
Purpose
Prevent architecture drift and preserve bounded-context integrity.
Workflow
- Load and apply docs/ai/CONVENTIONS.md, especially sections 1 through 4 and section 8.
- Identify impacted modules and boundaries.
- Validate dependency direction and port usage.
- Flag forbidden cross-context imports.
- Confirm controller/use-case layering.
- Validate mapper, job/scheduler, and Redis rules when touched.
- Run
npm run typecheck, thennpm run test:archwhen boundaries change, to verify hexagonal and cross-module boundary compliance. - Produce findings with concrete file paths.
Inputs
- Target files and diff context.
- docs/ai/CONVENTIONS.md
Outputs
- Boundary compliance summary.
- Violations and corrective actions.
Failure and Escalation
Escalate when business intent conflicts with architecture invariants.
When not to use it
- →When business intent conflicts with architecture invariants
Prerequisites
Limitations
- →Requires explicit architectural conventions in CONVENTIONS.md
How it compares
This tool automates the verification of architectural invariants against specific documentation rather than relying on manual code review.
Compared to similar skills
architecture-boundary-guard side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| architecture-boundary-guard (this skill) | 0 | 3mo | No flags | Intermediate |
| architect-review | 109 | 4mo | No flags | Advanced |
| solid-principles | 57 | 9mo | No flags | Intermediate |
| codex | 32 | 2mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
architect-review
sickn33
Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.
solid-principles
SmidigStorm
Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.
codex
Lucklyric
Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.
error-handling-patterns
wshobson
Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
senior-fullstack
davila7
Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL. Includes project scaffolding, code quality analysis, architecture patterns, and complete tech stack guidance. Use when building new projects, analyzing code quality, implementing design patterns, or setting up development workflows.