Logo Ai Architect Review

Ai Architect Review

Cộng đồng
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

Tổng quan

Nhà phát hànhfrankxai
Kho mãclaude-skills-library
Tên kỹ năngai-architect-review
Sao
47
Bản fork
6
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được frankxai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ai Architect Review trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/frankxai/claude-skills-library/tree/main/free-skills/ai-architect-review
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ai Architect Review trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ai Architect Review ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ai Architect Review với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ai Architect Review làm được gì?

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.

Vì sao nên dùng Ai Architect Review trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ai Architect Review là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ai Architect Review trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/frankxai/claude-skills-library/tree/main/free-skills/ai-architect-review. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ai Architect Review?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ai Architect Review với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ai Architect Review với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ai Architect Review có miễn phí không?

Có. Kỹ năng này được frankxai phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇