Skills & Rules/Rules
Skills & Rules
The main ApiHug rule documents and what each one governs.
The ApiHug rules are the working constitution for contract-first delivery. They explain what can be modeled, where handwritten code belongs, and what reviewers should reject.
apihug-proto-api-extension-guide
Defines how service, operation, request, response, authorization, paging, and schema metadata are expressed through the ApiHug swagger extensions.
Related site docs:
apihug-proto-database-modeling-guide
Defines how entity messages map to tables, columns, wires, indexes, and persistence conventions.
Related site docs:
apihug-proto-enum-error-extension-guide
Defines business enum metadata, multilingual messages, and structured error payload design.
Related site docs:
apihug-impl-golden-rule
Defines how generated service skeletons, repository traits, security boundaries, and domain logic should be implemented.
apihug-impl-front-vben-guide
Defines the generated SDK, page structure, route generation, and Vben-based frontend conventions.
These are not generic style guides. They exist to preserve the ApiHug generation model:
Use the proto rule guides while designing contracts. Use the implementation rules while writing or reviewing handwritten code. When a workflow skill asks for a review, these are the rule surfaces it should apply.
Official sources for this page:
github.com/apihug/skillsskills/rules