Logotipo de Ai Architect Review

Ai Architect Review

Comunidad
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

Descripción general

Editorfrankxai
Repositorioclaude-skills-library
Nombre de la habilidadai-architect-review
Estrellas
47
Forks
6
Archivos incluidos
1
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 1

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por frankxai en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Ai Architect Review en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/frankxai/claude-skills-library/tree/main/free-skills/ai-architect-review
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Ai Architect Review en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Ai Architect Review automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Ai Architect Review no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Ai Architect Review en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Ai Architect Review está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Ai Architect Review en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/frankxai/claude-skills-library/tree/main/free-skills/ai-architect-review. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Ai Architect Review?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Ai Architect Review?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Ai Architect Review con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Ai Architect Review?

Sí. frankxai la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇