github-audit

github-audit is a skill for Claude Code from adamjali/claude-skills. It costs 57 tokens per session (1,833 once invoked), scanned A, original, MIT.

A repository audit skill that checks GitHub projects, applies selected small fixes, runs quality checks, and can deploy after confirmation.

In plain words
What is it for?
Use it to audit code, continuous-integration checks, dependencies, and deployment readiness, with separate audit-only, fix, and deploy modes.
Why use it?
It organizes repository health checks and prevents deployment before errors, warnings, and required approvals are addressed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

Part of the github-audit plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/adamjali/claude-skills/github-audit
Any agent
npx skills add adamjali/claude-skills --skill github-audit
Clone the repo
git clone --depth 1 https://github.com/adamjali/claude-skills

Made for: Claude Code.

Or install github-audit, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/adamjali/claude-skills/github-audit.svg)](https://agentmods.dev/skills/adamjali/claude-skills/github-audit)
Your own site
<a href="https://agentmods.dev/skills/adamjali/claude-skills/github-audit"><img src="https://agentmods.dev/badge/skills/adamjali/claude-skills/github-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01833
Opus 5 $0.00028 $0.00916
Sonnet 5 $0.00011 $0.00367
Haiku 4.5 $0.00006 $0.00183

Measured 5d ago against content hash ab9880f80001, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

github-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/github-audit/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Audit

Comprehensive GitHub repo audit → auto-fix → quality gate → (confirmed) deploy → record. Tracks decisions in .planning/github-audit-history.md for cross-run consistency.

allowed-tools above PRE-APPROVES safe/common tools (it does NOT restrict — every tool stays callable). git push, gh pr merge, and any deploy command are deliberately NOT pre-approved, and Phase 4 is gated by an explicit confirmation.

Run mode (from $ARGUMENTS)

$0 selects scope (default = full):

  • audit-only → Phases 0, 1, 5 only. Report findings; make NO changes, NO deploy.
  • fix → Phases 0–3 + 5. Fix + quality gate; STOP before deploy.
  • deploy or empty → all phases (Phase 4 still requires the confirmation gate).

Execution rules

  • Auto-fix only safe/small items that match a Saved Policy; otherwise STOP and discuss via AskUserQuestion.
  • Quality gate: zero tolerance — fix ALL errors/warnings/failures (a known flaky test must pass in isolation to count as green).
  • Deploy: sequential gates; each step must succeed before the next; never without the Phase 4 confirmation.
  • Prefer a platform MCP/API over scraping CLI output when one is available (e.g. a hosting or backend MCP for deployment/env status).

Phase 0 — Initialize

  1. Read .planning/github-audit-history.md (Saved Policies + last audits). If it has an IN_PROGRESS block, ask the user to resume or start fresh.
  2. git remote -v, git branch --show-current. Derive owner/repo.
  3. Detect the project's toolchain (package manager + scripts) from package.json, lockfiles, Makefile, or the CI config — don't assume one. Note the run mode. Record an IN_PROGRESS entry (timestamp + phase) in the history file.

Phase 1 — Audit (read-only; run checks in parallel)

  • Security: gh api repos/{o}/{r}/dependabot/alerts (open, by severity + package), .../code-scanning/alerts, .../secret-scanning/alerts.
  • CI/CD: gh api .../actions/workflows + recent gh run list; read each workflow YAML for stale matrices, missing perms, unpinned actions, broken auth secrets.
  • Branch protection: gh api .../branches/{default}/protection — required checks, strict, enforce_admins, force-push/deletions, reviews.
  • PRs: gh pr list --state open — categorize Dependabot (dev/patch = low, prod/major = high) vs human/bot.
  • Community: gh api .../community/profile + presence of SECURITY.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, templates, README, LICENSE.
  • Traffic/activity: views/clones (flag anomalies), stars/forks, open issues.
  • Config hygiene: dependabot.yml ignore rules vs actual deps; linter ignore files; stale CI references.

Read the full file on GitHub · 98 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 98 lines · 57 tokens per session scan A ab9880f80001

Subscribe to this mod's changes

github-audit is a skill published in the GitHub repository adamjali/claude-skills (1 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,833 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.