sa-brownfield-extract

sa-brownfield-extract is a skill for Claude Code, Codex from evolplus/talos. It costs 83 tokens per session (1,262 once invoked), scanned A, original, Apache-2.0.

A procedure for documenting the architecture already present in an existing codebase, sometimes called a brownfield project.

In plain words
What is it for?
Use it during the second stage of onboarding an existing system, when archaeology reports and source code must be turned into provisional architecture and API or message documentation.
Why use it?
It records observed decisions and technical contracts without proposing changes, while marking uncertain findings for later confirmation.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the talos plugin — 62 skills, 2 commands, 4 hooks shipped together

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 skills/evolplus/talos/sa-brownfield-extract
Any agent
npx skills add evolplus/talos --skill sa-brownfield-extract
Clone the repo
git clone --depth 1 https://github.com/evolplus/talos

Made for: Claude Code, Codex.

Or install talos, the plugin that ships this one along with the rest of its 62 skills, 2 commands, 4 hooks.

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 sa-brownfield-extract

README.md
[![agentmods](https://agentmods.dev/badge/skills/evolplus/talos/sa-brownfield-extract.svg)](https://agentmods.dev/skills/evolplus/talos/sa-brownfield-extract)
Your own site
<a href="https://agentmods.dev/skills/evolplus/talos/sa-brownfield-extract"><img src="https://agentmods.dev/badge/skills/evolplus/talos/sa-brownfield-extract.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 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.1 $0.00083 $0.01262
Opus 5 $0.00042 $0.00631
Sonnet 5 $0.00017 $0.00252
Haiku 4.5 $0.00008 $0.00126

Measured 6d ago against content hash a5bafa7bcd56, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sa-brownfield-extract 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 6d 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.

skills/sa-brownfield-extract/SKILL.md · 69 lines

How it starts

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

SA Brownfield Extract

Use

Use this skill only for SA extract mode during brownfield onboarding Stage 2. The output documents what exists; it does not recommend changes.

Inputs

  • docs/archaeology-reports/<topic-slug>.md
  • Existing codebase/docs named by the report
  • Optional scope: dispatch parameter: architecture-only, security-compliance, or a service/module name

Outputs

  • Provisional docs/architecture.md
  • Observed-decision ADRs only when code irrefutably encodes the decision
  • Extracted API/message contract stubs under docs/api-contracts/ when endpoints, RPC operations, or messages are observable. Use service-level OpenAPI for REST, AsyncAPI for brokered messaging, proto for gRPC, GraphQL SDL for GraphQL, and markdown only for legacy/prototype surfaces with an explicit gap note.
  • docs/open-issues.md entries with category extract-confirmation-pending
  • Worktree plan-update.json

Procedure

  1. Read all archaeology reports for the scope. If any required report is INSUFFICIENT, halt and request more archaeology or team-interview input.
    • Before extracting, verify the report contains ## Service Boundary & Entry Point Map, ## Route / RPC / Job Trace Matrix, ## Dependency & Call Graph (C3), ## Message Broker / Consumer Logic, and ## API / Message Spec Candidates for the in-scope services.
    • If the project has public/internal APIs or brokered messages but those sections are missing or shallow, halt with NEEDS_CONTEXT and request a Stage 1 archaeology re-dispatch with deep route/dependency/contract scope. Do not compensate by writing vague architecture.
  2. Map observed services/modules to C4 C1-C3:
    • C1/C2 are usually high confidence from repo layout, deploy manifests, and public surfaces.
    • C3 is package/module inferred; mark confidence honestly.
    • Do not extract C4 Code.
  3. Populate architecture sections from observed evidence:
    • data models from migrations/ORM/schema files;
    • API inventory from Public API Surface + Service Boundary & Entry Point Map + API / Message Spec Candidates;
    • per-operation route trace from Route / RPC / Job Trace Matrix;
    • dependency/call graph from imports, clients, service registries, Route Trace rows, Dependency & Call Graph edges, and manifests;
    • async workflows from Message Broker / Consumer Logic, producers, consumers, topics, state transitions, retry/DLQ configs, and idempotency/dedup evidence;
    • cross-cutting concerns from middleware/config;
    • NFR posture from metrics when available, otherwise unknown -- measure during pilot.
  4. For each discovered API/message, create an extracted contract stub with Status: Extracted, Source: extracted, confidence, observed auth, schemas, and TODO markers for non-introspectable fields.
    • REST: create or update docs/api-contracts/<service>.openapi.yaml with openapi: 3.1.0, one operation per observed route, operationId, auth/security scheme, request/response schemas, observed status codes, standard error envelope, idempotency/rate-limit notes, and x-source-evidence file:line values.
    • gRPC: create or update docs/api-contracts/<service>.proto with observed service/method/message shapes and TODO markers for unknown field types.
    • GraphQL: create or update docs/api-contracts/<service>.graphql with observed query/mutation/subscription names, input/output types, auth notes, and TODO markers for unknown fields.
    • Async messaging: create or update docs/api-contracts/<service-or-broker>.asyncapi.yaml with asyncapi: 2.6.0 or the project's declared version, channels, producer/consumer operation bindings, payload schemas, consumer groups, ack/commit behavior, retry/backoff/DLQ, idempotency/dedup, ordering/partition key, and side effects.
    • WebSocket/SSE: document as OpenAPI callbacks/webhooks when the project already uses OpenAPI that way; otherwise create a markdown extracted contract with connection/auth/message/event schemas and lifecycle states.
    • Never mark extracted contracts Frozen. FE Dev cannot consume them until BE Dev validates and freezes them during governed implementation or the human confirmation flow explicitly promotes them.
  5. Tag every architecture section with Source: extracted | Confidence: high|medium|low|inferred.
  6. File one open issue for every Confidence: inferred item.
  7. Keep architecture self-contained. Do not put substantive body references back to archaeology reports or source paths.
  8. Commit changes, then emit plan-update.json.

Read the full file on GitHub · 69 lines

Files

What ships with it

1 file 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.

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. 6d ago First seen · 69 lines · 83 tokens per session scan A a5bafa7bcd56

Subscribe to this mod's changes

sa-brownfield-extract is a skill published in the GitHub repository evolplus/talos (8 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 1,262 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

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

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

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…

vercel/next.js · 95 tokens