Skills architecture
📐

architecture

Safe

Architectural Decision Framework

This skill helps teams make better architectural decisions through structured trade-off analysis and ADR documentation. It provides decision trees, pattern guidance, and templates to document architecture choices with their rationale.

Supports: Claude Codex Code(CC)
📊 70 Adequate
1

Download the skill ZIP

2

Upload in Claude

Go to Settings → Capabilities → Skills → Upload skill

3

Toggle on and start using

Test it

Using "architecture". Help me plan architecture for an MVP e-commerce app with 1 developer

Expected outcome:

For a solo developer MVP, I recommend: Monolith structure with Next.js, Prisma for data access, JWT authentication, PostgreSQL database, Stripe for payments. Trade-offs: limited independent scaling, can extract services later when justified.

Using "architecture". Create ADR for choosing PostgreSQL over MongoDB

Expected outcome:

ADR Template: Context - need reliable transactional data. Options considered: PostgreSQL (ACID, complex queries) vs MongoDB (flexible, horizontal scale). Decision: PostgreSQL. Rationale: E-commerce requires transactional integrity. Trade-offs accepted: Less flexible schema initially.

Security Audit

Safe
v1 • 2/24/2026

All static findings are false positives. The skill is a documentation guide for architectural decision-making. Detected patterns are markdown formatting (backticks), authentication standards (SAML, JWT), and normal decision-making terms (validate). No actual security risks identified.

6
Files scanned
398
Lines analyzed
4
findings
1
Total audits
Medium Risk Issues (1)
Markdown Code Block Delimiters
Static analyzer detected backtick characters in markdown files. These are code block delimiters in documentation, not shell execution.
Low Risk Issues (3)
SAML Authentication Reference
Static analyzer flagged 'SAML' as related to Windows SAM database. SAML is Security Assertion Markup Language, a standard authentication protocol.
JWT Authentication Reference
Static analyzer flagged 'JWT' as weak cryptographic algorithm. JWT is JSON Web Token, a standard authentication mechanism.
Decision Validation Terms
Static analyzer flagged 'validate' as system reconnaissance. These are normal architectural decision validation steps.
Audited by: claude

Quality Score

38
Architecture
100
Maintainability
87
Content
25
Community
94
Security
100
Spec Compliance

What You Can Build

New Project Architecture Planning

When starting a new project, use the skill to determine appropriate architecture based on team size, scale requirements, and timeline constraints.

Documenting Architecture Decisions

When making significant architectural choices, use the ADR templates to record context, options considered, decision rationale, and trade-offs accepted.

Pattern Selection Guidance

When uncertain about which architectural pattern to use, consult the decision trees to evaluate trade-offs between options like monolith vs microservices, REST vs GraphQL.

Try These Prompts

Analyze Requirements for New Project
Help me define the architecture for a new [project type] with [team size] developers, targeting [user scale] users, with a timeline of [timeline]. Budget is [budget constraint]. Use the architecture skill to guide this decision.
Create Architecture Decision Record
Generate an ADR for choosing [technology/pattern] over alternatives. The context involves [problem description]. Consider these constraints: [list constraints]. Use the trade-off analysis framework from the architecture skill.
Evaluate Microservices vs Monolith
Help me decide between microservices and monolith architecture for a [project description] with [team size] developers. What are the trade-offs? When would each approach be justified?
Select Data Access Pattern
What data access pattern would you recommend for a [project type] with [complexity level] data access needs? Consider: team size is [size], testing requirements are [level], data sources include [sources].

Best Practices

  • Start with the simplest architecture that meets current requirements and add complexity only when proven necessary
  • Always document trade-offs - every architecture choice has costs and benefits that should be explicit
  • Use ADRs to capture not just what was decided but why, including constraints that influenced the choice
  • Consider team expertise when choosing patterns - the best pattern is useless if the team cannot maintain it

Avoid

  • Premature microservices - splitting services before team size or scale justifies the complexity
  • Over-abstraction with Clean/Hexagonal architecture when simple CRUD would suffice
  • Choosing CQRS or Event Sourcing without read/write performance evidence showing benefit
  • Ignoring trade-offs - every architectural choice has costs that must be acknowledged

Frequently Asked Questions

When should I use microservices instead of monolith?
Microservices are justified when: team exceeds 10 developers, different components need different scaling, clear domain boundaries exist. Start with modular monolith and extract services when proven necessary.
What is an ADR and why do I need one?
ADR (Architecture Decision Record) documents significant decisions with context, options considered, the choice made, rationale, and trade-offs. It helps future developers understand why the system was designed a certain way.
How do I determine the right architecture for my project?
Start with the project classification matrix: MVP (<1K users, solo dev), SaaS (1K-100K, 2-10 devs), Enterprise (100K+, 10+ devs). Match architecture complexity to actual constraints, not hypothetical future needs.
When should I use the Repository pattern?
Use Repository pattern when: testing requires data source abstraction, multiple data sources exist, or data access logic is complex. For simple CRUD with single database, ORM direct access is simpler and sufficient.
How do I evaluate trade-offs in architecture decisions?
For each option, document: specific pros, specific cons, complexity level, and conditions when that option is valid. Tie decisions to concrete constraints (team size, scale, timeline, budget) rather than abstract best practices.
Can this skill write code for me?
No. This skill provides architectural guidance, decision frameworks, and documentation templates. It does not generate implementation code or modify files. Use it to plan and document before implementation.