Install
$ agentstack add skill-softspark-ai-toolkit-build ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Build Project
$ARGUMENTS
Build the current project.
Project context
- Project config: !
cat package.json 2>/dev/null || cat pyproject.toml 2>/dev/null || echo "unknown"
Auto-Detection
Run the bundled script to detect build system:
python3 ${CLAUDE_SKILL_DIR}/scripts/detect-build.py [dev|prod|docker]
Usage
/build [target]
What This Command Does
- Detects project type
- Runs appropriate build command
- Reports build status
Build Commands by Project Type
| Project Type | Build Command | |--------------|---------------| | Node.js | npm run build or pnpm build | | Python | poetry build or pip install -e . | | Flutter | flutter build | | Go | go build ./... | | Rust | cargo build --release | | Docker | docker compose build |
Output Format
## Build Report
### Status: Success / Failed
### Build Details
- **Project**: [name]
- **Type**: [type]
- **Command**: [command used]
- **Duration**: [time]
### Artifacts
- [artifact 1]
- [artifact 2]
### Warnings
- [warning if any]
### Errors
- [error if any]
Targets
| Target | Description | |--------|-------------| | dev | Development build | | prod | Production build | | docker | Docker image build | | all | Build all targets |
MANDATORY: Documentation Update
After build configuration changes, update documentation:
When to Update
- Build config changes -> Update build docs
- New dependencies -> Update requirements docs
- Docker changes -> Update Docker docs
- CI changes -> Update CI/CD docs
Post-Build Changes Checklist
- [ ] Build successful
- [ ] README build instructions updated (if changed)
- [ ] CI/CD config documented
Rules
- MUST detect the build system automatically (
detect-build.py) before invoking any command - NEVER run a
cleanbuild when incremental works — clean only on explicit user request - CRITICAL: surface the first build error literally, including the stack trace and file:line. Paraphrasing loses the diagnostic.
- MANDATORY: on success, report the artifact paths (compiled binaries, bundled output, built images) — callers downstream need them
Gotchas
npm run builddoes not refreshnode_modules. Ifpackage-lock.jsonis out of sync, the build runs against stale dependencies and "succeeds" with wrong versions. In CI always precede withnpm ci.cargo build --releasetakes 5-10× longer than debug. Never use--releasein a dev loop; reserve it for CI artifacts and benchmarks.docker compose buildkeys layer cache per service. A change to a shared context file (e.g., rootCOPY . .) invalidates every service's cache. Structure Dockerfiles to copy dependency manifests first, source last.flutter build apkwithout--split-per-abiproduces a fat APK ~3× larger than needed. Production builds should always split unless explicitly bundling.go build ./...succeeds with a warning when a package has no Go files (e.g., pure-doc subdir). Downstream tools that expect every listed package to compile a binary fail silently — checkgo build -vfor the list of built packages.
When NOT to Use
- For running tests — use
/test - For deployment or artifact push — use
/deploy - For scaffolding a new build system — use
/app-builderor/ci - For CI pipeline generation — use
/ci - When the project has no build step (interpreted code, pure docs) — this skill has nothing to do
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: softspark
- Source: softspark/ai-toolkit
- License: MIT
- Homepage: https://softspark.eu
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.