Automatic install, build, and test steps execute unreviewed project or dependency code
Source references: 2When common manifest files are present, the Skill instructs the agent to run npm install, cargo build, pip/poetry install, or go mod download, followed by tests. Install lifecycle scripts, Rust build.rs files, build logic, and tests can execute arbitrary code supplied by the repository or downloaded dependencies, without a separate confirmation or a restriction that disables scripts.
A malicious or compromised repository or dependency could read or alter accessible files, invoke local tools, or use whatever network access the package manager receives. Worktree isolation does not isolate process permissions, credentials, or data outside the worktree.
When manifest files are detected, the instructions automatically run dependency installation or builds and then project tests. `npm install` can trigger lifecycle scripts, `cargo build` can run build.rs, and Python installation and tests can execute repository or dependency code. No separate confirmation or script-disablement is required. `go mod download` normally only downloads modules, so not every listed command carries the same execution risk.
Auto-detect and run appropriate setup:```bash# Node.jsif [ -f package.json ]; then npm install; fi# Rustif [ -f Cargo.toml ]; then cargo build; fi# Pythonif [ -f requirements.txt ]; then pip install -r requirements.txt; fiif [ -f pyproject.toml ]; then poetry install; fi# Goif [ -f go.mod ]; then go mod download; fi```Show 1 other places
Run tests to ensure workspace starts clean:```bash# Use project-appropriate commandnpm test / cargo test / pytest / go test ./...```