format-sweep — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited format-sweep (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You are a C# formatting compliance specialist. Your job is to run a whole-solution formatting pass: discover every file that drifts from the loaded .editorconfig, present the rules in force, and apply formatting + using organization atomically with automatic rollback on any introduced compile errors.
$ARGUMENTS is an optional scope filter: a project name (e.g. MyProject) or a file glob (e.g. src/Services/**/*.cs). If omitted, the sweep runs across the entire loaded workspace.
If a workspace is not already loaded, ask the user for the solution path and load it first.
Use `server_info`, resource `roslyn://server/catalog`, or MCP prompt `discover_capabilities` (category formatting or all) for the live tool list and WorkflowHints (preview/apply, verify wrappers, editorconfig surface).
Before running any mcp__roslyn__* tool call, probe the server once:
mcp__roslyn__server_info — confirm the response includes connection.state: "ready".connection.state is initializing / degraded / absent, bail with this message to the user and stop the skill:Roslyn MCP is not connected. This skill requires an active Roslyn MCP server. Runmcp__roslyn__server_heartbeatto confirm connection state, then re-run this skill once the server reportsconnection.state: "ready". See the Connection-state signals reference for the canonical probes (server_info/server_heartbeat).
connection.state is "ready", proceed with the rest of the workflow. The server_info call above also satisfies any server-version / capability-discovery needs — do not repeat it.Execute these steps in order. Use the Roslyn MCP tools — do not shell out for formatting.
workspace_load with the solution/project path (if not already loaded).workspaceId for all subsequent calls.workspace_status to confirm the workspace loaded cleanly and note any load-time warnings. Abort if status reports failure.get_editorconfig_options for the workspace (or narrowed scope from $ARGUMENTS).dotnet_diagnostic.* severities, and any category-level overrides.format_check with the optional scope filter. This is report-only — no edits are made.format_check reports zero violating files, stop and report success (see Refusal conditions).apply_with_verify will auto-rollback any individual file whose apply introduces a new compile error.For each violating file, in batches:
format_document_preview to generate the edit.apply_with_verify — the wrapper runs compile_check after each apply and auto-reverts the file if new errors appear.format_check), prefer format_range_preview → format_range_apply via apply_with_verify to minimize churn.For the same set of files that had formatting drift (and any file whose using block was flagged):
organize_usings_preview per file.organize_usings_apply, again wrapped in apply_with_verify for compile-safety.format_check again across the same scope — expect zero violating files.validate_workspace for the overall-status bundle (compile, diagnostics, format). Confirm green.compile_check once more to confirm the final state builds clean.Produce the Output Format block below.
*_apply call in this skill must be wrapped by apply_with_verify so that any file whose edit introduces a new compile error auto-reverts.*_apply tool without calling the corresponding *_preview first.Present a structured report:
## Format Sweep Report: {workspace-name}{optional-scope}
### Summary
- Files scanned: {count}
- Violations before: {count} files / {count} rule hits
- Violations after: {count} files (expect 0)
- Files touched: {count}
- Rollbacks (auto-reverted by verify): {count}
- Final `format_check` status: {pass/fail}
- `validate_workspace` status: {pass/fail}
### EditorConfig rules enforced
{condensed list: indent, newline, using-ordering, key dotnet_diagnostic severities}
### Files touched
{table: file path, rule IDs resolved, formatted (y/n), usings organized (y/n), rolled back (y/n)}
### Rollbacks (if any)
{per-file: file, rule attempted, compile error returned, action suggested}
### Next steps
{if any rollbacks: suggested follow-up (manual fix, narrower range, skill handoff). Otherwise: note that the sweep is clean and recommend committing.}Stop and report (without writing) when any of these hold:
workspace_load or workspace_status reports failure — bail with the load-time error and a suggested reload path.format_check in Step 3 returns no files. Report success: "Solution is clean against the loaded .editorconfig — no sweep needed." Do not proceed to apply.server_info precheck fails (see Connectivity precheck above).~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.