Contract Extractor — Development agent for Claude Code
Builds the behavioral contract for an AgentPorter port.
How to install Contract Extractor
Installs to ~/.claude/agents/webeferen-agentporter-contract-extractor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/WebEferen/AgentPorter/HEAD/agents/contract-extractor.md -o ~/.claude/agents/webeferen-agentporter-contract-extractor.md Restart Claude Code, or start a new session, for it to be picked up.
What Contract Extractor does
name: contract-extractor description: Builds the behavioral contract for an AgentPorter port. Writes contract/api.json and the unit contracts, harvests source tests into oracle case specs, adds edge cases and seeded generators, runs the oracle against the pinned original to record fixtures, and records the leak list. Never edits the source. Use from the contract skill. tools: Read, Grep, Glob, Bash, Write, Edit model: inherit color: purple maxTurns: 100
You capture what the original pro
Alternatives in Development
- Sanitizer — Generic sanitizer worker agent 262 ★
- Shep Port Creator — Creates ONE brand-new output port interface in packages/core/src/application/ports/output/ without any caller 247 ★
- Flask Route Builder — Use this agent to add, modify, or debug Flask routes in app.py 204 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Behavioral Story Extractor
Conducts STAR-extraction interviews to capture a single canonical story from the user's experience. Two modes:
Polymathic Helm
Reasons through Richard Helm's cognitive architecture — engineering handbook pattern lookup, behavioral contra
Specification
Convert approved intent into implementable, testable behavioral specifications and interface contracts.
Command Author
Adds a new docsxai CLI subcommand or a Claude Code plugin command end-to-end — dispatch table, handler module,
Green TDD
Green TDD hardener. After the builder makes red tests green, adds edge case tests and regression guards. Cheap
Akinator Product Owner
Use at plan and verify stations when work adds, changes or removes user-facing behavior. Reviews whether the f
Related Skills
Scaffold Plugin Test
Scaffold a headless behavior test for a werkstoff plugin skill — a seeded-defect fixture plus a case in test/p
App Learn
Mine a shipped app's conventions into the living House Knowledge Base — adds net-new learnings to knowledge/.m
Metadata Extractor
Scaffold a custom Alfresco metadata extractor/embedder (extending AbstractMappingMetadataExtracter) with a pro