Merges standalone C# diagnostic articles into a consolidated article with redirects and TOC updates. Use after the user approves the source list.
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-merge-existing/SKILL.mdMerge an approved list of standalone compiler error or warning articles into an existing consolidated destination. Process the entire approved list, then stop; searching and thematic consolidation are separate skills.
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.yml.openpublishing.redirection.csharp.json.github/skills/redirect-article/SKILL.md.github/skills/redirect-article/scripts/create-redirect-entry.ps1For each source file in the approved list, complete all the following steps.
Read the source and extract:
CS0220.../roslyn/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs.<data> element in ../roslyn/src/Compilers/CSharp/Portable/CSharpResources.resx.<value> child.In the front matter, add the code to f1_keywords and helpviewer_keywords in numeric order.
Add the code to the master error list in numeric order:
- [**CS{NNNN}**](#anchor-tbd): *{verbatim compiler error message}*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.
Append the source content as a new H2 section:
## CS{NNNN}
{source article content, adapted to fit as a section rather than a standalone article}Remove the source front matter, H1, and See also section. Demote existing source headings one level so source H2 headings become H3 headings, and so on.
Follow the redirect-article skill. Use its script; do not manually edit the redirection JSON:
./.github/skills/redirect-article/scripts/create-redirect-entry.ps1 `
-RedirectionFile ".openpublishing.redirection.csharp.json" `
-SourcePath "docs/csharp/language-reference/compiler-messages/{source-filename}" `
-RedirectUrl "/dotnet/csharp/language-reference/compiler-messages/{destination-filename-without-extension}"If the source is under docs/csharp/misc/, use that location in SourcePath. Also follow the redirect skill's requirement to find and update repository links to the deleted article.
In docs/csharp/language-reference/toc.yml:
displayName, maintaining numeric order.- name: and href: block.Delete the source Markdown file after its content, redirect, links, and TOC entry have been handled.
After processing every approved source, present:
Do not proceed to searching or thematic consolidation.
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.