Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nathanonnv1.0.0MITIn 1 marketplace
Masks WordPress usernames and Application Passwords in prompts with session-scoped placeholders, and restores them into Bash commands at execution time.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads or rewrites your prompts; changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
wordpress, credentials, application-password, redaction, hooks
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keeps a WordPress username and Application Password out of the model's context while still letting curl receive the real bytes.
You paste a credential into the conversation because the work needs it. The model reads a placeholder instead. When the model writes a Bash command using that placeholder, the shell gets the real value back.
Version 1.0.0 · Works with: Claude Code plugin (marketplace install only)
By Nathan Onn
On the way into the model's context, a WordPress username or Application Password is replaced with a session-scoped placeholder — [WP-USER-3c4d], [WP-PASS-9a1f]. On the way into a Bash tool call, the placeholder is replaced with the real value, shell-quoted for the context it lands in.
You type:
username: exampleuser app password: AAAA BBBB CCCC DDDD EEEE FFFF
The model reads:
username: [WP-USER-3c4d] app password: [WP-PASS-9a1f]
The model writes a Bash call, using the placeholder verbatim:
curl -u [WP-USER-3c4d]:"[WP-PASS-9a1f]" https://example.test/wp-json/wp/v2/posts
The shell is handed:
curl -u exampleuser:"AAAA BBBB CCCC DDDD EEEE FFFF" https://example.test/wp-json/wp/v2/posts
The vault holding the mapping is plain module memory. It dies with the session, and nothing ever writes a real credential to disk. The digest is salted per session, so the same credential gets a different placeholder next time and two leaked transcripts cannot be correlated. A placeholder the vault has never held denies the Bash call rather than running it with the literal text.
Three routes. The first two register the hooks; the third does not on its own, and that distinction matters more here than it would for a skill — see step 3 either way.
This repository is a Claude Code marketplace. From inside a session:
/plugin marketplace add nathanonn/agent-skills
/plugin install wp-credential-guard@nathanonn-agent-skills
Read the install summary. If it says the plugin is now active, the hooks are already loaded. If it
asks you to reload, run /reload-plugins — or just start a new session, which loads it anyway.
--plugin-dir points at the plugin folder itself, not a directory of plugins, and it lasts
only for that session:
claude --plugin-dir /path/to/wp-credential-guard
Repeat the flag to load several plugins. A plugin loaded this way takes precedence over an installed copy of the same name, which is what makes it useful for testing a change.
Copying the plugin into .claude/plugins/ does not register its hooks. The plugin shows up as
present, nothing warns you, and every credential passes through verbatim. For a skill, copying is
enough; for hooks it is not. If you install this way you must also name it in your settings —
~/.claude/settings.json for every project, or .claude/settings.json for one:
{
"enabledPlugins": ["wp-credential-guard"]
}
Restart the session afterwards. If you would rather not hand-edit settings, point a local marketplace at your checkout instead and install from it — that path runs the normal install flow and enables the plugin for you:
/plugin marketplace add /path/to/agent-skills
/plugin install wp-credential-guard@agent-skills
Do this once, whichever route you used. "Installed" and "working" are different states here, and nothing announces the gap.
Check registration — run /hooks and look for prompt.submit, skill.prompt, tool.call
and ui.render. All four should be listed, sourced from this plugin.
Check it fires — send a prompt carrying a dummy credential:
username: exampleuser app password: AAAA BBBB CCCC DDDD EEEE FFFF
You should see a dim line reading
wp-credential-guard: masked 1 username and 1 password (session-only), and the message row on
screen should show [WP-USER-xxxx] and [WP-PASS-xxxx] rather than what you typed. If the line is
absent on a prompt you know contained a credential, the hooks are not running — go back to step 3.
Never use a real credential for this check. A plugin you are still verifying is, by definition, one you cannot yet rely on.
Read this before using it. The plugin covers one path well and several not at all.
A plugin that is present but not loaded registers no hooks, and fails silently. This is the sharpest trap here. The folder sitting on disk reports as installed while every credential passes through verbatim — there is no warning, because nothing is running to warn you.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nathanonn/agent-skills --plugin wp-credential-guardPlugins from other owners that cover similar ground