Claude Code AgentExpert Advisors22 installs

Dotnet Upgrade

Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation.

Install with the Claude Code Templates CLI
$ npx claude-code-templates@latest --agent="expert-advisors/dotnet-upgrade" --yes

Requires Claude Code. The command adds this agent to your project's .claudedirectory — nothing runs on ToolZip's servers.

What's inside this agent

Component source

.NET Upgrade Collection

.NET Framework upgrade specialist for comprehensive project migration

Tags: dotnet, upgrade, migration, framework, modernization

Collection Usage

.NET Upgrade Chat Mode

Discover and plan your .NET upgrade journey!

``markdown, upgrade-analysis.prompt.md


mode: dotnet-upgrade

title: Analyze current .NET framework versions and create upgrade plan


Analyze the repository and list each project's current TargetFramework

along with the latest available LTS version from Microsoft's release schedule.

Create an upgrade strategy prioritizing least-dependent projects first.

The upgrade chat mode automatically adapts to your repository's current .NET version and provides context-aware upgrade guidance to the next stable version.

It will help you:
- Auto-detect current .NET versions across all projects
- Generate optimal upgrade sequences
- Identify breaking changes and modernization opportunities
- Create per-project upgrade flows

---

### .NET Upgrade Instructions

Execute comprehensive .NET framework upgrades with structured guidance!

The instructions provide:
- Sequential upgrade strategies
- Dependency analysis and sequencing
- Framework targeting and code adjustments
- NuGet and dependency management
- CI/CD pipeline updates
- Testing and validation procedures

Use these instructions when implementing upgrade plans to ensure proper execution and validation.

---

### .NET Upgrade Prompts

Quick access to specialized upgrade analysis prompts!

The prompts collection includes ready-to-use queries for:
- Project discovery and assessment
- Upgrade strategy and sequencing
- Framework targeting and code adjustments
- Breaking change analysis
- CI/CD pipeline updates
- Final validation and delivery

Use these prompts for targeted analysis of specific upgrade aspects.

---

## Quick Start
1. Run a discovery pass to enumerate all `*.sln` and `*.csproj` files in the repository.
2. Detect the current .NET version(s) used across projects.
3. Identify the latest available stable .NET version (LTS preferred) — usually `+2` years ahead of the existing version.
4. Generate an upgrade plan to move from current → next stable version (e.g., `net6.0 → net8.0`, or `net7.0 → net9.0`).
5. Upgrade one project at a time, validate builds, update tests, and modify CI/CD accordingly.

---

## Auto-Detect Current .NET Version
To automatically detect the current framework versions across the solution:
bash

1. Check global SDKs installed

dotnet --list-sdks

2. Detect project-level TargetFrameworks

find . -name "*.csproj" -exec grep -H "<TargetFramework" {} \;

3. Optional: summarize unique framework versions

grep -r "<TargetFramework" **/.csproj | sed 's/.<TargetFramework>//;s/<\/TargetFramework>//' | sort | uniq

4. Verify runtime environment

dotnet --info | grep "Version"

**Chat Prompt:**
> "Analyze the repository and list each project’s current TargetFramework along with the latest available LTS version from Microsoft’s release schedule."

---

## Discovery & Analysis Commands
bash

List all projects

dotnet sln list

Check current target frameworks for each project

grep -H "TargetFramework" **/*.csproj

Check outdated packages

dotnet list <ProjectName>.csproj package --outdated

Generate dependency graph

dotnet msbuild <ProjectName>.csproj /t:GenerateRestoreGraphFile /p:RestoreGraphOutputPath=graph.json

**Chat Prompt:**
> "Analyze the solution and summarize each project’s current TargetFramework and suggest the appropriate next LTS upgrade version."

---

## Classification Rules
- `TargetFramework` starts with `netcoreapp`, `net5.0+`, `net6.0+`, etc. → **Modern .NET**
- `netstandard*` → **.NET Standard** (migrate to current .NET version)
- `net4*` → **.NET Framework** (migrate via intermediate step to .NET 6+)

---

## Upgrade Sequence
1. **Start with Independent Libraries:** Least dependent class libraries first.
2. **Next:** Shared components and common utilities.
3. **Then:** API, Web, or Function projects.
4. **Finally:** Tests, integration points, and pipelines.

**Chat Prompt:**
> "Generate the optimal upgrade order for this repository, prioritizing least-dependent projects first."

---

## Per-Project Upgrade Flow
1. **Create branch:** `upgrade/<project>-to-<targetVersion>`
2. **Edit `<TargetFramework>`** in `.csproj` to the suggested version (e.g., `net9.0`)
3. **Restore & update packages:**
bash

dotnet restore

dotnet list package --outdated

dotnet add package <PackageName> --version <LatestVersion>

4. **Build & test:**
bash

dotnet build <ProjectName>.csproj

dotnet test <ProjectName>.Tests.csproj

5. **Fix issues** — resolve deprecated APIs, adjust configurations, modernize JSON/logging/DI.
6. **Commit & push** PR with test evidence and checklist.

---

## Breaking Changes & Modernization
- Use `.NET Upgrade Assistant` for initial recommendations.
- Apply analyzers to detect obsolete APIs.
- Replace outdated SDKs (e.g., `Microsoft.Azure.*` → `Azure.*`).
- Modernize startup logic (`Startup.cs` → `Program.cs` top-level statements).

**Chat Prompt:**
> "List deprecated or incompatible APIs when upgrading from <currentVersion> to <targetVersion> for <ProjectName>."

---

## CI/CD Configuration Updates
Ensure pipelines use the detected **target version** dynamically:

**Azure DevOps**
yaml

  • task: UseDotNet@2
inputs:

packageType: 'sdk'

version: '$(TargetDotNetVersion).x'

**GitHub Actions**
yaml
  • uses: actions/setup-dotnet@v4
with:

dotnet-version: '${{ env.TargetDotNetVersion }}.x'

`


Validation Checklist

  • TargetFramework upgraded to next stable version
  • All NuGet packages compatible and updated
  • Build and test pipelines succeed locally and in CI
  • Integration tests pass
  • Deployed to a lower environment and verified


Branching & Rollback Strategy

  • Use feature branches: upgrade/-to-
  • Commit frequently and keep changes atomic
  • If CI fails after merge, revert PR and isolate failing modules

Chat Prompt:

> "Suggest a rollback and validation plan if the .NET upgrade for <ProjectName> introduces build or runtime regressions."


Automation & Scaling

  • Automate upgrade detection with GitHub Actions or Azure Pipelines.
  • Schedule nightly runs to check for new .NET releases via dotnet --list-sdks`.
  • Use agents to automatically raise PRs for outdated frameworks.


Chatmode Prompt Library

  • "List all projects with current and recommended .NET versions."
  • "Generate a per-project upgrade plan from to ."
  • "Suggest .csproj and pipeline edits to upgrade ."
  • "Summarize build/test results post-upgrade for ."
  • "Create PR description and checklist for the upgrade."


Type
Agent
Category
Expert Advisors
Installs
22
Source
GitHub ↗

Related Claude Code Agents

AgentExpert Advisors

Architect Review

Use this agent to review code for architectural consistency and patterns. Specializes in SOLID principles, proper layering, and maintainability. Examples: <example>Context: A developer has submitted a pull request with significant structural changes. user: 'Please review the architecture of this new feature.' assistant: 'I will use the architect-reviewer agent to ensure the changes align with our existing architecture.' <commentary>Architectural reviews are critical for maintaining a healthy codebase, so the architect-reviewer is the right choice.</commentary></example> <example>Context: A new service is being added to the system. user: 'Can you check if this new service is designed correctly?' assistant: 'I'll use the architect-reviewer to analyze the service boundaries and dependencies.' <commentary>The architect-reviewer can validate the design of new services against established patterns.</commentary></example>

908 installsView →
AgentExpert Advisors

Documentation Expert

Use this agent to create, improve, and maintain project documentation. Specializes in technical writing, documentation standards, and generating documentation from code. Examples: <example>Context: A user wants to add documentation to a new feature. user: 'Please help me document this new API endpoint.' assistant: 'I will use the documentation-expert to generate clear and concise documentation for your API.' <commentary>The documentation-expert is the right choice for creating high-quality technical documentation.</commentary></example> <example>Context: The project's documentation is outdated. user: 'Can you help me update our README file?' assistant: 'I'll use the documentation-expert to review and update the README with the latest information.' <commentary>The documentation-expert can help improve existing documentation.</commentary></example>

709 installsView →
AgentExpert Advisors

Agent Expert

|-

158 installsView →
AgentExpert Advisors

Dependency Manager

Use this agent to manage project dependencies. Specializes in dependency analysis, vulnerability scanning, and license compliance. Examples: <example>Context: A user wants to update all project dependencies. user: 'Please update all the dependencies in this project.' assistant: 'I will use the dependency-manager agent to safely update all dependencies and check for vulnerabilities.' <commentary>The dependency-manager is the right tool for dependency updates and analysis.</commentary></example> <example>Context: A user wants to check for security vulnerabilities in the dependencies. user: 'Are there any known vulnerabilities in our dependencies?' assistant: 'I'll use the dependency-manager to scan for vulnerabilities and suggest patches.' <commentary>The dependency-manager can scan for vulnerabilities and help with remediation.</commentary></example>

106 installsView →
AgentExpert Advisors

Multi Agent Coordinator

"Use when coordinating multiple concurrent agents that need to communicate, share state, synchronize work, and handle distributed failures across a system. Specifically:\\n\\n<example>\\nContext: A data pipeline has 8 specialized agents running in parallel—data-ingestion, validation, transformation, enrichment, quality-check, storage, monitoring, and error-handling agents. They need to coordinate state changes, pass data between stages, and respond to failures anywhere in the pipeline.\\nuser: \"We have 8 agents processing data through different stages. Some need to wait for others to finish, they need to exchange data, and if one fails, others need to know about it. Can you coordinate all of this?\"\\nassistant: \"I'll set up coordination across your 8 agents by: establishing clear communication channels between dependent agents, implementing message passing for data exchange, creating dependency graphs to control execution order, setting up distributed failure detection across all agents, implementing compensation logic so if the quality-check agent fails, the transformation agent can adjust accordingly, and monitoring the entire pipeline to detect bottlenecks or cascade failures.\"\\n<commentary>\\nInvoke multi-agent-coordinator when you have multiple agents that need to work together in a tightly coupled way with shared state, synchronization points, and distributed failure handling. This is distinct from agent-organizer (which selects and assembles teams) and workflow-orchestrator (which models business processes). Use coordinator for real-time inter-agent communication.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: Running a distributed search system where a query-distributor agent sends requests to 5 parallel search-engine agents, which send results to a result-aggregator agent. The system needs to handle timeouts, partial failures, and dynamic load balancing.\\nuser: \"We're building a meta-search system where one coordinator sends queries to 5 parallel search engines, and they all need to send results to an aggregator. If some are slow, we need to handle that gracefully. How do we coordinate this?\"\\nassistant: \"I'll design the coordination using scatter-gather pattern: the query-distributor sends requests to all 5 search-engine agents in parallel, I'll implement timeout handling so slow responders don't block the aggregator, set up circuit breakers to prevent cascading failures if a search engine is down, implement partial result collection so the aggregator can combine whatever results come back within the timeout window, and add fallback logic to redistribute work if an agent fails.\"\\n<commentary>\\nUse multi-agent-coordinator for real-time synchronization of multiple agents processing in parallel, especially when dealing with timeouts, partial failures, and dynamic load balancing. This is ideal for scatter-gather patterns and real-time distributed systems.\\n</commentary>\\n</example>\\n\\n<example>\\nContext: A microservices system has agents for user-service, order-service, inventory-service, and payment-service. They operate semi-independently but occasionally need to coordinate complex transactions like order placement that spans multiple agents with rollback requirements.\\nuser: \"Our services run independently, but when a customer places an order, we need user-service to validate the user, inventory-service to reserve stock, and payment-service to charge the card. If any step fails, all need to rollback. Can you coordinate this?\"\\nassistant: \"I'll implement coordination using a saga pattern: set up checkpoints where agents can commit or rollback state, define compensation logic for each agent (if payment fails, unreserve inventory and clear the user order), implement distributed transaction semantics so all agents reach a consistent state even under failures, establish communication channels for agents to signal state changes to each other, and add monitoring to detect and recover from partial failures.\"\\n<commentary>\\nInvoke multi-agent-coordinator when agents must maintain transactional consistency across multiple semi-independent services, requiring compensation logic and distributed commit semantics. This handles complex distributed transactions with rollback requirements.\\n</commentary>\\n</example>"

66 installsView →
AgentExpert Advisors

Critical Thinking

Challenge assumptions and encourage critical thinking to ensure the best possible solution and outcomes.

59 installsView →

Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.