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 agentmods add instructions/eldermoraes/swapi.build/claude-mdgit clone --depth 1 https://github.com/eldermoraes/swapi.buildWrote 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/instructions/eldermoraes/swapi.build/claude-md)<a href="https://agentmods.dev/instructions/eldermoraes/swapi.build/claude-md"><img src="https://agentmods.dev/badge/instructions/eldermoraes/swapi.build/claude-md.svg" alt="Measured on agentmods" 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 | $0.01594 | $0.01594 |
| Opus 5 | $0.00797 | $0.00797 |
| Sonnet 5 | $0.00319 | $0.00319 |
| Haiku 4.5 | $0.00159 | $0.00159 |
Grade A, and why
swapi.build CLAUDE.md scanned grade A with 1 finding 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 4d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
10. **Post-deploy verification** — the curl checks in `docs/DEPLOY.md`. How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
swapi.build — Star Wars API (Quarkus 3 / Java 25, native image) with a Quinoa/Vite
frontend, deployed as a Vercel container function behind Cloudflare DNS. Also serves
an MCP server (Streamable HTTP) at /mcp.
Development cycle (in this order — do not skip steps)
- Brainstorm / spec — explore, verify assumptions in code, write spec to
docs/superpowers/specs/. This directory is local-only and gitignored on purpose (decided 2026-08-04): specs and plans are process artifacts that rot once the code moves on — the code and git history are the record of what shipped. Never removedocs/superpowers/from.gitignoreor commit files from it. - User approval of the spec. No implementation before this.
- Implementation plan —
docs/superpowers/plans/(local-only, same rule as the specs), then user approval. - Branch — never implement directly on
main. - TDD — failing test first, then implementation. Run the full suite before every commit.
- Merge — ask the user (merge local / PR / keep branch). Run the suite again on the merged result.
- Release — only if the change carries a version bump: changelog entry →
annotated tag → GitHub Release, per
docs/RELEASE.md. - Push —
git pushpublishes commits only. It does not deploy. Pushing a release tag (v*) is the exception: it triggers the deploy workflow (.github/workflows/deploy.yml). - Deploy — the tag-triggered workflow runs
docs/DEPLOY.mdfor you: preview → probes → manual approval in the Actions UI → production. Manual fallback: followdocs/DEPLOY.mdexactly. - Post-deploy verification — the curl checks in
docs/DEPLOY.md.
Non-negotiable facts
- Deploy always runs from
swapi-app/, never from the repo root. From the root it fails withExpected VCR image registry vcr.vercel.com: <detect>(thecontainerframework can't find the Dockerfile). Seedocs/DEPLOY.md. - There is no commit-push auto-deploy. Deploys run via the Vercel CLI —
manually, or by
.github/workflows/deploy.ymlon a release-tag push (with a manual gate before production). Since 2026-08-03 the GitHub repo is linked to the Vercel project, so this now holds by explicit configuration rather than by absence of a connection: the rootvercel.jsoncarriesgit.deploymentEnabled: false. Never remove it without first settingrootDirectorytoswapi-app— withrootDirectory: nulla git-triggered build runs from the repo root and hits the failure above. - Web Analytics and Speed Insights are enabled on the project and injected by
the SPA (
@vercel/analytics/@vercel/speed-insightsinsrc/main.ts). Their scripts live at/_vercel/insights/*and/_vercel/speed-insights/*, served by the Vercel edge.quarkus.quinoa.enable-spa-routing=trueanswers any unknown path withindex.htmland HTTP 200, so if the edge ever stops intercepting those paths the collection breaks silently. The curl check indocs/DEPLOY.mdasserts the content type is JavaScript, not HTML. - Tests:
cd swapi-app && ./mvnw test(backend) andcd swapi-app/src/main/webui && npm test(Vitest, frontend). CI runs both. Quinoa'svite buildbundles the frontend during./mvnw packagebut never tests it, so the separate Vitest step in.github/workflows/ci.ymlis the only thing making the frontend guards a gate — without it they pass locally and block nothing. That step reads the Node version fromapplication.properties; never pin a second copy in the workflow. Never runmvn cleanwhile dev mode is running. Test HTTP port is 8081. - A version bump is a release. Bump →
CHANGELOG.mdentry → annotated tag → GitHub Release → deploy, perdocs/RELEASE.md.ChangelogVersionTestfails the suite if the pom version has no changelog section, andOpenApiVersionTestfails if/openapi.jsonstops advertising the pom version. Tags point at the last commit of a version line, never at the bump commit. - Successful GETs return HTTP 200; nonexistent ids return 404 (the historic 202 quirk was retired on 2026-08-01 — no external clients depended on it).
- Container tooling is
podman(/opt/podman/bin), notdocker. The podman machine needs 8 GB for local native builds. - MCP serves stateful and stateless clients on the same
/mcpendpoint. Streamable HTTP only.quarkus.mcp.server.http.streamable.auto-init=trueserves an unknown or missingMcp-Session-Idwith a throwaway session instead of 404ing — Vercel has no session affinity, and without this a stateful client fails intermittently. A genuineinitializestill creates a real session that lives in one instance's heap until idle (default 30 min).GET /mcpanswers 405 (no server→client stream) andDELETEanswers 204. The legacy HTTP+SSE transport (/mcp/sse) is rejected on purpose. Never reintroduce session-affine state, and never depend on the legacy transport. - Public base URL is discovered per request (REST via
UriInfo, MCP viaHttpServerRequest, honoringX-Forwarded-*).swapi.public-base-urlis an optional override only — never reintroduce a hardcoded domain default. - Frontend design system: tokens, components and the new-page checklist live
in
swapi-app/src/main/webui/DESIGN.md. New pages/features must follow it — tokens only, gold means action and cyan means data, and every action is a.sw-pill. "Tokens only" is enforced, not trusted:tokens.test.tsfails on any hex,rgb()orhsl()literal in a stylesheet other thantokens.css(the starfield's white alphas are the one documented exception), and it globs the stylesheets so a new file is policed the day it lands.
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.
- 4d ago First seen · 94 lines · 1,594 tokens per session scan A b4dc238b7e24
swapi.build CLAUDE.md is an instructions file published in the GitHub repository eldermoraes/swapi.build (3 stars, last pushed 19d ago), licensed Apache-2.0. It adds 1,594 tokens to every session, about $0.0080 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.