본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)40k · #7255

java-helidon

하는 일

이 에이전트는 모범 사례를 따라 Java 프레임워크인 Helidon용 코드를 작성하도록 돕습니다. 최신 버전(Helidon 4)에 맞고 잘 정리된 코드를 쓰도록 합니다.

사용하는 경우

  • ✓Helidon 4로 새 프로젝트를 시작할 때.
  • ✓오래된 프로젝트를 Helidon 4로 옮길 때.
  • ✓모범 사례를 따르는 코드 예제가 필요할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/java-helidon/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/java-helidon/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Maven을 사용해 Helidon 4 프로젝트를 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 사용자의 코드를 최신 Helidon 4 규칙과 비교해, 프로젝트를 정리하는 가장 좋은 방법, 의존성 설정, 잘 작동하는 코드 작성 방법을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Helidon Best Practices

Your goal is to help me write high-quality Helidon applications by following established best practices.

Helidon 3 → 4 API changes

Helidon 4 renamed or resignatured APIs that appear widely in their Helidon 3 form. The left column does not compile on Helidon 4. Check generated code against this table before returning it.

Do not use (Helidon 3) Use (Helidon 4)
io.helidon.common.http.Http.Status io.helidon.http.Status
io.helidon.webserver.Service io.helidon.webserver.http.HttpService
Routing.Rules, update(Routing.Rules) HttpRules, routing(HttpRules)
request.path().param("id") request.path().pathParameters().get("id")
String s = column.as(String.class) column.getString() or column.get(String.class)
dbClient.execute(exec -> ...) returning Single/Multi dbClient.execute() returning Optional<DbRow> / Stream<DbRow>
javax.* jakarta.*
helidon-microprofile-tests-junit5 helidon-microprofile-testing-junit5

Value.as(Class) in Helidon 4 returns OptionalValue<T>, not T. This is the single most common Helidon 4 compile error in generated code.

Project Setup & Structure

  • Programming Model: Determine whether the project uses Helidon SE or Helidon MP before generating code. Do not mix the two programming models unless explicitly required.
  • Java Version: Use Java 21 or later for Helidon 4 applications.
  • Build Tool: Use Maven (pom.xml) or Gradle (build.gradle) for dependency management.
  • Dependency Management: Use the Helidon BOM or platform to keep Helidon module versions aligned.
  • Package Structure: Organize code by feature or domain, such as com.example.app.order and com.example.app.customer, rather than only by technical layer.

Helidon SE

  • Explicit Composition: Construct services and dependencies explicitly in the application bootstrap layer.
  • Constructor Injection: Pass required dependencies through constructors and declare dependency fields as private final.
  • HTTP Services: Group related routes in focused HttpService implementations.
  • Business Logic: Keep business logic outside route handlers.
  • Virtual Threads: Prefer straightforward blocking code with Helidon 4 virtual-thread-based request handling. Do not introduce reactive complexity without a clear reason. Helidon 4 is not reactive; do not generate Single, Multi, or CompletionStage chains.

Helidon MP

  • Jakarta and MicroProfile: Prefer standard Jakarta EE and Eclipse MicroProfile APIs when available.
  • Dependency Injection: Use CDI with constructor injection for required dependencies.
  • Bean Scopes: Use CDI scopes such as @ApplicationScoped and @RequestScoped intentionally.
  • Normal-Scoped Beans: Add a non-private no-argument constructor to normal-scoped beans that use constructor injection, so the CDI client proxy can be created portably.
  • Business Logic: Keep Jakarta REST resource classes thin and delegate business operations to service classes.
  • Portability: Prefer portable Jakarta and MicroProfile APIs over Helidon-specific APIs when portability is important.

Configuration

  • Externalized Configuration: Store non-secret configuration in application.yaml or application.properties.
  • Helidon SE Configuration: Use Helidon Config and pass configuration values or typed configuration objects to components.
  • Helidon MP Configuration: Use MicroProfile Config for injected application settings.
  • Environment Overrides: Use environment variables or deployment-specific configuration sources for environment-dependent values.
  • Secrets Management: Never hardcode credentials, API keys, tokens, or private certificates.

Web Layer

…

자주 묻는 질문

Helidon SE와 Helidon MP의 차이는 무엇인가요?

Helidon SE(표준 에디션)는 더 기본적이고 유연하며, Helidon MP(MicroProfile)는 애플리케이션을 만들기 위해 CDI, JAX-RS 같은 더 확립된 표준을 사용합니다.

Helidon 4 API를 쓰는 것이 왜 중요한가요?

Helidon 4 API는 더 효율적이고 안전하도록 업데이트되었습니다. 이 API를 쓰면 흔한 오류를 피하고 새 버전과의 호환성을 보장할 수 있습니다.

'모범 사례'란 무엇인가요?

코드를 더 쉽게 이해하고 유지보수할 수 있으며 오류가 덜 나도록 하는 권장되는 가장 효율적인 코드 작성 방법입니다.

상세 정보

작성자의 원본 설명

Get best practices for developing applications with Helidon 4 (SE and MP). Use when working with Helidon SE or Helidon MP, HttpService routing, Helidon DB Client, MicroProfile Config, Helidon Security, or Helidon testing in Java 21+ projects.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7255
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬