gen-service

Generates Spring Boot Service classes following project transaction and DTO conventions.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/VelkaressiaBlutkrone/spring-python-llm-exam-mng --skill gen-service-velkaressiablutkrone
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gen-service
Source: https://github.com/VelkaressiaBlutkrone/spring-python-llm-exam-mng/tree/main/.claude/skills/gen-service
Command: npx skills add https://github.com/VelkaressiaBlutkrone/spring-python-llm-exam-mng --skill gen-service-velkaressiablutkrone

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing new Service classes by hand often leads to inconsistent annotation ordering, missing transaction boundaries, and accidental exposure of raw JPA entities to controllers. This Skill generates Service classes that strictly follow the project's common-rule.md conventions. ## Core Features & Use Cases - Convention-Compliant Generation: Produces Service classes with the required annotation order (@Transactional(readOnly = true), @RequiredArgsConstructor, @Service) and per-method write transactions. - Guided Interview: Collects the target domain, required business methods, and session-user dependencies through a short one-question-at-a-time interview before generating code. - DTO Enforcement: Ensures Services return DTOs instead of raw entities, and warns when prerequisite Repository or DTO classes do not exist. - Use Case: When adding a new Board domain to a Spring Boot project, ask for a service with list, detail, create, update, and delete methods, and receive a ready-to-use BoardService.java placed in the correct package. ## Quick Start Ask the assistant to create a service for your domain, for example by saying "Board 도메인 서비스 만들어줘" with the business methods you need.

Frequently Asked Questions about gen-service

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Spring Boot Service class with this skill?▼

Trigger it by typing /gen-service or asking in natural language, such as requesting a service for a specific domain. The skill interviews you for the target domain, business methods, and session-user needs, then generates the Service class following project conventions.

What transaction conventions does the generated Service follow?▼

The class is annotated with @Transactional(readOnly = true) at the class level, and each write method such as save, update, or delete gets its own @Transactional annotation. The annotation order is @Transactional, @RequiredArgsConstructor, then @Service.

Does the generated Service return JPA entities to controllers?▼

No, the skill enforces DTO-based returns and never exposes raw entities to controllers. Service methods convert entities into response DTOs before returning them, following the project's common-rule.md rules.

What happens if the Repository or DTO classes do not exist yet?▼

The skill requires the Repository and DTO classes to exist before generation. If they are missing, it notifies you instead of generating code that would not compile.

Can generated Service methods use Korean method names?▼

Yes, Korean method names are allowed because the skill follows the existing project pattern. Examples include methods for listing, detail view, create, update, and delete written in Korean.