pm-guard

by narrowstacks · ★ 0 · updated 2 days ago

Guardswarnings

0

Steers npm/npx/yarn to the package manager the repo's lockfile names (bun or pnpm), bun where there is none

install pm-guard

Install

/plugin marketplace add narrowstacks/claude-code-mods
/plugin install pm-guard@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
tool.call
API calls
$.env.get$.fs.exists$.session.cwd
Can see
Bash calls
Reach
level 1 of 3 reads filesreads env vars

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/narrowstacks/claude-code-mods
Path in repo
pm-guard
Source commit
98f4da6 the exact code the scan read
Author
@narrowstacks
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from narrowstacks/claude-code-mods

agent-jobs

narrowstacks/claude-code-mods

/jobs pane: running subagents and background shells with elapsed time and Stop; a toast when background work finishes

★ 0PanesGuardsCommands

agent-models

narrowstacks/claude-code-mods

Pins the model each subagent type runs on, set in /config or with /agent-models

★ 0CommandsAutomation

context-watch

narrowstacks/claude-code-mods

Context fill, cost and rate limits in the status line; threshold toasts; compaction that keeps edited files; /ctx breakdown

★ 0PanesBandsStatus line

handoff

narrowstacks/claude-code-mods

/handoff writes a state note from the conversation, clears, and carries the note into the fresh context

★ 0ToastsCommandsPrompt

house-style

narrowstacks/claude-code-mods

Enforces the no-em-dash rule: a system prompt section, a reminder to the model after a write that adds one, a toast when a reply uses one

★ 0ToastsGuardsPrompt

live-spinner

narrowstacks/claude-code-mods

Spinner says what is actually running: the Bash command, the file being read or edited, the search, the subagent

★ 0ReskinsGuards

pr-rules

narrowstacks/claude-code-mods

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

★ 0GuardsCommandsAutomation

pr-watch

narrowstacks/claude-code-mods

Tracks PRs the session touches, shows their checks above the prompt, toasts on green/red/merged, and stops foreground CI polling loops

★ 0BandsGuardsCommands

remote-guard

narrowstacks/claude-code-mods

Asks before a destructive command runs on another machine over ssh (restarts, deletes, kills, reboots)

★ 0Guards

worktrees

narrowstacks/claude-code-mods

/worktrees pane: each git worktree with branch, uncommitted changes, ahead/behind and PR state; removes clean worktrees whose PR is merged or closed

★ 0PanesCommands

xcode-status

narrowstacks/claude-code-mods

In Xcode projects only: one line with the last build and test result and the booted simulator; flags 0-test runs; blocks a second xcodebuild while one runs

★ 0BandsGuardsCommands

zsh-safe

narrowstacks/claude-code-mods

Quotes glob flags zsh would expand (--include=*.ts) and keeps a grep that finds nothing from failing the command

★ 0Guards