architecture-patterns – Coding skill for AI agents
Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.
Install the architecture-patterns skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/architecture-patterns-4a69c.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /architecture-patterns – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/architecture-patterns-4a69c.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $architecture-patterns – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/architecture-patterns-4a69c.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /architecture-patterns – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/architecture-patterns-4a69c.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /architecture-patterns – then describe the task you want done.
SKILL.md content
Architecture Patterns
Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.
Use this skill when
- Designing new backend systems from scratch
- Refactoring monolithic applications for better maintainability
- Establishing architecture standards for your team
- Migrating from tightly coupled to loosely coupled architectures
- Implementing domain-driven design principles
- Creating testable and mockable codebases
- Planning microservices decomposition
Do not use this skill when
- You only need small, localized refactors
- The system is primarily frontend with no backend architecture changes
- You need implementation details without architectural design
Instructions
1. Clarify domain boundaries, constraints, and scalability targets.
2. Select an architecture pattern that fits the domain complexity.
3. Define module boundaries, interfaces, and dependency rules.
4. Provide migration steps and validation checks.
5. For failure-sensitive workflows, compare transactions/outbox, explicit sagas and a suitable durable-execution framework. Persisted workflow state can aid recovery, but external side effects still need idempotency, reconciliation and compensation; assess operational complexity and existing infrastructure before selecting a product.
Refer to resources/implementation-playbook.md for detailed patterns, checklists, and templates.
Related Skills
Works well with: event-sourcing-architect, saga-orchestration, workflow-automation, dbos-*
Resources
resources/implementation-playbook.mdfor detailed patterns, checklists, and templates.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
- architecture-review – Review repository architecture using Ontoly Software Graph and MCP capabilities. Use…
- fastapi-templates – Create production-ready FastAPI projects with async patterns, dependency injection, and…
- chief-ai-officer-advisor – Chief AI Officer advisory for startups: model build-vs-buy decisions (API vs fine-tune…
- chief-ai-officer-advisor – Chief AI Officer advisory for startups: model build-vs-buy decisions (API vs fine-tune…
- ask-copilot – Use GitHub Copilot CLI in non-interactive mode to ask questions, review code, or…
- ask-human-expert – Ask real executives and domain experts a question through Instant Expert for a written…
- git-advanced-workflows – Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and…
- github-actions-templates – Create production-ready GitHub Actions workflows for automated testing, building, and…