ワンクリックで
prepare-backend-release
Use when preparing a backend release — runs tests and builds the distributable JAR
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when preparing a backend release — runs tests and builds the distributable JAR
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when deploying the frontend application to Cloudflare Workers Static Assets
Use when regenerating the TypeScript API client from the backend OpenAPI specification
Use when renaming the project identity — Kotlin package, slug, or display name
| name | prepare-backend-release |
| description | Use when preparing a backend release — runs tests and builds the distributable JAR |
Build a production-ready backend artifact and optionally a Docker image. This skill is provider-neutral — it does not push images, deploy, or publish anything. It only verifies, tests, and assembles the deliverable.
./gradlew test)./gradlew shadowJar)docker build ./ -t backend)java --version.build.gradle.kts sets SKIP_BOOTSTRAP=true and
SKIP_DATABASE=true automatically. See the
Env vars table in AGENTS.md if you do
need to override defaults in other contexts.Run the test suite
cd backend
./gradlew test
This starts a Testcontainers PostgreSQL instance (requires Docker),
runs Flyway migrations, and executes all JUnit Platform tests.
Tests use SKIP_BOOTSTRAP=true and SKIP_DATABASE=true by default
(configured in build.gradle.kts).
All tests must pass before proceeding to the build step.
Build the ShadowJar
./gradlew shadowJar
Produces backend/build/libs/backend-all.jar — a fat JAR containing the
application and all its dependencies (excluding logback.xml which is
excluded in the build config).
Verify the artifact
test -s build/libs/backend-all.jar && echo "JAR exists and is non-empty"
jar tf build/libs/backend-all.jar | grep -c '\.class'
Confirm the JAR exists, is non-empty, and contains compiled classes.
Runtime smoke-testing (e.g. starting the JAR) requires an explicitly
configured database and environment — it is not part of this skill;
use ./gradlew run or your deployment pipeline for that.
(Optional) Build Docker image
docker build ./ -t backend
This three-stage build:
Skip this step if you are not using Docker for distribution. The skill does not tag with version numbers or push to any registry.
build/reports/tests/test/).backend-all.jar is present and runnable.docker images backend shows the image.jar tf build/libs/backend-all.jar.| Failure | Behaviour |
|---|---|
| Test failures | Fix failing tests before proceeding; inspect build/reports/tests/test/index.html |
shadowJar fails | Check compilation errors; verify dependencies resolve |
| Missing JDK 21 | Install via SDKMAN, asdf, or system package manager |
| Docker not available | Tests will fail (Testcontainers requires Docker); install Docker first |
| Docker build fails | Check Dockerfile syntax and base image availability |
Refer to the Env vars section in AGENTS.md for
the complete list of supported variables, defaults, and purposes. Sensible
defaults exist for local development; in CI environment variables can be
overridden as needed.
AGENTS.md — Dev startup, testing, Docker build commandsbackend/Dockerfile — Multi-stage Docker buildbackend/build.gradle.kts — ShadowJar and test configuration