corpus-test

corpus-test is a skill for Claude Code, Codex from erraggy/oastools. It costs 24 tokens per session (455 once invoked), scanned A, original, MIT.

A regression-testing command for checking the tool against real-world OpenAPI documents. OpenAPI is a standard format for describing web APIs.

In plain words
What is it for?
Use it to run the full or shorter corpus test suite, then review whether documents were parsed, validated, fixed, or produced new warnings.
Why use it?
Testing only small examples can miss failures found in real specifications, some of which intentionally contain validation errors.

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/erraggy/oastools/corpus-test
Any agent
npx skills add erraggy/oastools --skill corpus-test
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

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 corpus-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/erraggy/oastools/corpus-test.svg)](https://agentmods.dev/skills/erraggy/oastools/corpus-test)
Your own site
<a href="https://agentmods.dev/skills/erraggy/oastools/corpus-test"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/corpus-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 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.00024 $0.00455
Opus 5 $0.00012 $0.00228
Sonnet 5 $0.00005 $0.00091
Haiku 4.5 $0.00002 $0.00046

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

Security

Grade A, and why

corpus-test 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 4d 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.

.claude/skills/corpus-test/SKILL.md · 81 lines

What it actually says

corpus-test

Run integration tests against the corpus of real-world OpenAPI specifications.

Usage:

  • /corpus-test — run all corpus tests
  • /corpus-test short — exclude large specs (faster)

Step 1: Check Corpus Availability

Use the Glob tool to check for corpus files:

pattern: testdata/corpus/*.{json,yaml,yml}

If no corpus files found, download them:

make corpus-download

Step 2: Run Corpus Tests

Based on the mode argument:

Full mode (default):

make test-corpus

Short mode (argument = "short"):

make test-corpus-short

Capture and analyze the output.

Step 3: Analyze Results

Note: Corpus specs are real-world documents (Plaid, DigitalOcean, GitHub, etc.) that often contain validation errors intentionally. Validation failures are expected — the key metric is whether the fixer resolves them.

For each corpus spec, report:

  • ✅ Parse/validate/fix succeeded
  • ❌ Failures with error details (fixer failed to resolve validation errors)
  • ⚠️ New warnings compared to expected behavior

Step 4: Report

## Corpus Test Results

| Spec | Parse | Validate | Fix | Notes |
|------|-------|----------|-----|-------|
| petstore.yaml | ✅ | ✅ | ✅ | |
| github-api.json | ✅ | ❌ | ⚠️ | [details] |
| ... | ... | ... | ... | ... |

### Summary
- **Passed**: N/M specs
- **Failed**: [list]
- **New issues**: [list]

Step 5: Offer Actions

If failures are found:

  1. Investigate — deep dive into specific failures
  2. Compare with main — check if failures are regressions
  3. File issues — create GitHub issues for new failures
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. 4d ago First seen · 81 lines · 24 tokens per session scan A 703f329bb93d

Subscribe to this mod's changes

corpus-test is a skill published in the GitHub repository erraggy/oastools (5 stars, last pushed 6d ago), licensed MIT. It adds 24 tokens to every session and 455 once invoked, about $0.0001 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-31.