scopewalker-mcp: Agent for Claude Code

.claude/agents/standards-enforcer.md

standards-enforcer is an agent for Claude Code from timohaa/scopewalker-mcp. It costs 34 tokens per session (695 once invoked), scanned A, original, MIT.

An agent that checks a codebase against its coding standards and refactors violations while keeping tests and checks passing. It examines issues such as oversized files, deep nesting, too many parameters, and leftover TODO or FIXME markers.

In plain words
What is it for?
Use it after major code changes or during a full audit to measure complexity, find code smells, inspect documentation coverage, detect parameter threading, and apply refactorings.
Why use it?
It helps turn a standards report into working cleanup, reducing maintainability problems without losing test coverage or changing behavior unnecessarily.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is timohaa/scopewalker-mcp's own configuration. It tells Claude Code how to work on scopewalker-mcp 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 scopewalker-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timohaa/scopewalker-mcp. 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/timohaa/scopewalker-mcp/main/.claude/agents/standards-enforcer.md
Clone the repo
git clone --depth 1 https://github.com/timohaa/scopewalker-mcp

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 standards-enforcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/standards-enforcer/github.svg)](https://agentmods.dev/agents/timohaa/scopewalker-mcp/standards-enforcer)
Your own site
<a href="https://agentmods.dev/agents/timohaa/scopewalker-mcp/standards-enforcer"><img src="https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/standards-enforcer/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 standards-enforcer

Your own site · 80×15
<a href="https://agentmods.dev/agents/timohaa/scopewalker-mcp/standards-enforcer"><img src="https://agentmods.dev/badge/agents/timohaa/scopewalker-mcp/standards-enforcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 695 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.00034 $0.00695
Opus 5.5 $0.00014 $0.00278
Sonnet 5.5 $0.00007 $0.00139
Haiku 4.5 $0.00003 $0.00069

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

Security

Grade A, and why

standards-enforcer 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.

.claude/agents/standards-enforcer.md · 55 lines

How it starts

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

Standards Enforcer

Read and enforce docs/code-quality.md. Fix every actionable finding in the assigned scope. Use its scan requirements, limits, disposition rules, and PASS / FAIL / BLOCKED verdicts.

Workflow

  1. Establish the assigned scope, or use uncommitted changes by default. full covers all of src/.
  2. Run all required Scopewalker checks and inspect the complete in-scope findings.
  3. Fix confirmed violations in small, behavior-preserving changes.
  4. Rerun the detecting tools with the same scope and limits after each pass.
  5. Continue until findings are resolved or a concrete blocker prevents further work. Report remaining failures explicitly.

Before Structural Refactoring

For file splits, function extraction, or module reorganization:

  1. Find tests covering the public behavior, branching, and error paths being changed.
  2. Add characterization tests first if that coverage is insufficient.
  3. Run all covering test files in one npx vitest run <files...> command before editing production code.
  4. Rerun those tests after each refactoring pass. Diagnose and fix regressions before continuing.

Local simplifications and confirmed dead-code removal do not require new characterization tests. They still require relevant verification. Missing coverage calls for tests; it does not excuse a violation.

Fix Ownership

  • Split oversized files into cohesive modules; extract meaningful helpers from long functions.
  • Reduce nesting and branching; group related parameters only when they represent one concept.
  • Fix confirmed prop drilling using existing dependency patterns. Preserve per-call configuration and concurrency behavior.
  • Resolve active TODO/FIXME/HACK markers and unsafe casts. Remove stale markers only after verifying their issue is gone.
  • Remove confirmed dead internal code under the shared dead-code rules. Preserve public APIs and entry points without removal authorization.
  • Leave JSDoc and prose improvements to comment-fixer; pass it any documentation findings exposed by refactoring.

Read the full file on GitHub · 55 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 Changed · -53 lines · -1 tokens per session 9d37d232484a
  2. 1mo ago Changed · +1 lines f2abaefff177
  3. 1mo ago Changed · -30 tokens per session e0b5000e3d8b
  4. 1mo ago First seen · 107 lines · 65 tokens per session scan A 32a8ba83d81d

Subscribe to this mod's changes

standards-enforcer is an agent published in the GitHub repository timohaa/scopewalker-mcp (1 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 695 once invoked, about $0.0001 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-08-31.