ClaudeCodeMod

All shelves / Mods / Safety

wp-credential-guard

By nathanonn

wp-credential-guard is a Claude Code safety mod by nathanonn.

Masks a WordPress username and application password, refuses a slash command that carries one, and denies Bash when a placeholder is unknown.

DrawsHolds a command

Install

The marketplace name is nathanonn-agent-skills.

In Claude Code
/plugin marketplace add nathanonn/agent-skills
/plugin install wp-credential-guard@nathanonn-agent-skills
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
1.0.0
License
MIT
Repo stars
21
Last change
2026-09-16

What it can reach

  • Draws in the session
  • Holds a command
  • Sees tool calls

Claude Code only. On the way into the model's context, a WordPress username or Application Password is replaced with a session-scoped placeholder. On the way into a Bash tool call, the placeholder is replaced with the real value. A placeholder the vault has never held denies the Bash call. Slash commands are refused, not masked: the prompt is dropped. A masked prompt also staples a note telling the model how placeholders work. The vault is plain module memory, it dies with the session, and nothing ever writes a real credential to disk. The on-screen rewrite is cosmetic. The README says to treat whether a refused prompt stayed out of the session transcript as an open question on your build. Copying the folder into .claude/plugins/ does not register the hooks. If the install summary asks you to reload, run /reload-plugins. A checkout starts with claude --plugin-dir /path/to/wp-credential-guard. The README does not say the plugin itself sends anything out. The Bash command the model wrote runs with the real value.

The marketplace name is nathanonn-agent-skills. The Bash deny is an unknown placeholder, not every curl. The slash-command refusal drops the prompt before it runs. A skill prompt is masked and cannot be refused.

Demo

The wp-credential-guard section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • prompt.submitWhen you send a prompt
  • skill.promptA Claude Code event
  • tool.callAround a tool call, where it can hold oneSkillBash
  • ui.renderDraws into the sessionUserMessage

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
nathanonn
Category
Safety
Marketplace
nathanonn-agent-skills
Repo
nathanonn/agent-skills
Folder
plugins/wp-credential-guard
Version
1.0.0
License
MIT
Repo stars
21
Last change
2026-09-16
Language
JavaScript
Files
6

Other mods in Safety

cockpittsergeytovarovHolds a commandDraws context weather and the plan limits above the prompt, and can stop a dangerous command.taxi-speedcamdevbrother2024Holds a commandStops a risky shell command and asks before it runs, shown as a taxi speed camera.guardrails-mdberget-aiHolds a commandSends each Bash command to a Berget AI scoring model and blocks it when the score says it destroys data, leaks a secret, or breaks your GUARDRAILS.md.pdpa-thaiBoom-VittHolds a commandRefuses a tool call that repeats a placeholder for Thai or other personal data it redacted before sending, and masks that data on screen.subagent-fenceerikdarlingdataHolds a commandRefuses a force-push, a push to a protected branch, a git command that skips hooks, and killing a process by name.launch-codesOneWave-AIHolds a commandHolds a dangerous shell command until you type a one-time code and press LAUNCH, and denies it otherwise.dogmaMarcel-BichHolds a commandRuns, asks about, or blocks git commands and deletes by your DOGMA-PERMISSIONS.md, always denies deleting a protected path, and draws the restricting rules.guard-packatretyak1985Holds a commandHolds file tools and shell moves that leave the project's roots, asks before a production deploy, and redacts secrets in a tool result before Claude reads it.supabase-guardSzotaszHolds a commandAsks before a Supabase write aimed at another project, or a destructive call, and stops the call when you refuse.secret-panebengousHolds a commandOpens a masked box beside the transcript when Claude needs a secret, gives Claude a placeholder, and puts the real value back only inside a Bash command.ultramodmertkayacsHolds a commandPacks ten mods: limits and context above the prompt, a guard with undo for rm -rf and git reset --hard, .env reads refused, and a receipt under each answer.envdavekissHolds a commandOpens a card when Claude needs a key, so you paste the value into a pane Claude can't read, and holds Claude's reads of .env files and commands that print them.
All 73 in Safety