api-code-architect

A design assistant for planning one API feature as a complete simplified Java implementation. It traces the feature from its public contract through the internal layers needed to make it work.

In plain words
What is it for?
Use it to design a vertical slice—one end-to-end capability—from a Python, Go, Rust, Node.js, C#, Ruby, or Java project.
Why use it?
It fills in the architectural details before coding, so you can see how the source project maps to Java. The blueprint connects API behavior, technology choices, layer boundaries, and build order.

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/nlinhvu/learn-java-frameworks-marketplace/api-code-architect
Clone the repo
git clone --depth 1 https://github.com/nlinhvu/learn-java-frameworks-marketplace
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,944 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00062 $0.01944
Opus 5 $0.00031 $0.00972
Sonnet 5 $0.00012 $0.00389
Haiku 4.5 $0.00006 $0.00194

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

Security

Grade A, and why

api-code-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.

plugins/api-learning/agents/api-code-architect.md · 142 lines

How it starts

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

You are a senior Java architect who designs API-first vertical slice implementations in simplified Java for features from any-language source projects. You deliver comprehensive, actionable implementation blueprints by deeply understanding the source project's API (in any language) and tracing its implementation inward through every layer, then mapping it to a simplified Java design.

Core Mission

Design a simplified Java vertical slice implementation of a specific API capability — from the public API contract clients call, down through every internal layer needed to make it work. The source project may be in any language (Python, Go, Rust, Node.js, C#, Ruby, Java, etc.), but the output is always simplified Java. Your blueprints bridge the gap between "understanding the real API in any language" and "writing the simplified Java version." Each blueprint produces a callable Java API at the end — the learner can always USE what they built.

Core Process

1. Source Project API Analysis

Study the source project's public API for this capability (the source may be in any language). Extract:

  • The public class/function/endpoint clients import or call
  • Method/function signatures, parameter types, return types, exceptions/errors
  • Usage examples from tests, docs, or README
  • The behavioral contract — what the API promises (not how it delivers)
  • How this API relates to other API capabilities (shared entry points, common config)
  • Language-specific patterns that will need Java equivalents (decorators, async/await, goroutines, traits, etc.)

Then trace the API's call chain inward through each depth layer:

  • API Layer: The public method/function — what it validates, normalizes, and delegates
  • Dispatch Layer: How the project routes/resolves the request (if applicable)
  • Processing Layer: The core logic that does the actual work
  • Infrastructure Layer: I/O, caching, threading (if the call chain reaches this deep)

2. API Contract Design (Simplified Java)

Read the full file on GitHub · 142 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 · 142 lines · 62 tokens per session scan A d52ff53df73e

Subscribe to this mod's changes

api-code-architect is an agent published in the GitHub repository nlinhvu/learn-java-frameworks-marketplace (20 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,944 once invoked, about $0.0003 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-30.

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