How this skill is triggered — by the user, by Claude, or both
Slash command
/build:buildThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Language:** Respond in the user's language. If unclear, default to the language of the user's message.
Language: Respond in the user's language. If unclear, default to the language of the user's message.
Runs the appropriate build command based on the project configuration.
/build [options]
--clean - Run a clean build--watch - Build in watch mode (if supported)--prod - Production build--test - Include testsDetect project type
# Check for package.json (Node.js/npm/yarn/pnpm)
if [ -f "package.json" ]; then
# Detect package manager
if [ -f "pnpm-lock.yaml" ]; then
PM="pnpm"
elif [ -f "yarn.lock" ]; then
PM="yarn"
else
PM="npm"
fi
fi
# Other project types
# - Cargo.toml (Rust)
# - pom.xml (Maven)
# - build.gradle (Gradle)
# - Makefile
# - pyproject.toml (Python)
# - go.mod (Go)
Run build command
# Node.js project
$PM run build
# Rust project
cargo build --release
# Python project
python -m build
# Go project
go build
# If Makefile exists
make
Post-build verification
/build
/build --clean
/build --prod
/build --test
You can specify custom build commands in CLAUDE.md or PROJECT.md:
## Build Configuration
- Build command: `npm run custom-build`
- Test command: `npm run test:all`
- Production build: `npm run build:prod`
Automatic Dependency Installation
npm install if node_modules is missingCargo.lock is missingBuild Script Detection
Error Handling
npx claudepluginhub dobachi/claude-skills-marketplace --plugin buildDetects the project's build system (npm, yarn, pnpm, pip, poetry, gradle, maven, cargo, go, make) and runs build/test commands. Useful for automating project setup and continuous integration.
Detects project type, package manager, and monorepo structure. Returns correct commands for test/build/lint/dev. Run at project initialization and cache results in state. Use before running any build/test commands.
Generates Makefiles for C/C++, Python, Go, Java projects with .PHONY targets, GNU standards, standard targets, security hardening, and CI/CD integration.