sjgant80-hub

Kar Scopeguard — AI skill for Claude Code

AI community

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 diff output. 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 --json
    • node cli.mjs --git (this folder against its last commit, new files included), node cli.mjs --git --staged (a pre-commit hook)
    • Exit codes: 0 clean (and review, unless --fail-on review), 2 flagged, 1 the input could not be read or bad options.
  • GitHub Actions: uses: sjgant80-hub/kar-scopeguard@ after actions/checkout@v4 with fetch-depth: 0. The scope is read from the base commit, so a change cannot widen its own scope. See action.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