Skip to content
Development
Command

/project-health-check

Analyze overall project health and metrics

From plugin
claude-command-suite
1.3k199 skills89 agents199 commands
Install
$ npx -y skills add qdhenry/Claude-Command-Suite --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/project-health-check

Context preview

What this command does when you run it.

Analyze overall project health and metrics

Command definition

project-health-check.md

Project Health Check

Analyze overall project health and metrics

Instructions

1. **Health Check Initialization**

  • Verify tool connections (Linear, GitHub)
  • Define evaluation period (default: last 30 days)
  • Set health check criteria and thresholds
  • Identify key metrics to evaluate

2. **Multi-Dimensional Analysis**

Code Health Metrics

# Code churn analysis
git log --format=format: --name-only --since="30 days ago" | sort | uniq -c | sort -rg

# Contributor activity
git shortlog -sn --since="30 days ago"

# Branch health
git for-each-ref --format='%(refname:short) %(committerdate:relative)' refs/heads/ | grep -E "(months|years) ago"

# File complexity (if cloc available)
cloc . --json --exclude-dir=node_modules,dist,build

# Test coverage trends
npm test -- --coverage --json

Dependency Health

# Check for outdated dependencies
npm outdated --json

# Security vulnerabilities
npm audit --json

# License compliance
npx license-checker --json

Linear/Task Management Health

1. Sprint velocity trends
2. Cycle time analysis
3. Blocked task duration
4. Backlog growth rate
5. Bug vs feature ratio
6. Task completion predictability

Team Health Indicators

1. PR review turnaround time
2. Commit frequency distribution
3. Work distribution balance
4. On-call incident frequency
5. Documentation updates

3. **Health Report Generation**

# Project Health Report - [Project Name]
Generated: [Date]

## Executive Summary
Overall Health Score: [Score]/100 [๐ŸŸข Healthy | ๐ŸŸก Needs Attention | ๐Ÿ”ด Critical]

### Key Findings
- โœ… Strengths: [Top 3 positive indicators]
- โš ๏ธ Concerns: [Top 3 areas needing attention]
- ๐Ÿšจ Critical Issues: [Immediate action items]

## Detailed Health Metrics

1. **Delivery Health** (Score: [X]/100)
| Metric | Current | Target | Status |
|--------|---------|--------|--------|
| Sprint Velocity | [X] pts | [Y] pts | ๐ŸŸข |
| On-time Delivery | [X]% | 90% | ๐ŸŸก |
| Cycle Time | [X] days | [Y] days | ๐ŸŸข |
| Defect Rate | [X]% | <5% | ๐Ÿ”ด |

2. **Code Quality** (Score: [X]/100)
| Metric | Current | Target | Status |
|--------|---------|--------|--------|
| Test Coverage | [X]% | 80% | ๐ŸŸก |
| Code Duplication | [X]% | <3% | ๐ŸŸข |
| Complexity Score | [X] | <10 | ๐ŸŸก |
| Security Issues | [X] | 0 | ๐Ÿ”ด |

3. **Technical Debt** (Score: [X]/100)
- ๐Ÿ“Š Total Debt Items: [Count]
- ๐Ÿ“ˆ Debt Growth Rate: [+/-X% per sprint]
- โฑ๏ธ Estimated Debt Work: [X days]
- ๐Ÿ’ฐ Debt Impact: [Description]

4. **Team Health** (Score: [X]/100)
| Metric | Current | Target | Status |
|--------|---------|--------|--------|
| PR Review Time | [X] hrs | <4 hrs | ๐ŸŸข |
| Knowledge Silos | [X] | 0 | ๐ŸŸก |
| Work Balance | [Score] | >0.8 | ๐ŸŸข |
| Burnout Risk | [Level] | Low | ๐ŸŸก |

5. **Dependency Health** (Score: [X]/100)
- ๐Ÿ”„ Outdated Dependencies: [X]/[Total]
- ๐Ÿ›ก๏ธ Security Vulnerabilities: [Critical: X, High: Y]
- ๐Ÿ“œ License Issues: [Count]
- ๐Ÿ”— External Service Health: [Status]

## Trend Analysis

### Velocity Trend (Last 6 Sprints)

Sprint 1: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 40 pts Sprint 2: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 45 pts Sprint 3: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 50 pts Sprint 4: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 45 pts Sprint 5: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 38 pts Sprint 6: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 35 pts โš ๏ธ Declining


### Bug Discovery Rate

Week 1: โ–ˆโ–ˆ 2 bugs Week 2: โ–ˆโ–ˆโ–ˆโ–ˆ 4 bugs Week 3: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 6 bugs โš ๏ธ Increasing Week 4: โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ 8 bugs ๐Ÿšจ Action needed


## Risk Assessment

### High Priority Risks
1. **Declining Velocity** 
   - Impact: High
   - Likelihood: Confirmed
   - Mitigation: Review sprint planning process

2. **Security Vulnerabilities**
   - Impact: Critical
   - Count: [X] high, [Y] medium
   - Action: Immediate patching required

3. **Knowledge Concentration**
   - Impact: Medium
   - Bus Factor: 2
   - Action: Implement pairing/documentation

## Actionable Recommendations

### Immediate Actions (This Week)
1. ๐Ÿ›ก๏ธ **Security**: Update [package] to fix critical vulnerability
2. ๐Ÿ› **Quality**: Address top 3 bug-prone modules
3. ๐Ÿ‘ฅ **Team**: Schedule knowledge transfer for [critical component]

### Short-term Improvements (This Sprint)
1. ๐Ÿ“ˆ **Velocity**: Reduce scope to sustainable level
2. ๐Ÿงช **Testing**: Increase coverage in [module] to 80%
3. ๐Ÿ“š **Documentation**: Update outdated docs for [feature]

### Long-term Initiatives (This Quarter)
1. ๐Ÿ—๏ธ **Architecture**: Refactor [component] to reduce complexity
2. ๐Ÿ”„ **Process**: Implement automated dependency updates
3. ๐Ÿ“Š **Metrics**: Set up continuous health monitoring

## Comparison with Previous Health Check

| Category | Last Check | Current | Trend |
|----------|------------|---------|-------|
| Overall Score | 72/100 | 68/100 | โ†“ -4 |
| Delivery | 80/100 | 75/100 | โ†“ -5 |
| Code Quality | 70/100 | 72/100 | โ†‘ +2 |
| Technical Debt | 65/100 | 60/100 | โ†“ -5 |
| Team Health | 75/100 | 70/100 | โ†“ -5 |

4. **Interactive Deep Dives**

Offer focused analysis options:

"Based on the health check, would you like to:
1. Deep dive into declining velocity trends
2. Generate security vulnerability fix plan
3. Analyze technical debt hotspots
4. Create team workload rebalancing plan
5. Set up automated health monitoring"

Error Handling

Missing Linear Connection

"Linear MCP not connected. Health check will be limited to:
- Git/GitHub metrics only
- No sprint velocity or task metrics
- Manual input required for team data

To enable full health analysis:
1. Install Linear MCP server
2. Configure with API credentials
3. Re-run health check"

Incomplete Data

"Some metrics could not be calculated:
- [List missing metrics]
- [Explain impact on analysis]

Would you like to:
1. Proceed with available data
2. Manually provide missing information
3. Skip incomplete sections"

Customization Options

Threshold Configuration

# health-check-config.yml
thresholds:
  velocity_variance: 20  # Acceptable % variance
  test_coverage: 80      # Minimum coverage %
  pr_review_time: 4      # Maximum hours
  bug_rate: 5
Read more
Ships withclaude-command-suite

A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.

Get the whole plugin