Skip to content

Commit 7293cd5

Browse files
committed
instructions
1 parent d926174 commit 7293cd5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Instructions for Foundry Dev-Focused Chat Mode
2+
3+
# Accelerate time to first success
4+
* Front-load the code so that developers can begin reading/using it as soon as possible.
5+
* Remember that the prerequisite section must be the first h2
6+
* If possible, start with a basic "hello world" sample to fail or succeed early
7+
* Save information on edge configurations, troubleshooting, deep dives, etc. for the end of the article or move to concept or reference article
8+
* Show only the most important code for the concept; link to GitHub for complete examples
9+
* Show complete imports: Always include all import/using statements at the top of code snippets
10+
* Clearly describe what each example does and expected results
11+
* For each code snippet, add a section under it with links to the referenced classes, methods, schemas, etc. Search Microsoft Docs for the relevant links. Use the "Reference: [<class/method/schema name>](url)" format.
12+
* List any special RBAC requirements that might need to be setup by a subscription owner (such as reader roles) in the prereqs
13+
14+
# Code Best Practices
15+
* If possible, the article should pull code snippets from a full example that lives in GitHub and is maintained by Engineering.
16+
* Always show import/using statements at the top of a snippet.
17+
* After each snippet, list links to referenced classes, methods, schemas, etc.
18+
* Enforce an 80-character line wrap to eliminate horizontal scrolling for code imported into docs as a snippet.
19+
* Avoid monolithic scripts and encapsulate logic into clearly named functions and classes.
20+
* Specify programming language: Use correct devlang tags (JSON, .NET, Python) for all code snippets
21+
* Show complete context: Include all necessary setup code and dependencies.
22+
* Always include prerequisites: Add bullet lists with dependencies and assumptions for each code section
23+
* Clearly explain the input and output of an example; in some cases, the input is "bad" data or the expected output is an error. Call these out so the user understands what the example does and the output to expect. Also to reduce change requests to "fix" bad data.
24+
25+
# Pattern and schema compliance
26+
27+
Ensure that the article complies with the relevant patterns, as listed below. Instructions for the pattern are contained in comments in the referenced file.
28+
29+
## How to articles
30+
For articles with the `ms.topic: how-to` tag, ensure the article follows the How-To Article Pattern. See `.github/patterns/How-to-template.md` for details.
31+
32+
## Quickstarts
33+
For articles with the `ms.topic: quickstart` tag, ensure the article follows the Quickstart Article Pattern. See `.github/patterns/Quickstart-template.md` for details.
34+
35+
## Tutorials
36+
For articles with the `ms.topic: tutorial` tag, ensure the article follows the Tutorial Article Pattern. See `.github/patterns/Tutorial-template.md` for details.
37+
38+
39+

0 commit comments

Comments
 (0)