guard

guard is a skill for Claude Code, Codex from hashgraph-online/hol-guard. It costs 0 tokens per session (499 once invoked), scanned A, original, Apache-2.0.

Dependency-safety guidance for coding agents that add or update packages. It covers checking package risk, install protection, and package-manager safeguards.

In plain words
What is it for?
Use it before installing or updating dependencies, to scan the workspace, explain a package decision, and check or repair npm protection. It also covers separate protection for Cursor’s editor and command-line tool.
Why use it?
It helps reduce the chance of adding a malicious, tampered, or otherwise risky package without checking it first.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hashgraph-online/hol-guard/guard
Any agent
npx skills add hashgraph-online/hol-guard --skill guard
Clone the repo
git clone --depth 1 https://github.com/hashgraph-online/hol-guard

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashgraph-online/hol-guard/guard.svg)](https://agentmods.dev/skills/hashgraph-online/hol-guard/guard)
Your own site
<a href="https://agentmods.dev/skills/hashgraph-online/hol-guard/guard"><img src="https://agentmods.dev/badge/skills/hashgraph-online/hol-guard/guard.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 499 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00499
Opus 5 $0.00000 $0.00249
Sonnet 5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

Measured 5d ago against content hash f1751c981869, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/guard/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HOL Guard Skill Guidance

Use this guidance when an AI agent is about to add or update dependencies.

Before package installs

  1. Preview the install decision:
    • hol-guard protect --dry-run -- npm install <package>
  2. Check current workspace risk posture:
    • hol-guard supply-chain scan --json
  3. Explain a specific package verdict:
    • hol-guard supply-chain explain <package>@<version> --ecosystem <ecosystem>
  4. Confirm package manager interception is installed:
    • hol-guard package-shims status --json
  5. Repair a missing or tampered package manager shim:
    • hol-guard package-shims repair --manager npm --json

Cursor editor and Cursor CLI

Cursor has two protection surfaces. Cursor editor covers MCP servers in .cursor/mcp.json. Cursor CLI covers the cursor-agent command path. Keep them distinct when activating, checking, repairing, or removing Guard.

  1. Connect Cursor editor protection:
    • hol-guard apps connect cursor --surface editor
  2. Connect Cursor CLI protection:
    • hol-guard apps connect cursor --surface cli
  3. Test a Cursor surface without changing config:
    • hol-guard apps test cursor --surface editor
    • hol-guard apps test cursor --surface cli
  4. Repair only the stale surface named by Guard Cloud:
    • hol-guard apps repair cursor --surface editor
    • hol-guard apps repair cursor --surface cli
  5. Remove protection only after confirmation:
    • hol-guard apps disconnect cursor --surface editor --confirm disconnect-cursor
    • hol-guard apps disconnect cursor --surface cli --confirm disconnect-cursor

Guard owns trust checks, drift repair, redacted receipts, and Cloud sync. Cursor owns its native editor and CLI behavior. If a surface is missing, unsupported, or unavailable, report that state instead of inventing an install URL or fallback command.

During CI and automation

  • Route dependency installs through Guard:
    • hol-guard protect -- npm ci
  • Use workspace audits before release:
    • hol-guard supply-chain audit --json

Read the full file on GitHub · 50 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 50 lines · 0 tokens per session scan A f1751c981869

Subscribe to this mod's changes

guard is a skill published in the GitHub repository hashgraph-online/hol-guard (551 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 499 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.