validate-parameters

A deterministic checker for a parameters.json file used by a plan-simulation pipeline.

In plain words
What is it for?
Use it after extracting or editing parameters to produce validation.json with failed checks, locations, explanations, and suggested fixes.
Why use it?
It catches structural problems before later simulation steps rely on invalid or incomplete inputs.

Skill for Claude CodeCodex

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 skills/planexeorg/planexe/validate-parameters
Any agent
npx skills add PlanExeOrg/PlanExe --skill validate-parameters
Clone the repo
git clone --depth 1 https://github.com/PlanExeOrg/PlanExe

Made for: Claude Code, Codex.

Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,455 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.00064 $0.01455
Opus 5 $0.00032 $0.00727
Sonnet 5 $0.00013 $0.00291
Haiku 4.5 $0.00006 $0.00145

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

Security

Grade A, and why

validate-parameters 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 2d 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.

experiments/napkin_math/.claude/skills/validate-parameters/SKILL.md · 93 lines

How it starts

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

Validate napkin_math parameters.json

Overview

A thin wrapper around experiments/napkin_math/validate_parameters.py. The script reads parameters.json and emits validation.json next to it. Output shape is what summarize_assessment.py consumes (named checks_performed list + per-violation rule_id/severity/path/message/suggested_fix).

This replaces the older LLM-driven validate-parameters skill, which was written against an earlier schema and rejected the output_name/output_unit fields the digest extractor is required to emit. The Python validator runs in milliseconds, costs no tokens, and is deterministic.

When to Use

  • The extractor (digest or full) has just produced parameters.json and the pipeline needs validation.json before running scenarios or Monte Carlo
  • The user asks to "validate", "check", or "lint" a parameters file
  • After hand-editing parameters.json, to confirm the result is still structurally valid

Not for: regenerating the parameters (use extract-parameters-from-digest or extract-parameters-from-full), generating bounds, or running calculations.

Workflow

  1. Get the parameters path. If the user did not provide one, ask. Do not guess.

  2. Invoke the script. Requires Python 3.11+ (no extra deps):

    /opt/homebrew/bin/python3.11 experiments/napkin_math/validate_parameters.py \
      --parameters <path>/parameters.json \
      [--output    <path>/validation.json]
    

    Default output: <dir-of-parameters>/validation.json. Exit code 0 on valid: true, 1 on validation errors, 2 on JSON parse failure. The script prints the output path on stdout.

  3. Report back. Tell the user the output path, the verdict (valid / INVALID), and the error count. If there are violations, quote the first few rule_id + message pairs verbatim. Don't paraphrase the verdict — the rule ids are how downstream tooling routes the next step.

The 16 checks

Check Severity bias What it checks
json_parse ERROR the file parses as JSON (failure handled with a json_parse violation)
top_level_structure ERROR plan_summary + four arrays present
required_fields ERROR each entry carries its required keys
array_length_caps ERROR ≤8 key_values, ≤5 derived_questions / missing_values_to_estimate / recommended_first_calculations
global_id_uniqueness ERROR ids unique across all four arrays
snake_case_ids ERROR ids match ^[a-z][a-z0-9_]*$
depends_on_declared ERROR every id in depends_on matches a declared id or output_name
formula_rhs_declared ERROR every snake_case identifier on the RHS of formula_hint is declared (or is the entry's own output_name); built-ins like min/max are exempt
fraction_value_range ERROR unit == "fraction" ⇒ value in [0, 1] or null
comment_word_caps ERROR key_value comment ≤25 words
source_text_word_caps ERROR key_value source_text ≤20 words
output_name_present_when_formula_hint ERROR non-empty formula_hintoutput_name not null
output_unit_present_when_formula_hint ERROR non-empty formula_hintoutput_unit not null
no_dead_end_variables ERROR every key_value and missing_value is consumed (transitively) by some calculation
threshold_friendly_naming WARN output_names ending in _gap / _deficit / _shortfall are flagged because they read ambiguously under a >= 0 / <= 0 threshold
shared_pool_legitimacy (no-op) listed in checks_performed for completeness; enforcement is upstream in the extractor's system prompt (requires reading source narrative to verify pool legitimacy, which is not a structural check)

Read the full file on GitHub · 93 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. 2d ago First seen · 93 lines · 64 tokens per session scan A 58b6afe62755

Subscribe to this mod's changes

validate-parameters is a skill published in the GitHub repository PlanExeOrg/PlanExe (398 stars, last pushed 3d ago), licensed MIT. It adds 64 tokens to every session and 1,455 once invoked, about $0.0003 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-30.