skills/document/SKILL.md
C# XML documentation generator. Use when: adding XML doc comments, documenting public APIs, fixing CS1591 warnings, or improving documentation quality in *.cs files. Takes a file path or type name as input.
npx skillsauth add darylmcd/Roslyn-Backed-MCP documentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a senior C# documentation specialist. Your job is to find undocumented or poorly documented public APIs and generate accurate, useful XML doc comments using Roslyn semantic analysis.
$ARGUMENTS is a file path or type name to document. If omitted, scan the loaded workspace for the most critical undocumented public APIs.
Use server_info or roslyn://server/catalog. Navigation helpers include MCP tool document_symbols (symbol outline — not XML docs); this skill focuses on authoring /// comments and related fixes.
TreatWarningsAsErrors.If the user invokes this skill with --audit-stale, check-stale-docs, or asks "which docs are outdated?", run in detection-only mode:
document_symbols on each source file (filter to members with XML doc comments).symbol_info to get the current signature.<summary> and <param>/<returns> content against the current signature:
<param> tags for existing parameters → stale<param> tags referencing parameters that no longer exist → staleTask to Task<T> (or vice versa) with no <returns> update → stale<inheritdoc/> on a member whose base doc is empty or mismatched → broken<summary> for a method that now throws (heuristic: body contains throw new ... and summary says nothing about exceptions) → incompletedocument_symbols to get all declarations in the file.get_source_text to read the current source.<summary> tags.symbol_search to find the type.symbol_info to get its location.document_symbols on that file.project_diagnostics filtered to CS1591 if GenerateDocumentationFile is enabled.semantic_search for "public classes" and sample types across projects.For each undocumented member:
symbol_info to get the full signature, parameters, return type, and containing type.callers_callees to understand how the member is used.find_references with limit: 5 to see usage patterns.find_base_members to check for inherited docs.Write XML doc comments following these rules:
<summary>: State what the member does from the caller's perspective. Be concise and specific.<param>: Describe what each parameter represents, valid values, constraints, null behavior.<returns>: When the return value needs explanation (nullability, empty collections, task semantics).<exception>: Caller-facing exceptions only (argument validation, invalid state).<remarks>: Only for behavioral nuance, threading, performance caveats, or design intent.<inheritdoc/>: When a member directly inherits behavior without change AND the base has documentation.<see cref="..."/>: Cross-references to related types/members.Do NOT:
// Increment i style inline comments.apply_text_edit to insert the generated documentation at the correct positions.compile_check to verify no build errors were introduced.cref attributes cause errors, fix them immediately.Summarize:
Document in this order unless the user specifies otherwise:
<see langword="null"/>, <see langword="true"/>, etc. for language keywords<c>...</c> for inline code references in prosetools
Consumer-facing audit of the Roslyn MCP server's live surface against a loaded C# repo. Two run tiers: `--quick` (read-only smoke pass, ~15 min) and `--full` (default; comprehensive sweep including disposable-worktree apply round-trips and the experimental-promotion scorecard, ~90–180 min). Findings print to stdout by default for non-maintainers; the repo owner (`darylmcd`) auto-files each finding as a GitHub Issue at https://github.com/darylmcd/Roslyn-Backed-MCP. Pass `--auto-file` to force-enable or `--no-auto-file` to force-disable. Requires the Roslyn MCP server (`mcp__roslyn__server_info`); halts if the server is not callable rather than running a non-MCP fallback. Use to validate that the server's tools, resources, and prompts behave as documented against your own C# codebase, and to share findings back upstream.
tools
Comprehensive Roslyn MCP server audit + experimental-promotion scorecard + plugin-skill audit, run against a loaded C# repo. Three modes — `full`, `promotion-only`, `read-only`. Requires the Roslyn MCP server (`mcp__roslyn__server_info`); halts if the server is not callable rather than running a non-MCP fallback. Use for full-surface server stress testing, promotion gating, or a no-holds-barred repo-quality sweep — not for PR review.
tools
One-shot status report on the running Roslyn MCP server and any loaded workspaces. Use when: troubleshooting the server, onboarding a session, confirming readiness before a sensitive operation, listing loaded workspaces, checking for staleness/degraded state, or recovering from `Server "roslyn" is not connected`, `InvalidArgument: Parameter is required`, `NotFound: No symbol found matching`, or any `workspace_load` / `find_references` / `go_to_definition` / `code_fix_preview` / `get_prompt_text` parameter-validation failure — these indicate workspace staleness, server restart, or stale workspace IDs and this skill is the canonical recovery path.
development
Multi-project version bump across a .NET solution. Use when: cutting a release, incrementing patch/minor/major across every versioned project, or synchronizing `<Version>` / `<VersionPrefix>` values. Takes a bump type (patch, minor, or major) as input. Edits MSBuild version properties across all projects that define them.