How this skill is triggered — by the user, by Claude, or both
Slash command
/skills:build [target][target]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Build the project using the detected build system.
Build the project using the detected build system.
$ARGUMENTS - Optional build target or arguments to pass to the build commandLaunch parallel agents to check for multiple build system files simultaneously:
Agent 1 — JVM Build Systems:
Check for: build.gradle.kts, build.gradle, pom.xml
Agent 2 — Native/Systems Build Systems:
Check for: Cargo.toml, go.mod, Makefile, CMakeLists.txt, build.zig
Agent 3 — Web/Scripting Build Systems:
Check for: package.json, deno.json, bun.lockb, composer.json, Gemfile, mix.exs, setup.py, pyproject.toml
Agent 4 — Container Build Systems:
Check for: compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml, Dockerfile
Use the first match from the combined results, prioritized in the order below.
| File | Build System | Build Command | Test Command |
|---|---|---|---|
build.gradle.kts | Gradle (Kotlin DSL) | ./gradlew build | ./gradlew test |
build.gradle | Gradle (Groovy) | ./gradlew build | ./gradlew test |
pom.xml | Maven | mvn package | mvn test |
Cargo.toml | Cargo (Rust) | cargo build | cargo test |
package.json | Node.js | <pm> run build | <pm> test |
go.mod | Go | go build ./... | go test ./... |
Makefile | Make | make | make test |
CMakeLists.txt | CMake | cmake --build . | ctest |
setup.py / pyproject.toml | Python | pip install -e . | pytest |
Gemfile | Ruby | bundle install | bundle exec rake test |
mix.exs | Elixir | mix compile | mix test |
build.zig | Zig | zig build | zig build test |
deno.json | Deno | deno task build | deno test |
bun.lockb | Bun | bun run build | bun test |
composer.json | PHP (Composer) | composer install | composer test or ./vendor/bin/phpunit |
compose.yaml / docker-compose.yml | Docker Compose | docker compose build | docker compose run --rm test |
Dockerfile | Docker | docker build -t <image> . | N/A |
$ARGUMENTS provided, append to build command or use as target./gradlew ktlintCheck, <pm> run lint, cargo clippy, go vet ./...)For Node.js projects, launch TWO parallel agents to determine configuration:
Agent 1 — Detect Package Manager (check for lock files in priority order):
bun.lockb -> use bunpnpm-lock.yaml -> use pnpmyarn.lock -> use yarnnpmAgent 2 — Check package.json Scripts:
package.json and determine available scriptsbuild script exists: <pm> run buildbuild script doesn't exist but it's a TypeScript project: <pm> exec tsc or npx tsctest and lint scripts for verification phase./gradlew wrapper if present, otherwise gradle./gradlew build builds all modules--release flag for production builds: cargo build --release$ARGUMENTS is "release", build in release modeFor PHP projects with composer.json:
composer installtest script exists in composer.json scripts: composer test./vendor/bin/phpunit./vendor/bin/phpstan analysebuild script exists: composer run buildphp artisan optimizephp bin/console cache:clearDocker Compose (preferred when present):
Check for compose files (in order):
compose.yaml (modern standard)compose.ymldocker-compose.yamldocker-compose.ymlBuild: docker compose build $ARGUMENTS
/build --no-cache, /build api)Run tests (if test service exists): docker compose run --rm test
Dockerfile only (no compose file):
Determine image name: Use directory name as default tag
Build: docker build -t <dirname> . $ARGUMENTS
/build --no-cache, /build -f Dockerfile.dev)-f specified)IMPORTANT: If any tests fail during or after the build, fix them. There is no such thing as a "pre-existing" test failure - all test failures must be resolved before the task is considered complete. The task always completes with completely passing tests.
If the build fails, launch TWO parallel agents to diagnose:
Agent 1 — Analyze Error Output:
Agent 2 — Search for Similar Patterns:
Once both agents complete, synthesize their findings to apply the fix, then re-run the build. Repeat until the build succeeds.
If no build system detected:
npx claudepluginhub abnegate/claudes --plugin skillsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.