oastools: Skill for Claude Code

.claude/skills/corpus-test/SKILL.md

corpus-test is a skill for Claude Code 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 Code

Written for Claude Code: installed under .claude/.

This is erraggy/oastools's own configuration. It tells Claude Code how to work on oastools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oastools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to erraggy/oastools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/erraggy/oastools/main/.claude/skills/corpus-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

Made for: Claude Code.

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/github.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/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 corpus-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/erraggy/oastools/corpus-test"><img src="https://agentmods.dev/badge/skills/erraggy/oastools/corpus-test.svg" alt="Reviewed on agentmods" width="80" 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. 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.00024 $0.00455
Opus 5.5 $0.00010 $0.00182
Sonnet 5.5 $0.00005 $0.00091
Haiku 4.5 $0.00002 $0.00046

Measured 1mo ago against content hash 703f329bb93d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (6 stars, last pushed 9d ago), licensed MIT. It adds 24 tokens to every session and 455 once invoked, about $0.0001 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

API Test Suite Generator

Automatically generate comprehensive API test suites from OpenAPI specifications covering CRUD operations, error handling, authentication, pagination, and edge cases.

PramodDutta/qaskills · 29 tokens

API Contract Validator

Validate API responses against OpenAPI/Swagger specifications, JSON Schema definitions, and consumer-driven contracts to prevent breaking changes.

PramodDutta/qaskills · 26 tokens

fastapi-docs

FastAPI 0.115+ — path/query params, Pydantic, dependency injection, OAuth2/JWT, middleware, WebSocket, testing.

pledgeandgrow/pledge-skills · 36 tokens

microcks-openapi-mocking

Write OpenAPI examples that work with Microcks dispatchers for API mocking. Covers example pairing rules, JSON body dispatching, Groovy script dispatching, and dispatcher configuration via the Microcks API.

emmanuelperu/microcks-skills · 47 tokens

microcks-import-artifacts

Import OpenAPI specifications into a running Microcks instance and auto-configure dispatchers based on vendor extensions. Provides shell script templates for importing specs, downloading microcks-cli, and setting up JSONBODY or SCRIPT dispatchers.

emmanuelperu/microcks-skills · 50 tokens

orval

Generate type-safe API clients, TanStack Query/SWR hooks, Zod schemas, MSW mocks, Hono server handlers, MCP servers, and SolidStart actions from OpenAPI specs using Orval. Covers all clients (React/Vue/Svelte/Solid/Angular Query, Fetch, Axios), custom HTTP mutators, authentication patterns, NDJSON streaming…

orval-labs/orval · 83 tokens