project-health-check
Analyze overall project health and metrics
What this skill does
# 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 ```bash # 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 ```bash # 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** ```markdown # 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 ```yaml # health-check-config.yml thresholds: velocity_variance: 20 # Acceptable % variance test_coverage: 80 # Minimum coverage % pr_review_time: 4 # Maximum hours bug_rate: 5 # Maximum % of work dependency_age: 90 # Days before "outdated" ``` ### Custom Health Metrics Allow users to define additional metrics: ``` "Add custom health metric: - Name: Customer Satisfaction - Data Source: [API/Manual/File] - Target Value: [>4.5/5] - Weight: [Impact on overall score]" ``` ## Export Options 1. **Executive Summary** (PDF/Markdown) 2. **Detailed Report** (HTML with charts) 3. **Raw Metrics** (JSON/CSV) 4. **Action Items** (Linear tasks/GitHub issues) 5. **Monitoring Dashboard** (Grafana/Datadog format) ## Automation Suggestions ``` "Would you like me to: 1. Schedule weekly health checks 2. Set up alerts for critical metrics 3. Create Linear tasks for action items 4. Generate PR templates with health criteria 5. Configure CI/CD health gates" ``` ## Best Practices 1. **Regular Cadence**: Run health checks weekly/bi-weekly 2. **Track Trends**: Compare with historical data 3. **Action-Oriented**: Focus on fixable issues 4. **Team Involvement**: Share results transparently 5. **Continuous Improvement**: Refine metrics based on outcomes ## References - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/research-before-decision.md โ Collect and analyze actual metrics before scoring; do not estimate health from assumptions - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/vague-discretion.md โ Health thresholds must be numeric (e.g., test coverage โฅ 80%); never "good enough" conditions - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/project-status/SKILL.md โ Provides SDLC artifact-based status; this skill provides code and team metrics - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/security-audit/SKILL.md โ Security metrics feed directly into this skill's health score calculation - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/codebase-health/SKILL.md โ Code structure metrics complement the project-level metrics produced here
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.