Skip to content

Reference

check-vercel-rules

Run the Vercel Labs agent-skills rule checker across a broader scope than the automatic per-edit hook — the whole project, a set of changed files, or as a CI gate.

Claude: /rn-dev-agent:check-vercel-rules [options]
Codex: $rn-dev-agent:check-vercel-rules [options]
ArgumentBehavior
(none)--all walk of the current project; reports violations; exit 0
--changed [files...]Check only the specified files (or stdin, one per line)
--allWalk the project for .tsx/.jsx/.ts/.js files (max 200)
--ciSame as --all but exits 1 on any violation — for pre-commit/CI
--baseline-snapshotSnapshot current violations as a baseline; later runs report only new ones
--format hook|json|sarifOutput shape (default hook); SARIF 2.1.0 uploads cleanly to GitHub code scanning

The same underlying checker runs in three places:

  1. Claude PostToolUse hook — automatic and per edited file; Codex does not consume it.
  2. This host workflow — manual, project- or changed-files-scoped.
  3. CI / pre-ship gating--ci blocks on violations.

The checker and rules index ship inside both host packages, so installed Codex workflows do not depend on an rn-dev-agent source checkout. Each violation cites packaged rule metadata and upstream provenance. Retrofitting an existing codebase? Take a --baseline-snapshot first so only new violations surface.