theorcdev/skills · Archived

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.

First seen Jul 20, 2026

Installation

$ npx skills add theorcdev/skills --skill shadscan-pre-commit

Summary

  • 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.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from theorcdev/skills.

npx skills add theorcdev/skills

Browse all from theorcdev/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 32
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,144 B
  • docs SUMMARY.md 353 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 41 installs

SKILL.md

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.

Workflow

  1. Activate before changing files:

- Read repository instructions and git status. - Detect the package manager and whether node_modules/.bin/shadscan exists. - Never revert, stage, or rewrite unrelated changes.

  1. Establish the task baseline:

- Run the local binary with --json when present. - Otherwise use the matching one-shot command below. - Read the top-level score from JSON. Do not parse the human report. - Stop and explain the applicability problem when score is null.

  1. Set the task floor:

- Default to the baseline score so the task cannot introduce a regression. - When the user requests a higher integer floor, use the higher value. - Never lower the baseline unless the user explicitly accepts that regression. - Keep the baseline and floor in task context; do not write configuration files.

  1. Complete the requested work and its normal verification.
  2. Immediately before every agent-created commit:

- Rerun the same JSON audit against the complete working tree. - Require a numeric score at or above the task floor. - When it fails, use each finding's evidence and fix guidance, repair in-scope issues, and rerun the audit. - When passing requires out-of-scope work, stop and report the findings. Do not commit without an explicit user override.

  1. Commit only after a passing audit. Report the baseline, floor, final score, and commit alongside the normal task summary.

One-shot Commands

Use these only when no local Shadscan binary exists:

  • pnpm: pnpm dlx @shadscan/cli@next --json
  • npm: npx --yes @shadscan/cli@next --json
  • Yarn: yarn dlx --quiet --package @shadscan/cli@next shadscan --json
  • Bun: bunx @shadscan/cli@next --json

Run a detected local binary directly as node_modules/.bin/shadscan --json or with the package manager's local-exec command.

Guardrails

  • Do not install dependencies or change package.json or a lockfile.
  • Do not configure Git or add repository automation.
  • Do not mutate staged files or run Shadscan auto-fix behavior.
  • Audit the project-wide working tree, not only the staged diff.
  • Do not claim this intercepts manual commits or agents that have not loaded the skill.
  • Do not commit an unassessed or below-floor result unless the user explicitly overrides it in the current conversation.

Completion Format

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.