Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add tranfu-labs/tranfu-skills --skill agent-architecture-decisiongit clone --depth 1 https://github.com/tranfu-labs/tranfu-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tranfu-labs/tranfu-skills/agent-architecture-decision)<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/agent-architecture-decision"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/agent-architecture-decision/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/agent-architecture-decision"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/agent-architecture-decision.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00196 | $0.02767 |
| Opus 5 | $0.00098 | $0.01384 |
| Sonnet 5 | $0.00039 | $0.00553 |
| Haiku 4.5 | $0.00020 | $0.00277 |
Grade A, and why
agent-architecture-decision scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Architecture Decision
Use this skill to decide whether a project needs agentic architecture and, if so, design the simplest effective workflow, memory/state model, tool-use model, orchestration approach, evaluation gates, and implementation roadmap.
The goal is not to add agents by default. Prefer deterministic workflows, RAG, API pipelines, and ordinary background jobs when they satisfy the product goal with less risk.
This skill must connect recommendations to the concrete project context: vision, target users, current stack, existing modules, data sources, product workflow, deployment shape, and verification constraints.
Run Modes
Choose one mode before acting:
discuss-only: analyze and recommend; output a slimAGENTIC_PACKET(at minimum:mode,agentic_value_hypothesis,recommended_shape,why_not_simpler,why_not_more_complex,rejected_options,open_questions); do not edit files.architecture-packet: produce a completeAGENTIC_PACKET; do not edit files.materialize-docs: produce the completeAGENTIC_PACKETand update architecture or product-control docs only after explicit user approval.implement-slice: produce the completeAGENTIC_PACKETincluding theimplementationblock, then implement a bounded first slice only after the Implementation Gate passes.
If the user only asks for analysis, default to discuss-only. If the user says "execute" after an architecture packet, first state the file/action plan and only edit after ALL Implementation Gate conditions are true.
Workflow
CREATE A TODO LIST FOR THE TASKS BELOW:
- Parse the request and choose a run mode. If the requested outcome is ambiguous, ask one focused question and stop.
- Verify read access to the project root, project docs, source tree, tests, and agent rules. If the project cannot be read but the conversation already provides project context inline → continue in
discuss-onlymode using the inline context and mark every claim not verified against the repo asunverified. If neither a readable project nor inline context exists → report a blocker and stop. - Inspect existing project docs, architecture notes, source tree, AI/provider code, data flow, tests, and agent rules before making claims.
- Identify current deterministic workflows, RAG paths, tool/API integrations, persistence, memory, and deployment constraints.
- Decide whether agentic behavior is necessary by comparing against non-agentic baselines. If a non-agentic workflow is sufficient → set
recommended_shapeto that non-agentic option (Architecture Selection shape 1 or 2), skip step 7, and apply steps 8–12 to the selected workflow; otherwise → continue to step 6. - Map the product workflow into deterministic steps, AI-assisted steps, tool calls, state transitions, and human checkpoints.
- Select the simplest fitting agentic shape.
- Recommend a technical stack that respects existing project constraints and current official or primary-source docs.
- Define state, memory, tool, orchestration, safety, and evaluation boundaries.
- Produce the
AGENTIC_PACKETrequired by the selected mode (slim fordiscuss-only, complete for all other modes), evaluation gates, and explicitunverified_items. - If implementation is explicitly requested, produce an implementation plan and verification matrix before editing.
- Output the selected mode, recommended shape, rejected alternatives, first safe next step, and any blockers; then stop.
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 423 B
- assets/icon.png 688 B
- assets/icon.svg 431 B
- README.md 5.3 KB
- README.zh.md 5.0 KB
- references/architecture-patterns.md 2.9 KB
- references/evaluation-gates.md 1.9 KB
- references/memory-and-state.md 2.2 KB
- references/orchestration-selection.md 2.3 KB
- references/technical-stack-and-workflow.md 4.3 KB
- references/tool-use-and-safety.md 2.2 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 240 lines · 196 tokens per session scan A c17937c76ed2
agent-architecture-decision is a skill published in the GitHub repository tranfu-labs/tranfu-skills (2 stars, last pushed 2d ago), licensed MIT. It adds 196 tokens to every session and 2,767 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…