repo-health

repo-health is a skill for Claude Code, Codex from nearform/lastlight. It costs 50 tokens per session (672 once invoked), scanned A, original, MIT.

A point-in-time health report for a GitHub repository, covering its issues, pull requests, reviews, stale requests for information, CI failures, and recent activity.

In plain words
What is it for?
Use it for weekly or on-demand checks of review backlog, unreviewed pull requests, stale issues, failing CI, and other maintenance priorities.
Why use it?
It brings scattered repository status signals into one snapshot and connects them to concrete follow-up actions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for weekly or on-demand checks of review backlog, unreviewed pull requests, stale issues, failing CI, and other maintenance priorities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nearform/lastlight/repo-health
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.

Any agent
npx skills add nearform/lastlight --skill repo-health
Clone the repo
git clone --depth 1 https://github.com/nearform/lastlight

Made for: Claude Code, Codex.

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 repo-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/nearform/lastlight/repo-health/github.svg)](https://agentmods.dev/skills/nearform/lastlight/repo-health)
Your own site
<a href="https://agentmods.dev/skills/nearform/lastlight/repo-health"><img src="https://agentmods.dev/badge/skills/nearform/lastlight/repo-health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repo-health

Your own site · 80×15
<a href="https://agentmods.dev/skills/nearform/lastlight/repo-health"><img src="https://agentmods.dev/badge/skills/nearform/lastlight/repo-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00050 $0.00672
Opus 5 $0.00025 $0.00336
Sonnet 5 $0.00010 $0.00134
Haiku 4.5 $0.00005 $0.00067

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

Security

Grade A, and why

repo-health 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 12d 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.

apps/server/skills/repo-health/SKILL.md · 75 lines

How it starts

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

Repo Health

Produce a point-in-time health snapshot of a repo and the action items it implies. One report per run.

Procedure

1. Gather metrics

Pull these via github_* MCP tools. Done when each number below is filled.

  • Open issues — total, and a breakdown by the repo's own priority/severity labels if it uses any (don't assume a fixed scheme).
  • Open PRs — total, and how long each has been open. Exclude drafts from any "awaiting review" count.
  • Unreviewed PRs — open, non-draft, no reviews yet.
  • Stale needs-info — issues labelled needs-info with no activity for 14+ days.
  • Recent throughput — issues closed and PRs merged in the last 7 days.

Batch requests and don't fetch full history — rate limits bite on large repos.

2. Derive action items

Each is a checkbox line with the number and the reason:

  • PRs open > 7 days with no review.
  • High-priority issues still open (by whatever priority labels the repo uses).
  • ready-for-agent issues sitting unactioned (agent backlog).
  • Stale needs-info (14+ days).
  • PRs with failing CI.

3. Render the report

## Repo Health: {owner}/{repo} — {YYYY-MM-DD}

### Overview
- Open issues: {X} ({breakdown by the repo's priority labels, if any})
- Open PRs: {X} ({Y} awaiting review)
- Merged this week: {X} PRs · Closed this week: {X} issues

### Action items
- [ ] PR #123 — open 12 days, no review
- [ ] Issue #456 — high priority, open 3 days
- [ ] Issue #789 — needs-info, stale 21 days

### Trends
- Issue velocity: +{X} opened, −{Y} closed (net {±Z})

Omit a section that has nothing in it rather than printing "none".

4. Deliver

Output the report as the final response.

Where that lands depends on how the run was triggered: a chat request is answered in the thread, and an issue-scoped run comments on the issue. A cron run is repo-scoped — no issue, no thread — so the harness has nowhere to put it and the report is recorded on the run only. If you want a recurring report in Slack, the repo-digest cron is the one that posts (see workflows/cron-digest.yaml).

Read the full file on GitHub · 75 lines

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. 12d ago First seen · 75 lines · 50 tokens per session scan A 06fde809bfe2

Subscribe to this mod's changes

repo-health is a skill published in the GitHub repository nearform/lastlight (22 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 672 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-30.