Logotipo de Ghreport

Ghreport

Comunidad
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.

Descripción general

Editorbjcoombs
Repositorioai-native-toolkit
Nombre de la habilidadghreport
Estrellas
32
Forks
6
Archivos incluidos
1
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 1 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por bjcoombs en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Ghreport en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/bjcoombs/ai-native-toolkit/tree/main/skills/ghreport
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Ghreport en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Ghreport automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Ghreport no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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. Endpo...

¿Por qué usar Ghreport en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Ghreport está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Ghreport en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/bjcoombs/ai-native-toolkit/tree/main/skills/ghreport. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Ghreport?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Ghreport?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Ghreport con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Ghreport?

Sí. bjcoombs la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇