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

checks.mdreferences/

Checks, weights and grades

IdCategoryWeightPasses when
DOC001docs10A README (README, .md, .rst, .txt, .markdown) at the root has at least 100 words.
DOC002docs10A license file at the root: LICENSE, LICENSE.md, LICENSE.txt or COPYING.
DOC003docs5A contributing guide (CONTRIBUTING, .md, .rst, .txt) at the root, in .github/ or in docs/.
DOC004docs10SECURITY.md at the root, in .github/ or in docs/.
TST001tests10A file named test_*.py, *_test.py, *_test.go, *.test.ts or *.spec.ts, or a directory called tests.
CI001ci10A file under .github/workflows/ or a .gitlab-ci.yml.
CI002ci5One of those CI files contains pytest, npm test, go test, tox, nox or make test.
SEC001security15No tracked file looks like a secret: .env, .env.*, *.pem, *.key, id_rsa, id_ed25519 (names ending in .example or .sample are fine). Needs --tracked-files.
SEC002security10Dependency update configuration: .github/dependabot.yml or .yaml, renovate.json, renovate.json5, .renovaterc, .renovaterc.json, .github/renovate.json, .github/renovate.json5 or .gitlab/renovate.json5.
MNT001maintenance15The last commit is at most 365 days older than --now. Needs --last-commit.

Total weight is 100.

Score

  • total = (200 * passed + possible) // (2 * possible), where passed is the weight of passing checks and possible the weight of checks that were not skipped (round half up). If every check is skipped, the total is 0.
  • Per-category scores use the same formula over the checks of that category: docs, tests, ci, security, maintenance.
  • Grade: A at 90 or more, B at 80, C at 70, D at 60, otherwise F.

Statuses

  • PASS and FAIL count toward the score.
  • SKIPPED means the data was not available (git facts not supplied) and the check is left out of both sides of the formula.

Walk rules

  • Symlinks and the .git directory are not followed or read.
  • Files larger than 1,048,576 bytes are never opened; a README that large fails DOC001 with detail too large.
  • More than 50,000 files, or more than 50,000 tracked paths, stops with a too_many_files error.
  • Detail strings are limited to 200 printable characters.

SKILL.md

tile.json