NagaYu

Repogrant — Development skill for Claude Code

Development community

Computes the per-tool effective agent authority a repository grants from its agent-config files (Claude Code, Codex, Cursor, Copilot, Gemini CLI) — offline, deterministic, under each tool's documented.

How to install Repogrant

This entry records only its repository, not the path inside it, so there is no exact command to give. Open NagaYu/repogrant and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Repogrant does

Computes the per-tool effective agent authority a repository grants from its agent-config files (Claude Code, Codex, Cursor, Copilot, Gemini CLI) — offline, deterministic, under each tool's documented semantics and silent-config defaults, with the gaps flagged.

Alternatives in Development

README

RepoGrant

**Compute the effective agent authority a repository grants — per tool, under each tool's documented semantics, including the silent-config defaults.**

A repository now carries a second, invisible configuration layer: the files that tell AI coding agents what they may do (`.claude/settings.json`, `.codex/config.toml`, `.cursor/*`, `.gemini/settings.json`, `.mcp.json`, `AGENTS.md`, …). Each agent tool (Claude Code, OpenAI Codex CLI, Cursor, GitHub Copilot, Gemini CLI) reads a *different* subset of that surface, under *different* documented semantics and *different* defaults. The same repo can look locked down in one tool and be wide open in another, and a cloned repo's hooks can run code the moment a session starts. Nobody computes that cross-tool effective authority. RepoGrant does.

RepoGrant is an **offline, deterministic** verifier. Input: a repository tree. Output, per tool: the effective authority the repo grants across six dimensions, with the gaps flagged — and what each tool grants **when the repo is silent**. Stdlib only (Python ≥ 3.11 for `tomllib`); no network, no state; same input tree → **byte-identical** JSON report.

python3 -m repogrant check /path/to/repo            # JSON report to stdout
python3 -m repogrant check /path/to/repo --out r.json
python3 -m repogrant defaults --md                  # Part B: the defaults matrix

See `repogrant/README.md` for the full dimension/check reference, `SEMANTICS.md` for the primary-source documented semantics (verbatim quotes + citations), `repogrant/DEFAULTS_MATRIX.md` for Part B, and `field-audit/README.md` for the wild-repo validation.

Checks

  • R1 — hook / auto-run execution surface. Claude Code repo hooks run with no trust prompt under claude -p/CI; Codex repo hooks are per-hash trust-gated (lower severity); a Gemini trust: true server bypasses all confirmations; a Cursor terminalAllowlist/autoRun: true auto-runs.
  • R2 — pre-approval overreach. All