By MauroProto
Context-aware Guard integration for Claude Code sessions in pnpm and GitHub repositories.
Reviews dependency and lockfile changes with Guard, focusing on approvals, advisories, install/build risk, and scoped remediation.
Reviews Guard policy changes, expirations, exceptions, and drift using policy lint and focused Guard scans.
Reviews GitHub Actions changes with Guard, focusing on trust boundaries, permissions, triggers, pinning, and release posture.
Use this skill when package.json, pnpm-lock.yaml, or dependency mutation commands changed the supply-chain surface and Guard should review dependency risk.
Use this skill when Guard reports pending build approvals and the user wants a scoped, explicit approve-build workflow.
Use this skill when Guard emitted findings and Claude should explain the rule, evidence, blocking status, and next safe step.
Use this skill when dependency, workflow, workspace, or policy files changed and Claude needs a focused Guard scan instead of a full repository scan.
Use this skill when GitHub Actions workflows or CODEOWNERS changed and Claude should run a focused Guard workflow audit.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Uses Bash, Write, or Edit tools
Uses Bash, Write, or Edit tools
Supply chain security for pnpm repositories and GitHub Actions.
Guard helps teams answer one question before a dependency or CI change lands:
Can we trust this change?
It combines:
Links:
| Target | Install |
|---|---|
| Claude Code | claude plugins marketplace add MauroProto/guard && claude plugins install guard@guard |
| Guard CLI (Go) | go install github.com/MauroProto/guard/cmd/guard@latest |
| Guard CLI (shell) | curl -fsSL https://raw.githubusercontent.com/MauroProto/guard/main/install.sh | sh |
| From source | git clone https://github.com/MauroProto/guard.git && cd guard && make install |
If the Claude Code plugin cannot find the guard binary in PATH, set:
export GUARD_BIN=/absolute/path/to/guard
Guard is a hybrid product:
review-pr, baseline, and policy lint.The plugin is distributed from this repository through .claude-plugin/marketplace.json, and the Claude Code plugin itself lives at:
plugins/claude-code/guard-security
guard init
guard scan
guard fix
guard baseline record
For a PR or branch review:
guard review-pr
guard review-pr --base origin/main --head HEAD --format markdown
guard explain review.diff.install_script.added
For focused scans:
guard scan --scope workflows --format json
guard scan --scope deps --files package.json,pnpm-lock.yaml --format json
guard scan --scope policy --files .guard/policy.yaml --format json
guard scan --changed-files --format json
The plugin is designed to be useful, not noisy.
When enabled, it reacts to the right moments:
SessionStart
FileChanged
deps, workflows, workspace, or policy as pending review.PostToolUse on Write|Edit
PreToolUse on Bash
pnpm add, pnpm up, pnpm install, npm install, and corepack use.Stop
V1 behavior is intentionally balanced:
claude --plugin-dir /absolute/path/to/guard/plugins/claude-code/guard-security
| Command | Alias | Description |
|---|---|---|
guard scan | guard s | Scan the repository for security issues |
guard fix | guard f | Apply safe local remediations |
guard init | guard i | Create or patch a secure baseline |
guard ci | guard c | Strict scan mode for CI pipelines |
guard diff | guard d | Compare two package versions for risk signals |
guard review-pr | guard review | Review dependency and workflow changes between git refs |
guard approve | guard ab | Approve a package that needs build scripts |
guard baseline record | - | Record the current finding set as baseline debt |
guard explain | - | Explain a rule ID or a finding fingerprint |
guard policy lint | - | Validate policy/config semantics and deprecated fields |
pnpm-lock.yamlpackageManager in package.jsonengines.nodeminimumReleaseAge missing or too lowblockExoticSubdeps disabledstrictDepBuilds disabledtrustPolicy not set to no-downgradeallowBuildspermissionsCODEOWNERSpull_request_target patterns.env, .ssh, .npmrcreview-prnpx claudepluginhub mauroproto/guard --plugin guardClaude Code plugin that gates ambiguous coding tasks with lateral hypotheses, probes, and validation.
Audit and harden your software supply chain - packages, containers, GitHub Actions, IaC, AI/ML models, and IDE extensions. Action commands fix issues directly; walkthrough commands guide you through advanced setup.
Security scanning, dependency CVE audits, and exposure-aware risk prioritization.
Offline security scanner for AI-agent repos, skills, plugins, and MCP servers
AI-powered security auditing with interactive skills, automated agents, web dependency scanning, and supply chain hardening for comprehensive vulnerability detection and reporting
CI/CD supply chain hardening for Rust projects — Trusted Publishing, SLSA provenance, Scorecard, cargo-deny, and more
Audit supply-chain threat landscape of project dependencies for exploitation or takeover risk