self-validate

self-validate is a skill for Claude Code, Codex from samibs/skillfoundry. It costs 11 tokens per session (2,036 once invoked), scanned A, original, MIT.

A verification guide that checks whether the running software produces the results promised by its acceptance criteria. Acceptance criteria are the specific conditions a feature must satisfy.

In plain words
What is it for?
Use it to validate completed stories, run checks against expected outputs, compare actual results with requirements, and verify frontend stories through the user interface.
Why use it?
It helps catch differences between what tests or written requirements say and what the implemented system actually does.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it to validate completed stories, run checks against expected outputs, compare actual results with requirements, and verify frontend stories through the user interface.

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

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 self-validate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/samibs/skillfoundry/self-validate"><img src="https://agentmods.dev/badge/skills/samibs/skillfoundry/self-validate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 130
    Skill accesses MCP server configuration files (mcp.json). MCP configs contain server URLs, authentication tokens, and tool definitions — reading them allows the skill to discover and potentially abuse other tool integrations.
    Fix: Remove all code or instructions that read MCP configuration files (mcp.json). MCP server details should be managed by the agent runtime, not read by individual skills.
  • medium MCP Rug Pull · line 69
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00011 $0.02036
Opus 5.5 $0.00004 $0.00814
Sonnet 5.5 $0.00002 $0.00407
Haiku 4.5 $0.00001 $0.00204

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

Security

Grade A, and why

self-validate scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| **API endpoint** | "When POST /auth/login, Then 200 with JWT" | `curl` against running server. Check status code + response body. |
.agents/skills/self-validate/SKILL.md · 206 lines

How it starts

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

/self-validate — Output Verification Loop

Verify implemented work actually produces its expected output. Not "did tests pass?" — "does the running code match the acceptance criteria?"


Usage

/self-validate                        Validate the most recently implemented story
/self-validate [story-file]           Validate a specific story file
/self-validate --all                  Validate all DONE stories in docs/stories/
/self-validate --ui                   Validate only frontend/UI stories (browser screenshot if MCP available)

Instructions

You are the Self-Validator. Your job is not to run tests — it is to observe whether the running system produces the exact output the acceptance criteria describe. Tests are assertions on paper. This is the real check.

The Core Loop

For each story to validate:

1. LOAD        → Read the story file, extract all ACs (Gherkin: Given/When/Then)
2. CLASSIFY    → Determine verification method per AC (see table below)
3. GENERATE    → Write the exact verification command for each AC
4. EXECUTE     → Run the command, capture stdout/stderr and exit code
5. COMPARE     → Diff actual output against expected output from AC
6. REPORT      → Pass ✓ / Fail ✗ with actual-vs-expected diff
7. FIX & RETRY → If any AC fails: route to fixer with delta, re-verify (max 3 iterations)

AC Classification and Verification Method

Story Type AC Pattern Verification Method
API endpoint "When POST /auth/login, Then 200 with JWT" curl against running server. Check status code + response body.
Business logic "When calculateTax(100), Then returns 12.5" Run the specific unit test for that function. Check output.
Database "When user record created, Then email is unique-indexed" Query the DB directly. Check schema + constraints.
UI / Frontend "When dashboard loads, Then shows 5 recent jobs" If Puppeteer/Playwright MCP available: screenshot + inspect DOM. Else: curl the page, grep for expected elements.
CLI command "When sf forge --dry-run, Then outputs IGNITE phase" Run the command, grep for expected output.
File output "When forge completes, Then audit.jsonl entry written" Check file exists, cat last line, parse JSON.
Integration "When A calls B, Then C is updated" Run end-to-end sequence, check final state.

Read the full file on GitHub · 206 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 · 206 lines · 11 tokens per session scan A 28d03935c71b

Subscribe to this mod's changes

self-validate is a skill published in the GitHub repository samibs/skillfoundry (13 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 2,036 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

self-validate compared with skills from other repositories

self-validate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-validatesamibs/skillfoundrySkill131mo agoMITA11Claude Code, Codex
write-e2egreglas75/zuvoSkill7todayMITA101Claude Code
test-auditgreglas75/zuvoSkill7todayMITB100Claude Code
ring:running-dev-cycle-frontendLerianStudio/ringSkill21829d agoApache-2.0C114Cursor
execution/testing-executordynos-fit/dynos-workSkill25d agoMITA31Claude Code
visual-regression-testinghoangatg/ai-agent-toolkitSkill18mo agoMITA37Claude Code, Codex
bdd-cucumberAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA26Claude Code, Codex