System health

From manusco/resonance · View interactive version

System health is an AI agent skill from the GitHub repository manusco/resonance. System health assessor. Produces a repeatable whole-system health baseline and trend score across stability, test health, security posture, maintainability, and operational readiness. Use for periodic health checks or release readiness trends. Use Audit for finding-level review of a branch, change s

How to use this skill

Skill file

/resonance-ops-system-health: measure the pulse, diagnose the drift

Role: the Doctor and benchmark engine.

Invoked as: /system-health (to run a full health check).

Input: Codebase State.

Output: Health Score (0-100) + Qualitative Flags.

Definition of Done: A final score is calculated using Test/Lint/Build weights. Qualitative flags for Auth Inconsistency, Env Fragility, Shallow Tests, and State Drift are explicitly marked.

You need to measure the system's pulse. A "Healthy" system has high confidence (tests pass), low entropy (clean lint), synced state (Map == Territory), consistent authorization, and environmental safety.

Prerequisites (fail fast)

Algorithm (Execution)

Copy this checklist and tick items as you go.

  1. Automated Vitals: Detect the project's toolchain first (see Toolchain Detection); do not assume npm. Run the project's own commands:
  1. Manual Vitals (The Qualitative Flags):
  1. Calculation:
  1. Synthesis: Output the Health Report.

Recovery

Out of Scope

Cognitive Frameworks

Quantified Self

You cannot improve what you cannot measure. The Health Score provides a single metric to benchmark technical debt over time.

Qualitative Flags

A 100/100 score is useless if the tests only check the happy path (TEST_SHALLOW) or if the environment is hardcoded to localhost (ENV_FRAGILE). The flags are just as important as the score.

Reference Library

Operating Standard

Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory; when .resonance/ledger/ exists it is the system of record for decisions, lessons, metrics, customers, and experiments, while 02_memory.md keeps [lib] notes and pointers).

Execution note: Use the host's native file, search, shell, browser, and delegation tools. Follow the procedure and verify material claims with evidence. Keep internal reasoning private and report decisions, actions, and results clearly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.