tusharsrivastava

Invariant Guard — Security agent for Claude Code

Security community

Read-only audit of a diff (a commit range, a branch against its base, or a list of files) for the invariants that the project depends on - data isolation, deny-by-default access, integer money, one un.

How to install Invariant Guard

Installs to ~/.claude/agents/tusharsrivastava-shark-skills-invariant-guard.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/tusharsrivastava/shark-skills/HEAD/agents/invariant-guard.md -o ~/.claude/agents/tusharsrivastava-shark-skills-invariant-guard.md

Restart Claude Code, or start a new session, for it to be picked up.

What Invariant Guard does


name: invariant-guard description: Read-only audit of a diff (a commit range, a branch against its base, or a list of files) for the invariants that the project depends on - data isolation, deny-by-default access, integer money, one unit of work for write + event + job, idempotency, side-effect-free reads, stable keys, pooler-safe SQL, expand/contract migrations, module boundaries, secrets, personal data, time zones, typed state, pinned contracts, concurrency and error handling. Uses the pro

Alternatives in Security

  • Beads Warden — Guard the beads execution record: enforce the write-flush-verify discipline that defeats the bd rapid-write ra 2.7k ★
  • Knowledge Base Loader — Phase KB0 intake agent that converts staged, untrusted application documentation into a cited, security-orient 125 ★
  • Release Auditor — Pre-release audit for a single plugin in the monorepo — takes a plugin slug and cross-references plugin.json v 72 ★

Full documentation available on GitHub

View Source Repository