Build standard prompts for adding and consolidating C# compiler diagnostics#52698
Open
BillWagner wants to merge 3 commits intodotnet:mainfrom
Open
Build standard prompts for adding and consolidating C# compiler diagnostics#52698BillWagner wants to merge 3 commits intodotnet:mainfrom
BillWagner wants to merge 3 commits intodotnet:mainfrom
Conversation
Create easily used prompt files for the error consolidation tasks.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR replaces an older, monolithic “error consolidation” prompt with a standardized 5-phase prompt workflow for creating and consolidating C# compiler diagnostics documentation.
Changes:
- Removed the legacy
.github/prompts/error-consolidation.mdprompt. - Added 5 new phase-specific
ErrorConsolidation.*.prompt.mdfiles covering setup, merging, searching, consolidating, and verification. - Standardized workflow instructions around Roslyn source lookup (
ErrorCodes.cs/CSharpResources.resx), TOC updates, and redirects.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/prompts/error-consolidation.md | Removes the previous all-in-one consolidation prompt. |
| .github/prompts/ErrorConsolidation.1.Setup.prompt.md | New prompt for creating the consolidated article skeleton + TOC entry + optional seed codes. |
| .github/prompts/ErrorConsolidation.2.MergeExisting.prompt.md | New prompt for merging approved standalone diagnostic articles into the consolidated destination and creating redirects. |
| .github/prompts/ErrorConsolidation.3.Search.prompt.md | New prompt for discovering additional related diagnostics in docs and Roslyn source. |
| .github/prompts/ErrorConsolidation.4.Consolidate.prompt.md | New prompt for reorganizing per-error sections into thematic, resolution-focused sections. |
| .github/prompts/ErrorConsolidation.5.Verify.prompt.md | New prompt for verifying and fixing error message text against Roslyn source. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After several PRs in this area, the process is now standardized enough to build a set of prompts for the workfow to add new diagnostic codes, and consolidate existing error codes into new themes.
Each of the 5 prompts represents one phase in the workflow for the tasks.
Internal previews