/garage:temporal-workflowfrom garage
Builds or changes Temporal workflows and activities using the Java SDK, including SAGA compensation, retries, signals, queries, versioning, child workflows, and continue-as-new.
Ships in garage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Builds or changes Temporal workflows, activities, and their Spring wiring and tests. Determinism bugs, missing compensation, and non-idempotent activities are the top three failure modes; the steps below exist to prevent them.
Workflow: <InterfaceName>, task queue <name>
Forward steps: <activities, in order>
Compensation: <reverse activity per forward step, or "none">
Retry policy: <per activity, from the rules below>
Signals/updates/queries: <list>
Child workflows: <list or none>
Long-running: <yes -> continue-as-new checkpoint>
temporal-spring-boot-starter (auto-discovered @WorkflowImpl /
@ActivityImpl) or manual WorkerFactory wiring.
grep -rE "io\.temporal|temporal-sdk|temporal-spring-boot" build.gradle* pom.xml gradle/*.toml 2>/dev/null
grep -rlE "WorkerFactory|@WorkflowImpl|@ActivityImpl" src/ 2>/dev/null | head
Reuse the existing wiring. Use exactly one style; never register the same workflow through both.references/temporal-patterns.md before writing workflow code (versioning, handlers,
continue-as-new, child vs activity, config-driven machines, failure-mode table).TestWorkflowEnvironment: forward path, compensation order on failure, and
any signal, timer, or unknown-outcome path the change adds. Read references/java-scaffolds.md
when scaffolding a saga, retry options, Spring wiring, or the test harness from scratch../gradlew test or ./mvnw test and show the output, including the
compensation-order test. For command-affecting changes to a deployed workflow, also run replay
tests against recorded histories.Workflow.currentTimeMillis, Workflow.sleep,
Workflow.newRandom, Workflow.randomUUID; no Instant.now(), Thread.sleep, I/O, Spring beans,
or mutable statics. Side effects belong in activities.workflowId + ":" + step) and dedupes at the authoritative boundary (unique constraint, provider
idempotency key).ActivityFailure, ChildWorkflowFailure), compensate, and rethrow; never catch Throwable or
swallow cancellation. Run compensation on cancellation inside a detached cancellation scope.Workflow.await(() -> pendingWork.isEmpty()) then Workflow.await(Workflow::isEveryHandlerFinished).Workflow.getVersion around any change to the commands an open history would
replay; pure refactors need no marker.workflowId and runId in activity logs. No per-method instrumentation.produces:
- type: "code"
format: "java"
paths:
- "src/main/java/.../workflow/{WorkflowName}.java" # @WorkflowInterface
- "src/main/java/.../workflow/{WorkflowName}Impl.java" # @WorkflowImpl
- "src/main/java/.../workflow/{WorkflowName}Activities.java" # Activity interface
- "src/main/java/.../workflow/{WorkflowName}ActivitiesImpl.java"
- "src/main/java/.../workflow/RetryProfiles.java" # one-per-project
- "src/main/java/.../config/TemporalConfig.java" # one-per-project
- "src/main/resources/config/{workflow-name}.yaml" # state machine config
- type: "test"
format: "java"
paths:
- "src/test/java/.../workflow/{WorkflowName}Test.java" # TestWorkflowEnvironment
- type: "doc"
format: "markdown"
path: "docs/workflows/{workflow-name}.md" # sequence diagram + runbook
handoff: "Write claudedocs/handoff-temporal-workflow-<timestamp>.yaml - suggest: verify-impl, monitoring-plan"
TemporalConfig.java only with manual wiring, the state machine YAML only for a config-driven
machine.
fintech-ledger; this skill orchestrates the
calls and compensation around them.maximumAttempts on an external write.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub omexit/claude-skills-pack --plugin garage48 skills in this plugin
/adrUse when the user wants to record an architecture decision, write an ADR or decision record, or explain why a technology, data model, boundary, or pattern was chosen over alternatives./api-designUse when the user is designing, reviewing, or changing an API contract (REST, GraphQL, or RPC): endpoint shape, naming, errors, versioning, pagination, or developer experience, before or apart from implementing it./api-firstUse when the user wants to scaffold or implement a REST endpoint or resource in a Spring Boot project, especially from an OpenAPI snippet or spec: create endpoint, add API, add CRUD, generate controller, or implement POST/GET/PUT/PATCH/DELETE on a resource./arch-reviewUse when the user asks for an architecture review of existing Java or Spring Boot code: clean or hexagonal architecture boundaries, module boundaries, dependency direction, domain leakage, transaction boundaries, or business logic in controllers./code-auditUse when existing implementation code needs a rigorous review: code audit, code review, code quality, code smells, SOLID or duplication concerns, security or performance of a module, production readiness, or a second opinion on code that already exists./competitive-analysisUse when the user asks for a competitive analysis, competitor review, market landscape, feature comparison against rivals, or who else solves this problem.Other plugins' skills for the same job