/sandi:install-review path glob(s) to scope the review to (optional) e.g. app/** lib/**from sandi
Installs the Sandi Metz automated PR-review GitHub workflow into the current repository, copying a template and optionally scoping review to specified path globs.
Ships in sandi. Installing the plugin adds it to Claude Code.
Install the Sandi Metz automated PR review workflow into this repository. The
workflow runs claude-code-action on every opened/reopened PR (and on /sandi
PR comments), installs the sandi plugin from the jebs-dev-tools marketplace
into the CI runner, and delivers the review as inline PR comments plus one
summary comment.
The generic template lives at ${CLAUDE_PLUGIN_ROOT}/templates/sandi-review.yml.
Follow these steps:
Verify the repo. Confirm the current directory is a git repository with
a GitHub remote (git remote -v). If not, stop and explain that the
workflow only works on GitHub-hosted repos.
Check for an existing install. If .github/workflows/sandi-review.yml
already exists, show the user how it differs from the template and ask
before overwriting.
Copy the template to .github/workflows/sandi-review.yml (create the
directory if needed).
Scope the review (optional). If the user passed path globs as arguments, or asks to limit the review to part of the codebase:
paths: filter under the pull_request trigger with those globs
(replace the commented example).Scope: paragraph in the prompt to say the review covers ONLY
changed files matching those paths and ignores changes elsewhere.If no scope was given, leave the template as-is — it reviews all changed files in the PR.
Verify the secret. Run gh secret list and check for
CLAUDE_CODE_OAUTH_TOKEN. If it's missing, tell the user to create one:
claude setup-token # generates an OAuth token (requires a Claude subscription)
gh secret set CLAUDE_CODE_OAUTH_TOKEN
Summarize. Tell the user: the workflow file installed, how it triggers
(auto on PR open/reopen; /sandi comment from an owner/member/collaborator
for a re-review), any scoping applied, and whether the secret is in place.
Offer to commit the workflow file — but do not commit without their say-so.
$ARGUMENTS
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
2 commands in this plugin
npx claudepluginhub el-feo/ai-context --plugin sandiOther plugins' commands for the same job