CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/repo-health

Score a local repository on docs, tests, CI, security and maintenance with ten weighted offline checks and an A-F grade. Use when the user asks how healthy, complete or well maintained a repository is, or what basics it lacks.

Quality

94%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files
name:
repo-health
description:
Score a local repository on docs, tests, CI, security and maintenance with ten weighted offline checks and an A-F grade. Use when the user asks how healthy, complete or well maintained a repository is, or what basics it lacks.

Repo health

Ten weighted, offline checks over a local checkout, combined into a 0-100 score and a grade. It needs only Python 3.10+ and the standard library, reads files without following symlinks, never runs repository code and makes no network calls.

When to use

  • The user asks for a quick health review of a repository or wants to compare several.
  • Before open-sourcing or handing over a project: is there a license, security policy, tests, CI?
  • To set a minimum score in a review checklist.

Steps

  1. Get the two git facts the script cannot read itself (the script never runs git). Run these in the repository and keep the output:

    git ls-files -z > /tmp/tracked.txt
    git log -1 --format=%cI

    If the folder is not a git repository, skip this step: SEC001 and MNT001 are then reported as skipped and left out of the score.

  2. Run the scorer:

    python scripts/repo_health.py PATH --tracked-files /tmp/tracked.txt --last-commit 2026-11-30T12:00:00+00:00

    Replace the timestamp with the value printed by git log. Add --format json for machine-readable output and --min-score 80 to exit with code 1 below a threshold.

  3. Read the report: total, per-category scores and one line per check (PASS, FAIL, SKIPPED). Weights, grades and what each check looks for are in checks.

  4. Summarize the failing checks by weight, highest first, and say which are quick to fix. See interpreting results.

  5. Create or edit files only when the user asks.

Exit codes

0 success, 1 score below --min-score or a domain error (not a directory, too many files, timestamp without timezone), 2 usage or I/O error.

Scope

Presence checks, not quality checks: a license file counts whether or not it is the right license, and a CI file counts when it contains a known test command (pytest, npm test, go test, tox, nox, make test). Files over 1 MiB are never read; more than 50,000 files stops with exit code 1. --now fixes the reference time for reproducible runs.

Workspace
trysac
Visibility
Public
Created
Last updated
Source
CLI
Repository
No repository linked. Set repository in the plugin manifest, or publish from a GitHub Action to verify it.
Badge
trysac/repo-health badge