Imported from waalwalker1/agentic-traffic-threat-triage (.agents/skills/test-first-contract/SKILL.md). Install upstream with npx skills add waalwalker1/agentic-traffic-threat-triage --skill test-first-contract. Copyright stays with the author.
Test First Contract
Freeze Pydantic/JSON contracts before parallel implementation.
For every positive path add at least one failure/edge path.
Shared interfaces require contract tests.
Do not change schemas silently; version or record an ADR.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/waalwalker1-agentic-traffic-threat-triage-test-first-contract/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.