greenfield-audit

greenfield-audit is a skill for Claude Code from bengous/claude-code-plugins. It costs 54 tokens per session (1,708 once invoked), scanned A, original, MIT.

A read-only architecture review that designs the smallest suitable system without treating the existing code as authoritative. It records evidence from files and Git, then labels components as keep, simplify, replace, or delete.

In plain words
What is it for?
Use it to assess a system before a rewrite or major simplification. It produces a diagnostic in the chat rather than editing files.
Why use it?
It helps expose accidental complexity and decisions inherited from earlier work without changing the repository during the review. The evidence requirement makes its conclusions traceable.

Skill for Claude Code

Written for Claude Code: disallowed-tools in frontmatter. Also seen: names the NotebookEdit tool.

Part of the architecture-audit plugin — 1 skill shipped together

Good fit Use it to assess a system before a rewrite or major simplification. It produces a diagnostic in the chat rather than editing files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bengous/claude-code-plugins/greenfield-audit
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.

Any agent
npx skills add bengous/claude-code-plugins --skill greenfield-audit
Clone the repo
git clone --depth 1 https://github.com/bengous/claude-code-plugins

Made for: Claude Code.

Or install architecture-audit, the plugin that ships this one along with the rest of its 1 skill.

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 greenfield-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/bengous/claude-code-plugins/greenfield-audit/github.svg)](https://agentmods.dev/skills/bengous/claude-code-plugins/greenfield-audit)
Your own site
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/greenfield-audit"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/greenfield-audit/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 greenfield-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/bengous/claude-code-plugins/greenfield-audit"><img src="https://agentmods.dev/badge/skills/bengous/claude-code-plugins/greenfield-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00054 $0.01708
Opus 5.5 $0.00022 $0.00683
Sonnet 5.5 $0.00011 $0.00342
Haiku 4.5 $0.00005 $0.00171

Measured 1mo ago against content hash cb34facb0ac8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

greenfield-audit 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 1mo 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.

architecture-audit/skills/greenfield-audit/SKILL.md · 174 lines

How it starts

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

Greenfield audit

Scope: $ARGUMENTS

When the scope is empty, ask for the path in the chat and stop. This is the only question the run may ask.

Stance

The current architecture has no authority. Several generations of agents produced and modified it. Expect conceptual debt, accidental abstractions, and inherited decisions whose justification no longer exists.

The goal is not to make the current code more elegant. The goal is to find the minimal architecture the system needs today and to measure the existing code against it.

Constraints for the whole run:

  • Read-only. The editing tools are removed for the run; do not write through Bash either. The diagnostic goes in the chat.
  • Do not ask questions mid-run. Collect them in the final "Unknowns" section.
  • Cite evidence as file:line, or as a commit hash for intent recovered from git, for every requirement, invariant, and verdict.
  • Follow the phases in order. Emit the Phase 1 lists and the Phase 2 design as visible text before the first Phase 3 tool call. Code that has been read cannot be unread, so this order is the only protection against anchoring on the existing design. A Phase 2 design that appears after an implementation file was read is a violation.

Copy this checklist into the response and tick each line when its text is emitted:

Audit progress:
- [ ] Phase 1: five requirement lists and Unproven emitted, no implementation file opened
- [ ] Phase 2: target architecture emitted, still no implementation file opened
- [ ] Phase 3: implementation read, important components inventoried
- [ ] Phase 4: one verdict per component with evidence
- [ ] Output: five sections delivered, no file edited

Phase 1: Requirements

Establish what the system must do from sources that describe behavior, not from the code that implements it.

Allowed sources in this phase:

  • Tests, fixtures, snapshots
  • Public entry points: routes, CLI commands, exported API, UI screens. Open an entry point only to list what it exposes (route table, command names, exported signatures). Stop at the signature; do not follow its imports.
  • Persisted schemas, migrations, seed data
  • Configuration, environment variables, deployment files
  • README, docs, ADRs, issues referenced in the tree
  • git log --oneline or --stat on the scope, and commit messages, to recover intent. No -p, no git show, no git blame: they print implementation.

Read the full file on GitHub · 174 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. 1mo ago First seen · 174 lines · 54 tokens per session scan A cb34facb0ac8

Subscribe to this mod's changes

greenfield-audit is a skill published in the GitHub repository bengous/claude-code-plugins (5 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,708 once invoked, about $0.0002 per session on Opus 5.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-09-11.