Kar Scopeguard — AI skill for Claude Code
Did the AI coding agent get its green honestly.
How to install Kar Scopeguard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sjgant80-hub/kar-scopeguard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Kar Scopeguard does
Did the AI coding agent get its green honestly? Flags skipped, loosened, deleted or neutered tests, CI told to ignore failures, and files outside the task's scope, each with its line. CLI, GitHub Action, Claude Code hook. No AI judge, no network.
Alternatives in AI
- Define — Definition phase - Clarify and scope problems with multi-AI consensus 2.8k ★
- Rulesync — by dyoshikawa - A Node.js CLI tool that automatically generates configs (rules, ignore files, MCP servers, com 909 ★
- Nano Banana 2 Skill — AI image generation CLI powered by Gemini 3 Pro 228 ★
README
ScopeGuard
**Live: https://sjgant80-hub.github.io/kar-scopeguard/**
Your AI coding agent says the tests pass. ScopeGuard checks how it got there. It reads the change (a unified diff) and flags every test that was skipped, focused, loosened, commented out, made always-true or deleted, every tolerance widened and coverage floor lowered, every CI step told to ignore failures or removed, and every file outside what the task allowed. Every finding names its rule, its file and line, and the exact text. It runs in your browser, on the command line, in GitHub Actions and as a Claude Code Stop hook, with the same answer and the same SHA-256 fingerprints everywhere. No AI judge, no network, no dependencies.
Built by Kar for AI Native Solutions. MIT. Powered by the Konomi architecture, created by Thomas Frumkin.
Run it
- In the browser: open the live page, pick an example or paste
git diffoutput. Nothing is uploaded; the page's Content-Security-Policy blocks every connection. - Command line (Node.js 20+, nothing to install):
git diff main...HEAD | node cli.mjs -node cli.mjs change.diff --scope .scopeguard --claim summary.txt --jsonnode cli.mjs --git(this folder against its last commit, new files included),node cli.mjs --git --staged(a pre-commit hook)- Exit codes:
0clean (and review, unless--fail-on review),2flagged,1the input could not be read or bad options.
- GitHub Actions:
uses: sjgant80-hub/kar-scopeguard@afteractions/checkout@v4withfetch-depth: 0. The scope is read from the base commit, so a change cannot widen its own scope. Seeaction.yml. - Claude Code Stop hook: add
{"hooks":{"Stop":[{"hooks":[{"type":"command","command":"node /path/to/cli.mjs --hook"}]}]}}to.claude/settings.json. On a high finding the agent is stopped once, shown the lines, and asked to fix the code or explain the change; it is never stopped twice for the same findings. - As a library: `import { aud
Related Skills
Truedone
Checks whether a pull request's tests prove its change: red without it, green with it. Flags skipped, focused
Laravel AI Verify
Stop Claude Code, Cursor & Codex from faking "done" in Laravel. ai:verify runs only the tests, Larastan, Pint
Overscope
Catch AI coding-agent scope creep before you commit. Overscope compares Claude Code and Codex sessions with yo
Make Your AI
Give it your documents and a goal. A coding agent builds your own small AI, tests it honestly, and fixes its b
Agent Roast
Stops AI coding agents from making the build green by weakening tests, coverage gates or CI. Stop hook for Cla
Autonomous Debugger
Evidence-driven debugging skill for Claude Code and AI coding agents. Investigates codebases, reproduces failu
Related Agents
Regression Reviewer
Non-regression reviewer of the greenlyt loop. Read-only. Checks that no existing behavior changed outside the
Trade Extractor
Extracts every trade (taken, skipped, drawn, told), the performance claims and the contradictions from one rec
Worker People Updater
Scans the wiki for person and company names appearing across multiple pages, flags profiles needing updates, i