agentleFS
patonkikhpatonkikh/APES/skills/architecture/solution-architecture/skill.md

solution-architecture

Skill3 starsChanged 4 months agoMITView on GitHub

Design a solution architecture from PRD and constraints: identify components, integration patterns, technology options, and quality attribute trade-offs. Use when working on solution architecture documents, component models.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document rejected alternatives (supports future ADRs).

    line 115
  2. Distinctive:

    Prefer simplest architecture that meets NFRs (YAGNI).

    line 117

“Common” is measured: kept by at least 6 in 10 of the 6 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Solution Architecture

Purpose

Design a solution architecture from PRD and constraints: identify components, integration patterns, technology options, and quality attribute trade-offs.

Input: PRD or requirements, NFRs, constraints (cloud, team, budget, compliance)
Output: Solution Architecture document with component model, integration view, and technology recommendations
References: See references.md for domain cheat sheets. Examples: See examples.md for worked input/output.


Workflow

Step 1: Extract architectural drivers

From input, identify:

  • Functional capabilities (from FRs)
  • Quality attributes (performance, security, scalability, availability, maintainability)
  • Constraints (must-use tech, regulatory, timeline, team skills)
  • Assumptions and unknowns

Step 2: Define architectural principles

Establish 3–5 decision principles for this solution:

  • Example: "Prefer managed services over self-hosted for MVP"
  • Example: "Event-driven for async workflows; sync API for user-facing reads"

Each principle must guide trade-off decisions.

Step 3: Propose logical component model

Decompose into logical components:

ComponentResponsibilityInterfaces

Group by capability, not by team or org chart.

Step 4: Select integration patterns

For each component interaction, specify:

  • Pattern: sync REST, async messaging, event bus, batch, shared DB (discourage)
  • Data flow direction
  • Failure handling approach

Step 5: Evaluate technology options

For each major component, provide 2–3 options with trade-off table:

| Option | Pros | Cons | Fit score |

Recommend one option with rationale tied to architectural drivers.

Step 6: Document risks and open decisions

List architectural risks and decisions requiring ADR.

Step 7: Validate

Run Validation checklist.


Decision Rules

ConditionAction
No PRD or requirementsStop; request PRD or run product/prd-generator
NFRs missingAdd minimum NFRs (security, availability, performance) before design
Single obvious architectureStill document rejected alternatives with rationale
Constraint conflicts with recommendationFlag conflict; present compliant alternative
Premature technology choice in PRDSeparate product requirements from architecture decisions

Validation

  • Architectural drivers documented (FRs + NFRs + constraints)
  • 3–5 architectural principles defined
  • Component model covers all Must-have FRs
  • Integration pattern specified for each interaction
  • Technology options include trade-off rationale
  • Risks and open decisions listed
  • No implementation code or detailed API specs (defer to api-designer)

Anti-patterns

  • Big ball of mud — single monolithic component without boundaries.
  • Resume-driven architecture — choosing tech for novelty, not drivers.
  • Shared database integration — components coupled through one DB without justification.
  • Ignoring NFRs — functional-only architecture.
  • Copy-paste reference architecture — applying microservices without scale justification.

Best Practices

  • Align with C4 model progression: solution → context → container.
  • Document rejected alternatives (supports future ADRs).
  • Map each component to FR IDs for traceability.
  • Prefer simplest architecture that meets NFRs (YAGNI).
  • Flag decisions needing ADR before implementation.

Output Structure

# Solution Architecture: [System Name]

## Architectural Drivers
| Driver | Source | Priority |
|--------|--------|----------|

## Principles
| # | Principle | Implication |
|---|-----------|-------------|

## Component Model
| Component | Responsibility | FRs covered |
|-----------|----------------|-------------|

## Integration View
| From | To | Pattern | Data | Failure handling |
|------|----|---------|------|------------------|

## Technology Recommendations
| Component | Recommended | Alternatives | Rationale |
|-----------|-------------|--------------|-----------|

## Quality Attribute Analysis
| Attribute | Approach | Risk |
|-----------|----------|------|

## Open Decisions
| Decision | Options | Recommended ADR |
|----------|---------|-----------------|

## Risks
| Risk | Impact | Mitigation |
|------|--------|------------|

Next Skills

OutcomeRecommended Skill
Document context diagramarchitecture/system-context-builder
Design APIsarchitecture/api-designer
Record key decisionsarchitecture/adr-generator
Review architecturearchitecture/architecture-review
PRD missingproduct/prd-generator

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.