Skip to content
Agentmart
Submit a tool

repo-health

Run the repo health gate before commit or push to reduce doc drift and keep branches clean.

Skill by sourcegraph

IndexedApache-2.0★ 37
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sourcegraph-repo-health

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run the repo health gate before commit or push to reduce doc drift and keep branches clean. Triggers on commit, push, before push, repo health, reduce drift, doc drift, clean branch.

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/repo-health

What's inside

Skill name
repo-health
Description
Run the repo health gate before commit or push to reduce doc drift and keep branches clean. Triggers on commit, push, before push, repo health, reduce drift, doc drift, clean branch.
License
Apache-2.0
Instructions
44 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • files: referenced but missing: scripts/repo_health.py

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Repo Health

Run the health gate **before committing or pushing** so the tree stays clean and entropy (doc drift, broken refs, invalid task defs) is caught early.

## When to Use

- **Before every commit or push** when you changed docs, configs, or task definitions.
- When the user says "before push", "reduce drift", "doc drift", or "keep branch clean".
- After editing files under `docs/`, `configs/`, or `benchmarks/` task dirs.

## Steps

### 1. Run the gate

**Quick** (docs + selection file only; use after editing only docs/config):
```bash
cd ~/CodeScaleBench && python3 scripts/repo_health.py --quick
```

**Full** (adds task preflight static; use before merge or after touching task defs):
```bash
cd ~/CodeScaleBench && python3 scripts/repo_health.py
```

### 2. If any check fails

- Fix the reported issues (see `docs/REPO_HEALTH.md` for common fixes).
- Re-run the gate until it passes.
- Then commit/push.

### 3. Do not bypass

Do not suggest committing or pushing with failing health checks. If the user insists, remind them that CI will fail and main stays clean only if everyone runs the gate.

## Contract

The list of checks is in `configs/repo_health.json`. Quick mode runs only `quick_checks`; full runs all required checks.

## Reference

- `docs/REPO_HEALTH.md` — Full doc (what’s checked, branch hygiene, fixing failures).
- `scripts/repo_health.py` — Gate script; exit 0 only when all required checks pass.

From sourcegraph/CodeScaleBench, Apache-2.0.

More from sourcegraph/CodeScaleBench

Signals

Stars
37
Forks
5
Open issues
0
Last commit (this folder)
Mar 17, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sourcegraph

Cite this page

repo-health skill. Agent Mart. https://agentmart.dev/skills/sourcegraph-repo-health (last updated 2026-10-24)