Agent skill
architecture-patterns
Fundamental patterns for building maintainable, scalable systems: separation of concerns, distributed orchestration, and zero-downtime migration strategies.
Install this agent skill to your Project
npx add-skill https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/patterns/skills/architecture-patterns
SKILL.md
Architecture Patterns
When to Use This Skill
These patterns govern how systems are structured and how components interact.
Implementation Guide
This guide is part of a modular documentation set. Refer to related guides for complete context.
Implementation
See the full implementation guide in the source documentation.
Techniques
Patterns in This Section
Separation of Concerns
Single-responsibility components with clear boundaries. Orchestration separate from execution. Testability through isolation.
Use when: Building CLIs, microservices, or any system with distinct responsibilities
Key benefit: Maintainability – change one thing without breaking everything
Hub and Spoke
Centralized orchestration with distributed execution. One coordinator, many workers. Event-driven task distribution.
Use when: Scaling workflows, managing distributed systems, event-driven architectures
Key benefit: Scalability – add workers without changing orchestration
Strangler Fig
Incremental migration from legacy systems. Run old and new in parallel. Gradually shift traffic. Zero downtime transitions.
Use when: Replacing monoliths, migrating to new tech, risky system rewrites
Key benefit: Risk reduction – rollback at any point, validate in production
Three-Stage Design
Separate discovery, execution, and reporting phases. Workflows that fail gracefully and report completely.
Use when: Building complex CI/CD workflows, multi-step automation
Key benefit: Observability – always know what happened, even on failure
Matrix Distribution
Parallel processing of multiple targets. Dynamic matrices for scalability.
Use when: Processing many targets, scaling workflows, reducing execution time
Key benefit: Performance – parallel execution instead of sequential
How These Patterns Relate
flowchart TD
A[System Design] --> B[Separation of Concerns]
B --> C[Clear Boundaries]
C --> D[Hub and Spoke]
D --> E[Distributed Execution]
A --> F[Legacy Migration]
F --> G[Strangler Fig]
G --> B
%% Ghostty Hardcore Theme
style A fill:#65d9ef,color:#1b1d1e
style B fill:#a7e22e,color:#1b1d1e
style C fill:#fd971e,color:#1b1d1e
style D fill:#9e6ffe,color:#1b1d1e
style E fill:#a7e22e,color:#1b1d1e
style F fill:#65d9ef,color:#1b1d1e
style G fill:#f92572,color:#1b1d1e
Separation of Concerns provides the foundation. Hub and Spoke scales it. Strangler Fig migrates to it.
Related Patterns
These architectural patterns complement:
- Efficiency Patterns: Idempotency, work avoidance
- Error Handling: Fail fast, graceful degradation
- Argo Workflows: Production workflow orchestration
- Argo Events: Event-driven automation
Build systems that scale, change, and survive.
Related Patterns
- Efficiency Patterns
- Error Handling
- Argo Workflows
- Argo Events
References
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
github-token-permissions-overview
Understanding GITHUB_TOKEN scope, default permissions, and implementing least-privilege principle for GitHub Actions workflows.
secure
Find and fix security issues before they become incidents. Vulnerability scanning, SBOM generation, supply chain security, and secure authentication workflows.
complete-workflow-examples
Copy-paste hardened CI/CD workflows with SHA-pinned actions, minimal GITHUB_TOKEN permissions, OIDC authentication, and comprehensive security scanning for GitHub Actions.
ephemeral-runner-patterns
Disposable runner patterns for GitHub Actions. Container-based, VM-based, and ARC deployment strategies with complete state isolation between jobs.
action-pinning-overview
Why pinning GitHub Actions to SHA-256 commits matters for supply chain security. Attack vectors from unpinned actions and comparison of tag vs SHA pinning.
github-actions-security-patterns-hub
Complete security patterns for GitHub Actions covering action pinning, GITHUB_TOKEN permissions, third-party action risks, secret management, and runner security.
Didn't find tool you were looking for?