pr-rules

pr-rules is a Claude Code mod by narrowstacks that blocks gh pr create / gt submit when a repo with an [Unreleased] changelog has no entry on the branch, and (where the repo asks for it) when the PR carries no labels.

Updated 2026-10-09

What is pr-rules?

pr-rules is a Claude Code mod by narrowstacks that blocks gh pr create / gt submit when a repo with an [Unreleased] changelog has no entry on the branch, and (where the repo asks for it) when the PR carries no labels. It is listed under Git & CI and has no public popularity data yet.

TypeClaude code mod
Authornarrowstacks
Repositorynarrowstacks/claude-code-mods
Popularityno public popularity data yet
CategoryGit & CI
SecurityReview before installing (68/100)
Rank#4,094 of 5,272 Claude Code mods; #286 in Git & CI
Last commit2026-10-09
Hooks3 events
SeesBash calls
Draws onnothing

Is pr-rules safe to install?

pr-rules scores 68/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.process.runruns processes
$.session.cwd
$.session.root
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state

How do I install pr-rules?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/narrowstacks/claude-code-mods
    claude plugin validate ./claude-code-mods/pr-rules
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add narrowstacks/claude-code-mods && claude plugin install pr-rules@claude-code-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs pr-rules for you:

Install the "pr-rules" Claude Code mod from https://github.com/narrowstacks/claude-code-mods/tree/master/pr-rules. Run claude plugin validate on it first and show me what it can access before you enable it.

More from narrowstacks/claude-code-mods

This repository has at least 9 Claude Code mods on MCPMods.

  • agent-jobs: /jobs pane: running subagents and background shells with elapsed time and Stop; a toast when background work finishes (Review before installing)
  • agent-models: Pins the model each subagent type runs on, set in /config or with /agent-models (Low risk)
  • context-watch: Context fill, cost and rate limits in the status line; threshold toasts; compaction that keeps edited files; /ctx breakd (Low risk)
  • handoff: /carryover writes a state note from the conversation, clears, and carries the note into the fresh context (Review before installing)
  • house-style: Enforces the no-em-dash rule: a system prompt section, a reminder to the model after a write that adds one, a toast when (Low risk)
  • live-spinner: Spinner says what is actually running: the Bash command, the file being read or edited, the search, the subagent (Low risk)
  • pm-guard: Steers npm/npx/yarn to the package manager the repo's lockfile names (bun or pnpm), bun where there is none (Low risk)
  • pr-watch: Tracks PRs the session touches, shows their checks above the prompt, toasts on green/red/merged, and stops foreground CI (Low risk)