Skip to content

Commit fffd985

Browse files
authored
Update copilot-instructions.md (#48004)
1 parent d0b3a8e commit fffd985

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/copilot-instructions.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# .NET Documentation Guidelines
22

3+
## Disclosure
4+
5+
For any Markdown files generated by AI, always disclose that they were created with the assistance of AI. Add the following frontmatter key/value pair:
6+
7+
```markdown
8+
ai-usage: ai-generated
9+
```
10+
311
## Terminology
12+
413
- Unless otherwise specified, all .NET content refers to modern .NET (not .NET Framework).
514

615
## Writing Style
16+
717
Follow [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-guide/welcome/) with these specifics:
818

919
### Voice and Tone
20+
1021
- Active voice, second person addressing reader directly.
1122
- Conversational tone with contractions.
1223
- Present tense for instructions/descriptions.
@@ -16,6 +27,7 @@ Follow [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-g
1627
- Avoid "we"/"our" referring to documentation authors or product teams.
1728

1829
### Structure and Format
30+
1931
- Sentence case headings (no gerunds in titles).
2032
- Be concise, break up long sentences.
2133
- Oxford comma in lists.
@@ -26,13 +38,15 @@ Follow [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-g
2638
- No consecutive headings without content between them.
2739

2840
### Formatting Conventions
41+
2942
- **Bold** for UI elements.
3043
- `Code style` for file names, folders, custom types, non-localizable text.
3144
- Raw URLs in angle brackets.
3245
- Use relative links for files in this repo.
3346
- Remove `https://learn.microsoft.com/en-us` from learn.microsoft.com links.
3447

3548
## API References
49+
3650
Use cross-references: `<xref:api-doc-ID>`.
3751

3852
To find API doc IDs:
@@ -43,6 +57,7 @@ To find API doc IDs:
4357
If unsure, use API browser: `https://learn.microsoft.com/api/apibrowser/dotnet/search?api-version=0.2&locale=en-us&search={API_NAME}&$skip=0&$top=5` and then use the `url` value from the results as a manual link.
4458

4559
## Code Snippets
60+
4661
For snippets >6 lines:
4762
1. Create `./snippets/my-doc/language` folder in same directory as document (for a document named `my-doc.md`) where language is either vb (for visual basic) or csharp (for c#). Omit the `language` component when the document is in the `docs/visual-basic`, `docs/csharp`, or `docs/fsharp` folders.
4863
1. Add snippet as separate code file.
@@ -52,8 +67,10 @@ For snippets >6 lines:
5267
1. When you add code, use code comments sparingly because they don't get localized. You can use them to briefly clarify code-specific details (such as logic, parameters, or edge cases). Put any critical information and context in the markdown text of the referencing article.
5368

5469
## File Naming
70+
5571
New Markdown files: lowercase with hyphens, omit filler words (the, a, etc.).
5672

5773
## Special Cases
74+
5875
- Breaking changes: Include directions from `.github/prompts/breaking-change.md`.
5976
- When you (Copilot) are assigned an issue in GitHub, after you've completed your work and the workflows (status checks) have run, check to make sure there are no build warnings under the OpenPublishing.Build status check. If there are, open the build report (under View Details) and resolve any build warnings you introduced.

0 commit comments

Comments
 (0)