update-component-refer…
This skill should be used when the user wants to add components (commands, agents, skills, hooks, or MCP servers) to the Component Reference section of the…
Query .NET/C# codebases using Roslyn AST analysis via dotnet run file. Use for tracing data flow, auditing API usage, finding pattern violations, or ad-hoc codebase queries.
$ npx -y skills add NikiforovAll/claude-code-rules --skill roslyn-query --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/roslyn-queryContext preview
The summary Claude sees to decide when to auto-load this skill.
Query .NET/C# codebases using Roslyn AST analysis via dotnet run file. Use for tracing data flow, auditing API usage, finding pattern violations, or ad-hoc codebase queries.
name: roslyn-query description: Query .NET/C# codebases using Roslyn AST analysis via dotnet run file. Use for tracing data flow, auditing API usage, finding pattern violations, or ad-hoc codebase queries. argument-hint: "[analysis description or query type]"
Query .NET/C# codebases using Roslyn AST analysis scripts executed via `dotnet run file.cs`.
Before generating scripts, load the `handbook-dotnet:dotnet-run-file` skill for execution conventions and directive syntax.
Uses `CSharpSyntaxTree.ParseText()` — parses files individually, no solution loading.
Best for:
Uses `MSBuildWorkspace` — loads project, resolves types, enables cross-file analysis.
Best for:
Based on the user's request, choose the appropriate template from `references/templates.md`. If no template fits, compose a custom script using the patterns documented there.
Create a `.cs` file in a `scripts/` directory (or temp location) using `dotnet run file.cs` format with `#:package` directives.
For syntax-only analysis:
#:package Microsoft.CodeAnalysis.CSharp@4.*
For semantic analysis, additionally:
#:package Microsoft.CodeAnalysis.CSharp.Workspaces@4.* #:package Microsoft.CodeAnalysis.Workspaces.MSBuild@4.* #:package Microsoft.Build.Locator@1.* #:property DisableMSBuildAssemblyCopyCheck=true
> **Note:** `DisableMSBuildAssemblyCopyCheck=true` suppresses the MSBL001 build error that requires `ExcludeAssets="runtime"` on MSBuild packages — an attribute `#:package` directives can't express. Safe for throwaway analysis scripts. > > **`.slnx` not supported:** Roslyn 4.x `MSBuildWorkspace` only supports `.sln`, not `.slnx`. Use `OpenProjectAsync` with a `.csproj` instead — transitive project references are loaded automatically.
dotnet run scripts/my-analysis.cs -- <target-path>
Analyze the output. For taint analysis, categorize findings:
Load `references/roslyn-api.md` for detailed API reference with code examples.
Load `references/templates.md` for ready-to-use analysis script templates.
A collection of Claude Code recommendations and practices. Learn practical techniques to enhance your AI-assisted development workflow with Claude Code.
This skill should be used when the user wants to add components (commands, agents, skills, hooks, or MCP servers) to the Component Reference section of the…
This skill automates version bumping during the release process for the Claude Code Handbook monorepo. It should be used when the user requests to bump…
Guide spec-driven development workflow (Requirements → Design → Tasks → Implementation) with approval gates between phases. Use when user wants structured…
Review changed code for reuse, quality, and efficiency using three parallel disposable subagents. This skill should be used when the user says "review",…
Review changed code for reuse, quality, and efficiency using a team of persistent named reviewers. This skill should be used when the user says "team review",…
This skill should be used when users want to discover, browse, or audit cc-handbook marketplace plugins. Shows all available plugins with installation status,…