/semgrep:reconnectfrom Semgrep Guardian
Re-checks and recovers Semgrep Guardian's connection by verifying credentials and re-logging in if expired. Use when Guardian reports credential timeouts or scans aren't running.
Ships in Semgrep Guardian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guardian's startup check gives up after a couple of seconds, so a slow network can leave a session saying it could not confirm the credential when the credential is fine. This skill re-runs that check without the time limit and fixes what it can.
Call status. It re-verifies the credential live and returns a state, a
summary and, when there is something to do, an action.
If status is not in your tool list, search for it first: MCP tools can be
deferred. Only if the search finds nothing is the Guardian MCP server not
running. Then tell the user to run /mcp reconnect plugin:semgrep:guardian in Claude Code
(confirm the name in /mcp), or to restart the Guardian MCP server in other clients, then try
again. Do not retry in a loop.
ok — nothing to fix. Tell the user Guardian is connected and scanning.not_logged_in or login_required — call login. A browser tab opens for the
user to sign in; say so, and that scanning starts once they finish. If login
says one is already in progress, ask them to finish the open browser tab, then
check again. If the summary says SEMGREP_APP_TOKEN cannot be used, login is still
the fix: call it once to sign in interactively. If the state does not change, relay the
summary rather than calling login again.unconfirmed or unreachable — Semgrep could not be reached. Scanning is still
attempted, and the credential on disk is usually fine. Offer one more status
call after the user checks their network or VPN; do not log in again, which
would replace a working credential.blocked — a login will not help. Relay the summary and action: it is an
organization access, plan or sign-in policy matter for their Semgrep admin, or,
when it names SEMGREP_GUARDIAN_TOKEN_COMMAND, to fix wherever that command gets
its token.After a login, call status once more and report the new state. Keep the
report to a sentence or two; do not print tokens or settings files.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub semgrep/guardian --plugin semgrep5 skills in this plugin
/add-and-validate-guardian-developer-semgrep-rulewrite a custom semgrep rule with the user, add it to guardian in either user or repo scope, and prove it fires by writing a file that should trip it. use when someone wants guardian to catch something it currently misses, asks to write or add a semgrep rule, or wants a project convention enforced on the code claude writes./install-mfwInstall the mfw (Semgrep Malware Firewall) CLI via the curl|sh installer and walk the user through setup — trust store, PATH shims, shell integration, and the background daemon — asking questions at real decision points. Detects when the user's shell rc files are *managed* (symlinked into nix / home-manager / chezmoi / GNU stow / a dotfiles git repo) and, instead of clobbering them, adds mfw's source line to the right source-of-truth. Use when the user wants to install, set up, or onboard mfw on this machine./recommend-guardian-policy-rulesRecommend Semgrep rules to add to the organization's Guardian policy for a repository — pull the rules Guardian runs now, gather candidates from the repo's existing findings and the org's custom rules, rank them for Guardian, let the user pick, and turn the picks on through the Semgrep MCP. Use when someone wants Guardian to catch more, asks which rules Guardian should run, or wants to tune or customize the Guardian policy for a repo.Other plugins' skills for the same job