Sponsor Suno AI Music arrow_forward
Slash Command

Validate Pr

Generate and self-execute a diff-derived test plan for a PR. Reads

Type
Slash Command
GitHub stars
339
License
MIT
Repo last updated
Sep 24, 2026

What Validate Pr is

Validate Pr is a slash command published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Validate Pr gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Validate Pr

Claude Code

  1. Download validate-pr.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/sanctum/commands/validate-pr.md, shared under the repository's MIT license. Read the full file on GitHub.

Generate and self-execute a step-by-step validation plan matched to what actually changed in a PR. Bridges the gap between "tests pass" and "the fix does what it claims."

When To Use

  • Standalone after any PR fix, to produce targeted validation evidence
  • Called automatically by /fix-pr at the end of Step 5 (Validate)
  • When you need proof that revert-tests catch regressions

When NOT To Use

  • --scope minor in /fix-pr with only formatting or doc changes
  • No diff available (clean branch, nothing changed)
  • Pass --skip-validate to /fix-pr to bypass

Options

Quick Reference

# Run on current branch PR
/sanctum:validate-pr

# Run on a specific PR
/sanctum:validate-pr 123

# Run and post results as a PR comment
/sanctum:validate-pr 123 --post

# Run with two revert-test checks
/sanctum:validate-pr 123 --revert-tests 2

Workflow

See Skill(sanctum:validate-pr) for the full algorithm:

  1. Fetch the PR diff and group changed files by area (Rust, Python, Shell, grammar, build/config)
  2. Generate at least one verification step per area
  3. Execute each step, capture output as evidence ([E1], [E2], ...)
  4. Run a revert-test quality check: break a representative fix, confirm the corresponding test fails, restore via git checkout --
  5. Read the PR body's ## Test plan. Execute every step that can run here and capture evidence the same way. Report a step that needs a human (a browser, a device, a staging credential) as MANUAL rather than silently dropping it
  6. Run the final full-suite test (cargo test --workspace or uv run pytest)
  7. Produce a summary table: Area | Step | Evidence | Result
  8. If --post: post the table as a PR comment

Manual Test Plans

Step 5 is the bridge between the diff-derived steps this command generates and the manual test plan the author wrote. The two are not the same: diff-derived steps cover what changed, and a manual plan covers what a reviewer would otherwise have to figure out how to exercise.

Triggers for a manual test plan, and its numbered-step format, are in sanctum:pr-prep/modules/pr-template.md. This command consumes that section rather than defining its own.

Three outcomes for an author-written step:

A PR that fires a trigger but carries no ## Test plan is reported as a gap in the summary table. That is a finding, not a hard failure: the author may have a reason, and the report puts it in front of a reviewer.

Failure Behaviour

If any step produces FAIL, the command reports all failures and exits with non-zero status. When called from /fix-pr, it halts before Step 6 (Complete / Gate 3). Pass --skip-validate to /fix-pr to bypass.

Output Format

### validate-pr: PR #123

| Area | Step | Evidence | Result |
|------|------|----------|--------|
| Rust: token-types | cargo build --workspace | [E1] 0 errors | PASS |
| Rust: token-types | cargo test -p token-types | [E2] 12 passed | PASS |
| Shell: hooks/pre-commit | shellcheck | [E3] 0 issues | PASS |
| Revert-test: lib.rs:45 | break/fail/restore | [RT-1..5] genuine guard | PASS |
| Final: cargo test --workspace | full suite | [E4] 694 passed | PASS |

**Totals**: 5 steps — 5 PASS, 0 FAIL, 0 INCONCLUSIVE

See Also

  • Skill(sanctum:validate-pr): full algorithm and step details
  • /fix-pr: calls this skill automatically after Step 4 (Fix)
  • Skill(imbue:proof-of-work): [E1]/[E2] evidence capture conventions
  • Skill(leyline:git-platform): GitHub/GitLab CLI command mapping

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Validate Pr?

Validate Pr is a slash command for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Generate and self-execute a diff-derived test plan for a PR. Reads

How do I install Validate Pr in Claude Code?

Download validate-pr.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Validate Pr in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Validate Pr safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.