plugins/patterns/skills/architecture-patterns/SKILL.md
Fundamental patterns for building maintainable, scalable systems: separation of concerns, distributed orchestration, and zero-downtime migration strategies.
npx skillsauth add adaptive-enforcement-lab/claude-skills architecture-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
See the full implementation guide in the source documentation.
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
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
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
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
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
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.
These architectural patterns complement:
Build systems that scale, change, and survive.
documentation
Workload Identity Federation implementation guide. GKE setup, IAM bindings, ServiceAccount configuration, migration from service account keys, and troubleshooting patterns.
development
Secure GitHub Actions trigger patterns for pull requests, forks, and reusable workflows. Preventing privilege escalation and code injection through trigger misconfiguration.
development
Structured framework for evaluating GitHub Actions security before adoption. Trust tiers, risk assessment checklist, and decision tree for action evaluation.
testing
Securely store GitHub App credentials across different environments. GitHub Actions secrets, external CI, Kubernetes, and automated rotation patterns.