AgentSkillsCN

Repo Health

仓库健康状况

SKILL.md

name: repo-health entry: repo-health.sh description: "Run a full health check (typecheck + tests + git status) in one command. Returns structured JSON output for easy parsing."

Repo Health Skill

Run a complete repository health check in a single command. Returns structured JSON so the agent can quickly assess the state of the codebase.

Usage

bash
/repo-health

Output Format

Returns JSON with three sections:

json
{
  "tsc": "pass",
  "tsc_errors": 0,
  "tests": "pass",
  "tests_total": 217,
  "tests_passed": 217,
  "tests_failed": 0,
  "git": "clean",
  "git_branch": "main",
  "git_changed_files": 0
}

Field Reference

FieldValuesDescription
tscpass / failTypeScript compilation result
tsc_errorsnumberCount of tsc errors (0 = clean)
testspass / failTest suite result
tests_totalnumberTotal tests run
tests_passednumberTests that passed
tests_failednumberTests that failed
gitclean / dirtyWorking tree state
git_branchstringCurrent branch name
git_changed_filesnumberNumber of modified/untracked files

When to Use

  • Before making changes: verify baseline health
  • After making changes: verify nothing broke
  • Before committing: confirm typecheck + tests pass
  • As a quick status report