Architecture Primer logo

Architecture Primer

Community
MartinOlivero
architecture-primer

This skill should be used when the user wants to design, plan, or decide the architecture of a system, app, or platform from scratch. Trigger phrases include "how do I structure this", "what architecture should I use", "how does this scale", "monolith or microservices", "what database", "what stack", "design the system", "how do I handle X users". Inspired by the System Design Primer. It runs a discovery phase, applies a decision tree, and outputs concrete architecture decisions with trade-offs.

Overview

PublisherMartinOlivero
Repositorysaas-builder
Skill namearchitecture-primer
Stars
4
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by MartinOlivero on GitHub. Read the source before you install it.

Installation

Install the Architecture Primer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MartinOlivero/saas-builder/tree/main/skills/architecture-primer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MartinOlivero/saas-builder.git /tmp/saas-builder
mkdir -p .claude/skills
cp -r /tmp/saas-builder/skills/architecture-primer .claude/skills/architecture-primer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Architecture Primer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Architecture Primer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Architecture Primer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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).

Message queue

  • Tasks that can run later (emails, notifications, exports) → yes.
  • Spikes that could overwhelm the database → yes (absorb the burst).
  • Everything synchronous and simple → no (added complexity not worth it).

PHASE 3 — Required output

Always deliver these five sections, in this order:

  1. Executive summary — 3 lines, plain language.
  2. Architecture decisions — each as:
    • Decision: what was chosen
    • Why: the reason, tied to a discovery answer
    • Trade-off: what is given up
  3. Recommended stack — concrete tools and services.
  4. Mermaid diagram of the components, e.g.:
  5. Risks and review triggers — what could break, and the concrete signal (e.g. "revisit when writes exceed 500/s" or "split the billing service when the team passes 8 engineers").

Principles that are never violated

  • Do not over-engineer the MVP. The MVP's job is to validate, not to scale.
  • Availability beats perfection. A system that is up and imperfect beats a perfect one that is down.
  • Measure before optimizing. No premature optimization without data.
  • The team matters. The best architecture is the one the team can actually maintain.

Frequently asked questions

What does the Architecture Primer AI skill do?

This skill should be used when the user wants to design, plan, or decide the architecture of a system, app, or platform from scratch. Trigger phrases include "how do I structure this", "what architecture should I use", "how does this scale", "monolith or microservices", "what database", "what stack", "design the system", "how do I handle X users". Inspired by the System Design Primer. It runs a discovery phase, applies a decision tree, and outputs concrete architecture decisions with trade-offs.

Why use Architecture Primer on TypingMind?

Because you install it once and use it with any model. Architecture Primer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Architecture Primer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MartinOlivero/saas-builder/tree/main/skills/architecture-primer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Architecture Primer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Architecture Primer?

As many as you like. As long as a model supports skills, you can use Architecture Primer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Architecture Primer AI skill free?

Yes. It is published on GitHub by MartinOlivero under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇