agentsclimarketplace

Ghreport

Skill bjcoombs/ai-native-toolkit/skills/ghreport

Read-only org repo state report. Reuses ghsync's repo discovery (teams union org-repo-list) but, instead of cloning, queries each repo's remote GitHub state - open PRs, CI on the default branch, open security alerts (Dependabot / code-scanning / secret-scanning), and branch protection - and rolls it into a terminal summary plus a timestamped markdown file. Endpoints that need admin and return 403/404 are reported as no-access / unknown, never as a clean zero. TRIGGER when the user types /ghreport, asks 'what state are the org's repos in', wants an org health report or repo state snapshot, or asks about open PRs / failing GitHub Actions / security alerts across a whole org or personal account.From its SKILL.md

Install
npx -y skills add bjcoombs/ai-native-toolkit --skill ghreport

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • reads credentialsReads from 1 credential source: `GH_HOST`.
  • runs commandsInstructs the agent to run 5 commands, including `ghsync --porcelain` and 4 more.
  • fetches URLsInstructs the agent to fetch 2 URLs, including repos/{o}/{r}/pulls?state=open and 1 more.

SKILL.md

4.6 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

ghreport: what state are an org's repos in?

ghsync answers "do I have all the code locally and up to date?" ghreport answers the companion question: "across everything I can see, what needs attention right now?" It is read-only - it never clones, pulls, or mutates anything.

It reuses ghsync's discovery so the team-union / org-repo-list logic lives in exactly one place: ghreport shells out to ghsync --porcelain to get the deduplicated repo list, then queries each repo's remote state over gh api.

What it reports, per repo

SignalSourceReported as
Open PRsrepos/{o}/{r}/pulls?state=opencount (drafts noted)
CI on default branchlatest completed run per workflow on the default branchpass / fail (names the failing workflows) / none
Security alertsDependabot + code-scanning + secret-scanning, ?state=openthree counts, or n/a (no-access)
Branch protectionrepos/{o}/{r}/branches/{default}/protectionprotected / unprotected / unknown

The no-access rule

Security-alert and branch-protection endpoints require admin on the repo. When the caller is denied (403/404), ghreport reports n/a (alerts) or unknown (protection) - never a clean 0. Reporting "no access" as "no problems" would be a dangerous lie, so the two are kept distinct. A repo whose own metadata can't be read at all is listed as could not assess.

How to run it

The script lives next to this file. Resolve its directory the same way the other skills do (works whether installed as a plugin or hand-placed under ~/.claude/skills/):

SKILL_DIR="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/ghreport}"
SKILL_DIR="${SKILL_DIR:-$(dirname "$(realpath ~/.claude/skills/ghreport/SKILL.md)")}"

# Org is derived from the directory you run in, exactly like ghsync. To report
# on the "meridianhub" org, run from a directory named meridianhub:
cd ~/dev/github.com/meridianhub
bash "$SKILL_DIR/scripts/ghreport.sh"

Override the org or target directory explicitly when they differ:

bash "$SKILL_DIR/scripts/ghreport.sh" --org meridianhub --root ~/dev/github.com/meridianhub

What to do when invoked

  1. Run it from (or pointed at) the org directory. It streams a progress dot per repo, then prints the summary.
  2. Read the headline - the counts of repos with failing CI, open alerts, and an unprotected default branch. These are the repos that need attention.
  3. Surface the "Needs attention" list to the user verbatim; that is the actionable core of the report.
  4. Point at the saved file (org-state-<org>-<date>.md in the root) for the full per-repo table.

Flags

FlagEffect
--org NAMEOrg or personal account to report on (default: basename of --root / cwd)
--root DIROrg root; also where the report file is written (default: cwd)
--limit NOnly the first N repos (quick test against a large org)
--quietSuppress the per-repo progress dots; keep the summary and file
--no-fileTerminal only; do not write the markdown file
--render-dir DIRSkip discovery + querying and render a report from a directory of previously-collected per-repo JSON fragments (replay / testing)

Output

  • Terminal: a one-line headline (counts that tripped a signal), a rollup table, and a "Needs attention" section listing only the repos with an issue.
  • File (unless --no-file): org-state-<org>-<YYYY-MM-DD>.md in the root, with the full table and per-section detail.

Requirements

  • gh and jq on PATH, and gh auth status authenticated (the same prerequisites as ghsync; discovery is delegated to it).
  • For a GitHub Enterprise host, set GH_HOST or gh auth login --hostname first, as with ghsync.
  • Very large orgs make many REST calls (~5 per repo); use --limit to sample.

What ships with it: 1 file

13.7 KB alongside SKILL.md, 1 of them executable

scripts/

Gives 0 of the 12 instructions most docs writing skills give in ~1.1k tokens

Counted across 1,951 of the 3,904 authors here whose files we hold, read 2026-09-06

  • Use third-person for skill descriptionsin 54 of 1951, across 35 files
  • Start descriptions with Use whenin 43 of 1951, across 29 files
  • Run baseline scenarios before writing any skillin 40 of 1951, across 26 files
  • Use active voicein 40 of 1951, across 36 files
  • Map file responsibilities before defining tasksin 36 of 1951, across 29 files
  • Use checkbox syntax for tracking stepsin 35 of 1951, across 27 files
  • Ask one question at a timein 35 of 1951
  • Offer execution options after saving the planin 33 of 1951, across 24 files
  • Include complete code in every stepin 33 of 1951, across 27 files
  • Design units with clear boundaries and interfacesin 31 of 1951, across 23 files
  • Announce the skill usage at the startin 30 of 1951
  • Verify agent compliance after adding the skillin 29 of 1951, across 17 files

Said here and by no other author read

  • Run the script from the organization directory
  • Read the headline summary for failing CI or alerts
  • Surface the needs attention list to the user
  • Point the user to the saved markdown file

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.