Skills & Rules/Workflow
Skills & Rules
The ApiHug contract-first workflow from proto design to implementation review.
ApiHug uses a contract-first workflow: design the contract, generate the framework surface, implement only the handwritten parts, then review the result against framework rules.
The workflow turns one protobuf contract into a delivery path for design, generation, implementation, and review.
The workflow keeps teams out of the most expensive failure mode in generated systems: manually editing the wrong layer and drifting away from the contract.
The standard contract-first lifecycle is:
apihug-create-storyTurns a scoped unit of work into an implementation-ready story with ApiHug-specific context.
apihug-dev-storyGuides execution across generated backend and frontend boundaries without violating the framework architecture.
apihug-proto-reviewChecks whether the contract design still follows ApiHug protobuf rules.
apihug-impl-reviewChecks whether the handwritten implementation still follows ApiHug backend and frontend golden rules.
The workflow only works if generated outputs remain generated. In practice that means:
src/main/protoThat separation is what lets ApiHug regenerate safely while keeping business logic intact.