validate-accuracy

validate-accuracy is a skill for Claude Code, Codex from jared833/claude-code-hooks. It costs 77 tokens per session (1,077 once invoked), scanned A, original, MIT.

A release check that independently verifies electrical calculator results against National Electrical Code (NEC) tables and formulas.

In plain words
What is it for?
Re-deriving expected values, comparing them with calculator output, checking NEC source data, and cross-checking a scenario with another tool.
Why use it?
It catches wrong calculations that ordinary tests may miss when the code and tests share the same misunderstanding. A failing check blocks the change from being merged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Re-deriving expected values, comparing them with calculator output, checking NEC source data, and cross-checking a scenario with another tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jared833/claude-code-hooks/validate-accuracy
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 jared833/claude-code-hooks --skill validate-accuracy
Clone the repo
git clone --depth 1 https://github.com/jared833/claude-code-hooks

Made for: Claude Code, Codex.

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-accuracy

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jared833/claude-code-hooks/validate-accuracy"><img src="https://agentmods.dev/badge/skills/jared833/claude-code-hooks/validate-accuracy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 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.00077 $0.01077
Opus 5.5 $0.00031 $0.00431
Sonnet 5.5 $0.00015 $0.00215
Haiku 4.5 $0.00008 $0.00108

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

Security

Grade A, and why

validate-accuracy 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 2mo 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/validate-accuracy/SKILL.md · 98 lines

How it starts

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

validate-accuracy

Validate site/src/lib/calculators/<slug>.js against the NEC source it claims to implement. This is the accuracy check: a tool that fails here does not merge.

Core principle: do not trust the test file. The same model that wrote the calculator wrote its tests, so a shared misunderstanding passes tests while being wrong. Derivations here must come from the NEC data and formula directly.

Procedure

1. Fresh derivation (before reading the test file)

Open docs/specs/<slug>-spec.md and every site/src/data/nec-tables/*.json the calculator imports. Choose at least 3 scenarios, covering every code path/branch of the calculator (each conditional rule, for example NEC 240.4(B) round-up versus 240.4(D) small-conductor caps, gets at least one scenario). For each, re-derive the expected outputs by hand from the table values and the formula, writing out the arithmetic. Do NOT read <slug>.test.js expectations until your derivations are committed to the worksheet.

2. Compare against actual output

Run the real calculator on each scenario, with a scratch node invocation:

cd site && node -e "import('./src/lib/calculators/<slug>.js').then(m => console.log(JSON.stringify(m.calculate({...}))))"

Any mismatch between derived and actual = FAIL. (Rounding: match the precision the tool displays; a discrepancy beyond display precision is a mismatch.)

3. Source-data spot check

For each NEC data JSON the tool uses, verify at least 3 entries against the published NEC values cited in the file's header comment (edition, table number). This catches transcription errors, the most likely failure mode for table-driven tools. A file whose header lacks the edition + table citation also fails.

4. External cross-check

Cross-check at least 1 scenario against a named independent third-party calculator (WebFetch). Name the specific tool and paste its URL in the worksheet; if the first one is unreachable, use a different named tool rather than skipping the step.

Read the full file on GitHub · 98 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. 2mo ago First seen · 98 lines · 77 tokens per session scan A 4d3bc77532b2

Subscribe to this mod's changes

validate-accuracy is a skill published in the GitHub repository jared833/claude-code-hooks (2 stars, last pushed 4d ago), licensed MIT. It adds 77 tokens to every session and 1,077 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

tdd

Guided test-driven development workflow for .NET 10 using xUnit v3, WebApplicationFactory, Testcontainers, and Verify snapshots. Follows the strict red-green-refactor cycle. Use when: "TDD", "test-driven", "let's TDD this", "red green refactor", "write the test first", or when building a feature with clear acceptance…

codewithmukesh/dotnet-claude-kit · 81 tokens