Outcome
Estimated outcome
Hundreds of development hours saved across partner adapter work.
An estimated, cumulative saving, based on my experience delivering the integrations. It comes from less repeated implementation and rework, not from skipping review. I’m not claiming a precise hour count or a per-adapter figure.
The challenge
Every partner arrived as a contract and had to leave as code
Each partner brought escrow terms, participants, fee rules, funding conditions, and payout requirements that had to become working integration code.
That takes two kinds of expertise at once: understanding the agreement, and translating it into the platform’s architecture and conventions. Done by hand, each new adapter meant re-deriving the same kinds of decisions, and re-learning the same review lessons.
4.2 Release of Funds. Upon Buyer’s written acceptance of a Milestone, Escrow Agent shall release the Milestone Amount to Seller within five (5) Business Days, less a Platform Fee of 1.5%, not to exceed $250.
- trigger
- buyer accepts milestone
- release_to
- seller
- deadline
- 5 business days
- fee
- 1.5%, max $250
- fee_payer
- seller (deducted)
Question for peoplePartial acceptance isn’t covered. Release the accepted portion, or hold the whole milestone?
/milestones/{id}/release:
post:
summary: Release accepted funds
description: >
Seller receives the amount
minus fee (1.5%, max 250.00)
responses:
'202': Release scheduled
'409': Milestone not accepted
Drafted · awaiting internal and partner sign-off
My contribution
What I built
I created a Claude-assisted workflow that interprets escrow contracts and partner requirements, identifies unanswered questions, and generates partner adapters.
The hard part wasn’t prompting. It was teaching the domain: I encoded the knowledge an experienced engineer brings to each integration into reusable guidance, and taught it through instructions, worked examples, specialized roles, and iterative feedback.
- 01Platform architecture and implementation patternsSo generated code fits the codebase it lands in.
- 02Reference adaptersWorking examples of what a finished integration looks like.
- 03Financial rules and fee handlingThe conventions that money movement has to follow.
- 04Testing expectationsWhat has to be proven before an adapter is ready for review.
- 05Lessons from code reviewFindings from earlier adapters, so they aren’t repeated.
The agent workflow
Eight roles, each with a bounded job
Contract and requirements analysis fed a clarification step, then flow design and an OpenAPI specification. After approval, specialized agents generated fee logic, endpoint implementations, tests, and documentation.
- 01 · ResearchResearchReads the contract and requirements, and lists the terms and open questions.
- 02 · DesignFlow architectureShapes the escrow flow to fit the platform’s architecture.
- 03 · ContractOpenAPI specificationDocuments the API contract that people approve.
- 04 · BuildFee calculationImplements the fee rules from the agreed terms.
- 05 · BuildEndpoint implementationBuilds endpoints that follow the platform’s patterns.
- 06 · VerifyTestingWrites the tests, including fee boundaries.
- 07 · VerifyCode reviewChecks the change against conventions and past lessons.
- 08 · LearnPR feedbackWorks through review feedback on the pull request.
Each role had a bounded responsibility and an expected output. Claude received specific project context and constraints, not a generic instruction to “write an integration.”
Human gates
Keep decisions with people
The workflow drafts. People decide. Nothing moved to implementation until the right people had signed off, and generated code was validated like any other change.
-
01
Clarify before design
RuleUnresolved requirements became explicit questions, answered by people before any flow was designed. Contract interpretation went to people for review, not straight into design.
-
02
Approve the flow
RuleThe flow design was approved before the API contract was written.
-
03
Sign off the API contract
RuleThe OpenAPI specification needed internal and partner approval before implementation started.
-
04
Validate like any other code
RuleFee logic, accounting consistency, permissions, type checks, and tests stayed part of engineering validation, and generated code went through code review.
Review lessons
Make review improve the next adapter
Recurring review findings were captured in shared lessons and implementation guidance.
Each new adapter could reuse both the patterns that worked and the corrections that were made, so the same constraints didn’t have to be rediscovered on every integration.
Business value
Repeated integration work became a reusable process
The estimated saving, hundreds of development hours across partner adapters, came from reducing repeated implementation and rework.
Human review of business assumptions, financial behavior, and API contracts stayed in place throughout.
Teach the conventions. Automate the repetition. Keep the decisions with people.
What this demonstrates