|
10 | 10 | <step number="1"> |
11 | 11 | <title>Understand Documentation Request</title> |
12 | 12 | <actions> |
13 | | - <action>Parse the user's request to identify the feature or component</action> |
14 | | - <action>Default to user-friendly documentation unless technical docs are specifically requested</action> |
15 | | - <action>Focus on practical benefits and real-world usage</action> |
16 | | - <action>Note any specific aspects the user wants emphasized</action> |
| 13 | + <action>Parse the user's request to identify the feature or component.</action> |
| 14 | + <action>Determine if the user has provided a documentation section for review or is requesting new documentation.</action> |
| 15 | + <action>Default to user-friendly documentation unless technical docs are specifically requested.</action> |
| 16 | + <action>Focus on practical benefits and real-world usage.</action> |
| 17 | + <action>Note any specific aspects the user wants emphasized.</action> |
17 | 18 | </actions> |
18 | | - <note>The user will specify what they want documented in their initial message - no need to ask</note> |
| 19 | + <note>The user will specify what they want documented in their initial message. The workflow branches based on whether a review is requested or new documentation is to be generated.</note> |
19 | 20 | </step> |
20 | 21 |
|
21 | 22 | <step number="2"> |
|
201 | 202 | </analysis_phases> |
202 | 203 |
|
203 | 204 | <documentation_generation> |
| 205 | + <note>This phase has two paths: Reviewing existing docs or Generating new docs. The path taken is determined in the initialization phase.</note> |
204 | 206 | <step number="1"> |
205 | | - <title>Choose Documentation Style</title> |
| 207 | + <title>Path 1: Review and Recommend Improvements</title> |
| 208 | + <note>This path is followed if the user provided a documentation section for review.</note> |
206 | 209 | <actions> |
207 | | - <action>Default to user-focused template for end-user features</action> |
208 | | - <action>Use comprehensive template only for developer APIs or complex systems</action> |
209 | | - <action>Prioritize clarity and practical examples over exhaustive detail</action> |
| 210 | + <action>Compare the provided documentation against the analysis of the codebase.</action> |
| 211 | + <action>Identify inaccuracies (technical, logical), omissions, and areas for improvement.</action> |
| 212 | + <action>Categorize inaccuracies by severity (e.g., Critical, Major, Minor, Suggestion).</action> |
| 213 | + <action>Formulate a structured recommendation in the chat, suitable for being copied to the docs team.</action> |
| 214 | + <action>Do not write any files or make changes yourself.</action> |
210 | 215 | </actions> |
211 | | - <decision_criteria> |
212 | | - <criterion>If feature is user-facing → Use user_focused_template</criterion> |
213 | | - <criterion>If feature is developer API → Consider comprehensive_template</criterion> |
214 | | - <criterion>If unclear → Ask user for preference</criterion> |
215 | | - </decision_criteria> |
216 | 216 | </step> |
217 | | - |
218 | 217 | <step number="2"> |
219 | | - <title>Structure Documentation</title> |
220 | | - <actions> |
221 | | - <action>Start with clear problem statement and benefits</action> |
222 | | - <action>Use before/after examples when applicable</action> |
223 | | - <action>Keep technical details minimal unless essential</action> |
224 | | - <action>Focus on common use cases and questions</action> |
225 | | - </actions> |
226 | | - </step> |
227 | | - |
228 | | - <step number="3"> |
229 | | - <title>Generate Markdown Output</title> |
230 | | - <actions> |
231 | | - <action>Create DOCS-TEMP-[feature].md file</action> |
232 | | - <action>Use conversational tone and active voice</action> |
233 | | - <action>Include visual separators (---) between sections</action> |
234 | | - <action>Add practical examples and troubleshooting tips</action> |
235 | | - </actions> |
236 | | - </step> |
237 | | - |
238 | | - <step number="4"> |
239 | | - <title>Add User-Friendly Elements</title> |
| 218 | + <title>Path 2: Generate New Documentation</title> |
| 219 | + <note>This path is followed if the user requested new documentation.</note> |
240 | 220 | <actions> |
241 | | - <action>Include "Why This Matters" section with real scenarios</action> |
242 | | - <action>Add "Common Questions" in Q&A format</action> |
243 | | - <action>Provide clear troubleshooting steps</action> |
244 | | - <action>End with "Need Help?" section pointing to resources</action> |
| 221 | + <action>Choose a documentation style (e.g., user-focused or comprehensive) from `2_documentation_patterns.xml`.</action> |
| 222 | + <action>Structure the documentation with clear sections, examples, and user-friendly elements.</action> |
| 223 | + <action>Create a `DOCS-TEMP-[feature].md` file with the generated content.</action> |
| 224 | + <action>Use a conversational tone and practical examples from `7_user_friendly_examples.xml`.</action> |
245 | 225 | </actions> |
246 | 226 | </step> |
247 | 227 | </documentation_generation> |
|
0 commit comments