/proofgate:initfrom proofgate
Sets up proofgate for the current project by writing .proofgate.json with fast build/test gates, project invariants and risk paths. Use when the user says "proofgate init", "set up proofgate", "gate this repo", "add quality gates", or when a Stop-hook gate needs configuring.
Ships in proofgate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Goal: a .proofgate.json in the repo root whose gates are fast, deterministic and trustworthy. No LLM calls inside gates.
Detect the stack. Inspect manifests and build files (package.json, angular.json, pom.xml, build.gradle, pyproject.toml, requirements*.txt, go.mod, Cargo.toml, OpenAPI specs such as openapi.yaml / swagger.json). Note monorepo layout.
Propose checks (build + tests). Rules:
npm run build, mvn -q -DskipTests compile, pytest -q -x).Propose invariants — project rules the model cannot know by itself. Read references/invariants.md for ready recipes (ArchUnit for Java/Spring, dependency-cruiser for TS/Angular, oasdiff for API contract drift, import-linter for Python). Ask the user which architectural rules actually hold in this codebase instead of inventing them; start with 1–3 rules that pass today. Never install new dev dependencies without the user's approval.
Propose risk_paths — globs where changes must get human review: auth/security, payments, database migrations, infrastructure/CI config, code handling personal data (KVKK/GDPR). Base them on the real directory names you found.
Show the full proposed config to the user and wait for approval. Then write .proofgate.json. The .proofgate/ state folder ignores itself; nothing else to add to .gitignore.
{
"checks": [{"name": "build", "run": "npm run build"}, {"name": "test", "run": "npx vitest run"}],
"invariants": [{"name": "architecture", "run": "npx depcruise src --config .dependency-cruiser.cjs"}],
"risk_paths": ["src/app/auth/**", "db/migrations/**", ".github/workflows/**"],
"fail_fast": true,
"timeout_seconds": 600,
"max_stop_blocks": 3,
"packages": {"min_age_days": 30, "min_weekly_downloads": 500, "offline_policy": "ask", "allow": []},
"secrets": {"allow_paths": []}
}
Each check/invariant may also set its own "timeout" in seconds. For headless pipelines (claude -p), tell the user to set PROOFGATE_HEADLESS=1 so "ask" verdicts fail closed, and to read .proofgate/reports/latest.json (status, needs_human_review) as the pipeline's merge signal.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub icaglar/proofgate --plugin proofgate3 skills in this plugin
/checkRuns all proofgate gates (checks and invariants) right now and shows the evidence report. Use when the user says "run proofgate", "run the gates", "proofgate check", or before handing work over for review./reportShows the latest proofgate evidence report — which gates ran, pass/fail, risk paths touched, packages checked, blocked secrets. Use when the user asks "what did proofgate find", "show the evidence", "proofgate report", or wants a summary for a PR description.