关于 quarkus
Quarkus 项目的入口技能,面向开展 Quarkus 开发的 Agent。它通过决策树引导到具体领域参考,并提供扩展依赖、构建期集成和测试方面的通用建议。
主要功能
- 01按开发需求定位领域参考
- 02提供依赖注入与配置等领域入口
- 03建议通过 Quarkus platform BOM 对齐扩展版本
- 04强调精简扩展集合与集成测试
适用场景
- 01开始处理 Quarkus 项目任务
- 02选择 REST 或配置等开发参考
- 03规划 Quarkus 扩展依赖
- 04为集成编写高层测试
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ b6k-dev/ quarkus-skill --skill quarkus安装后在 Claude Code 中输入/quarkus确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/cdi-events/api.mdconfiguration.mdgotchas.mdpatterns.mdREADME.mdreferences/configuration/api.mdconfiguration.mdgotchas.mdpatterns.mdREADME.mdreferences/data-migrations/api.mdconfiguration.mdgotchas.mdpatterns.mdREADME.mdreferences/data-orm-advanced/api.mdconfiguration.mdgotchas.mdpatterns.mdREADME.mdreferences/data-orm/api.mdconfiguration.mdgotchas.mdpatterns.mdREADME.mdreferences/data-panache/api.mdconfiguration.mdgotchas.mdpatterns.mdREADME.md详细介绍
Quarkus
将此技能用作任何类型项目中 Quarkus 工作的入口。 使用下方的决策树找到合适的领域,然后加载详细参考资料。
决策树
What do you need?
├─ Dependency injection (CDI / ArC)
│ └─ dependency-injection
├─ Application configuration (.properties, profiles, config mapping)
│ └─ configuration
├─ REST and HTTP APIs
│ └─ web-rest
├─ Templates and server-side rendering (Qute)
│ └─ templates
├─ OpenAPI and API contract documentation
│ └─ openapi
├─ Databases, ORM, migrations, data access
│ ├─ Standard JPA / Hibernate ORM usage
│ │ └─ data-orm
│ ├─ Panache entities and repositories for simpler CRUD/data access
│ │ └─ data-panache
│ ├─ Schema migrations and database evolution with Flyway
│ │ └─ data-migrations
│ └─ Advanced Hibernate ORM features: multiple persistence units, multitenancy, caching, extension points
│ └─ data-orm-advanced
├─ Event streaming and asynchronous messaging channels
│ ├─ Is the event crossing a service/process boundary?
│ │ └─ YES -> messaging
│ └─ NO (in-process only)
│ ├─ Need clustering or non-blocking event loop behavior
│ │ └─ YES -> vertx-event-bus
│ └─ Want portability and type safety
│ └─ YES -> cdi-events
├─ Communicating with external APIs, communication between services
│ ├─ Need asynchronous delivery, replay, or broker-managed fan-out
│ │ └─ messaging
│ ├─ Need synchronous request/response calls
│ │ └─ service-communication
│ │ ├─ Shared protobuf contract and HTTP/2 streaming fit well
│ │ │ └─ service-communication-grpc
│ │ └─ Standard HTTP/JSON or simpler interoperability matters more
│ │ └─ service-communication-rest
├─ Authentication, authorization, identity providers
│ ├─ Need core Quarkus security concepts, RBAC, built-in auth mechanisms, or custom policies
│ │ └─ security-core
│ ├─ Protect endpoints with OpenID Connect
│ │ ├─ Inbound bearer tokens, browser login redirects, or hybrid OIDC apps
│ │ │ └─ security-oidc
│ │ └─ Outbound token acquisition, refresh, exchange, or propagation to downstream services
│ │ └─ security-oidc-client
│ ├─ Need JWT verification or token building without full OIDC integration
│ │ └─ security-jwt
│ ├─ Need username/password identity stores backed by JPA, JDBC, or LDAP
│ │ └─ security-identity-providers
│ ├─ Need passkeys or WebAuthn flows
│ │ └─ security-webauthn
│ └─ Need to test secured applications
│ └─ security-testing
├─ Logging, health, metrics, traces
│ ├─ Need help choosing signals, management exposure, or local observability stack
│ │ └─ observability
│ ├─ Logging configuration, JSON logs, MDC, and log shipping
│ │ └─ observability-logging
│ ├─ Liveness/readiness/startup probes and Health UI
│ │ └─ observability-health
│ ├─ Metrics, Micrometer registries, and Prometheus/OTLP export
│ │ └─ observability-metrics
│ └─ Distributed tracing, propagation, and OpenTelemetry
│ └─ observability-tracing
├─ Native image, jars, and container packaging
│ └─ native-and-packaging
│ ├─ Need a native build, closed-world metadata, native SSL, or native-only runtime behavior
│ │ └─ native-image
│ ├─ Need JVM artifact shape decisions: `fast-jar`, `uber-jar`, `mutable-jar`, layout, or re-augmentation
│ │ └─ packaging-jars
│ └─ Need container image packaging: Jib, Docker, Podman, OpenShift, Buildpacks, tags, push, or base images
│ └─ packaging-containers
├─ Testing
│ └─ Start with the feature module you are testing (for example `security-testing` or `native-image`)
└─ Dev mode, CLI, build plugins
└─ tooling
通用指南
- Quarkus 会在构建时解析大部分框架配置,因此许多集成错误会在构建或启动时暴露,而不是等到运行时深处才出现。
- 通过 Quarkus 平台 BOM 对齐所有扩展版本。
- 从最小的扩展集合开始,然后只添加功能所需的扩展。
- 切勿跳过编写高层集成测试,并优先编写此类测试,而非单独测试各个组件。只有在确实有益时才编写单元测试,例如实现具有复杂逻辑的方法。
评论
支持 Markdown