guardvibe CLAUDE.md

guardvibe CLAUDE.md is an instructions file for coding agents from goklab/guardvibe. It costs 597 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for GuardVibe, a deterministic security scanner that checks code against hundreds of security rules using multiple analysis tools.

In plain words
What is it for?
Use them when asked to scan or secure the project: run the full audit, follow each remediation step, and repeat the scan until it passes or has no findings.
Why use it?
They define the exact audit command and require every reported issue to be fixed and checked again, reducing the chance of leaving security findings unresolved.

Instructions file

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 instructions/goklab/guardvibe/claude-md
Clone the repo
git clone --depth 1 https://github.com/goklab/guardvibe

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 guardvibe CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/goklab/guardvibe/claude-md.svg)](https://agentmods.dev/instructions/goklab/guardvibe/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/goklab/guardvibe/claude-md"><img src="https://agentmods.dev/badge/instructions/goklab/guardvibe/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 597 This file is loaded in full into every session.
When invoked 597 The same file — it is already loaded in full.
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.1 $0.00597 $0.00597
Opus 5 $0.00298 $0.00298
Sonnet 5 $0.00119 $0.00119
Haiku 4.5 $0.00060 $0.00060

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

Security

Grade A, and why

guardvibe CLAUDE.md 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.

CLAUDE.md · 57 lines

How it starts

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

Project Guidelines

GuardVibe Security Scanner

468 rules, 39 tools. Deterministic: same code = same hash = same results.

When user asks for security scan/fix:

Step 1: Run this exact command:

npx guardvibe audit --format json 2>&1 | head -1

Step 2: Parse the JSON. It contains:

  • sections[] — each section has sectionFindings[] with individual issues
  • remediationPlan — step-by-step fix instructions for each section

Step 3: For EACH section that has findings > 0, fix every finding listed in sectionFindings[]. Each finding has ruleId, file, line, name, fix.

Step 4: After fixing ALL sections, run the audit command again. If findings dropped, you did it right. If not, your fix didn't work — read the finding again and try differently.

Step 5: Repeat until verdict is PASS or findings are 0.

NEVER do these:

  • NEVER use npx guardvibe diff when asked for a full security scan — that only checks changed files
  • NEVER say "MCP tools not available" — always use CLI: npx guardvibe
  • NEVER declare "done" after fixing only 1 section — you must fix ALL sections
  • NEVER dismiss findings as "false positive" — if GuardVibe reports it, fix it or use .guardviberc to configure exceptions
  • NEVER skip the re-audit step — always verify your fixes actually reduced the finding count

Quick reference

Task Command
Full audit npx guardvibe audit --format json 2>&1 | head -1
Check one file npx guardvibe check <file> --format json
Explain a rule npx guardvibe explain <RULE_ID>
Auth coverage npx guardvibe auth-coverage --format json
Pre-commit scan npx guardvibe scan --staged

Writing secure code

  • Every API route: auth check before DB access
  • Every POST endpoint: input validation (zod schema)
  • Never pass user input to innerHTML, eval, exec, or raw SQL
  • Use parameterized queries, never string concatenation for SQL
  • Set security headers (CSP, HSTS, X-Frame-Options)

Read the full file on GitHub · 57 lines

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 · 57 lines · 597 tokens per session scan A c2a8cfdc629d

Subscribe to this mod's changes

guardvibe CLAUDE.md is an instructions file published in the GitHub repository goklab/guardvibe (5 stars, last pushed 22d ago), licensed Apache-2.0. It adds 597 tokens to every session, about $0.0030 per session on Opus 5. 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-31.

Related

Other instructions, from other repositories

agent-security-scanner-mcp CLAUDE.md

Claude Code instructions for sinewaveai/agent-security-scanner-mcp, covering claude.md, build and development commands, install dependencies, run all tests (28 test files, 420+ tests, 4.5 min) and run specific test file.

sinewaveai/agent-security-scanner-mcp · 1,918 tokens

vectimus AGENTS.md

AGENTS.md instructions for vectimus/vectimus, covering agents.md, what is vectimus?, tech stack, development commands and project layout.

vectimus/vectimus · 2,214 tokens

vibe-stack AGENTS.md

AGENTS.md instructions for vibestackdev/vibe-stack, covering agents.md — ai coding agent instructions, project overview, tech stack, architecture principles and directory structure.

vibestackdev/vibe-stack · 1,353 tokens

vibe-stack CLAUDE.md

Claude Code instructions for vibestackdev/vibe-stack, covering claude.md — vibe stack architecture rules, for use with claude code (anthropic's agentic cli), project overview, tech stack and critical build commands.

vibestackdev/vibe-stack · 1,289 tokens

llm-safe-haven CLAUDE.md

Claude Code instructions for pleasedodisturb/llm-safe-haven, covering llm safe haven, what this is, project structure, tdd — non-negotiable (adopted 2026-08-17) and the contract.

pleasedodisturb/llm-safe-haven · 1,322 tokens

llm-safe-haven AGENTS.md

AGENTS.md instructions for pleasedodisturb/llm-safe-haven, covering agents.md, what this file is (and isn't), why this shape (d-08), working agreements and current state.

pleasedodisturb/llm-safe-haven · 965 tokens