Ghreport logo

Ghreport

Community
bjcoombs
ghreport

Read-only org repo state report for GitHub or GitLab. Reuses ghsync's repo discovery (on GitHub, teams union org-repo-list; on GitLab, every group you belong to with nested subgroups and shared projects) but, instead of cloning, queries each repo's remote state - on GitHub open PRs, CI on the default branch, open security alerts (Dependabot / code-scanning / secret-scanning) and branch protection; on GitLab open merge requests, the latest default-branch pipeline, open vulnerabilities and default-branch protection - and rolls it into a terminal summary plus a timestamped markdown file. Endpoints the token or tier cannot read 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, asks about open PRs / failing GitHub Actions / security alerts across a whole org or personal account, or asks the same of GitLab: 'what state are our GitLab projects in', open merge requests / failing pipelines / vulnerabilities across a GitLab group or self-hosted GitLab host.

Overview

Publisherbjcoombs
Repositoryai-native-toolkit
Skill nameghreport
Stars
32
Forks
6
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bjcoombs on GitHub. Read the source before you install it.

Installation

Install the Ghreport AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bjcoombs/ai-native-toolkit/tree/main/skills/ghreport
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bjcoombs/ai-native-toolkit.git /tmp/ai-native-toolkit
mkdir -p .claude/skills
cp -r /tmp/ai-native-toolkit/skills/ghreport .claude/skills/ghreport
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ghreport in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ghreport on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ghreport is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 (GitHub) or glab api (GitLab, --provider gitlab).

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

On GitLab

SignalSource (projects/{url-encoded path}/...)Reported as
Open MRsmerge_requests?state=opened, every pagecount (drafts noted)
Pipeline on default branchpipelines?ref={default}, newest finished of the last 20success / failed / none / unknown / empty
Vulnerabilitiesvulnerabilities, state detected or confirmedcount, or no-access
Branch protectionprotected_branches (wildcards such as release/* honoured), then protected_branches/{default}protected / unprotected / unknown / empty

The table gains a Branch column naming each project's default branch, and the PRs column becomes MRs.

The pipeline mirrors the GitHub latest-completed rule: only success and failed count as finished. running, pending, canceled, skipped and manual pipelines are passed over, so a newer in-flight or cancelled pipeline cannot hide a failure from Needs attention. A cancelled pipeline says nothing about whether the code passes, which is why it is skipped like skipped and manual. With no finished pipeline among the last 20 the column reads none.

A project with no commits has a null default branch. Its Branch, Pipeline and Protection cells read empty, no pipeline or protection call is made, and the headline counts it. Emptiness alone does not put it under Needs attention: pipeline and protection are not judged, but merge requests and vulnerabilities are still queried, and open vulnerabilities GitLab kept from earlier scans still list it. (ghsync's discovery already skips projects listed as empty, so this covers a project emptied between discovery and the query.)

no-access on vulnerabilities is the common case, not a fault: it means the tier, the role, or the endpoint being unavailable on this GitLab version (GitLab documents the REST projects/:id/vulnerabilities endpoint as deprecated).

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.

On GitLab the rule is stricter: any failed call (401, 403, 404, 500, or a body that is not a list) is no-access or unknown. GitLab answers 404 for a resource the token cannot see, so a 404 never means "unprotected" or "zero". The headline names how many projects had an unreadable MR or vulnerability count, so a total of 0 is not read as clean.

How to run it

The script lives next to this file. Claude Code writes this skill's directory into the script paths below when it loads the skill, so each path is already absolute:

bash
# 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 "${CLAUDE_SKILL_DIR}/scripts/ghreport.sh"

Override the org or target directory explicitly when they differ:

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

On GitLab, name the host; --group narrows the run to one group's subtree:

bash
bash "${CLAUDE_SKILL_DIR}/scripts/ghreport.sh" --provider gitlab --host gitlab.example.com
bash "${CLAUDE_SKILL_DIR}/scripts/ghreport.sh" --provider gitlab --host gitlab.example.com --group platform/backend

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
--provider Pgithub (default) or gitlab
--org NAMEGitHub: org or personal account to report on (default: basename of --root / cwd)
--host HOSTGitLab: the host (default gitlab.com); a URL form such as https://gl.example.com/ is accepted
--group PATHGitLab: report on this group and its subgroups only
--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. On GitLab <org> is the host, plus the group with / written as - when --group is given.

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.
  • GitLab: glab and jq on PATH, and glab auth status --hostname <host> authenticated. ghsync's preflight checks this first: an unauthenticated or unreachable host exits non-zero with one error line naming the host, before any API call.
  • Very large orgs make many API calls (~5 per repo); use --limit to sample.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ghreport AI skill do?

Read-only org repo state report for GitHub or GitLab. Reuses ghsync's repo discovery (on GitHub, teams union org-repo-list; on GitLab, every group you belong to with nested subgroups and shared projects) but, instead of cloning, queries each repo's remote state - on GitHub open PRs, CI on the default branch, open security alerts (Dependabot / code-scanning / secret-scanning) and branch protection; on GitLab open merge requests, the latest default-branch pipeline, open vulnerabilities and default-branch protection - and rolls it into a terminal summary plus a timestamped markdown file. Endpo...

Why use Ghreport on TypingMind?

Because you install it once and use it with any model. Ghreport is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ghreport in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bjcoombs/ai-native-toolkit/tree/main/skills/ghreport. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ghreport?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ghreport?

As many as you like. As long as a model supports skills, you can use Ghreport with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ghreport AI skill free?

Yes. It is published on GitHub by bjcoombs under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇