You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/prompts/extract-xmapi-endpoint-documentation.prompt.md
+29-13Lines changed: 29 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,26 +7,29 @@ description: 'Extract and format documentation for a specific xmAPI endpoint fro
7
7
8
8
# Extract xmAPI Endpoint Documentation
9
9
10
-
You are tasked with extracting and formatting documentation for a specific xmAPI endpoint from the official xMatters API documentation website.
10
+
You are tasked with extracting and formatting documentation for a specific xmAPI endpoint from the
11
+
official xMatters API documentation website.
11
12
12
13
## Input
13
14
14
15
You will be provided with:
15
-
1. A URL to a specific section of the xMatters API documentation (e.g., `https://help.xmatters.com/xmapi/#services`)
16
+
17
+
1. A URL to a specific section of the xMatters API documentation (e.g.,
18
+
`https://help.xmatters.com/xmapi/#services`)
16
19
2. The endpoint name (e.g., "services", "people", "groups", etc.)
17
20
18
21
## Output Format
19
22
20
23
Generate a markdown file that follows this exact structure and formatting:
21
24
22
25
### Header Block
26
+
23
27
```markdown
24
-
> This file's content is copy-pasted straight from the
25
-
> [online doc here](ACTUAL_URL_PROVIDED), mistakes, typos and all. This is
26
-
> meant to be used as a starting point to build the endpoint, and then as a reference to generate
27
-
> validation scenarios in the sandbox. Once the documentation is confirmed accurate or proving to be
28
-
> inaccurate, the relevant code implementation is rectified to match the reality of the API, but
29
-
> this markdown file here will be left untouched.
28
+
> This file's content is copy-pasted straight from the [online doc here](ACTUAL_URL_PROVIDED),
29
+
> mistakes, typos and all. This is meant to be used as a starting point to build the endpoint, and
30
+
> then as a reference to generate validation scenarios in the sandbox. Once the documentation is
31
+
> confirmed accurate or proving to be inaccurate, the relevant code implementation is rectified to
32
+
> match the reality of the API, but this markdown file here will be left untouched.
30
33
```
31
34
32
35
### Main Content Structure
@@ -58,18 +61,24 @@ Generate a markdown file that follows this exact structure and formatting:
58
61
59
62
## Requirements
60
63
61
-
-**Preserve all original text exactly**: Copy all content verbatim, including any typos, formatting inconsistencies, or errors from the source
62
-
-**Include complete descriptions**: For each API operation, copy the main description AND all additional explanatory paragraphs that follow
64
+
-**Preserve all original text exactly**: Copy all content verbatim, including any typos, formatting
65
+
inconsistencies, or errors from the source
66
+
-**Include complete descriptions**: For each API operation, copy the main description AND all
67
+
additional explanatory paragraphs that follow
63
68
-**Maintain formatting**: Keep the same markdown structure, code block formatting, and indentation
64
69
-**Include all examples**: Copy all curl commands and JSON responses exactly as shown
65
70
-**Preserve parameter details**: Include all parameter descriptions, valid values, and constraints
66
-
-**Keep structure consistent**: Follow the same heading hierarchy and section organization as shown in the reference
71
+
-**Keep structure consistent**: Follow the same heading hierarchy and section organization as shown
72
+
in the reference
73
+
-**Avoid markdown tables**: because `deno fmt` will break them, do NOT create tables.
67
74
68
75
## Quality Checklist
69
76
70
77
Before submitting, ensure:
78
+
71
79
-[ ] The header block is present with the correct URL
72
-
-[ ] All HTTP operations are documented with complete descriptions (including all explanatory paragraphs)
80
+
-[ ] All HTTP operations are documented with complete descriptions (including all explanatory
81
+
paragraphs)
73
82
-[ ] Parameter tables are complete with types and descriptions
74
83
-[ ] JSON examples are properly formatted in code blocks
75
84
-[ ] The object definition section is included at the end
@@ -78,4 +87,11 @@ Before submitting, ensure:
78
87
79
88
## Example Reference
80
89
81
-
Use the structure and formatting shown in the services endpoint documentation as your template for consistency across all endpoint documentation files.
90
+
Use the structure and formatting shown in the services endpoint documentation as your template for
91
+
consistency across all endpoint documentation files.
92
+
93
+
### Out of Scope
94
+
95
+
-**Actual implementation**: Do not create or modify any `.ts` file. This task is strictly for
96
+
documentation extraction. Writing the `index.ts`, `types.ts` and testing files will be handled in
Copy file name to clipboardExpand all lines: README.maintainers.md
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,40 +63,46 @@ pattern:
63
63
64
64
To streamline endpoint creation, use these AI assistant prompts in sequence:
65
65
66
-
1.**`/extract-xmapi-endpoint-documentation`** - Extract and format official API documentation into a markdown file for reference in subsequent prompts.
66
+
1.**`/extract-xmapi-endpoint-documentation`** - Extract and format official API documentation into
67
+
a markdown file for reference in subsequent prompts.
67
68
68
-
2.**`/new-endpoint`** - Generate the initial endpoint implementation (types, class, and exports) based on the extracted documentation.
69
+
2.**`/new-endpoint`** - Generate the initial endpoint implementation (types, class, and exports)
70
+
based on the extracted documentation.
69
71
70
-
3.**`/docs-vs-irl`** - Create validation scenarios that test the endpoint against real API responses, then update the endpoint code based on the observed real behavior to fix any discrepancies with the documentation.
72
+
3.**`/docs-vs-irl`** - Create validation scenarios that test the endpoint against real API
73
+
responses, then update the endpoint code based on the observed real behavior to fix any
74
+
discrepancies with the documentation.
71
75
72
76
#### ✨ The `/extract-xmapi-endpoint-documentation` prompt
73
77
74
78
1.**Initiate the process**:
75
79
76
-
In VS Code, start a new chat with your A.I. assistant and type:
The LLM will be spinning its wheels fora short while but usually does a really good jobin 1 shot. Still, proof-read a little.
88
+
The LLM will be spinning its wheels for a short while but usually does a really good job in 1
89
+
shot. Still, proof-read a little.
85
90
86
91
#### ✨ The `/new-endpoint` prompt
87
92
88
93
1.**Initiate the process**:
89
-
90
-
In VS Code, start a new chat with your A.I. assistant and type`/new-endpoint` to begin.
94
+
95
+
In VS Code, start a new chat with your A.I. assistant and type `/new-endpoint` to begin.
91
96
92
97
2.**Provide details**:
93
98
94
-
The assistant will guide you through creating the necessary files and code, asking forthe endpoint name and its official documentation if you didn't provide themin the prompt.
99
+
The assistant will guide you through creating the necessary files and code, asking for the
100
+
endpoint name and its official documentation if you didn't provide them in the prompt.
0 commit comments