Skip to main content
skill CX Codex

health-check — Claude Code skill: grade a .NET project on 8 axes

Grades a .NET project across eight dimensions with letter marks A–F and a rolled-up GPA. Useful at onboarding, before a release, and after a cleanup sprint.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add codewithmukesh/dotnet-claude-kit --skill health-check -a claude-code
Open on GitHub

What health-check does

The skill pulls data on eight dimensions: build health, code quality, architecture, test coverage, dead code, public API surface, security posture and documentation. Grades are not gut calls — each one rests on Roslyn MCP tool output or a CLI command such as dotnet build --no-restore or dotnet list package --vulnerable --include-transitive.

Findings pass a triage gate before any letter is assigned. Only high-confidence items feed the grade, suppressed ones are recorded separately, and medium items are set aside as review notes. When a signal contradicts something the repo's CLAUDE.md marks as deliberate, the invariant wins. Skip that step and a noisy count turns into the wrong letter.

Scope is adjustable: a quick check runs the first four dimensions only, while a post-refactor pass covers build, architecture and tests. Full rubrics, the GPA scale and the report template live in references/grading-rubric.md, which you load before running an assessment. Anything below an A comes with named types or files, priority order and effort estimates instead of a vague note to improve tests. The tone is diagnostic: a C is a route forward, not a verdict.

What it helps with

  • set a baseline on an unfamiliar .NET codebase
  • run a pre-release quality gate
  • rank tech debt before the next sprint
  • re-grade a project after a cleanup sprint
  • spot circular dependencies between projects and types

Example prompts for the agent

  • /health-check
  • run a health check on the whole solution and show me the report card
  • assess build and security only after the package update

How to install health-check

1Skills CLI (Vercel)

npx skills add codewithmukesh/dotnet-claude-kit --skill health-check -a claude-code

2Manually: put the files in place

~/.claude/skills/health-check/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/health-check/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about health-check

How do I install health-check in Claude?

Run npx skills add codewithmukesh/dotnet-claude-kit --skill health-check -a claude-code. The skill lands at ~/.claude/skills/health-check/SKILL.md.

What does health-check do?

It assesses a .NET project across eight dimensions, assigns A–F grades and averages them into a GPA. The output is a report card with key findings and prioritized fixes.

Does it need the Roslyn MCP tools?

Yes. Code quality, architecture, coverage, dead code and API surface all come from Roslyn MCP tools, so those dimensions have no data without them.

Source text

SKILL.md · MIT
---
name: health-check
description: >
  Multi-dimensional health assessment for .NET projects with letter grades (A-F)
  using Roslyn MCP tools. Evaluates 8 dimensions: build health, code quality,
  architecture, test coverage, dead code, API surface, security posture, and
  documentation. Produces a structured report card with actionable recommendations.
  Load this skill when: "health check", "how healthy is this", "project health",
  "code quality report", "grade this project", "assess codebase", "quality audit",
  "technical assessment", "codebase review", "report card".
---

# /health-check — 8-Dimension Project Assessment

## What

Runs a data-driven health assessment across 8 dimensions, each graded A-F with
the specific data points that produced the grade, and rolls them into a GPA.
Gut feeling is not a grade: every dimension uses MCP tools or CLI commands, and
every grade below A comes with specific, prioritized, effort-estimated fixes —
"add test classes for OrderService, PaymentProcessor, ShippingCalculator" is
actionable; "improve test coverage" is not.

This skill owns the **canonical grading system** for the kit. The full rubrics,
GPA scale, and report template live in `references/grading-rubric.md` — load
that file when running an assessment.

Tone is diagnostic, not punitive: a C grade is an improvement path, not a
failure.

## When

- Onboarding to an unfamiliar or new project — set the baseline
- "How healthy is this?", "grade this project", "codebase review", "report card"
- Pre-release quality gate, or monthly/quarterly maintenance review
- After a cleanup sprint (`/de-sloppify`) — re-grade to show progress
- Tech-debt prioritization — lowest grades get the next sprint's attention

## How

### Step 1: Choose Scope

| Scenario | Dimensions |
|----------|------------|
| Full assessment (onboarding, pre-release, monthly review) | All 8 |
| Quick health (mid-sprint checkpoint, before a demo, after a merge) | 1-4 only |
| After major refactor | 1 (Build), 3 (Architecture), 4 (Tests) |
| Post-dependency update | 1 (Build), 7 (Security) |
| After cleanup sprint | Re-grade only the cleaned dimensions |

### Step 2: Run the Dimensions

Read `references/grading-rubric.md` for the grade thresholds, then collect data
per dimension. For deep code-quality dimensions, delegate to the
`code-reviewer` agent with the `code-review` skill.

| # | Dimension | Data source |
|---|-----------|-------------|
| 1 | Build Health | `dotnet build --no-restore` — errors + warnings |
| 2 | Code Quality | MCP `detect_antipatterns` — read `summary`, grade high-confidence only |
| 3 | Architecture | MCP `get_project_graph` + `detect_circular_dependencies` (projects AND types) |
| 4 | Test Coverage | MCP `get_test_coverage_map` — **check `applicable` first** (structural, not line coverage) |
| 5 | Dead Code | MCP `find_dead_code(scope: "solution")` — grade high-confidence; ignore `conventionFiltered` |
| 6 | API Surface | MCP `get_public_api` + `find_references` — overexposure, return-type consistency |
| 7 | Security Posture | `dotnet list package --vulnerable --include-transitive` + secrets/auth spot check (deep dive: `/security-scan`) |
| 8 | Documentation | XML doc coverage on public APIs + README currency |

### Step 2.5: Triage Gate (before any grade is assigned)

Detector output is evidence, not a grade. Pass every finding through this gate
first — it is what stops a noisy count becoming a wrong letter.

1. **Read `summary`, not the violation list.** `summary.byId` is complete even
   when the list is truncated. Never sample a truncated list and extrapolate.
2. **Drop `suppressed`.** Record the count and `summary.suppressionConfig` in the
   report so suppression stays visible.
3. **Set aside `medium`.** These are review items, not grade inputs. Summarise
   them by category; do not fix or count them.
4. **Grade `high` only.** These are wrong regardless of context.
5. **Check invariants.** If a signal contradicts something the target repo's
   CLAUDE.md documents as deliberate, the invariant wins — verify before grading.
6. **Read before asserting.** Never describe a finding you have not opened. If
   you cannot open all of them, report the ones you did and say so.

Fill in the triage table from `references/grading-rubric.md` as you go. If the
table cannot be filled, the dimension is not ready to grade.

### Step 3: Grade and Aggregate

Apply the rubric thresholds exactly — never grade on a curve ("pretty good for
a project this size" is how standards erode; 15 warnings is a C regardless of
project size). Convert to GPA (A=4.0 … F=0.0), averaging only the dimensions
actually graded — a dimension marked "Not assessed" is excluded from the GPA,
never scored as an F.

### Step 4: Report

Produce the report card from the template in `references/grading-rubric.md`:
grades table with key findings, overall GPA, and priority recommendations —
each with named types/files, priority order, and effort estimates. If a
previous report exists, append the trend comparison table.

## Example

```
User: /health-check

Claude: Running full 8-dimension assessment...

| Dimension | Grade | Key Finding |
|-----------|-------|-------------|
| Build Health | A | 0 errors, 2 warnings |
| Code Quality | B | 3 high-confidence findings in 4.2K lines; 31 medium untriaged |
| Architecture | A | Clean direction, 0 cycles |
| Test Coverage | Not assessed | Integration-driven suite — structural metric invalid |
| Dead Code | B | 5 unused methods (79 convention-discovered, not counted) |
| API Surface | B | 2 overexposed service types |
| Security | A | 0 vulnerable packages |
| Documentation | D | 12/30 public APIs documented |

Overall GPA: 3.1 (B) — averaged over 7 graded dimensions.

Triage: 44 AP005 raw → all log-and-rethrow wrappers (medium); 2 AP004 real.

Priority: (1) `SystemSeeder` → `TimeProvider`, ~15 min; (2) XML docs on the 8
endpoint classes, ~1 day; (3) review the 44 catch blocks or suppress by path.
```

## Related

- `references/grading-rubric.md` — canonical rubrics, GPA scale, report template
- `/de-sloppify` — cleanup pipeline for the issues a health check surfaces
- `/security-scan` — deep 6-layer scan behind Dimension 7
- `/code-review` — per-change review (this skill grades the whole project)
- `/verify` — pass/fail pipeline for a change set, not a graded assessment

© codewithmukesh · MIT · codewithmukesh/dotnet-claude-kit

Similar skills

Everything for Code review and refactoring →

From the same set46

aspire Guides .NET Aspire setup for local service orchestration, resource wiring, and service discovery. Use it when working with AppHost or shared service defaults. CX Codex +1 2,800installs convention-learner Reads your existing code and turns it into project rules: naming, folder layout, test organisation. Useful when the agent writes code in the wrong style. CX Codex +1 2,800installs api-versioning Guides your agent through ASP.NET Core API versioning using the Asp.Versioning library. Useful when adding URL segment versions or deprecating legacy contracts. CX Codex +1 2,800installs caching Guides caching work in .NET 10 applications with HybridCache, response caching, and distributed cache patterns. Use it when reducing database reads or planning cache invalidation. CX Codex +1 2,800installs openapi Configures native OpenAPI generation in .NET 10 without Swashbuckle. Helps the agent handle transformers, TypedResults metadata, and security schemes. CX Codex +1 2,800installs configuration Guides .NET 10 configuration with typed options, validation, and secret handling. Use it when working with appsettings files or environment variables. CX Codex +1 2,800installs scalar A skill that walks the agent through wiring Scalar into a .NET 10 app as a Swagger UI replacement, with themes, auth prefill and multiple documents. CX Codex +1 2,800installs opentelemetry Configures OpenTelemetry traces, metrics, and logs in .NET 10 applications using OTLP export and IMeterFactory. CX Codex +1 2,800installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor