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

Quality

Scored by GLM 5.3

Content

61%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A token-efficient, well-sequenced instruction-only skill body that assumes Claude's competence and stays appropriately small. Its weaknesses are missing executable specifics: no example controller skeleton, an unlocated "stable error contract", and no verification step after generation.

Suggestions

Add a minimal example controller sketch (class with @RestController, constructor injection, one OpenAPI-annotated endpoint) so the expected output shape is copy-paste concrete.

Point "the stable error contract" at its actual file or definition (e.g., a path like /.claude/rules/errors.md) so error mapping is executable rather than aspirational.

Add a verification step to the Method (e.g., "6. Verify the sketch compiles and the generated tests cover happy/validation/authz paths") to close the validation gap.

Give "lombok.md" a full path consistent with the rest.md reference so navigation is unambiguous.

DimensionReasoningScore

Conciseness

The body is lean with no explanation of concepts Claude already knows; only the "Role:" and "Trigger:" lines and the "# Skill:" heading duplicate frontmatter and could be trimmed.

4 / 5

Actionability

Concrete constraints are present ("`@RequiredArgsConstructor` allowed", "no field `@Autowired`", "required tests (happy/validation/authz)"), but there is no example controller sketch and "Map errors to the stable error contract" never says where that contract lives — key details are missing.

3 / 5

Workflow Clarity

The five numbered steps form a clear sequence, but there is no validation or verification checkpoint (e.g., compile the sketch or run the required tests), leaving checkpoints only implicit.

3 / 5

Progressive Disclosure

The short, well-organized body uses a one-level reference with a full path ("/.claude/rules/rest.md"), but the citation of "`lombok.md`" gives no path, a minor navigation gap.

4 / 5

Total

14

/

20

Passed

Description

70%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A concise, well-scoped description that explicitly covers both capability and trigger conditions in third-person imperative style. Its main gaps are the single-action scope and a trigger clause that could include more natural synonyms such as "endpoint" or "REST controller".

Suggestions

List the concrete sub-actions the sketch includes (e.g., generate controller class, add OpenAPI annotations, wire constructor injection, emit test skeletons) to raise specificity beyond a single action verb.

Broaden the 'Use when' clause with natural synonyms, e.g., "Use when adding, reshaping, or reviewing HTTP endpoints, REST controllers, or API adapters".

DimensionReasoningScore

Specificity

"Sketch a Spring MVC/WebFlux controller... with constructor injection and OpenAPI annotations" names the domain and a single concrete action with specific constraints, but offers only one action verb rather than the several concrete actions of the anchor above.

3 / 5

Completeness

It explicitly answers both what ("Sketch a Spring MVC/WebFlux controller... with constructor injection and OpenAPI annotations") and when ("Use when adding or reshaping HTTP controllers"), but the when clause is a single trigger phrase rather than the concrete multi-phrase coverage of the top anchor.

4 / 5

Trigger Term Quality

"controller", "HTTP controllers", "Spring MVC/WebFlux", and "adding or reshaping" are natural terms a user would say, though common synonyms like "endpoint", "REST", or "REST API" are missing.

4 / 5

Distinctiveness Conflict Risk

"Spring MVC/WebFlux controller for an Orbit module" carves a clear niche with distinct triggers; only minor overlap risk with closely related Spring or service-layer skills.

4 / 5

Total

15

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

14

/

16

Passed

Repository

chandrakanthbalaraman/spring-boot-microservices

Path

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

Reviewed

Table of Contents

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.