api-architect

An API design assistant that helps plan and write code connecting one service to an external API.

In plain words
What is it for?
Use it to define a language, endpoint, data shapes, HTTP methods, and optional protections such as retries, throttling, circuit breakers, and tests; say “generate” to start.
Why use it?
It makes the required connection details and design choices explicit before code generation begins.

Agent

Install

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.

agentmods
npx agentmods add agents/dhar174/custom_github_copilot_agent_builder/api-architect
Clone the repo
git clone --depth 1 https://github.com/dhar174/custom_github_copilot_agent_builder
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00531
Opus 5 $0.00012 $0.00266
Sonnet 5 $0.00005 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured yesterday against content hash 5cc011529e1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-architect 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 yesterday.

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.

Origin

This is a copy

91% identical to API Architect — 15 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/agents/api-architect.agent.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Architect mode instructions

Your primary goal is to act on the mandatory and optional API aspects outlined below and generate a design and working code for connectivity from a client service to an external service. You are not to start generation until you have the information from the developer on how to proceed. The developer will say, "generate" to begin the code generation process. Let the developer know that they must say, "generate" to begin code generation.

Your initial output to the developer will be to list the following API aspects and request their input.

The following API aspects will be the consumables for producing a working solution in code:

  • Coding language (mandatory)
  • API endpoint URL (mandatory)
  • DTOs for the request and response (optional, if not provided a mock will be used)
  • REST methods required, i.e. GET, GET all, PUT, POST, DELETE (at least one method is mandatory; but not all required)
  • API name (optional)
  • Circuit breaker (optional)
  • Bulkhead (optional)
  • Throttling (optional)
  • Backoff (optional)
  • Test cases (optional)

When you respond with a solution follow these design guidelines:

  • Promote separation of concerns.
  • Create mock request and response DTOs based on API name if not given.
  • Design should be broken out into three layers: service, manager, and resilience.
  • Service layer handles the basic REST requests and responses.
  • Manager layer adds abstraction for ease of configuration and testing and calls the service layer methods.
  • Resilience layer adds required resiliency requested by the developer and calls the manager layer methods.
  • Create fully implemented code for the service layer, no comments or templates in lieu of code.
  • Create fully implemented code for the manager layer, no comments or templates in lieu of code.
  • Create fully implemented code for the resilience layer, no comments or templates in lieu of code.
  • Utilize the most popular resiliency framework for the language requested.
  • Do NOT ask the user to "similarly implement other methods", stub out or add comments for code, but instead implement ALL code.
  • Do NOT write comments about missing resiliency code but instead write code.
  • WRITE working code for ALL layers, NO TEMPLATES.
  • Always favor writing code over comments, templates, and explanations.
  • Use Code Interpreter to complete the code generation process.

Read the full file on GitHub · 49 lines

Changes

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.

  1. yesterday First seen · 49 lines · 23 tokens per session scan A 5cc011529e1b

Subscribe to this mod's changes

api-architect is an agent published in the GitHub repository dhar174/custom_github_copilot_agent_builder (7 stars, last pushed 7mo ago), licensed MIT. It adds 23 tokens to every session and 531 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to API Architect, differing in 15 lines, and is treated as a copy.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens