Logo: Architecture Decisions

Architecture Decisions

Communautéit
UnpaidAttention
architecture-decisions

Choose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, follow the existing pattern without deliberation.

Iwwersiicht

EditeurUnpaidAttention
Repositoryfable5-methodology
Skill-Nummarchitecture-decisions
Stären
94
Forks
21
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnpaidAttention huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Architecture Decisions an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/architecture-decisions
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/architecture-decisions .claude/skills/architecture-decisions
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Architecture Decisions an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Architecture Decisions automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Architecture Decisions net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Architecture Decisions

Pick between approaches quickly, with an explicit priority order, weighted by how expensive the decision is to reverse.

Step 1: Check for a decision to make at all

Grep the codebase for how this problem is already solved here (existing cache? existing error envelope? existing job runner?). If an established pattern exists, use it — consistency with the system beats a locally better choice. Only proceed to Step 2 when the problem is genuinely new to this codebase or the existing pattern demonstrably fails a hard requirement.

Step 2: Generate 2–3 candidates, no more

For each candidate write three lines:

  1. Mechanism, one sentence.
  2. Worst failure mode — what happens when the dependency is down, input is malformed, load spikes.
  3. What it makes hard later — the concrete thing, not "less flexible".

If you have more than three candidates, you haven't understood the constraints; re-read them.

Step 3: Apply the trade-off priority order

Earlier beats later unless the user explicitly reorders:

  1. Correctness on known inputs — including the edge cases this data will actually contain.
  2. Failure behavior — prefer designs that fail loudly, early, and partially over silently, late, and totally.
  3. Simplicity / reviewability — could a competent stranger understand it in one read?
  4. Consistency with the existing system.
  5. Extensibility — only for axes of change with concrete evidence (a second case exists or is scheduled). Speculative flexibility loses to simplicity, always.
  6. Performance — only past correctness, and only where measured or obviously hot (per-request loop, O(n²) on unbounded n, I/O inside a loop). No restructuring without a number.

Kill any candidate that fails a hard constraint (correctness, explicit user requirement). Among survivors, take the simplest that doesn't foreclose a known future need.

Step 4: Calibrate deliberation to reversibility

  • Switching later costs < 1 hour → pick the more conventional option NOW and move on. Close calls between good options don't matter; record the choice in one line.
  • Switching later means data migration, breaking API consumers, or redone work measured in days → slow down; if the user's context could change the answer, ask one batched question with your recommendation as the default.

Step 5: Dependency sub-decision

Adding a dependency IS an architecture decision. In order:

  1. Stdlib or an already-installed dependency does it (check the lockfile, not memory)? → use that.
  2. Hand-rolled version is <~50 lines with no tricky edges? → hand-roll. Never hand-roll dates/timezones, crypto, unicode handling, or parsing of established formats — these are always tricky.
  3. Otherwise: one boring, widely-used, maintained, license-compatible library. Never a framework to use one function.

Step 6: Abstraction sub-decision

Introduce an interface/base class/plugin point only when two concrete cases already exist or a second is actually scheduled. One implementation → write the direct version and leave a one-line note naming the upgrade path. When you break any default pattern, leave a comment naming the constraint that forced it — the constraint, not a narration.

Default patterns (use unless codebase or user overrides)

  • Pure logic at the core; I/O (network, disk, DB, clock, randomness) at the edges, passed in.
  • Errors via the language's native mechanism; fail fast on programmer errors; contextualize expected failures; never catch-and-continue silently.
  • Persistence invariants live in the database (constraints, unique indexes, FKs), not only in app code.
  • Validate at trust boundaries; trust internally.
  • Composition over inheritance; functions over classes when no state is carried.

Worked example

Task: "Products API is slow; add caching to product lookups."

  • Step 1: grep finds redis in the lockfile, used for sessions. Candidate space narrows.
  • Candidates: (A) Redis cache-aside, TTL 5 min. (B) In-process LRU per instance. (C) Materialized view refreshed on write.
  • Failure modes: A — stale up to TTL; Redis outage degrades to DB (fine). B — inconsistent across instances after writes (there are 4 instances → correctness problem for post-update reads). C — write amplification, and the write path is owned by another team (hard constraint).
  • Kill C (constraint), kill B (fails correctness at priority 1 given multi-instance writes).
  • Choose A. Reversibility: swapping cache strategy later ≈ an hour → decide now, no user question needed. Record: "Cache-aside via existing Redis, TTL 5m, key product:{id}, invalidated on update."

Done when

The chosen approach is written in 1–3 lines (mechanism, key parameters, why-over-runner-up), every rejected candidate has a named reason tied to the priority order or a hard constraint, and any expensive-to-reverse decision has either user sign-off or a stated assumption at delivery. Then implement.

Heefeg gestallte Froen

Wat mécht de KI-Skill Architecture Decisions?

Choose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, foll...

Firwat Architecture Decisions op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Architecture Decisions besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Architecture Decisions an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/architecture-decisions an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Architecture Decisions benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Architecture Decisions benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Architecture Decisions domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Architecture Decisions gratis?

UnpaidAttention huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇