CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

generate-controller

Use this skill when asked to add or reshape an HTTP controller or adapter in a module. It outlines steps for confirming the resource model, applying controller design constraints, annotating endpoints, mapping errors, and producing a sketch with happy-path, validation, and authorization tests.

Quality

71%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./.cursor/skills/generate-controller/SKILL.md
SKILL.md
Quality
Evals
Security

Role: Skill — controller sketch generator

Skill: generate-controller

Trigger: user asks for a controller or HTTP adapter in a module.

Method

  1. Confirm resource model with REST rules (/.claude/rules/rest.md).
  2. Constructor injection only (@RequiredArgsConstructor allowed — lombok.md); no field @Autowired; no business logic beyond delegation.
  3. Annotate every public endpoint with OpenAPI annotations.
  4. Map errors to the stable error contract.
  5. Output: controller sketch + required tests (happy/validation/authz).
Repository

chandrakanthbalaraman/spring-boot-microservices

Path

.cursor/skills/generate-controller/SKILL.md

Last updated
First committed
Purpose
DevelopmentAPI developmentTesting and QA
Form
Workflow

Is this your skill?

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.