This recipe shows how ScriptAudit can turn a small CLI repo's scripts and README command blocks into a deterministic command-safety report.
examples/fixtures/agent-cli/package.json: package scripts for build, check, smoke, cleanup, dry-pack, and deploy examples.examples/fixtures/agent-cli/README.md: fenced shell commands that mirror the package scripts.examples/agent-cli-audit.config.json: markspublish:dryas known safe, blocksdeploy, and downgradescleanto caution with an explicit reason.
npm run build
node dist/cli.js scan examples/fixtures/agent-cli \
--config ../../agent-cli-audit.config.json \
--out examples/fixtures/agent-cli/SCRIPTS.md
node dist/cli.js scan examples/fixtures/agent-cli \
--config ../../agent-cli-audit.config.json \
--format jsonThe report should separate low-risk local verification from commands that deserve more review:
build,check, andsmokeare local verification candidates.cleanis caution because it deletes generated files.publish:dryis treated as known safe by the demo config.deployis blocked as dangerous by the demo config.
ScriptAudit does not execute the target commands. It reads script definitions and command docs, then renders evidence, tool hints, side-effect hints, and a recommended verification sequence.
I ran ScriptAudit before choosing verification commands.
Report command:
`node dist/cli.js scan examples/fixtures/agent-cli --config ../../agent-cli-audit.config.json --out examples/fixtures/agent-cli/SCRIPTS.md`
I used the safe verification sequence first and did not run blocked deployment commands.