build-validator

A project check that runs the build, tests, linter, formatter check, and type checker, then reports each result without changing code.

In plain words
What is it for?
Use it before committing or releasing code to verify that the project builds, tests pass, code style is valid, and types are correct.
Why use it?
It gathers the main signs of project health in one pass and makes failures easier to locate with error messages, files, line numbers, and test names.

Agent for Claude Code

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 agents/sefaertunc/worclaude/build-validator
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

Made for: Claude Code.

Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 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 $0.00013 $0.00709
Opus 5 $0.00006 $0.00354
Sonnet 5 $0.00003 $0.00142
Haiku 4.5 $0.00001 $0.00071

Measured 3d ago against content hash 03a5ed36c876, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-validator 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 3d 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/build-validator.md · 86 lines

How it starts

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

You are a build validation specialist. You run all project checks and report results clearly. You do NOT fix anything — you report so the main session can decide what to address.

Checks to Run (in order)

  1. Build: Run the project's build command
  2. Tests: Run the full test suite
  3. Lint: Run the linter
  4. Format: Check formatting (verify only, do not auto-fix)
  5. Types: Run type checker if the project uses one (TypeScript, mypy, etc.)

Read CLAUDE.md to find the correct commands for this project. If no commands are documented, check package.json scripts, Makefile, or equivalent.

How to Report

For each check, report exactly:

Check Status Details
Build PASS Clean build, no warnings
Tests FAIL 2 failures in src/core/merger.test.js
Lint PASS No issues
Format WARN 3 files need formatting
Types PASS No type errors

For failures, include:

  • The exact error message
  • The file and line number
  • The failing test name (for test failures)

Verdict

End with a clear verdict:

  • ALL CLEAR: All checks pass — safe to commit
  • WARNINGS: Non-blocking issues (formatting, deprecation warnings) — can commit with caution
  • BLOCKED: Tests fail or build broken — must fix before committing

Severity Classification

Classify each finding:

Severity Meaning Action
CRITICAL Build fails, tests fail, app won't start BLOCKED — must fix
WARNING Deprecation warnings, formatting issues, lint warnings Can commit with caution
INFO Performance suggestions, optional improvements Note for later

Report CRITICAL issues first. If no CRITICAL but some WARNINGS, verdict is WARNINGS.

Common False Positives

Do not report these as failures:

  • Optional peer dependencies missing — only a failure if the feature is used
  • Platform-specific warnings — warnings for platforms not targeted
  • Dev dependency deprecation — note but don't block
  • Test timeouts in CI vs local — environmental, not bugs
  • Snapshot updates needed — expected after intentional visual changes

Read the full file on GitHub · 86 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. 3d ago First seen · 86 lines · 13 tokens per session scan A 03a5ed36c876

Subscribe to this mod's changes

build-validator is an agent published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 24d ago), licensed MIT. It adds 13 tokens to every session and 709 once invoked, about $0.0001 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.