Check Contracts — Testing skill for Claude Code
Verify API contracts in /contracts/ match actual implementations.
How to install Check Contracts
Installs to ~/.claude/commands/kooleklabs-agentic-setup-check-contracts.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/kooleklabs/agentic-setup/HEAD/.claude/commands/check-contracts.md -o ~/.claude/commands/kooleklabs-agentic-setup-check-contracts.md Restart Claude Code, or start a new session, for it to be picked up.
What Check Contracts does
description: Verify API contracts in /contracts/ match actual implementations. Detects drift between spec and code before it reaches production. Run before merging any API-touching branch.
Audit contract files against the current implementation:
Step 1 — Discover contracts
find contracts/ -type f \( -name "*.yaml" -o -name "*.yml" -o -name "*.json" \) 2>/dev/null
ls contracts/ 2>/dev/null || echo "No /contracts/ directory found"
If no `/contracts/` directory exists → re
Alternatives in Testing
- #29 — #52, #103) 92.5k ★
- Claude Code Spec Workflow — Automated Kiro-style Spec workflow for Claude Code 3.6k ★
- AI Contribution Skills (Engram) — branch-pr: clean branch and PR workflow 2.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Root Cause Fix
Root-cause-first TDD loop for any bug or data fix. Forces a failing reproduction test BEFORE touching producti
Review Spec Drift
Checks drift between specs and implementation
AI Native Playbook
The harness I use to run coding agents on regulated production codebases: agent contracts, skills as runbooks,
Zod Schema Architect
A Zod-focused Agent Skill for architecting, designing, validating, testing, and evolving TypeScript/JavaScript
Test Feature
Intelligently test a feature by automatically detecting whether to use MCP, API, or UI testing, and choosing b
Contract Version Bump
Classify and apply a version bump to a machine-readable contract (JSON Schema, API spec, config schema) — vers
Related Agents
Architecture Snapshot
Generates a concise current-state architecture overview with Mermaid diagrams, entry points, key abstractions,
Self Docs Sync Auditor
Read-only auditor for the Docs-sync lens of /self-audit — flags drift between the actual skills/, skills/_lib/
Arch Drift Checker
Detects architecture drift between approved Phase 2 architecture and Phase 5/6 implementation. Runs every N ta