Generate a REST API endpoint with handler, route, and basic tests. Use when adding new API endpoints to the project.
Create a new REST API endpoint with handler function, route registration, request/response types, and a basic test file.
Read the project's dependency file to determine which web framework is in use:
Create the handler file following the project's existing patterns. Look at existing handlers for:
Add the route to the project's router configuration. Match the existing route registration style.
Define request and response types/structs for the endpoint.
Create a basic test file with:
Run the project's test suite to confirm the new tests pass and nothing is broken.
LuminairPrime/git-worktrees-prime
49d6ae2
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.