/github:github-repo-audit [owner/repo — default: the repository of the current directory]from GitHub
Audits one existing GitHub repository's settings through the gh CLI against the baseline github-repo-init applies, then fixes what the user approves. It checks merge methods, head-branch cleanup, Dependabot, secret and code scanning, Actions token permissions, and whether the default branch is protected with required checks that really run and a bypass for the release bot that pushes to it. Use when the user wants an existing repository checked, hardened or brought up to standard: 'check my repo settings', 'is main protected properly', 'audit this repository on GitHub', 'why does semantic-release fail to push', 'my PR is stuck on Expected — waiting for status', 'why does Dependabot not open PRs', 'sprawdź ustawienia repo', 'zrób audyt repozytorium', 'czy main jest dobrze chroniony', 'popraw ustawienia repo na GitHubie'. NOT for creating a new repository (github-repo-init), catching up with a template's files (template-sync), organization-wide settings or many repositories at once, or code review.
Ships in GitHub. 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.
Your first tool call in this skill creates the task list, before any command below. The run
stops for decisions, and the list shows the user which phase is waiting on them. Use the task-list
tool the session has: mcp__ccd_turn__update_plan in the Claude desktop app, otherwise
TaskCreate and TaskUpdate, or TodoWrite; load it with ToolSearch first if it is only listed
as deferred. If the session has none of them, print the items as a Markdown checklist and reprint it
each time a phase finishes. Create these items:
[ ] 0 preflight → 00-preflight.md
[ ] 1 read → 01-settings.json (script output, read-only)
[ ] 2 judge → 02-findings.md (findings verified, protection analysed)
[ ] 3 decide → 03-fixes.md (each group: fix, adjust, or keep as is)
[ ] 4 review → 04-plan.json + 04-approved | 04-cancelled | 04-nothing-to-fix
[ ] 5 apply → 05-apply.json + 05-after.json
[ ] 6 report → 06-report.md
3 decide: waiting for your decision.4 review: nothing to fix, 5 apply: skipped. A phase that won't run stays on the list with the reason.This skill reads what an existing repository actually has, says what differs from the baseline and
why it matters, and changes only what the user approves, through the same apply script
github-repo-init uses.
The audit's own risk is a confident report built on a guess. So every comparison is made by
read-settings.mjs from data GitHub returned, and every protection finding names the file and line,
or the pull request, it rests on.
gh CLI signed in with the repo scope, as an admin of the repository. Check:
gh auth status. Install from https://cli.github.com; the user runs gh auth login themselves.../../scripts/read-settings.mjs and ../../scripts/apply-plan.mjs.
Check: node --version. Install from https://nodejs.org.Phase 0 runs both checks.
Seven phases, in order. Each ends by writing a file in the run directory, and the next phase
reads that file, not the conversation. A phase with no file did not happen. Phases 0–3 only read;
nothing changes on GitHub before phase 5, and phase 5 runs only when 04-approved exists.
Run directory: <session scratchpad>/github-repo-audit/<owner>-<repo>-<YYYYMMDD-HHMMSS>/, created
with mkdir -p in phase 0. Never put run files in the audited repository.
Read each file when you reach that phase — not before.
| # | Phase | Read | Exit |
|---|---|---|---|
| 0 | Preflight | phases/00-preflight.md | 00-preflight.md names the repository and confirms admin access |
| 1 | Read | phases/01-read.md | 01-settings.json written by the script |
| 2 | Judge | phases/02-judge.md | 02-findings.md shown to the user |
| 3 | Decide | phases/03-decide.md | every group with findings has a decision |
| 4 | Review | phases/04-review.md | 04-approved, or 04-cancelled, or 04-nothing-to-fix |
| 5 | Apply | phases/05-apply.md | 05-apply.json from the apply script and 05-after.json from the read-back |
| 6 | Report | phases/06-report.md | 06-report.md shown to the user |
List the run directory and continue from the first missing file, with these exceptions:
04-cancelled or 04-nothing-to-fix → go straight to phase 6 with no apply; 04-plan.json without
04-approved → show the plan and ask again; 05-apply.json exists → never apply again; if
05-after.json is missing, run phase 5's read-back first, then go to phase 6. A run directory from another session is gone with its scratchpad: start over.
The baseline and the apply machinery live at the plugin level, shared with github-repo-init:
repo is { "owner", "name", "existing": true }. Phase 4 reads it.../../scripts/read-settings.mjs (read-only) and ../../scripts/apply-plan.mjs (writes) — run them as
node ${CLAUDE_SKILL_DIR}/../../scripts/<name>; never read them into context to reimplement.03-fixes.md and the report, so the user sees what was left on
purpose.04-plan.json.gh secret set with a value, no gh auth
changes, no DELETE request.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub janszewczyk/claude-plugins --plugin github2 skills in this plugin
Other plugins' skills for the same job