Finds C# diagnostics related to a consolidation theme. Use after setup to review documented and catch-all candidates through explicit approval gates.
81%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Search for theme-related diagnostics that may have been missed during initial consolidation. Preserve all three phase boundaries and approval gates.
Collect these inputs from the user:
.md file in docs/csharp/language-reference/compiler-messages/.docs/csharp/language-reference/compiler-messages/{destination-filename}docs/csharp/language-reference/toc.ymldocs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md../roslyn/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs../roslyn/src/Compilers/CSharp/Portable/CSharpResources.resxcs in:
docs/csharp/language-reference/compiler-messages/docs/csharp/misc/Check each candidate against Roslyn ErrorCode.cs. An uncommented entry remains eligible even when no emitting source reference is found. Classify commented-out or absent entries as obsolete candidates for a separately approved retirement, not as new destination coverage. Keep diagnostic inclusion separate from evidence about when the compiler emits it.
Present the list and stop:
| File | Error Code | Reason |
|------|------------|--------|
| cs0220.md | CS0220 | Describes compile-time overflow |Tell the user:
Review this list. Approve the files you want merged, then run the
error-consolidation-merge-existingskill with the approved list.
Wait for the user before proceeding to Phase B. Do not merge candidates in this skill.
After the Phase A gate is satisfied:
f1_keywords from the catch-all file's front matter.CS0463 to 463.ErrorCode.cs, including fatal FTL_ diagnostics as well as ERR_ and WRN_ diagnostics.<data> element in CSharpResources.resx whose name exactly matches the constant.<value> child.Account for every catch-all code: report any missing enum or resource mapping rather than silently dropping it. Report obsolete entries separately from current candidates. Don't reject an uncommented enum entry solely because no emitting reference or reproduction is available.
Present the filtered list and stop:
| Error Code | Error Message |
|------------|---------------|
| CS0463 | Evaluation of the decimal constant expression failed |
| CS1021 | Integral constant is too large |Tell the user:
Review this list. Tell me which error codes to add.
Wait for explicit approval before proceeding to Phase C.
Process all approved codes as one batch.
For each code:
Add it to destination f1_keywords and helpviewer_keywords in numeric order.
Add it to the destination master error list in numeric order:
- [**CS{NNNN}**](#anchor-tbd): *{verbatim error message from CSharpResources.resx}*Use #anchor-tbd until the consolidation phase assigns thematic anchors. Replace Roslyn format placeholders such as '{0}' and '{1}' with descriptive terms while preserving the static message text and producing a coherent sentence. Prefer context-appropriate generic terms such as 'type', 'value', 'operator', 'member', or 'method'. For example, Constant value '{0}' cannot be converted to a '{1}' becomes Constant value 'value' cannot be converted to a 'type'. Use the following XML <comment> element, when present, to identify placeholder meanings.
Add it to the destination TOC entry's displayName in numeric order.
Remove it from f1_keywords in the catch-all file.
Verify unique f1_keywords ownership across C# articles, including misc and other consolidated pages. F1 metadata is the primary discovery mechanism; adding cross-links between diagnostic articles doesn't resolve duplicate ownership.
Do not create redirects for these codes because they had no standalone articles.
Present a summary of all changes made.
dotnet/docs
4a9e78f
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.