[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRMTKADFTBHH8S6AD44EMJ":3,"skill-same:01M7CRMTKADFTBHH8S6AD44EMJ":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7CRMTKADFTBHH8S6AD44EMJ","quarkus-service-architecture",null,"Use when building or extending a Java service with Quarkus - layered architecture, JAX-RS resources, CDI beans, Panache persistence, and native-friendly patterns","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fbackend-developer\u002Fskills\u002Fquarkus-service-architecture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: quarkus-service-architecture\ncategory: architecture\ndescription: Use when building or extending a Java service with Quarkus - layered architecture, JAX-RS resources, CDI beans, Panache persistence, and native-friendly patterns\ntech_stack: Java\n---\n# Quarkus Service Architecture\n\n## Overview\n\nQuarkus is the default Java stack: fast startup, low memory, native-image friendly — the closest Java gets to Go's operational profile. Build services in clean layers so the framework stays at the edges and the domain stays plain Java.\n\n**Core principle:** Framework annotations live at the boundaries (resources, repositories). The domain and services are plain classes you can unit-test without booting Quarkus.\n\n## Layers\n\n| Layer | Responsibility | Quarkus surface |\n|-------|----------------|-----------------|\n| Resource | HTTP in\u002Fout, validation, status codes | `@Path`, JAX-RS (`@GET`\u002F`@POST`), `@Valid` |\n| Service | Use-case orchestration, business rules | `@ApplicationScoped` CDI bean, constructor-injected |\n| Domain | Entities, value objects, invariants | plain Java, no annotations driving behavior |\n| Repository | Persistence | Panache (`PanacheRepository`) or JPA |\n\nDependencies point inward: resource → service → domain; repository implements a port the service depends on. A resource never contains business logic; a service never touches `RoutingContext` or JAX-RS types.\n\n## Patterns\n\n- **Constructor injection**, not field injection: `public TaskService(TaskRepository repo)`. Constructor injection is testable without CDI and makes dependencies explicit.\n- **DTOs at the edge**: resources accept\u002Freturn DTOs (records), map to\u002Ffrom domain in the service. Never expose JPA entities directly over HTTP.\n- **Bean Validation** on request DTOs (`@NotNull`, `@Size(max=200)`) + `@Valid` on the resource method — validate at the boundary, reject early.\n- **Reactive vs imperative**: default to imperative (Quarkus REST — formerly branded \"RESTEasy Reactive\" — with blocking) unless the task is genuinely reactive; don't sprinkle `Uni`\u002F`Multi` without cause. A blocking-I\u002FO-heavy endpoint on Java 21+ may run on a virtual thread instead (`@RunOnVirtualThread`) rather than going reactive.\n- **Config** via `@ConfigProperty` from `application.properties`\u002Fenv — never hardcode. Group related settings with `@ConfigMapping` instead of a pile of individual `@ConfigProperty` fields.\n- **Error mapping** centrally with `@ServerExceptionMapper`, returning `RestResponse\u003CProblemDto>` (or the repo's equivalent) — not a `try\u002Fcatch` per resource method (api-design-conventions has the shape).\n- **Dev Services** start a throwaway Postgres automatically in dev\u002Ftest when no `quarkus.datasource.jdbc.url` is set — don't hand-wire a local Postgres for local iteration unless the repo has opted out.\n- **Schema management** outside tests is `quarkus.hibernate-orm.schema-management.strategy=none` (or `validate`); this property was renamed from `quarkus.hibernate-orm.database.generation` in 3.23 — use the current name unless the repo is pinned to an older Quarkus.\n- Target the current LTS (3.40, supported to 2027-09); never move a repo onto the Quarkus 4 beta in a feature task.\n\n## Worked Example\n\n`POST \u002Ftasks` creating a task:\n\n```java\n\u002F\u002F resource (boundary)\n@Path(\"\u002Ftasks\")\npublic class TaskResource {\n    private final TaskService service;\n    public TaskResource(TaskService service) { this.service = service; }\n\n    @POST\n    public Response create(@Valid CreateTaskRequest req) {\n        Task t = service.create(req.title());\n        return Response.status(201).entity(TaskResponse.from(t)).build();\n    }\n}\n\n\u002F\u002F service (plain, unit-testable without Quarkus)\n@ApplicationScoped\npublic class TaskService {\n    private final TaskRepository repo;\n    public TaskService(TaskRepository repo) { this.repo = repo; }\n\n    @Transactional\n    public Task create(String title) {\n        Task t = Task.create(title);   \u002F\u002F domain enforces the \u003C=200 invariant\n        repo.persist(t);\n        return t;\n    }\n}\n```\n\n`CreateTaskRequest` is a record with `@Size(max=200) String title`. The `\u003C=200` invariant is ALSO enforced in `Task.create` so the rule holds even when called from a non-HTTP path.\n\n## Common Mistakes\n\n- Business logic in the resource — it belongs in the service.\n- Returning JPA entities over HTTP (leaks schema, causes lazy-loading serialization errors).\n- Field injection (`@Inject` on a field) — breaks plain unit testing.\n- `@Transactional` on the resource instead of the service.\n\n## Red Flags\n\n- A JAX-RS import inside a domain or service test.\n- A service method that takes a JAX-RS or servlet type.\n- Validation only on the DTO, with the domain invariant unprotected.\n","# Quarkus Service Architecture\n\n## Overview\n\nQuarkus is the default Java stack: fast startup, low memory, native-image friendly — the closest Java gets to Go's operational profile. Build services in clean layers so the framework stays at the edges and the domain stays plain Java.\n\n**Core principle:** Framework annotations live at the boundaries (resources, repositories). The domain and services are plain classes you can unit-test without booting Quarkus.\n\n## Layers\n\n| Layer | Responsibility | Quarkus surface |\n|-------|----------------|-----------------|\n| Resource | HTTP in\u002Fout, validation, status codes | `@Path`, JAX-RS (`@GET`\u002F`@POST`), `@Valid` |\n| Service | Use-case orchestration, business rules | `@ApplicationScoped` CDI bean, constructor-injected |\n| Domain | Entities, value objects, invariants | plain Java, no annotations driving behavior |\n| Repository | Persistence | Panache (`PanacheRepository`) or JPA |\n\nDependencies point inward: resource → service → domain; repository implements a port the service depends on. A resource never contains business logic; a service never touches `RoutingContext` or JAX-RS types.\n\n## Patterns\n\n- **Constructor injection**, not field injection: `public TaskService(TaskRepository repo)`. Constructor injection is testable without CDI and makes dependencies explicit.\n- **DTOs at the edge**: resources accept\u002Freturn DTOs (records), map to\u002Ffrom domain in the service. Never expose JPA entities directly over HTTP.\n- **Bean Validation** on request DTOs (`@NotNull`, `@Size(max=200)`) + `@Valid` on the resource method — validate at the boundary, reject early.\n- **Reactive vs imperative**: default to imperative (Quarkus REST — formerly branded \"RESTEasy Reactive\" — with blocking) unless the task is genuinely reactive; don't sprinkle `Uni`\u002F`Multi` without cause. A blocking-I\u002FO-heavy endpoint on Java 21+ may run on a virtual thread instead (`@RunOnVirtualThread`) rather than going reactive.\n- **Config** via `@ConfigProperty` from `application.properties`\u002Fenv — never hardcode. Group related settings with `@ConfigMapping` instead of a pile of individual `@ConfigProperty` fields.\n- **Error mapping** centrally with `@ServerExceptionMapper`, returning `RestResponse\u003CProblemDto>` (or the repo's equivalent) — not a `try\u002Fcatch` per resource method (api-design-conventions has the shape).\n- **Dev Services** start a throwaway Postgres automatically in dev\u002Ftest when no `quarkus.datasource.jdbc.url` is set — don't hand-wire a local Postgres for local iteration unless the repo has opted out.\n- **Schema management** outside tests is `quarkus.hibernate-orm.schema-management.strategy=none` (or `validate`); this property was renamed from `quarkus.hibernate-orm.database.generation` in 3.23 — use the current name unless the repo is pinned to an older Quarkus.\n- Target the current LTS (3.40, supported to 2027-09); never move a repo onto the Quarkus 4 beta in a feature task.\n\n## Worked Example\n\n`POST \u002Ftasks` creating a task:\n\n```java\n\u002F\u002F resource (boundary)\n@Path(\"\u002Ftasks\")\npublic class TaskResource {\n    private final TaskService service;\n    public TaskResource(TaskService service) { this.service = service; }\n\n    @POST\n    public Response create(@Valid CreateTaskRequest req) {\n        Task t = service.create(req.title());\n        return Response.status(201).entity(TaskResponse.from(t)).build();\n    }\n}\n\n\u002F\u002F service (plain, unit-testable without Quarkus)\n@ApplicationScoped\npublic class TaskService {\n    private final TaskRepository repo;\n    public TaskService(TaskRepository repo) { this.repo = repo; }\n\n    @Transactional\n    public Task create(String title) {\n        Task t = Task.create(title);   \u002F\u002F domain enforces the \u003C=200 invariant\n        repo.persist(t);\n        return t;\n    }\n}\n```\n\n`CreateTaskRequest` is a record with `@Size(max=200) String title`. The `\u003C=200` invariant is ALSO enforced in `Task.create` so the rule holds even when called from a non-HTTP path.\n\n## Common Mistakes\n\n- Business logic in the resource — it belongs in the service.\n- Returning JPA entities over HTTP (leaks schema, causes lazy-loading serialization errors).\n- Field injection (`@Inject` on a field) — breaks plain unit testing.\n- `@Transactional` on the resource instead of the service.\n\n## Red Flags\n\n- A JAX-RS import inside a domain or service test.\n- A service method that takes a JAX-RS or servlet type.\n- Validation only on the DTO, with the domain invariant unprotected.\n",{"name":5,"category":24,"tech_stack":25,"description":7},"architecture","Java","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fbackend-developer\u002Fskills\u002Fquarkus-service-architecture",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill quarkus-service-architecture",{"tool":41,"command":42},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill quarkus-service-architecture",{"tool":44,"command":45},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill quarkus-service-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fbackend-developer\u002Fskills\u002Fquarkus-service-architecture\u002FSKILL.md",true,[],[50,56,63,70,77,84],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]