Reorganizes a consolidated C# diagnostic article into approved resolution themes. Use after the article's diagnostic set is complete.
60
70%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.github/skills/error-consolidation-consolidate/SKILL.mdReplace individual diagnostic H2 sections with thematic H2 sections organized around shared resolution strategies.
Collect the destination filename for the consolidated .md file in docs/csharp/language-reference/compiler-messages/.
docs/csharp/language-reference/compiler-messages/{destination-filename}*-errors.md files in docs/csharp/language-reference/compiler-messages/*-errors.md files to learn the expected structure and tone.Present the proposal and stop:
### Proposed themes
1. **Operator signature requirements** (`#operator-signature-requirements`)
- CS0448, CS0559, CS0562, CS0563, CS0564, CS0567, CS0590
- These errors all relate to invalid parameter or return types in operator declarations.
2. **Overflow and underflow errors** (`#overflow-and-underflow-errors`)
- CS0031, CS0220, CS0221, CS0463, CS0543, CS0594, CS0652, CS1021, CS8778, CS8973
- These errors all involve constant values or operations that exceed type boundaries.Tell the user:
Review and approve each theme. Let me know which to proceed with and any adjustments.
Wait for user approval before proceeding to Phase B.
For each approved theme, complete the following steps.
Link each code to its theme anchor and keep the complete list in numeric order:
- [**CS{NNNN}**](#{theme-anchor}): *{verbatim compiler error message}*Replace the theme's individual diagnostic H2 sections with one section:
## {Theme title}
- **CS{NNNN}**: *{verbatim error message}*
- **CS{NNNN}**: *{verbatim error message}*
{Resolution-focused content}Repeat codes and messages without anchor links inside the thematic section.
Focus on correcting each diagnostic rather than teaching the full language feature.
Link to the language reference and relevant C# specification sections that explain the enforced rules. Use repository-consistent links.
State what to change and why in complete, direct, action-oriented sentences. Identify affected codes in bold parentheses. Keep the guidance concise while retaining the source requirement to explain the correction fully. For example:
Change the return type of
++or--operators to the containing type or a type derived from it (CS0448). The language requires that increment and decrement operators return a value compatible with the containing type so the result can be assigned back to the same variable.
Remove lengthy examples. Brief inline code is acceptable.
Do not add H3 headings; keep each thematic section flat under its H2.
Explicitly identify diagnostics that the latest C# compiler no longer produces.
Reuse source text or a brief source example when it supports the resolution.
Delete every individual ## CS{NNNN} section absorbed into the theme.
After building all approved themes:
48719fe
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.