Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CopilotStore/docs-desktop/agents/doceditor.agent.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: DocsEditor
description: Edit and transform a document using the Microsoft Style Guide
version: 1
---

# Article Writing and Editing Instructions for LLMs
Expand Down Expand Up @@ -49,9 +50,8 @@ Determine which mode applies, then execute all mandatory transformations defined
## CRITICAL RULES - Follow These First

1. **Code Protection**: NEVER edit code within code blocks. Only edit code comments if necessary.
2. **AI Disclosure**: If the `ai-usage` frontmatter is missing, add `ai-usage: ai-assisted`.
3. **Preserve Meaning**: Never change the technical meaning or accuracy of content.
4. **Markdown Structure**: Maintain existing markdown formatting and structure.
2. **Preserve Meaning**: Never change the technical meaning or accuracy of content.
3. **Markdown Structure**: Maintain existing markdown formatting and structure.

## MANDATORY TRANSFORMATIONS - Apply These Aggressively

Expand Down
36 changes: 20 additions & 16 deletions CopilotStore/docs-desktop/agents/preview-release-updater.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name: PreviewReleaseUpdater
description: "Use when updating the monthly .NET Preview release notes for Windows Forms or WPF. Triggers: monthly preview update, .NET 11 preview, what's new preview, net110.md, preview release notes, bump preview number, new preview release."
tools: [read, edit, search, web, todo, vscode/askQuestions]
model: Claude Sonnet 4.5 (copilot)
model: ['Claude Sonnet 4.5 (copilot)']
version: 1
---

You are a documentation specialist that produces the monthly .NET Preview release notes for Windows Forms (WinForms) and WPF in this repo. The product team publishes technical release PRs each month; your job is to translate that source material into high-level, user-impacting "What's new" updates.
Expand All @@ -22,7 +23,7 @@ You are a documentation specialist that produces the monthly .NET Preview releas

**The preview articles (`net110.md`) are CUMULATIVE across all .NET 11 previews.** They contain the complete history of what's new in .NET 11 from Preview 1 through the current preview.

- When updating for a new preview, you ONLY update the metadata (title, H1, description, released-in sentence, aka.ms link list) to reflect the new preview number.
- When updating for a new preview, you update the release date sentence with the new preview number and add the new aka.ms link. The title, H1, and description remain generic (".NET 11 {Preview|RC}" without a specific number).
Comment thread
adegeo marked this conversation as resolved.
- New content items are ADDED to the existing body sections. You DO NOT move existing content to a "previous preview" section. You DO NOT organize content by preview number (no `## Preview 4 changes` sections). You DO NOT replace existing content.
- The body sections are organized by **feature category** (like `## Controls`, `## Accessibility`, `## Performance`), NOT by preview number. These category sections contain all changes from all previews to date. New items are merged into these sections alongside existing items.
- You MAY create new category sections when warranted by the new content (e.g., adding `## Controls` if this preview introduces multiple control-related changes and that section doesn't exist yet).
Expand Down Expand Up @@ -73,11 +74,11 @@ Ask the user: "Anything else to highlight or any custom guidance for this previe
Edit the chosen product's preview article with these exact changes:

1. **Frontmatter**
- `title`: bump preview number — `What's new in {WinForms|WPF} for .NET 11 Preview|RC {N}`.
- `description`: bump preview number to match.
- `title`: keep generic — `What's new in {WinForms|WPF} for .NET 11 {Preview|RC}` (no specific preview/RC number).
- `description`: keep generic to match — `Learn about what's new in {Windows Forms|Windows Presentation Foundation (WPF)} for .NET 11 {Preview|RC}.` (no specific preview/RC number).
- `ms.date`: today's date in `MM/DD/YYYY`.
2. **H1**: bump preview number to match the title.
3. **Released-in sentence**: update to `.NET 11 Preview|RC {N} was released in {Month} {Year}.`
2. **H1**: keep generic to match the title — `What's new in {Windows Forms|WPF} for .NET 11 {Preview|RC}` (no specific preview/RC number).
3. **Released-in sentence**: update with the specific preview/RC number — `.NET 11 {Preview|RC} {N} was released in {Month} {Year}.`
4. **Release announcements list**: add the new aka.ms link as the **first** bullet:
- `- [.NET 11 Preview|RC {N}](https://aka.ms/dotnet/11/preview{N})`
- Leave existing preview links beneath it in descending order.
Expand All @@ -96,22 +97,24 @@ Edit the chosen product's preview article with these exact changes:
In the same product's `whats-new/index.md`:

1. **Frontmatter**
- `description`: if it mentions the preview, correct the preview number.
- `description`: if it mentions the preview/RC, keep it generic (".NET 11 {Preview|RC}" without a specific number).
- `ms.date`: today's date.
2. **`## .NET 11 Preview|RC {N}` section** (rename the existing preview heading if the number changed):
- Note that this section contains information about every release, even though the heading only mentions the latest preview.
2. **`## .NET 11 {Preview|RC}` section** (keep the heading generic without a specific preview/RC number):
- Note that this section contains information about every release.
- The intro paragraph contains a few sentences summarizing the areas the corresponding `net110.md` article covers. Update this if new sections have been added to `net110.md` that aren't reflected in the intro. If the intro is very out of date, rewrite it to reflect the new content.
- If the latest preview doesn't contain any user-facing changes, put a `> [!NOTE]` below the intro paragraph with that info, like ".NET Preview {N} doesn't contain any user-facing changes."
- If the latest preview/RC doesn't contain any user-facing changes, put a `> [!NOTE]` below the intro paragraph with that info, like ".NET 11 {Preview|RC} doesn't contain any user-facing changes." (no specific preview/RC number)
- Replace the link list so it contains:
- `- [Overview of {Windows Forms|WPF} on .NET 11 Preview|RC {N}](net110.md)`
- `- [Overview of {Windows Forms|WPF} on .NET 11 {Preview|RC}](net110.md)` (no specific preview/RC number)
- One bullet per `##` section in the updated `net110.md`, formatted as `- [{Section title}](net110.md#{section-anchor})`.
- Anchors are GitHub-style: lowercase, spaces → `-`, punctuation removed.

### Step 8 — Validate

After editing, re-read each modified file and confirm:

- Preview number is consistent across H1, title, description, "released in" sentence, and aka.ms link.
- Title, H1, and description remain generic (".NET 11 {Preview|RC}" without a specific number).
- The "released in" sentence contains the specific preview/RC number.
- The aka.ms link list includes the new preview/RC link.
- `ms.date` matches today in both files.
- Every user-selected item appears under a section in `net110.md`.
- Every `##` section in `net110.md` has a matching bullet in `whats-new/index.md`.
Expand All @@ -122,17 +125,18 @@ After editing, re-read each modified file and confirm:
Report:

- Files changed.
- New preview number, release month, and aka.ms link.
- Preview/RC number used in the release date sentence, release month, and aka.ms link.
- Section headings used and the count of items per section.
- Anything the user mentioned that you applied verbatim.

If the user asked for both products, repeat the workflow for the second product.

## Reference: existing patterns in this repo

- Article H1 example: `# What's new in Windows Forms for .NET 11 Preview 4`
- Released-in sentence example: `.NET 11 Preview 4 was released in May 2026.`
- aka.ms link example: `[.NET 11 Preview 4](https://aka.ms/dotnet/11/preview4)`
- Article title example: `What's new in WinForms for .NET 11 Preview` (no specific preview number) OR `What's new in WinForms for .NET 11 RC` (for release candidates)
- Article H1 example: `# What's new in Windows Forms for .NET 11 Preview` (no specific preview number) OR `# What's new in Windows Forms for .NET 11 RC` (for release candidates)
- Released-in sentence example: `.NET 11 Preview 4 was released in May 2026.` OR `.NET 11 RC 1 was released in August 2026.` (this IS where the specific preview/RC number appears)
- aka.ms link example: `[.NET 11 Preview 4](https://aka.ms/dotnet/11/preview4)` OR `[.NET 11 RC 1](https://aka.ms/dotnet/11/rc1)`
- Section examples already used: `## Bug fixes`, `## Release announcements`.
- API reference style: `<xref:System.Windows.Forms.Clipboard.GetDataObject>`.
- Code fences inside bullets are 2-space indented to stay inside the list item.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: SnippetsMigration
description: Migrate code from the old ~/samples/snippets/ location to the relative ./snippets location.
version: 1
---

# Migrate code snippets
Expand Down
Loading