CSharpener

Community

Refactor C# code with confidence.

Authorlawless-m
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Understanding complex C# codebases, identifying dead code, or assessing the impact of changes can be time-consuming and error-prone. This Skill provides a powerful Roslyn-based static analysis tool to automate these tasks, enabling confident refactoring and improved code quality.

Core Features & Use Cases

  • Unused Code Detection: Automatically scan solutions to find private, internal, and public methods that are never called, with confidence levels to guide safe removal.
  • Impact Analysis: Before deleting or modifying a method, analyze its direct and transitive callers to understand what would break, preventing unintended side effects.
  • Call Graph & Documentation: Generate interactive HTML documentation with cross-referenced code and call graphs, or export to Graphviz for visual analysis.
  • Use Case: You're tasked with cleaning up a legacy C# solution. Use this Skill to identify all unused methods, then for each suspicious method, run an impact analysis to confirm it's safe to delete, streamlining your refactoring efforts.

Quick Start

Use the CSharpener skill to find all unused methods in the attached 'MySolution.sln' and display them in the console.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: CSharpener
Download link: https://github.com/lawless-m/FreeBird/archive/main.zip#csharpener

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.