architecture-patterns
Skill3 starsChanged 8 days agoMITView on GitHub
Use for architecture design decisions: service boundaries, monolith vs microservices, layering, dependency injection, module contracts, and integration patterns.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- gopalparashar421/agent-skillstheir own version, first seen Nov 8, 2026
- The-AIOS/aiostheir own version, first seen Nov 3, 2026
- b-mendoza/agent-skillstheir own version, first seen Nov 1, 2026
- damacus/agent-skillstheir own version, first seen Nov 1, 2026
- Luckycat133/gemini-web-mcptheir own version, first seen Oct 15, 2026
- xfstudio/skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use python-resource-management, error-handling-patterns and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Aver005Skillpython-resource-management
Python resource management with context managers, cleanup patterns, and streaming. Use when managing connections, file handles, implementing cleanup logic, or building streaming responses with accumulated state.
Also in 3 projects that use this
xfstudioSkillerror-handling-patterns
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.
Also in 6 projects that use this
CodeWithBehnamSkillpython-type-safety
Python type safety with type hints, generics, protocols, and strict type checking. Use when adding type annotations, implementing generic classes, defining structural interfaces, or configuring mypy/pyright.
Also in 3 projects that use this
xfstudioSkillpython-testing-patterns
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
Also in 6 projects that use this
Aver005Skillpython-project-structure
Python project organization, module architecture, and public API design. Use when setting up new projects, organizing modules, defining public interfaces with __all__, or planning directory layouts.
Also in 3 projects that use this
AJBcodingSkillpython-performance-optimization
Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.
Also in 4 projects that use this
- +2 more from Aver005
- +4 more from xfstudio
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- The-AIOS/aios★ 105same name
- nilecui/SkillsBase★ 27same name
- garrettw/php-arch-skills★ 13same name
- wpank/ai★ 11same name
- xfstudio/skills★ 9same name
- AhmedHabiba/architor★ 6same name
- HK-hub/AgentSkills★ 6same name
- nicholyx/ai-skills★ 6same name
- GPTtang/skill-atlas★ 4same name
- nek1987/auto-agent-harness★ 4same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- analyze-projectSkill
- api-contract-strategySkill
- close-changeSkill
- design-changeSkill
- development-standardsSkill
- docker-multiarch-buildSkill
- error-patternsSkill
- go-guidelinesSkill
- herdr-implementSkill
- implement-changeSkill
- logging-standardsSkill
- lua-guidelinesSkill
- organize-docsSkill
- output-stylesSkill
- plan-changeSkill
- powershell-guidelinesSkill
- python-guidelinesSkill
- review-changeSkill
- review-designSkill
- review-implementationSkill
- review-planSkill
- routeros-scripting-guidelinesSkill
- runtime-diagnosisSkill
- security-guardrailsSkill
- shell-guidelinesSkill
- skill-authoringSkill
- skill-minerSkill
- skills-routingSkill
- smart-commitSkill
- sops-age-guardrailsSkill
- sync-truthSkill
- testing-strategySkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 30 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read references/architecture-pattern-catalog.md for the pattern families relevant to the proven constraint.
- Distinctive: line 22
Prefer an existing boundary or a reversible local extension when it satisfies the approved goal.
- Distinctive: line 25
Treat security, compliance, data-loss, and externally mandated reliability requirements as hard constraints rather than optional benefits …
- Very specific: line 30
When shaping module interfaces, test seams, domain terminology, or caller contracts, read references/interface-and-domain-language.md.
- Very specific: line 32
When the decision concerns handlers, services, repositories, framework isolation, inward dependency direction, or cross-boundary tests, …
- Distinctive: line 34
Keep interfaces small and behavior-bearing, and create seams for proven variation or caller-visible test contracts.
“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture Pattern Selection
Choose the smallest sufficient architecture justified by current demand, a constrained resource, ownership, and an observable upgrade trigger. Treat patterns as options with lifecycle costs.
Selection Workflow
- State the protected behavior, current demand evidence, constrained resource, hard requirements, and decision horizon.
- For a new or materially changed persisted architecture boundary, read
references/architecture-decision-economics.mdand compare the status quo, the smallest sufficient option, and a structural investment. - Read
references/architecture-pattern-catalog.mdfor the pattern families relevant to the proven constraint. - Define the selected option's relevant dependency direction, state and data ownership, caller contracts, and evidence. Detail the failure containment, rollout, or recovery dimensions the boundary actually exercises.
- Record the chosen option, material rejected alternatives, lifecycle-cost owner, and observable upgrade trigger.
Selection Rules
- Choose a maintainable option for the declared decision horizon, and add a larger pattern when its trigger is observed while delay preserves a safe migration path. Apply
development-standards(Business Feedback Before Supporting Machinery) for sequencing a thin real business path ahead of support machinery. - Introduce richer domain models, layers, or coordination for actual rules and coupling; simple use cases stay direct.
- Prefer an existing boundary or a reversible local extension when it satisfies the approved goal.
- Require demand or constraint evidence before adding distribution, asynchronous coordination, new infrastructure, speculative seams, or independent operational surfaces.
- Assign operational cost and decision authority to an explicit owner, place responsibility where the repository, team, runtime, language, or provider ecosystem has the lowest relative opportunity cost, and call out costs shifted to callers, operators, or future maintainers.
- Treat security, compliance, data-loss, and externally mandated reliability requirements as hard constraints rather than optional benefits in a scorecard.
- Decide with causal evidence, explicit discard reasons, and measurable triggers.
Interface And Domain Boundaries
When shaping module interfaces, test seams, domain terminology, or caller contracts, read references/interface-and-domain-language.md.
When the decision concerns handlers, services, repositories, framework isolation, inward dependency direction, or cross-boundary tests, read references/clean-boundaries.md.
Keep interfaces small and behavior-bearing, and create seams for proven variation or caller-visible test contracts.
Decision Result
When this skill owns an architecture decision, lead with the selected option and show only the evidence for why it fits current demand and the constrained resource, why simpler and more structural alternatives were rejected or deferred, who owns state, failure handling, lifecycle cost, and future evolution, which executable oracle protects the boundary, and what observable trigger justifies the next increment.
Reuse Before Taking Ownership
For a material open choice at a boundary, run the reuse check in design-change (Design) and development-standards (Local Dependency Selection) first. This Skill owns the boundary and economic comparison that follow: identify the missing responsibility, prefer a thin integration over duplicating mature state, protocol, or lifecycle machinery, and compare total lifecycle cost in references/architecture-decision-economics.md. Bespoke work may win on demonstrated reliability, licensing or platform fit, integration, or performance; state the actual gap and ownership tradeoff, after checking the project, host, and ecosystem for the capability.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

