git-health

git-health is a skill for Claude Code from joshidikshant/devsquad. It costs 34 tokens per session (643 once invoked), scanned A, original, MIT.

A repository check that reports broken symbolic links, stale branches, and local Git changes that have not been pushed.

In plain words
What is it for?
It helps inspect project health before major work, after time away, or when diagnosing Git-related issues, with human-readable or JSON output.
Why use it?
It reveals common repository problems that can cause confusing tool failures or interrupt development work.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the devsquad plugin — 8 skills, 8 commands, 8 agents, 4 hooks shipped together

Good fit It helps inspect project health before major work, after time away, or when diagnosing Git-related issues, with human-readable or JSON output.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add joshidikshant/devsquad
Claude Code
/plugin install devsquad

Made for: Claude Code.

Or install devsquad, the plugin that ships this one along with the rest of its 8 skills, 8 commands, 8 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/joshidikshant/devsquad/git-health/github.svg)](https://agentmods.dev/skills/joshidikshant/devsquad/git-health)
Your own site
<a href="https://agentmods.dev/skills/joshidikshant/devsquad/git-health"><img src="https://agentmods.dev/badge/skills/joshidikshant/devsquad/git-health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-health

Your own site · 80×15
<a href="https://agentmods.dev/skills/joshidikshant/devsquad/git-health"><img src="https://agentmods.dev/badge/skills/joshidikshant/devsquad/git-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00643
Opus 5.5 $0.00014 $0.00257
Sonnet 5.5 $0.00007 $0.00129
Haiku 4.5 $0.00003 $0.00064

Measured 1mo ago against content hash ce34054352f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/check-branches.sh, scripts/check-changes.sh, scripts/check-symlinks.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/git-health/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Health Skill

Scans the repository for common issues that impede workflow and reports actionable remediation steps.

Checks Performed

  1. Broken Symlinks (GHLT-01): Finds symlinks whose targets do not exist
  2. Orphaned Branches (GHLT-02): Detects branches with no new commits in N days (default: 30)
  3. Uncommitted Changes (GHLT-03): Identifies changes not yet pushed to remote, categorized by severity

When to Use

Invoke before starting major work, after a long absence from a project, or when experiencing unexplained tool failures (often caused by broken symlinks).

Usage

bash "${CLAUDE_PLUGIN_ROOT}/skills/git-health/scripts/git-health.sh"

For machine-readable output:

bash "${CLAUDE_PLUGIN_ROOT}/skills/git-health/scripts/git-health.sh" --json

To run only a specific check:

bash "${CLAUDE_PLUGIN_ROOT}/skills/git-health/scripts/git-health.sh" --check symlinks
bash "${CLAUDE_PLUGIN_ROOT}/skills/git-health/scripts/git-health.sh" --check branches
bash "${CLAUDE_PLUGIN_ROOT}/skills/git-health/scripts/git-health.sh" --check changes

Output Format

Human-Readable (default)

=== Git Health Check ===

Broken Symlinks: 2 issue(s) found
  .git/hooks/pre-commit -> ../missing-hook  [DELETE: git rm .git/hooks/pre-commit]
  node_modules/.bin/tsc -> ../typescript/bin/tsc  [REINSTALL: npm install]

Orphaned Branches: 1 issue(s) found
  feature/old-experiment (last commit: 45 days ago)  [DELETE: git branch -d feature/old-experiment]

Uncommitted Changes: 3 issue(s) found
  [STAGED]    src/auth.ts
  [MODIFIED]  src/config.ts
  [UNTRACKED] .env.local  [WARNING: may contain secrets]

Summary: 6 issue(s) across 3 check(s). Run with --fix to apply suggestions.

JSON Format (with --json)

{
  "timestamp": "2026-02-18T10:00:00Z",
  "checks": {
    "symlinks": { "count": 2, "issues": [...] },
    "branches": { "count": 1, "issues": [...] },
    "changes": { "count": 3, "issues": [...] }
  },
  "total_issues": 6
}

Read the full file on GitHub · 78 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 78 lines · 34 tokens per session scan A ce34054352f8

Subscribe to this mod's changes

git-health is a skill published in the GitHub repository joshidikshant/devsquad (7 stars, last pushed 17d ago), licensed MIT. It adds 34 tokens to every session and 643 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories