Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Solution Audit

ASecurity

Audit .NET solution health across 13 dimensions: dependency graph, solution sync, CPM compliance, package health, framework consistency, IVT & encapsulation, build config, analyzer config, NuGet config, suppression hygiene, output type & AOT, public API surface, and lock files & pruning. Works with any .NET solution (.slnx or .sln). Parses all config files once, spawns 3 parallel agents, and produces a severity-grouped report with a Mermaid dependency graph. Triggers on: solution audit, audit...

2 stars
0 votes
0 copies
0 views
Added 10/6/2026
ai-agentsbashapi

Works with

api

Security Analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned 10/6/2026

$npx -y skills add e128/dotnet-reference --skill solution-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Solution Audit?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Solution Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/e128-solution-audit/badge)](https://www.skillsdirectory.com/skills/e128-solution-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: solution-audit
description: >
  Audit .NET solution health across 13 dimensions: dependency graph, solution sync,
  CPM compliance, package health, framework consistency, IVT & encapsulation, build
  config, analyzer config, NuGet config, suppression hygiene, output type & AOT,
  public API surface, and lock files & pruning. Works with any .NET solution (.slnx
  or .sln). Parses all config files once, spawns 3 parallel agents, and produces a
  severity-grouped report with a Mermaid dependency graph.
  Triggers on: solution audit, audit solution, project graph, dependency audit,
  solution health, audit projects, check solution.
argument-hint: "[--no-graph] [--min-severity LEVEL] [--dry-run]"
allowed-tools: Read, Glob, Grep, Bash, Agent
effort: high
---

# Solution Audit

13-dimension audit of a .NET solution's structural health. Parses project and config
files once in the orchestrator, spawns 3 parallel analysis agents, and produces a
severity-grouped report with a Mermaid dependency graph.

## Usage

```
/solution-audit                     # Full audit
/solution-audit --no-graph          # Skip Mermaid generation
/solution-audit --min-severity HIGH # Filter to HIGH+ only
/solution-audit --dry-run           # Parse and show project table only
```

## Architecture

```
/solution-audit (skill — orchestrator)
  Phase 1: Parse solution + all .csproj + Directory.Build.props/.targets
           + Directory.Packages.props + nuget.config + global.json
           + .globalconfig + .editorconfig + suppression scan
  Phase 2: Spawn 3 agents in parallel
    ├─ Agent A: Structure    (D1 dependency graph, D2 solution sync)
    ├─ Agent B: Packages     (D3 CPM, D4 package health, D9 NuGet config, D13 lock files & pruning)
    └─ Agent C: Config       (D5 framework, D6 IVT, D7 build, D8 analyzers, D10 suppressions,
    │                         D11 output type & AOT, D12 public API surface)
  Phase 3: Collect results, generate Mermaid, build report
  Phase 4: Print report
```

Orchestrator parses files (once) and generates the Mermaid; agents receive structured text
and analyze. 3 agents (not 13) because dimensions cluster by shared data needs. All Phase 1
commands are read-only — proceed through parsing without prompting.

---

## Phase 1: Parse & Build Structured Data

### 1.1 Enumerate the solution and projects

```bash
scripts/solution-inventory.sh --json
```

Returns the solution file, every project (`path`, `kind` = src/test, `packable`), and
the README inventory in one call. If `solution` is empty, error and stop.

### 1.2–1.9 Parse all config sources

Read `references/parse-steps.md` for detailed extraction steps covering: global.json,
solution file, all .csproj files, Directory.Build.props, Directory.Packages.props,
nuget.config, and .globalconfig/.editorconfig.

For the **suppression scan** (D10), use `scripts/suppression-scan.sh --json` — it emits
`{file, line, rule, kind}` records for every `#pragma warning disable` and
`[SuppressMessage(...)]` across src/ and tests/ in a single pass.

### 1.10 Scan for orphans

Use the `projects[].path` list from `scripts/solution-inventory.sh --json` (step 1.1).
Compare against the solution file project list. Flag any on disk but not in solution.

### 1.11 Build structured project table

Combine all data into a text table. Format as markdown for agent consumption:

```markdown
## Projects
| Project | Folder | SDK | TFM | Output | Refs | IVT | Packages |
|---------|--------|-----|-----|--------|------|-----|----------|

## Solution Folders
/src/: ProjectA, ProjectB ...
/tests/: ProjectA.Tests ...

## Directory.Build.props Defaults
TargetFramework: net10.0
...

## Central Packages (Directory.Packages.props)
PackageA (1.0.0), PackageB (2.3.0) ...

## NuGet Config
Has <clear />: yes, Sources: nuget.org (HTTPS, V3) ...

## SDK Info
SDK: 10.0.201, TFM: net10.0, Runner: mtp

## Orphans
(none)

## Suppressions
src/Foo.cs:42: #pragma warning disable CA1234
...
```

**If `--dry-run`:** Print the project table and stop.

---

## Phase 2: Spawn 3 Parallel Agents

Spawn all in a **single message**. Use `subagent_type: "general-purpose"`. Each agent
applies the severity rules for its dimensions from
[references/checks-catalog.md](references/checks-catalog.md) (Severity Rules + Edge Cases).

| Agent | Dimensions          | Pass to it                                                                                                  |
| ----- | ------------------- | ----------------------------------------------------------------------------------------------------------- |
| A     | D1, D2              | Project table, folder map, orphan list, each project's source dir (for the D1 usage grep)                   |
| B     | D3, D4, D4b, D9, D13| Project table, Directory.Packages.props (with comments), nuget.config, lock files, SDK info, source dirs (D4b grep) |
| C     | D5–D8, D10–D12      | Project table, Directory.Build.props, .globalconfig, .editorconfig, suppression grep, public-type/XML-doc grep, OutputType/AOT props |

Before spawning, run `scripts/deps-graph.sh --orphans --json` to get candidate orphaned
central packages (`PackageVersion` entries with no direct `PackageReference`); each carries
a `transitive_pin` flag from its above-line comment marker. Also run
`dotnet list <SLN> package --include-transitive`. Pass both to Agent B so it can confirm
which orphan candidates are genuinely unused vs. deliberate transitive pins. Agent A
returns its adjacency list in an `ADJACENCY: ... END_ADJACENCY` block for Mermaid.

---

## Phase 3: Collect & Generate

1. **Parse agent outputs** — extract `[SEVERITY] target: description` lines
2. **Generate Mermaid** (unless `--no-graph`):
   - Solid arrows (`-->`) for src→src references
   - Dashed arrows (`-.->`) for test→src references
   - Red edges for circular deps
   - Color-code: src=blue, test=green
3. **Group by severity** — CRITICAL → HIGH → MEDIUM → LOW
4. **Apply `--min-severity` filter** if provided

---

## Phase 4: Report

Print a structured report with: header (solution name, project/package counts, SDK, TFM, finding totals), findings grouped by severity (CRITICAL → HIGH → MEDIUM → LOW) with `[D#] target: description` format, dependency graph (Mermaid block), and verdict.

**Verdict:** **PASS** (no CRITICAL/HIGH) | **WARN** (HIGH but no CRITICAL) | **FAIL** (CRITICAL present)

---

## Overlap

`/solution-audit` only *reports* — it never fixes. For overlapping concerns, use the focused tool:
- **D1/D3/D4b (dependency rot)** → `/prune-deps` removes confirmed-dead entries with a verification build.
- **Config/package health** → `/dotnet-overhaul` Step 2 fixes the same ground. Run one or the other, not both.

## Guidelines

- **Don't fix during audit** — produce findings; let the user decide
- **No external state** — no baseline, no tmp files; the report is the output
- **Repo-agnostic** — no hardcoded project names; prefer `scripts/*.sh`, fall back to raw commands

Attribution

e128e128
View sourceSee grades on GitHubMore from e128 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →