architecture-primer

architecture-primer is a skill for Claude Code from MartinOlivero/saas-builder. It costs 111 tokens per session (970 once invoked), scanned A, original, MIT.

A guide for deciding how a software system should be structured, based on its expected users, workload, importance, team, budget, and delivery date.

In plain words
What is it for?
It is for planning a new app or platform, choosing a technical approach, comparing system structures, and deciding how the system should scale.
Why use it?
It turns a vague architecture question into decisions that fit the real needs of the product instead of adding unnecessary complexity.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the saas-builder plugin — 18 skills, 1 hook shipped together

Good fit It is for planning a new app or platform, choosing a technical approach, comparing system structures, and deciding how the system should scale.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martinolivero/saas-builder/architecture-primer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MartinOlivero/saas-builder --skill architecture-primer
Clone the repo
git clone --depth 1 https://github.com/MartinOlivero/saas-builder

Made for: Claude Code.

Or install saas-builder, the plugin that ships this one along with the rest of its 18 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architecture-primer

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinolivero/saas-builder/architecture-primer/github.svg)](https://agentmods.dev/skills/martinolivero/saas-builder/architecture-primer)
Your own site
<a href="https://agentmods.dev/skills/martinolivero/saas-builder/architecture-primer"><img src="https://agentmods.dev/badge/skills/martinolivero/saas-builder/architecture-primer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for architecture-primer

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinolivero/saas-builder/architecture-primer"><img src="https://agentmods.dev/badge/skills/martinolivero/saas-builder/architecture-primer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 970 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.00970
Opus 5 $0.00056 $0.00485
Sonnet 5 $0.00022 $0.00194
Haiku 4.5 $0.00011 $0.00097

Measured 10d ago against content hash 00e3ca5fce80, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

architecture-primer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/architecture-primer/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Architecture Primer

This skill turns a vague "how should I build this?" into concrete, justified architecture decisions. It is based on the System Design Primer, adapted to favor shipping over over-engineering.

Analogy: do not design a 10-lane highway before knowing if 10 cars or 10 million cars will use it. Measure the traffic first, then build the road.

PHASE 1 — Discovery (mandatory before any decision)

Never propose an architecture before completing discovery. Ask questions 2-3 at a time, in plain language, in these three blocks. Skip any question the user already answered.

Block A — Scale

  • How many users do you expect at launch? And in 12 months?
  • Are users in one region or several countries?
  • Is usage steady, or does it spike (e.g. launches, business hours, campaigns)?

Block B — Nature of the system

  • Does it read more than it writes, or the other way around?
  • What happens if it goes down for 1 hour — is it critical?
  • Does the data need immediate consistency, or is a short delay acceptable?

Block C — Context

  • Is there a technical team, or just you?
  • Roughly what monthly infrastructure budget is realistic?
  • When do you need the MVP live?

PHASE 2 — Decision tree

Apply these rules using the discovery answers. Each rule has a default; deviate only with a concrete reason.

Monolith vs Microservices

  • Team under 5 people → monolith, always.
  • MVP or under 6 months to ship → monolith, always.
  • Over 100k daily active users → evaluate microservices for the parts that actually hurt.
  • Rule: start monolith, split when it hurts. Premature microservices add ops cost with no benefit.

SQL vs NoSQL

  • Relational data needing integrity → PostgreSQL.
  • Flexible documents, horizontal scale → MongoDB.
  • Cache / sessions / real-time → Redis.
  • Full-text search → Elasticsearch.
  • Rule: PostgreSQL by default; switch only with a concrete reason.

Cache

  • Same query repeats a lot → Redis.
  • Data that rarely changes but is read often → CDN or Redis.
  • Data unique per user on every request → no cache (it would not hit).

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 85 lines · 111 tokens per session scan A 00e3ca5fce80

Subscribe to this mod's changes

architecture-primer is a skill published in the GitHub repository MartinOlivero/saas-builder (2 stars, last pushed 22d ago), licensed MIT. It adds 111 tokens to every session and 970 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.