stoa: Instructions file for Claude Code

CLAUDE.md

stoa CLAUDE.md is an instructions file for Claude Code from stoa-platform/stoa. It costs 3,379 tokens per session, scanned B, original, Apache-2.0.

Project instructions for STOA Platform, an open-source API management system that connects traditional APIs to AI agents. They describe its architecture and its Universal API Contract, the main definition of how an API operation is exposed.

In plain words
What is it for?
Use them when changing API contracts, MCP tool generation, agent-facing metadata, or related smoke tests in the STOA repository.
Why use it?
They give coding agents the project’s rules for designing, exposing, and testing API operations consistently.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is stoa-platform/stoa's own configuration. It tells Claude Code how to work on stoa itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything stoa configures →

Reuse

Borrowing it

Nothing to install: this file belongs to stoa-platform/stoa. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/stoa-platform/stoa/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/stoa-platform/stoa

Made for: Claude Code.

Wrote 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.

agentmods badge for stoa CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stoa-platform/stoa/claude-md/github.svg)](https://agentmods.dev/instructions/stoa-platform/stoa/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/stoa-platform/stoa/claude-md"><img src="https://agentmods.dev/badge/instructions/stoa-platform/stoa/claude-md/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.

agentmods 80×15 button for stoa CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/stoa-platform/stoa/claude-md"><img src="https://agentmods.dev/badge/instructions/stoa-platform/stoa/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,379 This file is loaded in full into every session.
When invoked 3,379 The same file — it is already loaded in full.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03379 $0.03379
Opus 5.5 $0.01352 $0.01352
Sonnet 5.5 $0.00676 $0.00676
Haiku 4.5 $0.00338 $0.00338

Measured 8d ago against content hash 6850d3392ffc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

stoa CLAUDE.md scanned grade B with 2 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Règles binaires GO/NOGO. Détail on-demand dans `.claude/docs/<rule>.md`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- stoactl > curl/bash. Lire `.claude/context/cli-reference.md` avant de scanner src/.
CLAUDE.md · 230 lines

How it starts

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

CLAUDE.md — STOA Platform

Project

STOA Platform — "The European Agent Gateway"

  • API Management AI-Native Open Source (Apache 2.0)
  • Kill feature: UAC (Universal API Contract) — "Define Once, Expose Everywhere"
  • Legacy-to-MCP Bridge: connect traditional APIs to AI agents

UAC / Agent Contract Doctrine

Canonical rule from ADR-067:

UAC describes.
MCP projects.
Smoke proves.

For any API operation exposed to agents:

  • UAC is the primary product contract; MCP tools are projections of UAC operations.
  • LLM metadata is endpoint-level, not contract-level.
  • V1: missing endpoint.llm metadata is a warning/review note; malformed metadata is an error.
  • V2 target: new MCP-exposed endpoints must be LLM-ready before merge.
  • side_effects=destructive requires requires_human_approval=true.
  • A feature exposed to an agent should not exist only in code; it must be attached to a UAC operation or flow contract.

Load .claude/docs/uac-llm-ready.md when touching UAC schemas, UAC examples, MCP tool generation, smoke tests for MCP projections, or API operations exposed to agents.

Architecture

CONTROL PLANE (Cloud)                    DATA PLANE (On-Premise)
┌────────────────────────────┐           ┌──────────────────────┐
│ Portal  Console  API  Auth │  ←sync→   │ STOA GW webMethods   │
│ (React) (React) (Py) (KC) │           │ (Rust)  Kong/Envoy   │
└────────────────────────────┘           └──────────────────────┘

Components

Component Tech Path
Control Plane API Python 3.11, FastAPI, SQLAlchemy control-plane-api/
Console UI React 19, TypeScript, Keycloak-js control-plane-ui/
Developer Portal React, Vite, TypeScript portal/
STOA Gateway Rust, Tokio, axum stoa-gateway/
STOA Go (stoactl + stoa-connect) Go 1.25, Cobra, keyring stoa-go/
CLI (legacy) Python, Typer, Rich cli/
E2E Tests Playwright, BDD, Gherkin e2e/
Helm Chart Helm 3 charts/stoa-platform/

Read the full file on GitHub · 230 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. 8d ago Changed · -5 lines · -31 tokens per session 6850d3392ffc
  2. 10d ago Changed · -15 lines · -187 tokens per session b6d449f558ff
  3. 2mo ago First seen · 250 lines · 3,597 tokens per session scan B 3aac1103f9bc

Subscribe to this mod's changes

stoa CLAUDE.md is an instructions file published in the GitHub repository stoa-platform/stoa (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,379 tokens to every session, about $0.0135 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

stoa CLAUDE.md compared with instructions from other repositories

stoa CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stoa CLAUDE.mdstoa-platform/stoaInstructions file9yesterdayApache-2.0B3,379Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode