agentleFS
89jobrien89jobrien/godmode/skills/health-score/SKILL.md

godmode:health-score

Skill1 starsChanged 2 months agoMITView on GitHub

Measure codebase health across seven metrics: test count, clippy warnings, TODO density, public API surface, dependency count, average module size, and doc coverage. Track trends vs previous runs and persist scores to history.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When asked to run a "health check" or "codebase score"

    line 18
  2. Distinctive:

    When evaluating whether technical debt is accumulating

    line 20
  3. Distinctive:

    After a release or quarterly checkpoint

    line 22
  4. Distinctive:

    Read the file named in a row before doing the task in its right column.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Health Score

Measure codebase health metrics on demand. Produces a scorecard with seven metrics and tracks trends over time by persisting scores to a JSON history file.

When to Use

  • When asked to run a "health check" or "codebase score"
  • During retrospectives or after significant refactoring work
  • When evaluating whether technical debt is accumulating
  • To baseline a project before proposing major changes
  • After a release or quarterly checkpoint

Reference files

Read the file named in a row before doing the task in its right column. These files are not loaded automatically.

FileRead before
references/metrics-collection.mdcollecting metrics 1 to 3 (tests, clippy, TODOs), or interpreting a metric's value
references/metrics-collection-api-and-dependencies.mdcollecting metrics 4 and 5 (public API surface, dependency count)
references/metrics-collection-module-size-and-docs.mdcollecting metrics 6 and 7 (module line count, documentation coverage)
references/trend-calculation.mdcomparing a current measurement to the previous one, or assigning trend symbols
references/history-and-scorecard.mdappending to the history file
references/scorecard-format-and-grade.mdwriting a scorecard for the user, including the health grade criteria
references/limitations.mdpresenting a score as a quality judgment, or comparing scores across repos

See Also

  • health-score-agent.md — invokes this skill to measure and report
  • CLAUDE.md — build and test conventions for collecting accurate counts

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.