Claude-code-skills ln-822-nuget-upgrader
Upgrades .NET NuGet packages with breaking change handling. Use when updating .NET dependencies.
install
source · Clone the upstream repo
git clone https://github.com/levnikolaevich/claude-code-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/levnikolaevich/claude-code-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills-catalog/ln-822-nuget-upgrader" ~/.claude/skills/levnikolaevich-claude-code-skills-ln-822-nuget-upgrader && rm -rf "$T"
manifest:
skills-catalog/ln-822-nuget-upgrader/SKILL.mdsource content
Paths: File paths (
,shared/,references/) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If../ln-*is missing, fetch files via WebFetch fromshared/.https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}
ln-822-nuget-upgrader
Type: L3 Worker Category: 8XX Optimization
Upgrades .NET NuGet packages with automatic breaking change detection and migration.
Overview
| Aspect | Details |
|---|---|
| Input | Solution or project path plus upgrade policy |
| Output | Updated files and a machine-readable dependency upgrade summary |
| Supports | .NET 6, 7, 8, 9, 10 |
Workflow
Phases: Pre-flight -> Find Projects -> Security Audit -> Check Outdated -> Identify Breaking -> Apply Upgrades -> Restore and Build -> Report
Phase 0: Pre-flight Checks
| Check | Required | Action if Missing |
|---|---|---|
file(s) | Yes | Block upgrade |
file | No | Fall back to recursive project discovery |
CLI | Yes | Block upgrade |
| Workspace baseline safe | Yes | In managed runs coordinator already prepared it; in standalone runs protect rollback locally |
Runtime Coordination
Managed runs receive deterministic
runId and exact summaryArtifactPath from ln-820.
Standalone runs remain supported; if runtime arguments are omitted, generate a standalone run-scoped artifact before returning.
Phase 1: Find Projects
| Method | Command |
|---|---|
Find files | |
| Read solution members | |
Phase 2: Security Audit
| Check | Command |
|---|---|
| Vulnerable packages | |
| Outdated packages | |
Actions:
| Severity | Action |
|---|---|
| Critical | Block and report |
| High | Warn and continue |
| Moderate/Low | Log only |
Phase 3: Check Outdated
| Step | Command |
|---|---|
| Install helper | |
| Detect outdated packages | |
Phase 4: Identify Breaking Changes
Detection flow:
- Compare current vs latest major versions.
- Check breaking_changes_patterns.md.
- Use MCP tools for migration guides before changing code.
Common examples:
| Package | Breaking Version | Key Changes |
|---|---|---|
| Microsoft.EntityFrameworkCore | 8 -> 9 | Query and migration changes |
| Serilog.AspNetCore | 7 -> 8 | Configuration updates |
| Swashbuckle.AspNetCore | 6 -> 7 | Minimal API integration changes |
MCP Tools for Migration Search
| Priority | Tool | When to Use |
|---|---|---|
| 1 | | First choice for library docs |
| 2 | | Official Microsoft docs |
| 3 | WebSearch | Latest info and community fixes |
Use the tool chain to confirm migrations before applying them.
Phase 5: Apply Upgrades
Priority order:
- SDK or runtime packages
- framework packages
- EF Core
- logging packages
- everything else
| Action | Command |
|---|---|
| Update one package | |
| Update many packages | |
Phase 6: Restore and Build
| Step | Command |
|---|---|
| Restore | |
| Build | |
| Test | |
On failure:
- Identify the failing package.
- Search Context7 or Ref for the migration guide.
- If unresolved, rollback that package and continue.
Phase 7: Report Results
| Field | Description |
|---|---|
| Solution path |
| Updated projects |
| Total time |
| Applied upgrades |
| Restore/build/test verdict |
| Non-blocking issues |
| Durable worker report path, if written |
Configuration
Options: upgradeType: major # major | minor | patch auditLevel: high minimumReleaseAge: 14 includePrerelease: false targetFramework: net10.0 runTests: true runBuild: true
Error Handling
| Error | Cause | Solution |
|---|---|---|
| CS0246 | Missing type | Search for replacement API |
| NU1605 | Downgrade detected | Check package constraints |
| Build fail | Breaking change | Apply migration guide or rollback offending package |
References
Runtime Summary Artifact
MANDATORY READ: Load
shared/references/coordinator_summary_contract.md
Emit a
dependency-worker summary envelope.
Managed mode:
passes deterministicln-820
and exactrunIdsummaryArtifactPath- write the summary to the provided
summaryArtifactPath
Standalone mode:
- omit
andrunIdsummaryArtifactPath - write
.hex-skills/runtime-artifacts/runs/{run_id}/dependency-worker/ln-822--{identifier}.json
Monitor (2.1.98+): For restore/build/test commands expected >30s, use
Monitor. Fallback: Bash(run_in_background=true).
Definition of Done
- All target
files discovered.csproj - Security audit completed for NuGet dependencies
- Outdated packages identified
- Breaking changes checked via patterns plus current docs
- Upgrades applied in a safe order with rollback on failure
-
,dotnet restore
, and required tests succeeddotnet build -
summary artifact written to the managed or standalone pathdependency-worker
Version: 1.1.0 Last Updated: 2026-01-10