repo-health

repo-health is a cursor rule for Cursor from thatrebeccarae/claude-marketing. It costs 39 tokens per session (2,391 once invoked), scanned A, original, MIT.

A one-command audit for a GitHub repository, which is a project stored and managed with GitHub. It checks repository files, GitHub settings, documentation, and code hygiene, then produces a scored report with prioritised fixes.

In plain words
What is it for?
Use it to check a new or unfamiliar repository, review an active project, prepare a private project for public release, or generate missing standard files.
Why use it?
It shows what is missing or needs attention before release, open-sourcing, onboarding, or routine maintenance.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to check a new or unfamiliar repository, review an active project, prepare a private project for public release, or generate missing standard files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/thatrebeccarae/claude-marketing/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.

Clone the repo
git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing

Made for: Cursor.

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/rules/thatrebeccarae/claude-marketing/repo-health/github.svg)](https://agentmods.dev/rules/thatrebeccarae/claude-marketing/repo-health)
Your own site
<a href="https://agentmods.dev/rules/thatrebeccarae/claude-marketing/repo-health"><img src="https://agentmods.dev/badge/rules/thatrebeccarae/claude-marketing/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/rules/thatrebeccarae/claude-marketing/repo-health"><img src="https://agentmods.dev/badge/rules/thatrebeccarae/claude-marketing/repo-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,391 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.00039 $0.02391
Opus 5 $0.00019 $0.01196
Sonnet 5 $0.00008 $0.00478
Haiku 4.5 $0.00004 $0.00239

Measured 13d ago against content hash 0c173f95dc6e, 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 13d 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.

integrations/cursor/repo-health.mdc · 254 lines

How it starts

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

Repo Health

One-command health audit for GitHub repositories. Produces a scored report with prioritized fix recommendations.

When to Use

  • Setting up a new repo and want to make sure nothing is missing
  • Periodic health checks on active repositories
  • Before open-sourcing a private repo (what needs to be added?)
  • Onboarding onto an unfamiliar repo to assess its state
  • Pre-release hygiene sweep

How to Use

/repo-health [repo-path]        # Full audit with scored report
/repo-health [repo-path] --fix  # Audit + generate missing files

Default repo-path is the current working directory if omitted.

Procedure

Execute each step in order. Do not skip steps.

Step 1: Validate Repo Path

  1. If repo-path is provided, resolve to absolute path. If omitted, use current working directory.
  2. Confirm the path exists and is a directory.
  3. Confirm it contains a .git directory (is a git repo).

If validation fails:

Error: {repo-path} is not a git repository.
Provide a path to a git repo or run from within one.

STOP.

Step 2: Detect Public/Private

Determine repo visibility:

  1. Check for .public-repo marker file at repo root -> public
  2. Check if "public" appears in the remote URL -> public
  3. Run gh repo view --json isPrivate -q '.isPrivate' if gh is available -> use result
  4. If none of the above resolve it -> ask the user

Store as repo_visibility (public or private). Public repos are held to a stricter standard in scoring.

Step 3: File Presence Checks

Check for each standard file. Track result as PRESENT or MISSING.

File Required (Public) Required (Private)
LICENSE Yes No
README.md Yes Yes
.gitignore Yes Yes
SECURITY.md Yes No
CONTRIBUTING.md Yes No
CODEOWNERS Recommended No
.editorconfig Recommended Recommended
.github/pull_request_template.md or .github/PULL_REQUEST_TEMPLATE.md Recommended No
.github/ISSUE_TEMPLATE/ directory (or .github/ISSUE_TEMPLATE.md) Recommended No
CHANGELOG.md Recommended No
CODE_OF_CONDUCT.md Recommended (public) No

Read the full file on GitHub · 254 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. 13d ago First seen · 254 lines · 39 tokens per session scan A 0c173f95dc6e

Subscribe to this mod's changes

repo-health is a cursor rule published in the GitHub repository thatrebeccarae/claude-marketing (137 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 2,391 once invoked, about $0.0002 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.