/github:setup [check|apply]from github
Verifies gh CLI prerequisites and auth scope (check) or writes .claude/github/ routing and conventions config (apply). Reports PASS/FAIL/INFO table with remediations.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
User-invoked only. Two actions: check (report, change nothing) and apply (write consumer
config). No action given: run check, then offer apply if anything is missing.
check, verify, report, change nothingReport a PASS/FAIL/INFO table with one remediation line per FAIL. Modify nothing.
gh present? If not: FAIL, stop with a concise message naming the missing prerequisite and the
official install page (https://cli.github.com). Remediation is the user's to run.
gh auth status. Confirm an authenticated session; name the account and host in the
report. Never store, echo, or persist credentials or token values.
Credential-modality picture. For the areas the consumer cares about (ask, or take them
from the invocation), run the diagnosis method from
${CLAUDE_PLUGIN_ROOT}/reference/method-ladder.md (rung 0): what the live session's credential
can and cannot reach, resolved against fresh official docs. Never a shipped scope table. When
a needed scope is missing, report it as the honest-degradation gate and recommend the exact
gh auth refresh command for the user to run themselves. Never auto-run a re-consent, no
matter what standing "fix it automatically" instructions exist.
Config layers. Resolve both files (routing.yaml, conventions.md) per
${CLAUDE_PLUGIN_ROOT}/reference/change-routing.md and
${CLAUDE_PLUGIN_ROOT}/reference/conventions-file.md, anchored at the repo root, and report a
PASS/FAIL/INFO row per layer, with one remediation line per FAIL:
| Layer | Verdict |
|---|---|
| user-global | INFO exists or INFO absent. No git verdict applies outside the worktree |
| team | PASS when the pair (git check-ignore -v no match AND git ls-files --error-unmatch exit 0) holds. Present but ignored: FAIL, report the matching rule and say to unignore it. Present but untracked: FAIL, "commit it to share with the team" |
| personal override | PASS when present, gitignored, and never staged. Tracked or staged: FAIL, remediation is git rm --cached <path> plus rotating any credential that was committed (adding a gitignore line does not untrack it). Present but unignored: FAIL, recommend .claude/**/*.local.* for the user to add themselves. Tracked outranks unignored: when both hold, name the tracked finding |
All three layers absent is INFO: "unconfigured: routing resolves to propose-only", not FAIL. A malformed layer is named and skipped, per the contract.
Report the effective routing per scope block with the layer that supplied each value
(policy-floor provenance included), and the recursive personal override gitignore line
(.claude/**/*.local.*) when it is missing from the consumer's .gitignore. Recommend it;
never edit the consumer's .gitignore.
apply, idempotent, interview-driven config writerouting.yaml and conventions.md. apply
converges the config on the interview's answers. It never blindly rewrites. Converging is
state-assessing, so a routing.yaml rewrite is bounded two ways:
default, a scope block naming an area this version does not know, a
handoff channel whose target no longer parses: name the key, the value, and why it did not
reconcile, and let the user decide. Silently converging an unreconcilable value is config loss
the consumer only discovers when routing misbehaves.default per scope, per-area overrides worth
declaring, and, when any answer is handoff, the channel's target/instructions.
Unanswered postures fall back to propose. When the invocation already supplies complete
answers, skip the interview and run non-interactively.${CLAUDE_PROJECT_DIR}/.claude/github/), or the layer the user
explicitly chooses. Local-layer precondition: before writing any *.local.* personal override, verify
the target path is ignored (git check-ignore -q <path>); when it is not, surface the
recommended gitignore line first and wait for the user to either add it themselves or
explicitly accept writing an unignored personal override. Never write silently, never stage it, and
never edit their .gitignore.
routing.yaml conforming to the schema in
${CLAUDE_PLUGIN_ROOT}/reference/change-routing.md. default: propose unless the user
chose otherwise.conventions.md stub (what the file is for + a pointer to
${CLAUDE_PLUGIN_ROOT}/reference/conventions-file.md semantics). Only if none exists;
never overwrite or append to a consumer's existing conventions.git check-ignore -v no match AND git ls-files --error-unmatch exit 0); non-zero ls-files
right after a fresh write means "written but untracked: commit it to share with the team",
never success..claude/**/*.local.*) if the consumer's
.gitignore lacks it. The edit is theirs to make.check performs zero writes of any kind..gitignore.apply is the consumer's artifact: plain, minimal, no generated boilerplate
beyond the stub's two-line purpose note.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin github3 skills in this plugin
/advisegithub adviseForward-looking GitHub guidance: how to design, configure, walk through, and set up recommended rulesets, billing budgets, security model, Actions policy, webhooks, PATs, or apps, grounded in live gh state and docs. Use when: 'how should I configure X', 'help me set up Y', 'what's the recommended way to'. Not for current review: /github:audit./auditgithub auditRead-only GitHub admin audit via live gh and docs (findings only, zero mutations): current state, drift, conventions, consistency, and cost signals for rulesets, billing, org security posture, what Actions policy allows, webhooks, PATs, apps. Use when: 'audit my GitHub org', 'check billing', 'review repo settings'. Not for design: /github:advise.Other plugins' skills for the same job