validate

validate is a command for Claude Code from sorah/config. It costs 18 tokens per session (1,549 once invoked), scanned A, original, MIT.

A command that compares a completed implementation with its specification and reports gaps, discrepancies and deviations. A specification is the document describing what a feature should do and how it should be built.

In plain words
What is it for?
It is for checking implemented code, referenced files, recent Git changes and project conventions against a spec. It helps verify schemas, behaviour, error handling and edge cases.
Why use it?
Code can differ from its agreed design in subtle ways, and those differences may be missed during normal review. This surfaces them for a person to resolve instead of silently changing the code or accepting the mismatch.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the sorah-spec plugin — 1 skill, 3 commands shipped together

Good fit It is for checking implemented code, referenced files, recent Git changes and project conventions against a spec. It helps verify schemas, behaviour, error handling and edge cases.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sorah/config/validate
View source ↗ sorah/config
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.

Clone the repo
git clone --depth 1 https://github.com/sorah/config

Made for: Claude Code.

Or install sorah-spec, the plugin that ships this one along with the rest of its 1 skill, 3 commands.

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 validate

README.md
[![agentmods](https://agentmods.dev/badge/commands/sorah/config/validate/github.svg)](https://agentmods.dev/commands/sorah/config/validate)
Your own site
<a href="https://agentmods.dev/commands/sorah/config/validate"><img src="https://agentmods.dev/badge/commands/sorah/config/validate/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 validate

Your own site · 80×15
<a href="https://agentmods.dev/commands/sorah/config/validate"><img src="https://agentmods.dev/badge/commands/sorah/config/validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,549 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.00018 $0.01549
Opus 5.5 $0.00007 $0.00620
Sonnet 5.5 $0.00004 $0.00310
Haiku 4.5 $0.00002 $0.00155

Measured yesterday against content hash 1649d095800d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validate 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 yesterday.

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/marketplace/plugins/sorah-spec/commands/validate.md · 145 lines

How it starts

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

Validate a completed implementation against its spec. Read both the spec and all implemented code, then systematically compare them. Surface every gap, discrepancy, or deviation for the user to resolve — do not silently accept or fix differences. The goal is to ensure the implementation faithfully reflects the spec, or to explicitly document where and why they diverge.

Input

The user provides a spec file path as argument: $ARGUMENTS

If no argument is given, ask the user which spec file to validate.

Preparation Phase

Before comparing anything:

  1. Read the spec file thoroughly — understand the full design, all deliverables, schemas, behavior descriptions, error handling, and edge cases
  2. Read all referenced files — schema files, existing code, related specs mentioned in the spec
  3. Review recent changes — use git diff and recent commits up to the primary branch to understand what changed as part of this implementation. This gives context on the actual scope of changes and helps identify modifications the spec may not have anticipated
  4. Read project conventions — check for project-level documentation (CLAUDE.md, style guides, architecture docs, knowledge files) relevant to the spec's domain. Project-specific conventions and framework-specific skills always take priority over general approaches
  5. Identify all deliverables — build a complete list of files and changes the spec calls for, from the Deliverables section and the Current Status checklist
  6. Read every delivered file — read each file listed in the deliverables. If a file doesn't exist, note it as missing. If the spec mentions modifications to existing files, read those files too
  7. Explore surrounding code — look at related modules, tests, and integration points to understand how the implementation fits into the broader codebase

Validation Phase

Compare the implementation against the spec systematically. Check each area below and record every discrepancy found, no matter how small.

Read the full file on GitHub · 145 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. yesterday First seen · 145 lines · 18 tokens per session scan A 1649d095800d

Subscribe to this mod's changes

validate is a command published in the GitHub repository sorah/config (31 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 1,549 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-10-17.