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/taskfile-rust.yml
View on GitHub# --- Taskfile for Rust Projects ---
# Usage: task [target]
# Install: https://taskfile.dev/installation/
version: '3'
output: prefixed
dotenv: ['.env', '.env.local']
vars:
PROJECT: '{{.ROOT_DIR | base}}'
VERSION:
sh: git describe --tags --always --dirty 2>/dev/null || echo "dev"
COMMIT:
sh: git rev-parse --short HEAD 2>/dev/null || echo "unknown"
DOCKER_REGISTRY: ghcr.io
DOCKER_IMAGE: '{{.DOCKER_REGISTRY}}/{{.PROJECT}}'
DOCKER_TAG: '{{.VERSION}}'
CLIPPYFLAGS: '-D warnings'
tasks:
# --- Development ---
build:
desc: Build the workspace (debug)
sources:
- ./**/*.rs
- Cargo.toml
- Cargo.lock
cmds:
- cargo build
build:release:
desc: Build release binaries
cmds:
- cargo build --release
run:
desc: Run the default binary (cargo run)
cmds:
- cargo run
dev:
desc: Watch and rebuild (requires cargo-watch)
cmds:
- cargo watch -x check -x test
check:
desc: Fast compile check
cmds:
- cargo check
# --- Testing ---
test:
desc: Run tests
cmds:
- cargo test
test:doc:
desc: Run documentation tests
cmds:
- cargo test --doc
# --- Code Quality ---
lint:
desc: Run clippy
cmds:
- cargo clippy --all-targets --all-features -- {{.CLIPPYFLAGS}}
fmt:
desc: Format with rustfmt
cmds:
- cargo fmt
fmt:check:
desc: Verify formatting (CI)
cmds:
- cargo fmt -- --check
doc:
desc: Build rustdoc locally
cmds:
- cargo doc --no-deps
# --- Docker ---
docker:build:
desc: Build Docker image
cmds:
- >-
docker build
--build-arg VERSION={{.VERSION}}
--build-arg COMMIT={{.COMMIT}}
-t {{.DOCKER_IMAGE}}:{{.DOCKER_TAG}}
-t {{.DOCKER_IMAGE}}:latest
.
docker:push:
desc: Push Docker image
cmds:
- docker push {{.DOCKER_IMAGE}}:{{.DOCKER_TAG}}
- docker push {{.DOCKER_IMAGE}}:latest
# --- CI ---
ci:
desc: Run full CI pipeline
deps: [fmt:check, lint, test, build]
# --- Cleanup ---
clean:
desc: Remove build artifacts
cmds:
- cargo clean
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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |