agentleFS
mcabreradevmcabreradev/hermes-sdd-agency/skills/code-health/SKILL.md

code-health

Skill1 starsChanged 2 months agoMITView on GitHub

Score repo quality 0-10 from real tool output, with before/after and trends.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the project's real tooling (read the repo's declared commands, never invent):

    line 15
  2. Very specific:

    If the project keeps a health history, store scores in the repo's own data file (e.g.

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- hermes-add-skill: concept adapted from gstack /health (garrytan/gstack, MIT); implementation is host-agnostic. -->

Code health score

Quantify repo quality from the project's own tools — a composite, weighted score with before/after and trend tracking. It turns "it looks clean" into a number you can audit and compare between stages.

How

Run the project's real tooling (read the repo's declared commands, never invent):

  • type checker
  • linter (with the repo's configured rules)
  • test runner
  • dead-code / unused-import detector, if the project has one
  • shell linter for any shell files

Compute a composite 0-10 score with explicit weights you state up front (defaults: tests 40%, type-check 25%, lint 20%, dead-code 10%, shell 5% — adjust to the project and declare the weights in the report). Each failing check subtracts proportionally.

What must be in the report

  • The commands run and their real output (evidence, per rules/quality.md).
  • The score breakdown and the weights used.
  • Any check that could not run, and why (blocked, not silently zero-rated).
  • A before/after when used across stages (e.g. a fix's effect on the score) or the trend against previously stored scores, when a history exists.

Persistence (optional, per-project)

If the project keeps a health history, store scores in the repo's own data file (e.g. .context/health.jsonl) so trends and before/after survive across sessions. Do not store scores in global memory — project data lives in the project.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.