agentleFS
gootfgootf/software-agent-sop/solution-architecture/SKILL.md

solution-architecture

Skill2 starsChanged 2 months agoMITView on GitHub

[discovery-phase pack · scoping] High-level solution design as a discovery deliverable — system context, logical components, data flow, integrations, NFRs (perf/scale/security/SLA), and tech-stack rationale. Not detailed design; feeds estimation and surfaces tech risks. Produces solution-architecture.md. Reads scope-doc.md, mvp-definition.md, risk-assumption-map.md.

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

11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read discovery-context.md (sections 2.

    line 25
  2. Very specific:

    If scope-doc.md is missing, recommend feature-scoping first — architecture without a defined scope drifts into "general platform" territory …

    line 27
  3. Very specific:

    If discovery-context.md is missing, ask inline: "(a) any client-mandated tech constraints (cloud, language, vendor)?

    line 29
  4. Distinctive:

    Write a single system context diagram in text or Mermaid: the system in the middle, actors on one side, external systems on the other.

    line 33
  5. Very specific:

    If any cell is ?, it's either an open question for the client or a research task.

    line 80
  6. Very specific:

    If the client hasn't stated an NFR, state your assumption and tag it [ASSUMED] — don't pretend NFRs don't exist.

    line 99
  7. Distinctive:

    Avoid tech religion. If two stacks are equivalent on the first three, pick the one with cheaper ops.

    line 110
  8. Distinctive:

    If 3+ new HIGH risks appear, the architecture is fragile — loop back, simplify, or escalate to the client.

    line 116
  9. Distinctive:

    If 2+ tests fail, the architecture isn't discovery-ready.

    line 128
  10. Distinctive:

    Hidden integrations: Every line in the system context diagram has cost.

    line 141
  11. Distinctive:

    Skipping operational concerns: No deployment / observability / recovery plan = surprise costs in delivery.

    line 144

“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

Part of the discovery-phase skill pack · scoping group · reads scope-doc.md (run feature-scoping first if missing) and feeds estimation.

Produces a discovery-grade architecture: enough detail to estimate effort, surface technical risks, and explain choices to the client — but not detailed design. Detailed design happens in delivery, not here. Where the BA isn't a tech lead, this skill is best run pair-mode with an architect; otherwise it produces vague boxes-and-arrows.

Step 1 — Read context + scope

Read discovery-context.md (sections 2. Product / Initiative, 6. Constraints, 7. Tech Context), then scope-doc.md (or mvp-definition.md if MVP track), then risk-assumption-map.md.

If scope-doc.md is missing, recommend feature-scoping first — architecture without a defined scope drifts into "general platform" territory and stops being useful for estimation.

If discovery-context.md is missing, ask inline: "(a) any client-mandated tech constraints (cloud, language, vendor)? (b) integration list — what must this connect to? (c) team's existing stack expertise?" — tag unknowns [ASSUMED].

Step 2 — System context (one diagram, in text)

Write a single system context diagram in text or Mermaid: the system in the middle, actors on one side, external systems on the other. This is the C4 "Level 1" view — no internals.

flowchart LR
  user[End User]
  admin[Admin]
  system[<<system under discovery>>]
  payment[Payment Provider]
  crm[Client CRM]

  user --> system
  admin --> system
  system --> payment
  system --> crm

Explicitly state what's out of scope for this system (e.g., "billing UI is consumed from existing client portal, not built here"). Out-of-scope boundaries are where most estimation surprises hide.

Step 3 — Logical components (3-7)

Decompose the system into 3-7 logical components — single-responsibility boxes. For each:

  • Name — <component> (e.g., auth-service, event-ingestion, report-generator)
  • Responsibility — one sentence, one job
  • Owns data? — yes / no / shared
  • Talks to — which other components / external systems
  • New or existing? — building from scratch / extending existing client component / adopting a library

3 = too coarse to estimate, 7+ = pre-mature decomposition. If you need 8+, you're in detailed design — wrong skill.

Step 4 — Critical data flows (top 2-3)

Pick the 2-3 most critical or highest-risk flows and walk through them step by step. Examples:

  • "User submits an order" — synchronous, must be ACID, 99.9% target
  • "Daily reconciliation" — batch, eventually consistent, recoverable
  • "Real-time dashboard update" — event-driven, lossy OK

For each flow, note: sync vs async, failure mode, expected latency / volume. These three properties drive infra cost more than feature count and are usually missing from estimations.

Step 5 — Integrations + auth model

For every external system the architecture touches:

IntegrationDirectionProtocolAuth modelData ownershipRate limits / SLA

If any cell is ?, it's either an open question for the client or a research task. Do not invent rate limits or SLAs — vendor docs are the source of truth.

Auth model gets a separate paragraph: who issues identity, who validates, where session lives, SSO requirements. Auth is the most under-estimated piece in agency proposals.

Step 6 — Non-functional requirements (NFRs)

Concrete, measurable. No "fast", "secure", "scalable" — those are aspirations.

NFRTargetSource
Availability<99.5% / 99.9% / 99.99%>Client-stated or industry standard
Latency (p95)<Xms for action Y>UX requirement or benchmark
Throughput<N rps / M events/sec>Forecast or current peak × growth
Scale ceiling<users / data volume / TPS>Year-1 vs year-3 projections
Security / compliance<SOC2 / GDPR / HIPAA / PCI / none>Regulatory + client policy
Data retention<duration + reason>Compliance + product need
Observability<logs / metrics / traces minimum>Operational requirement
Recovery<RTO / RPO>Business continuity

If the client hasn't stated an NFR, state your assumption and tag it [ASSUMED] — don't pretend NFRs don't exist. Unstated NFRs become contract disputes in delivery.

Step 7 — Tech-stack rationale

For each major choice (language, framework, database, queue, deployment target), write 1-2 sentences of rationale anchored on:

  1. Constraints — client mandate, existing system, regulatory
  2. Team skills — what the agency / client team can actually operate
  3. Fit-for-purpose — why this tech matches the workload (not "it's modern")
  4. Operational cost — license, hosting, ops effort

Avoid tech religion. If two stacks are equivalent on the first three, pick the one with cheaper ops. Always note the alternatives considered and why rejected — this is what a good architecture review looks for.

Step 8 — Risk surface update

Re-read risk-assumption-map.md. Add any new technical risks surfaced during architecture work (e.g., "third-party SLA below our target", "no existing team experience with X"). For each existing tech risk in the map, note whether the proposed architecture mitigates, accepts, or amplifies it.

If 3+ new HIGH risks appear, the architecture is fragile — loop back, simplify, or escalate to the client.

Step 9 — Pressure test (5 checks)

TestQuestionFix
EstimableCan estimation derive effort from this without inventing?Add missing components, NFRs, integrations
Scope-alignedDoes every component map to a scope item? Any orphan boxes?Drop or justify; orphans = scope creep
Constraint-honestRespects client-stated constraints (cloud, vendor, lang)?Re-architect or surface as a contract negotiation
NFR-groundedAre NFRs targets numerical, not aspirational?Replace adjectives with numbers
Risk-linkedDoes it touch every HIGH risk in the assumption map?Mitigate, accept, or amplify each — explicitly

If 2+ tests fail, the architecture isn't discovery-ready. Loop back rather than feeding shaky inputs into estimation.

Step 10 — Write artifact

Output: ./discovery/solution-architecture.md — see ./template.md.

Append to _log.md: [solution-architecture | YYYY-MM-DD] components: <N>; integrations: <M>; nfr_count: <K>; new_risks: <L>; assumed_count: <P>.

Anti-patterns

  • Detailed design. Class diagrams, ORM schemas, API contracts — wrong skill, wrong phase. Discovery architecture is C4 Level 1-2 max.
  • Tech-stack religion. "We always use X" without rationale tied to constraints/skills/fit.
  • Aspirational NFRs. "Fast, secure, scalable" is not an NFR. Numbers or [ASSUMED].
  • Hidden integrations. Every line in the system context diagram has cost. Enumerate or under-estimate.
  • Architecture without scope. Producing this skill before feature-scoping produces "platform diagrams" that never match what's being built.
  • Over-decomposition. 12 microservices in discovery is fan-fiction. Stay coarse.
  • Skipping operational concerns. No deployment / observability / recovery plan = surprise costs in delivery.

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.