roslyn-codelens

Analyze C# code semantics with reference lookup, dependency mapping, and diagnostics.

42|13|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/MarcelRoozekrans/roslyn-codelens-mcp --skill roslyn-codelens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: roslyn-codelens
Source: https://github.com/MarcelRoozekrans/roslyn-codelens-mcp/tree/main/plugins/roslyn-codelens/skills/roslyn-codelens
Command: npx skills add https://github.com/MarcelRoozekrans/roslyn-codelens-mcp --skill roslyn-codelens

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill enables deep semantic understanding of C#/.NET codebases, assisting developers in analyzing code structure, dependencies, and diagnostics.

Core Features & Use Cases

  • Find references, callers, and implementations of code symbols to facilitate navigation and impact analysis.
  • Inspect DI registrations, type hierarchies, and project dependencies for architectural insights.
  • Generate test skeletons, analyze code health, and detect code smells to improve code quality and maintainability.
  • Use the MCP tools to perform precise, fast, semantic code queries instead of manual grepping or rebuilding.

Quick Start

Use the roslyn-codelens skill to find all callers of the method MyNamespace.MyClass.MyMethod.

Frequently Asked Questions about roslyn-codelens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find all callers and references of a C# method in a .NET project?

To find all callers and references of a C# method, use semantic code analysis to perform precise reference lookups instead of manual grepping. This approach maps dependencies and implementations efficiently, facilitating navigation and impact analysis across your .NET codebase.

What is the best way to inspect dependency injection registrations and type hierarchies in C#?

Inspecting dependency injection registrations and type hierarchies in C# requires semantic code analysis tools that query project dependencies directly. This method provides architectural insights by mapping type structures and DI registrations without rebuilding the project.

How do I generate test skeletons for C# code?

You can generate test skeletons for C# code by using semantic analysis tools that inspect your type hierarchies and method signatures. This automates the creation of test structures, improving code quality and maintainability for complex .NET projects.

Can I detect code smells and analyze code health in a .NET codebase without compiling?

Yes, you can detect code smells and analyze code health in a .NET codebase without compiling by using semantic analysis tools. These tools perform fast, precise code queries and run diagnostics to assess maintainability and identify architectural issues.

Does semantic .NET code analysis work for mapping project dependencies in large solutions?

Semantic .NET code analysis works effectively for mapping project dependencies in large solutions by using MCP tools to query code structure. It inspects project dependencies and type hierarchies to provide deep architectural insights for complex .NET environments.