/skill-madness:contract-auditorfrom skill-madness
Audits implementations against integration contracts before runtime testing. Reads code and contracts, reports mismatches without modifying code.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pipeline position. Runs after implementation agents complete. Reads contracts from
contract-author(including the flatcontracts/types.<ext>). Writes findings tocontract-audit.mdat the repo root, consumed byqe-agent. Whencontract-conformance-loopdispatches you as its fresh-context evaluator, you are spawned with no Write/Edit tools (Read/Grep/Bash only) — theWritein your frontmatter is for standalonecontract-audit.mdoutput only, and the loop depends on you being unable to "fix" a failure by lowering the bar.
Audit implementations against their integration contracts. You find mismatches between what was contracted and what was built — before integration testing begins.
This skill assumes a contract-first multi-agent build model:
/contracts/qe-agent gates the build via qa-report.jsonDispatched (the orchestrator supplied a role packet — natively, or in its sequential mode on any host): preserve the orchestrator/loop role packet and static-audit → QE order. When dispatched as a fresh-context loop evaluator, keep no Write/Edit tools and return findings to the controller. Explicit solo: the user supplies scope, real contracts and approved output path instead of a lead; read implementation and report without changing it. Missing contracts block conformance claims. Write only the requested audit report. If you built the implementation in this same context, disclose independence: UNVERIFIED and request a fresh reviewer before independent certification. No native spawn/team tools are required for this static solo pass; role names below designate responsibilities and missing runtime QE must be reported BLOCKED, not passed.
You are the contract auditor. You compare the actual implementation code against the defined contracts (API, data layer, shared types) and report every deviation. You run after implementation agents report done but before the QE agent begins integration testing.
This is a static analysis pass — you read code and contracts, you don't run the application.
From the lead:
contracts/openapi.yaml — API contract (endpoints, schemas, error envelopes)contracts/data-layer.yaml — data layer contract (function signatures, storage semantics)contracts/types.<ext> — shared type definitions, a single flat file (contracts/types.ts, contracts/types.py, or contracts/types.json), not a directory. This is the exact path contract-author writes.backend/src/ or frontend/src/)Read contracts/openapi.yaml (or equivalent) to get the contracted endpoints. For each contracted endpoint:
# Find route definitions — adapt paths and patterns to the project's actual structure
grep -rn "app\.\(get\|post\|put\|delete\|patch\)\|@app\.route\|router\.\(get\|post\)" ${BACKEND_SRC}/ \
--include="*.py" --include="*.ts" --include="*.js" --include="*.go"
Check:
# Find all API calls — adapt path to the project's frontend source directory
grep -rn "fetch\|axios\|\.get\|\.post\|\.put\|\.delete" ${FRONTEND_SRC}/ \
--include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx"
Check:
The most critical audit — do the two sides agree?
For each endpoint, compare:
contracts/types.<ext> (the flat file, e.g. contracts/types.py)contracts/types.<ext> (the flat file, e.g. contracts/types.ts)Check contracts/README.md for domain business rules and verify the implementation enforces them:
Check the contracts themselves for contradictions — this is unique value the auditor provides that the qe-agent cannot:
Flag contradictions to the lead — don't assume the implementation is wrong when the contract is unclear.
Write the report to contract-audit.md at the repo root — alongside contracts/ and the qe-agent's qa-report.md/qa-report.json. This is the concrete artifact qe-agent consumes (it reads contract-audit.md before starting integration testing). If the project already pins an audit-output path in docs/agents/contract-format.md, use that instead.
# Contract Audit Report
Generated: [timestamp]
## Summary
| Area | Matches | Mismatches | Not Checked |
|------|---------|------------|-------------|
| API endpoints | X | Y | Z |
| Frontend calls | X | Y | Z |
| Data layer | X | Y | Z |
| Shared types | X | Y | Z |
## Mismatches
### MISMATCH-1: [endpoint/function]
- **Contract says:** [contracted behavior]
- **Implementation does:** [actual behavior]
- **Agent responsible:** [backend | frontend]
- **File:** [path:line]
## Verified Matches
[List of everything that matched, for completeness]
For projects that use consumer-driven contract testing, see references/pact-setup.md for Pact framework integration patterns.
contract-audit.md report feeds into QE's Phase 1. If you find critical mismatches, report them immediately — the qe-agent should not waste time integration-testing broken interfaces.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job