repo-health

repo-health is a skill for Claude Code, Codex from rdudov/task-agent. It costs 55 tokens per session (1,023 once invoked), scanned A, original, MIT.

A repository-checking skill that verifies required files, documentation, task structure, skill metadata, Python syntax, and obvious secrets before handoff or publishing.

In plain words
What is it for?
Use it after restoring a repository, changing tasks or skills, preparing a public copy, or validating files before delivery.
Why use it?
It catches missing files, broken structure, invalid scripts, and accidentally exposed secrets before the repository is shared or used.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it after restoring a repository, changing tasks or skills, preparing a public copy, or validating files before delivery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rdudov/task-agent/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 rdudov/task-agent --skill repo-health
Clone the repo
git clone --depth 1 https://github.com/rdudov/task-agent

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/rdudov/task-agent/repo-health/github.svg)](https://agentmods.dev/skills/rdudov/task-agent/repo-health)
Your own site
<a href="https://agentmods.dev/skills/rdudov/task-agent/repo-health"><img src="https://agentmods.dev/badge/skills/rdudov/task-agent/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/rdudov/task-agent/repo-health"><img src="https://agentmods.dev/badge/skills/rdudov/task-agent/repo-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,023 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.
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.00055 $0.01023
Opus 5 $0.00028 $0.00511
Sonnet 5 $0.00011 $0.00205
Haiku 4.5 $0.00006 $0.00102

Measured 10d ago against content hash 6405b8bbe9ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/check_deliverables.py, scripts/check_pre_push.py, scripts/check_repo_health.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/repo-health/SKILL.md · 96 lines

How it starts

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

Repo Health

This skill checks whether the repository is structurally usable after restore or before handoff.

Scope

Use it when:

  • a backup restore may have lost local artifacts
  • a public/template copy is being prepared
  • task, data, or skill structure has changed
  • an agent-engine change needs a quick repository health gate

Checks

The bundled script validates:

  • required root files: AGENTS.md, README.md, .gitignore, requirements.txt, and requirements.lock
  • required docs: docs/architecture.md and docs/task-execution.md
  • every task directory has task.md and plan.md. The rebuildable task index is deliberately not checked: it is regenerated from tasks/ on demand, and tasks_index.py check owns the task-metadata properties
  • every skills/*/SKILL.md has name and description frontmatter
  • executable Python scripts parse in memory, so the check works on read-only checkouts and does not create __pycache__ entries
  • obvious secret-like content is absent from the files Git can publish: tracked files plus untracked, non-ignored files. The check reuses the pre-push guard's pattern definitions and fails closed if Git cannot establish that scope.

Ignored tasks/ and data/ contain durable local evidence, not publishable source. Repository health therefore does not scan those histories for secrets; check_pre_push.py still refuses real task/data artifacts in outgoing commits.

Command

.venv/bin/python skills/repo-health/scripts/check_repo_health.py

For a sanitized template that intentionally omits local task history:

.venv/bin/python skills/repo-health/scripts/check_repo_health.py --allow-empty-tasks

Pre-Push Leak Check

Run before pushing source changes to a configured remote:

.venv/bin/python skills/repo-health/scripts/check_pre_push.py --remote origin

The check scans outgoing files for local task/data/state artifacts, environment files, private keys, and common token formats. It is a guardrail, not a complete security scanner; still review the outgoing diff before pushing.

Read the full file on GitHub · 96 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. 10d ago First seen · 96 lines · 55 tokens per session scan A 6405b8bbe9ee

Subscribe to this mod's changes

repo-health is a skill published in the GitHub repository rdudov/task-agent (4 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 1,023 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.