npx skills add ...
npx skills add theorcdev/skills --skill shadscan-pre-commit
AI-agent commit protocol that establishes a Shadscan baseline and reruns the audit immediately before every agent-created commit without installing dependencies or configuring Git. Use when an agent is asked to commit work in a React shadcn project, prevent UI regressions during an agent task, or run Shadscan before commits.
npx skills add theorcdev/skills --skill shadscan-pre-commit
Use Shadscan as an agent-owned checkpoint. This skill changes the agent's commit workflow only; it does not add repository automation.
git status.node_modules/.bin/shadscan exists.--json when present.score from JSON. Do not parse the human report.score is null.Use these only when no local Shadscan binary exists:
pnpm dlx @shadscan/cli@next --jsonnpx --yes @shadscan/cli@next --jsonyarn dlx --quiet --package @shadscan/cli@next shadscan --jsonbunx @shadscan/cli@next --jsonRun a detected local binary directly as node_modules/.bin/shadscan --json or with the package manager's local-exec command.
package.json or a lockfile.Return a concise summary with the baseline score, enforced floor, pre-commit score, audit command, commit, and any explicit override. If no commit was requested or created, say that the final audit was advisory rather than a commit checkpoint.