unxed/f4 / .agents/skills/aif-build-automation
aif-build-automation
VerifiedAnalyze project and generate or enhance build automation file (Makefile, Taskfile.yml, Justfile, Magefile.go). If a build file already exists, improves it by adding missing targets and best practices. Use when user says "generate makefile", "create taskfile", "add justfile", "setup mage", or "build automation".
templates/justfile-maven
View on GitHub# --- Justfile for JVM Projects (Maven) ---
# Canonical targets; delete recipes your pom/plugins do not define (SKILL Step 5).
set shell := ["bash", "-c"]
project := `basename $(pwd)`
version := `git describe --tags --always --dirty 2>/dev/null || echo "dev"`
commit := `git rev-parse --short HEAD 2>/dev/null || echo "unknown"`
entrypoint := `if [ -f ./mvnw ] || [ -f .mvn/wrapper/maven-wrapper.properties ]; then echo "./mvnw"; else echo "mvn"; fi`
dev_maven_goal := `if ! test -f pom.xml; then printf %s spring-boot:run; exit 0; fi; if grep -qE "quarkus|io\\.quarkus" pom.xml 2>/dev/null; then printf %s quarkus:dev; exit 0; fi; if grep -qE "micronaut|io\\.micronaut" pom.xml 2>/dev/null; then printf %s mn:run; exit 0; fi; if grep -qE "vertx-maven-plugin|io\\.reactiverse" pom.xml 2>/dev/null; then printf %s vertx:run; exit 0; fi; printf %s spring-boot:run`
docker-registry := "ghcr.io"
docker-image := docker-registry + "/" + project
# --- Default ---
default:
@just --list
# --- Development ---
clean:
{{entrypoint}} clean
build:
{{entrypoint}} verify
assemble:
{{entrypoint}} package
dev:
{{entrypoint}} {{dev_maven_goal}}
# --- Testing ---
test:
{{entrypoint}} test
check:
{{entrypoint}} verify
# --- Multi-module: export JVM_MODULE=module-id ---
module-build:
{{entrypoint}} -pl {{ env("JVM_MODULE", "change-me-subproject") }} -am package
module-test:
{{entrypoint}} -pl {{ env("JVM_MODULE", "change-me-subproject") }} -am test
module-check:
{{entrypoint}} -pl {{ env("JVM_MODULE", "change-me-subproject") }} -am verify
# --- Code Quality ---
lint:
{{entrypoint}} verify
fmt:
{{entrypoint}} spotless:apply
lint-checkstyle:
{{entrypoint}} checkstyle:check
lint-spotbugs:
{{entrypoint}} spotbugs:check
lint-pmd:
{{entrypoint}} pmd:check
lint-spotless:
{{entrypoint}} spotless:check
# --- Docker ---
docker-build:
docker build \
--build-arg VERSION={{version}} \
--build-arg COMMIT={{commit}} \
-t {{docker-image}}:{{version}} \
-t {{docker-image}}:latest \
.
docker-push:
docker push {{docker-image}}:{{version}}
docker push {{docker-image}}:latest
# --- Database ---
db-migrate-liquibase:
{{entrypoint}} liquibase:update
db-migrate-flyway:
{{entrypoint}} flyway:migrate
# --- CI ---
ci: clean build
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |