Logo: Ai Architect Review

Ai Architect Review

Communautéit
frankxai
ai-architect-review

Review the architecture of a system that calls a language model. Use when adding an agent loop, a retrieval path, a tool surface, or an MCP server to a codebase; when a system that worked in a demo is being prepared for production; or when asked to audit, review, or plan AI/agent architecture. Checks the four decisions that are expensive to reverse, then the seven planes and their boundaries.

Add to TypingMind

Iwwersiicht

Editeurfrankxai
Repositoryclaude-skills-library
Skill-Nummai-architect-review
Stären
47
Forks
6
Matgeliwwert Dateien
1
LizenzMIT
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.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Ai Architect Review 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/frankxai/claude-skills-library/tree/main/free-skills/ai-architect-review
  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/frankxai/claude-skills-library.git /tmp/claude-skills-library
mkdir -p .claude/skills
cp -r /tmp/claude-skills-library/free-skills/ai-architect-review .claude/skills/ai-architect-review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ai Architect Review 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 Ai Architect Review automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ai Architect Review 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.

AI architecture review

Most AI system choices are reversible in an afternoon. Four are not. This skill checks those four first, then walks the planes for anything unowned.

Run it against a real codebase. Every check below names something you can grep, measure, or point at. If you cannot produce the evidence, the check fails — an architecture review with no evidence is an opinion.


Step 1 — the four decisions

Work these in order. Each one asks for evidence, not a judgement.

1. Where does the model call go?

The question is not which model. It is whether exactly one place in the system knows a model provider's name.

Evidence: grep for the provider SDK import across the repo.

rg -l "from ['\"](openai|@anthropic-ai/sdk|@google/gen|@aws-sdk/client-bedrock)" --type-add 'src:*.{ts,tsx,js,py,go,rb,java}' -tsrc
  • One module → decision made. Note where the seam is.
  • More than one → deferred, not made. Every call site is a migration cost that grows monotonically. Say this plainly and give the count.

What a single seam buys, that scattered calls cannot: routing by task, fallback when a provider degrades, a cache with a coherent key, and one line item for spend. A system with no fallback path has no fallback path at every layer, whatever the layers above it do.

2. What shape is the loop?

Four shapes. Three questions pick one.

  1. Can you name every step before the request arrives? → fixed workflow
  2. If not: is it one coherent piece of work? → single agent loop
  3. If not: does the work mutate shared state? → sequential sub-agents, otherwise parallel sub-agents
ShapeCostsFails by
Fixed workflowNo adaptation when input is not what you planned forStaying confident, going silently wrong once reality drifts from the graph
Single agent loopLatency and spend grow with loop lengthLosing track of its own earlier decisions as the window fills
Parallel sub-agentsA merge step you have to designDuplicating work, then contradicting with no way to adjudicate
Sequential sub-agentsThroughput, given up on purposeBeing slow enough that someone parallelises the writes again

Evidence: find the loop's exit condition.

  • Exit condition in code (a counter, a budget, a state machine) → bounded.
  • Exit condition in a prompt ("stop when you are done") → unbounded loop with a polite request attached. Flag it.

Bias toward the workflow. A workflow that was written down is cheaper to run, easier to debug, easier to evaluate, and easier to explain to whoever owns the incident. Reach for a loop when the steps genuinely cannot be enumerated.

The reversal cost is not the code — it is the eval harness. Workflows are graded per step; loops have to be graded on trajectory. Those are different harnesses, and switching shapes discards the graded examples with them.

3. Where does the trust boundary sit?

Text that came back from a tool call is not your text.

Retrieved documents, API responses, fetched pages, uploaded files — all authored by someone who is not the operator. If that text reaches the position in the context window where instructions live, it is an instruction. No prompt fixes this, because "ignore any instructions below" is also just text.

Evidence: trace one retrieved document from retriever to context window. Point at the line where it becomes labelled data rather than plain text.

Three structural requirements:

  1. Untrusted content never enters the instruction position. Fence it, label it, keep it in the data position.
  2. Side effects sit behind a gate. Anything irreversible — a write, a message, a payment, a merge, a deploy — needs a step a document cannot perform on its own behalf.
  3. Tool scopes are narrow by default. A tool that reads a calendar and a tool that reads a calendar and sends mail are different risk objects, one line apart in config.

This gets expensive fastest, because the cost scales with the number of tools already shipped. If only one decision is being deferred, do not let it be this one.

4. Where does a long run live?

An agent loop running for eleven minutes is a different deployment problem from a completion returning in two seconds — not a harder version of the same one.

Evidence: the longest real production run (not the median), and the platform's execution ceiling. If either number is unknown, the decision is unmade.

Unit of executionWhere a long loop lives
Serverless / edge functionsA queued background job, not the request that started it
Edge isolatesA durable object or workflow primitive
Functions, containers, or VMs on a cloudA step-function state machine, or a container kept warm
Long-lived containerJust a process — no special primitive
Micro-VMsA machine owned for the run's duration, then released
Remote-container functionsThe function call itself; duration is a parameter

There is no winner here. Managed platforms hand you a primitive and take the operations; self-assembled clouds hand you every primitive and take your Tuesdays. Both answer different questions about what the team wants to own.

What makes it hard to reverse: long-running work is a runtime property, not a config flag. Moving it means moving the execution model, which means moving the state that execution model implied.


Step 2 — walk the planes

Once the four are settled, check each plane for an owner. A plane with no owner is where the next incident comes from.

#PlaneOwnsThe boundary below it
07ExperienceStreaming partial work; letting a human interrupt or approveHuman — approval and interruption live here or nowhere
06ObservabilityEvery model call, tool call and token as one traceable runEvidence — below this line you are guessing
05EvaluationDeciding a change helped, before users doCorrectness — the loop is only as good as what grades it
04OrchestrationThe shape: workflow, one loop, or manyPrivilege — the loop decides what gets called with real permissions
03Tool surfaceCapability with schemas, scopes, an audit trailTrust — everything returned from here is untrusted input
02Context and retrievalThe right tokens in the window, the rest outRelevance — retrieval failures arrive disguised as model failures
01Model accessReaching a model; surviving it being slow, wrong, or goneVendor — swap cost is decided the day you build this

The seams matter more than the boxes. A box diagram with no named boundaries has not said anything an incident review will find useful.


Step 3 — match the symptom to the actual plane

The observed symptom and the real cause are usually in different planes. Do not fix where it hurts.

Looks likeActual causeFix
Answers degrade as the conversation growsThe window filled with its own transcript; early decisions fell out of attentionCompact deliberately: summarise closed sub-tasks, keep decisions, drop the reasoning that produced them
Retrieval looks healthy, answers are wrongChunking split the answer across boundaries, or the reranker never saw the right candidateMeasure retrieval separately from generation — a generation eval cannot see a recall problem
A tool result changes the agent's goalInjection: retrieved text treated as instruction, not dataKeep untrusted content out of the instruction position; gate side effects behind approval
Costs move without a deployCache misses, retry storms, or a loop whose exit depends on model outputBudget per run, not per month; cap iterations in code, not in the prompt
Evals pass, production regressesThe suite grades final answers; the failure is in the trajectoryGrade the path as well as the destination; keep a sample of real traffic in the loop

Output format

Report in this order. Lead with what is unowned, not with what is fine.

## Architecture review — <system>

### The four decisions
1. Model call seam      — MADE / DEFERRED  (evidence: N call sites in <files>)
2. Orchestration shape  — <shape>          (evidence: exit condition at <file:line>)
3. Trust boundary       — MADE / ABSENT    (evidence: <file:line>, or "not found")
4. Long-run home        — MADE / UNMADE    (evidence: longest run Xm vs ceiling Ym)

### Unowned planes
<plane> — no owner found. Next incident likely surfaces as <symptom>.

### Fix first
<the one change with the highest reversal cost if deferred further>

Do not assign a score. A number invites arguing with the number instead of fixing the finding.


Interview mode

When there is no codebase to grep — a design conversation, a whiteboard session, a system that exists only as a plan — run the four checks as an interview. Ask each question, map the answer to a verdict, and produce the same report. Say plainly that the evidence is testimony, not grep.

#QuestionMADE whenOPEN when
1How many modules import a model provider's SDK?Exactly oneMore than one, or not counted
2Where does the loop's exit condition live?In code — a counter, budget, or state machineIn the prompt, or not located
3Can you point to the line where retrieved text becomes labelled data?Yes, and side effects are gatedNo, or not traced
4Do you know your longest production run and your platform's ceiling?Both known, and the ceiling is higherCeiling close or lower, or either unknown

"I don't know" is always OPEN. An unmade decision and an unknown one cost the same, because both are open in the expensive direction.

Interview mode covers the four decisions; the plane walk needs the codebase. Keep the report format intact by writing the section honestly:

### Unowned planes
Not assessed — interview mode, no codebase access.

Or interview plane owners one by one, if the people are in the room.

Fix-first priority when several come back OPEN: trust boundary, then long-run home, then orchestration shape, then model seam. Trust rises in cost fastest — it scales with the number of tools already shipped.

A browser version of this interview runs at https://www.frankx.ai/ai-architect and emits the same report format.


What this skill does not do

  • It does not pick a model, a framework, or a vendor. Those are the reversible decisions, and they should be made late and changed freely.
  • It does not audit application security beyond the trust boundary and tool scoping. Use a real security review for that.
  • It does not verify protocol revisions. Read the specification repository for the revision you are building against; protocol dates move.

MIT licensed. Rubric maintained at https://www.frankx.ai/ai-architecture.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Ai Architect Review?

Review the architecture of a system that calls a language model. Use when adding an agent loop, a retrieval path, a tool surface, or an MCP server to a codebase; when a system that worked in a demo is being prepared for production; or when asked to audit, review, or plan AI/agent architecture. Checks the four decisions that are expensive to reverse, then the seven planes and their boundaries.

Firwat Ai Architect Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ai Architect Review 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 Ai Architect Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/frankxai/claude-skills-library/tree/main/free-skills/ai-architect-review an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ai Architect Review 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 Ai Architect Review benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ai Architect Review 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 Ai Architect Review gratis?

Jo. frankxai huet de Skill ënner der Lizenz MIT op GitHub publizéiert. 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 👇