agentleFS
tatashbartatashbar/Economic-Modeling-Studio/.agents/skills/validate-model/SKILL.md

validate-model

Skill8 starsChanged 5 days agoMITView on GitHub

Runs independent model validation sized to risk level: conceptual soundness, implementation, outcomes, benchmarking. Issues a rating.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a required input is ABSENT, that part is NOT ASSESSED — NO DATA: do not estimate or invent it.

    line 28
  2. Very specific:

    Collaboration: Follow .claude/docs/collaboration-protocol.md: ask questions first, present options, get approval before writing files, and …

    line 30
  3. Distinctive:

    Check intended use against the design domain

    line 51
  4. Distinctive:

    After scope: confirm depth and benchmarks

    line 61
  5. Distinctive:

    Before the rating: review high-severity findings

    line 62

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- Generated from .claude/skills/validate-model/SKILL.md by tools/sync_agents.py. Edit the source, then run the script. -->

/validate-model — Validate Model

Category: Validation & QA · Primary agent: model-validation-specialist

Runs independent model validation sized to risk level: conceptual soundness, implementation, outcomes, benchmarking. Issues a rating.

Arguments: whatever the user wrote after the command name.

Purpose

Run an independent validation of a model, sized to its risk level: conceptual soundness, implementation correctness (including independent re-implementation of core outputs), outcomes analysis and benchmarking, with findings rated by severity and an overall rating. For modular lego models, each brick and each joint is validated separately and the results are recorded in the manifest.

Use it when a model is to be used for advice, official forecasts or publication, after material changes, or for periodic revalidation.

Do not use it when the component is an AI/ML/LLM system (/ai-audit), or only a code check is needed (/code-review).

Before you start

  1. Check required inputs. For each input below record FOUND or ABSENT (never 'assumed'):
    • Model spec
    • Code
    • Calibration/estimation results
    • Model card (if exists) If a required input is ABSENT, that part is NOT ASSESSED — NO DATA: do not estimate or invent it; name what is missing and which skill produces it. If all required inputs are absent, stop and say so.
  2. Check confidentiality. Identify the data classification level of the inputs (.claude/docs/confidentiality-and-ai-use.md). Do not proceed with restricted or confidential data in a way the policy does not allow.
  3. Collaboration. Follow .claude/docs/collaboration-protocol.md: ask questions first, present options, get approval before writing files, and update production/session-state/active.md after each approved section.

Agents

  • model-validation-specialist — primary agent; coordinates the work and integrates results
  • backtesting-specialist — Designs and runs backtests
  • sensitivity-uncertainty-specialist — Quantifies uncertainty and sensitivity
  • replication-auditor — Audits replication

Each agent is defined in .claude/agents/<name>.md. If your tool runs subagents, run these agents as subagents, in parallel where the steps are independent; otherwise read each agent's file and apply its instructions in turn. Subagents only write to the paths named in your instructions.

Key design decisions (present options, let the user choose)

DecisionTypical optionsWhat it changes
Depthproportional to risk levelEvidence required
Re-implementationfull, core outputs, key equationsAssurance
Benchmarkssimple econometric models, alternative structural modelsAdded-value evidence
Lego scopewhole set, changed bricks and jointsEffort for modular models

Workflow

  1. Confirm validators are independent of the builders; record this in the report
  2. Conceptual soundness: assumptions, literature, limitations
    • Check intended use against the design domain
  3. Implementation: independent re-implementation of core outputs; unit tests; identity checks
    • Known answers first: run the relevant cases from python tools/known_answer.py list with the model's own code (make <case> --out validation/<model>/known-answer/<case>, solve, then check <case> RESULT.json --report validation/<model>/validation-report.md). A failed known-answer case means FAIL for that part until it is explained and fixed
    • For bricks on another frequency, run python tools/lego.py bridge-test <manifest> --apply; a brick whose bridge has not passed cannot be recorded as validated
    • For lego models, check each brick's declared elements against the code: equations match endogenous variables, unsourced (assumed) parameters appear in sensitivity runs, and constraints are verified in a run
  4. Outcomes: backtests, benchmark comparison, sensitivity and stress cases
  5. Issue findings with severity (High/Medium/Low) and a rating: PASS / PASS WITH CONDITIONS / FAIL / NOT ASSESSED
  6. If the model has a model.lego.json, validate each brick and each joint separately (interfaces, units, timing, neutral-attachment test); treat stale bricks as unvalidated. For each brick rated PASS (or PASS WITH CONDITIONS, with the conditions in the report), record it with python tools/lego.py validate <manifest> <brick> --report validation/<model>/validation-report.md --apply. Validation records the numbers only; the economist's sign-off is separate (python tools/lego.py approve <manifest> <brick> --by NAME --apply), and the validator never records it

Checkpoints with the user

  • After scope: confirm depth and benchmarks
  • Before the rating: review high-severity findings

Common pitfalls

  • Builders validating their own model
  • Findings without evidence
  • Validating bricks but not joints
  • Ignoring use outside the design domain

Output

validation/<model>/validation-report.md

The report states independence, scope, findings with evidence and severity, the rating, conditions of use, and per-brick and per-joint results for lego models.

Gate / verdict

  • PASS requires: no open High findings, core outputs independently reproduced, relevant known-answer cases passed, benchmark comparison shown
  • Findings cite evidence (code, data, results)
  • Conditions of use state the design domain

Suggested next steps

  • /model-risk-review
  • /model-card
  • /model-release

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.