Prepare Pr
Prepare a PR end-to-end by updating documentation, running tests, dogfooding checks, and validating with code review.
- Type
- Slash Command
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/sanctum/commands/prepare-pr.md
What Prepare Pr is
Prepare 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.
Prepare Pr gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Prepare Pr
Claude Code
- Download prepare-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.
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.
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/prepare-pr.md, shared under the repository's MIT license. Read the full file on GitHub.
Orchestrates the full PR preparation workflow by running documentation updates, dogfooding checks, README updates, and test reviews before validating with code review. This is the "one command to prepare everything" before submitting a PR.
Key Features
- Documentation Updates: Runs /sanctum:update-docs to sync documentation
- Dogfooding Checks: Runs /abstract:make-dogfood to update Makefile demonstrations
- README Sync: Runs /sanctum:update-readme to keep README current
- Test Coverage: Runs /sanctum:update-tests to review test quality
- Workspace Validation: Uses sanctum:git-workspace-review for repository state analysis
- Quality Gates: Runs project-specific formatting, linting, and tests
- Code Review Integration: uses superpowers:receiving-code-review for automated review
- Scope Compliance: Validates changes against branch requirements
- PR Template Generation: Creates PR descriptions from the shared template
When To Use
- Before every PR: Complete preparation workflow
- Feature completion: Ensures all documentation and tests are current
- Governance compliance: Follows Mandatory Post-Implementation Protocol
- Quality assurance: Full validation before requesting reviews
When NOT To Use
- Simple changes that don't need the full workflow
- Work already completed through another sanctum command
Workflow
Phase 0: Pre-Flight Updates (NEW)
Unless --skip-updates is specified:
- Update Documentation
/sanctum:update-docs- Syncs technical documentation
- Updates guides and references
- Ensures documentation completeness
- Update Makefile Dogfooding
/abstract:make-dogfood- Updates Makefile demonstration targets
- Ensures Makefile reflects current features
- Validates make targets work correctly
- Update README
/sanctum:update-readme- Syncs README with new features
- Updates command listings
- Refreshes examples and usage
- Update Tests
/sanctum:update-tests- Reviews test coverage
- Identifies missing tests
- Validates test quality
Phase 1: Foundation (Sanctum)
- Workspace Review
Skill(sanctum:git-workspace-review)- Captures repository status and diffs
- Identifies staged changes
- Establishes branch context
- Quality Gates
# Project-specific commands detected automatically
make lint # or equivalent (formats, then checks)
make test # or equivalentPhase 2: Code Review (Superpowers)
- Automated Code Review
Skill(superpowers:receiving-code-review)- Reviews staged changes against best practices
- Identifies potential issues before human review
- Generates review findings and recommendations
Phase 3: Synthesis
- PR Template Generation
- Combines workspace analysis with code review findings
- Generates detailed PR description
- Includes quality gates results and review recommendations
- Verifies content quality via scribe:slop-detector principles
- Applies scribe:doc-generator guidelines to avoid AI-sounding text
Options
- --skip-updates: Skip documentation/dogfooding/README/test updates (Phase 0)
- --no-code-review: Skip superpowers code review (faster, less detailed)
- --reviewer-scope: Set review strictness (default: standard)
- destination-file: Output path for PR description (default: pr_description.md)
Reviewer Scope Levels
Strict
- All suggestions must be addressed
- detailed validation
- Suitable for critical code paths
Standard (Default)
- Balanced approach
- Critical issues must be fixed
- Suggestions are recommendations
Lenient
- Focus on blocking issues only
- Minimal validation
- Suitable for experimental features
Output Structure
The generated PR description includes:
Section names come from sanctum:pr-prep/modules/pr-template.md, which is the source of record. Keep this block in sync with it. The pytest contract in plugins/sanctum/tests/test_pr_template_contract.py fails if they drift.
[Imperative, self-contained title]
| | |
|---|---|
| **Who** | audience for the change; out-of-band reviewer if any |
| **Where** | internal: module + file count. External: consumers, or `none` |
| **When** | `on merge`, or the flag / migration window / integration date |
## Why
[Motivating problem, why merging now matters, linked issue]
## What and how
[What changed in the reader's terms; approach and rejected
alternative when a real decision point existed]
## Test plan
1. `make test`: 142/142 passing
2. `make lint`: clean (2 warnings)
…Quality gates and Code review findings are specific to this command, which runs the gates itself. The plain pr-prep workflow emits the template without them.
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 Prepare Pr?
Prepare Pr is a slash command for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Prepare a PR end-to-end by updating documentation, running tests, dogfooding checks, and validating with code review.
How do I install Prepare Pr in Claude Code?
Download prepare-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 Prepare 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 Prepare 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
- Status Show current egregore state and progress Slash Command · athola/claude-night-market
- Summon Summon the egregore to autonomously process work items through the full development lifecycle. Runs indefinitely by default until dismissed. Slash Command · athola/claude-night-market
- Task Generator Generate dependency-ordered implementation tasks from specification and Subagent · athola/claude-night-market
- Structured Review Start a structured review workflow with evidence logging and formatted output Slash Command · athola/claude-night-market
- Project Init Initialize a new project with git setup, CI/CD workflows, pre-commit hooks, Makefiles, and language-specific tooling. Slash Command · athola/claude-night-market
- Pr Review Review pull requests with scope validation, code analysis, and line comments. Supports GitHub PRs and GitLab MRs. Slash Command · athola/claude-night-market
- Record Browser Record browser sessions using Playwright Slash Command · athola/claude-night-market
- Plugin Review Tiered plugin quality review: branch (quick gates), Slash Command · athola/claude-night-market