What problem does it solve?
Creating or modifying a functional endpoint of a microservice often requires manual boilerplate generation, correct Go signatures, and consistent testing scaffolds. This Skill automates the end-to-end process by guiding the user through signature-driven boilerplate creation and integration steps.
Core Features & Use Cases
- Define in service.yaml: Add or update a functional endpoint's signature, description, and HTTP method as part of the service's API surface.
- Generate Boilerplate Code: Produce the initial Go handler or RPC function, along with interface stubs and test scaffolds.
- Move Implementation & Test: Relocate implementation when renaming functions and align associated tests.
- Document & Version: Create documentation and trigger code versioning to keep the microservice evolvable.
Quick Start
Use the add-function skill to create a new endpoint MyNewFunction(primitiveParam string, customParam CustomType) (result string) by defining the signature in service.yaml, then run go generate to generate boilerplate and implement business logic.