@techierathore/techieflow 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/.claude/commands/TechieFlow/agents/analyst.md +5 -13
  2. package/.claude/commands/TechieFlow/agents/architect.md +1 -16
  3. package/.claude/commands/TechieFlow/agents/flow-master.md +42 -215
  4. package/.claude/commands/TechieFlow/agents/verifier.md +24 -64
  5. package/.claude/commands/TechieFlow/tasks/_metrics-emit-gate.md +24 -117
  6. package/.claude/commands/TechieFlow/tasks/_owner-language.md +26 -0
  7. package/.claude/commands/TechieFlow/tasks/_smoke-test-policy.md +20 -84
  8. package/.claude/commands/TechieFlow/tasks/_status-update-gate.md +10 -74
  9. package/.claude/commands/TechieFlow/tasks/_yolo-mode.md +20 -58
  10. package/.claude/commands/TechieFlow/tasks/amend-docs.md +21 -143
  11. package/.claude/commands/TechieFlow/tasks/build-phase.md +14 -224
  12. package/.claude/commands/TechieFlow/tasks/create-deep-research-prompt.md +4 -0
  13. package/.claude/commands/TechieFlow/tasks/create-doc.md +4 -0
  14. package/.claude/commands/TechieFlow/tasks/create-project-brief.md +22 -0
  15. package/.claude/commands/TechieFlow/tasks/day1-brownfield.md +31 -505
  16. package/.claude/commands/TechieFlow/tasks/day1-greenfield.md +28 -213
  17. package/.claude/commands/TechieFlow/tasks/deploy-checklist.md +19 -0
  18. package/.claude/commands/TechieFlow/tasks/devguide.md +10 -219
  19. package/.claude/commands/TechieFlow/tasks/facilitate-brainstorming-session.md +4 -0
  20. package/.claude/commands/TechieFlow/tasks/fix-issues.md +10 -129
  21. package/.claude/commands/TechieFlow/tasks/generate-html.md +5 -1
  22. package/.claude/commands/TechieFlow/tasks/handoff-phase.md +18 -16
  23. package/.claude/commands/TechieFlow/tasks/log-miss.md +19 -158
  24. package/.claude/commands/TechieFlow/tasks/metrics-report.md +3 -1
  25. package/.claude/commands/TechieFlow/tasks/mockups.md +12 -117
  26. package/.claude/commands/TechieFlow/tasks/refresh-status.md +9 -130
  27. package/.claude/commands/TechieFlow/tasks/split-brd.md +10 -126
  28. package/.claude/commands/TechieFlow/tasks/triage-and-fix.md +14 -0
  29. package/.claude/commands/TechieFlow/tasks/triage-issues.md +11 -152
  30. package/.claude/commands/TechieFlow/tasks/verify-phase.md +36 -572
  31. package/.opencode/plugin/techieflow.js +40 -13
  32. package/.tfcore/agents/analyst.md +5 -13
  33. package/.tfcore/agents/architect.md +1 -16
  34. package/.tfcore/agents/flow-master.md +42 -215
  35. package/.tfcore/agents/verifier.md +24 -64
  36. package/.tfcore/core-config.yaml +10 -0
  37. package/.tfcore/hooks/block-git.sh +4 -4
  38. package/.tfcore/hooks/guard-artifacts.sh +2 -2
  39. package/.tfcore/hooks/guard-build.sh +76 -0
  40. package/.tfcore/hooks/guard-db.sh +90 -0
  41. package/.tfcore/hooks/guard-metrics.sh +68 -0
  42. package/.tfcore/hooks/guard-status-html.sh +116 -71
  43. package/.tfcore/hooks/guard-status.sh +43 -16
  44. package/.tfcore/hooks/guard-verify-deps.sh +124 -0
  45. package/.tfcore/hooks/guard-verify.sh +70 -48
  46. package/.tfcore/hooks/sweep-artifacts.sh +2 -2
  47. package/.tfcore/install-manifest.yaml +0 -18
  48. package/.tfcore/routing.yaml +86 -14
  49. package/.tfcore/standards/coding-standards-core.md +61 -0
  50. package/.tfcore/standards/coding-standards-dotnet.md +93 -0
  51. package/.tfcore/tasks/_metrics-emit-gate.md +24 -117
  52. package/.tfcore/tasks/_owner-language.md +26 -0
  53. package/.tfcore/tasks/_smoke-test-policy.md +20 -84
  54. package/.tfcore/tasks/_status-update-gate.md +10 -74
  55. package/.tfcore/tasks/_yolo-mode.md +20 -58
  56. package/.tfcore/tasks/amend-docs.md +21 -143
  57. package/.tfcore/tasks/build-phase.md +14 -224
  58. package/.tfcore/tasks/create-deep-research-prompt.md +4 -0
  59. package/.tfcore/tasks/create-doc.md +4 -0
  60. package/.tfcore/tasks/create-project-brief.md +22 -0
  61. package/.tfcore/tasks/day1-brownfield.md +31 -505
  62. package/.tfcore/tasks/day1-greenfield.md +28 -213
  63. package/.tfcore/tasks/deploy-checklist.md +19 -0
  64. package/.tfcore/tasks/devguide.md +10 -219
  65. package/.tfcore/tasks/facilitate-brainstorming-session.md +4 -0
  66. package/.tfcore/tasks/fix-issues.md +10 -129
  67. package/.tfcore/tasks/generate-html.md +5 -1
  68. package/.tfcore/tasks/handoff-phase.md +18 -16
  69. package/.tfcore/tasks/log-miss.md +19 -158
  70. package/.tfcore/tasks/metrics-report.md +3 -1
  71. package/.tfcore/tasks/mockups.md +12 -117
  72. package/.tfcore/tasks/refresh-status.md +9 -130
  73. package/.tfcore/tasks/split-brd.md +10 -126
  74. package/.tfcore/tasks/triage-and-fix.md +14 -0
  75. package/.tfcore/tasks/triage-issues.md +11 -152
  76. package/.tfcore/tasks/verify-phase.md +36 -572
  77. package/.tfcore/telemetry/SCHEMA.md +100 -8
  78. package/.tfcore/telemetry/tf-metrics.sh +564 -32
  79. package/.tfcore/templates/stack-defaults/dotnet.md +35 -0
  80. package/.tfcore/templates/stack-questions.md +77 -0
  81. package/.tfcore/templates/v4custom/app-agents-md-tmpl.md +3 -4
  82. package/.tfcore/templates/v4custom/app-architecture-tmpl.md +107 -115
  83. package/.tfcore/templates/v4custom/app-brd-tmpl.md +108 -184
  84. package/.tfcore/templates/v4custom/app-brief-tmpl.md +65 -0
  85. package/.tfcore/templates/v4custom/app-checklist-tmpl.md +48 -73
  86. package/.tfcore/templates/v4custom/app-claude-md-tmpl.md +1 -1
  87. package/.tfcore/templates/v4custom/app-coding-standards-tmpl.md +52 -0
  88. package/.tfcore/templates/v4custom/app-decision-request-tmpl.md +85 -0
  89. package/.tfcore/templates/v4custom/app-deployment-checklist-tmpl.md +86 -0
  90. package/.tfcore/templates/v4custom/app-devguide-tmpl.md +69 -146
  91. package/.tfcore/templates/v4custom/app-library-feedback-tmpl.md +86 -31
  92. package/.tfcore/templates/v4custom/app-phases-tmpl.md +35 -0
  93. package/.tfcore/templates/v4custom/app-productguide-tmpl.md +38 -35
  94. package/.tfcore/templates/v4custom/app-project-status-tmpl.md +63 -73
  95. package/.tfcore/templates/v4custom/app-uidesign-tmpl.md +62 -37
  96. package/.tfcore/templates/v4custom/app-usageguide-tmpl.md +69 -54
  97. package/.tfcore/templates/v4custom/build-invocation-ladder.md +17 -180
  98. package/.tfcore/templates/v4custom/build-subagent-prompt.md +17 -0
  99. package/.tfcore/templates/v4custom/html-render-shell.md +1 -1
  100. package/.tfcore/templates/v4custom/metrics-report-template.md +2 -2
  101. package/.tfcore/user-guide.md +0 -23
  102. package/.tfcore/utils/__pycache__/tf-brd-status.cpython-312.pyc +0 -0
  103. package/.tfcore/utils/__pycache__/tf-checklist-edit.cpython-312.pyc +0 -0
  104. package/.tfcore/utils/__pycache__/tf-codex-bind.cpython-312.pyc +0 -0
  105. package/.tfcore/utils/__pycache__/tf-codex-telemetry.cpython-312.pyc +0 -0
  106. package/.tfcore/utils/__pycache__/tf-day1-files.cpython-312.pyc +0 -0
  107. package/.tfcore/utils/__pycache__/tf-devguide-list.cpython-312.pyc +0 -0
  108. package/.tfcore/utils/__pycache__/tf-doc-check.cpython-312.pyc +0 -0
  109. package/.tfcore/utils/__pycache__/tf-log-miss.cpython-312.pyc +0 -0
  110. package/.tfcore/utils/__pycache__/tf-misses-md.cpython-312.pyc +0 -0
  111. package/.tfcore/utils/__pycache__/tf-mockups-locate.cpython-312.pyc +0 -0
  112. package/.tfcore/utils/__pycache__/tf-opencode-audit.cpython-312.pyc +0 -0
  113. package/.tfcore/utils/__pycache__/tf-perf-grade.cpython-312.pyc +0 -0
  114. package/.tfcore/utils/__pycache__/tf-render-html.cpython-312.pyc +0 -0
  115. package/.tfcore/utils/__pycache__/tf-split-brd.cpython-312.pyc +0 -0
  116. package/.tfcore/utils/__pycache__/tf-status-facts.cpython-312.pyc +0 -0
  117. package/.tfcore/utils/__pycache__/tf-triage.cpython-312.pyc +0 -0
  118. package/.tfcore/utils/__pycache__/tf-verify-list.cpython-312.pyc +0 -0
  119. package/.tfcore/utils/__pycache__/tf-verify-verdict.cpython-312.pyc +0 -0
  120. package/.tfcore/utils/tf-brd-status.py +176 -0
  121. package/.tfcore/utils/tf-brd-status.sh +19 -0
  122. package/.tfcore/utils/tf-build-list.py +211 -0
  123. package/.tfcore/utils/tf-build-list.sh +21 -0
  124. package/.tfcore/utils/tf-build.sh +143 -0
  125. package/.tfcore/utils/tf-cdp-relay.ps1 +64 -0
  126. package/.tfcore/utils/tf-checklist-edit.py +133 -0
  127. package/.tfcore/utils/tf-day1-files.py +208 -0
  128. package/.tfcore/utils/tf-day1-files.sh +20 -0
  129. package/.tfcore/utils/tf-devguide-list.py +249 -0
  130. package/.tfcore/utils/tf-devguide-list.sh +18 -0
  131. package/.tfcore/utils/tf-doc-check.py +1369 -0
  132. package/.tfcore/utils/tf-doc-check.sh +29 -0
  133. package/.tfcore/utils/tf-emit.sh +545 -18
  134. package/.tfcore/utils/tf-fix-close.sh +115 -0
  135. package/.tfcore/utils/tf-gitignore-audit.sh +50 -3
  136. package/.tfcore/utils/tf-goal.sh +284 -66
  137. package/.tfcore/utils/tf-harness.sh +4 -9
  138. package/.tfcore/utils/tf-log-miss.py +197 -0
  139. package/.tfcore/utils/tf-log-miss.sh +14 -0
  140. package/.tfcore/utils/tf-misses-md.py +208 -0
  141. package/.tfcore/utils/tf-misses-md.sh +14 -0
  142. package/.tfcore/utils/tf-mockups-locate.py +66 -0
  143. package/.tfcore/utils/tf-mockups-locate.sh +18 -0
  144. package/.tfcore/utils/tf-model-pick.sh +475 -0
  145. package/.tfcore/utils/tf-opencode-audit.py +23 -7
  146. package/.tfcore/utils/tf-perf-grade.py +97 -0
  147. package/.tfcore/utils/tf-perf-grade.sh +12 -0
  148. package/.tfcore/utils/tf-phase.sh +92 -0
  149. package/.tfcore/utils/tf-render-html.py +20 -0
  150. package/.tfcore/utils/tf-routing-bind.sh +97 -6
  151. package/.tfcore/utils/tf-routing.sh +13 -7
  152. package/.tfcore/utils/tf-selfcheck.sh +323 -0
  153. package/.tfcore/utils/tf-split-brd.py +309 -0
  154. package/.tfcore/utils/tf-split-brd.sh +22 -0
  155. package/.tfcore/utils/tf-status-evidence.sh +68 -0
  156. package/.tfcore/utils/tf-status-facts.py +358 -0
  157. package/.tfcore/utils/tf-status-facts.sh +20 -0
  158. package/.tfcore/utils/tf-triage.py +243 -0
  159. package/.tfcore/utils/tf-triage.sh +16 -0
  160. package/.tfcore/utils/tf-verify-boot.sh +250 -0
  161. package/.tfcore/utils/tf-verify-emit.sh +110 -0
  162. package/.tfcore/utils/tf-verify-env.sh +88 -0
  163. package/.tfcore/utils/tf-verify-list.py +270 -0
  164. package/.tfcore/utils/tf-verify-list.sh +13 -0
  165. package/.tfcore/utils/tf-verify-screens.mjs +355 -0
  166. package/.tfcore/utils/tf-verify-screens.sh +31 -0
  167. package/.tfcore/utils/tf-verify-tests.sh +166 -0
  168. package/.tfcore/utils/tf-verify-verdict.py +292 -0
  169. package/.tfcore/utils/tf-verify-verdict.sh +15 -0
  170. package/.tfcore/utils/tf-yolo.sh +59 -0
  171. package/README.md +120 -1145
  172. package/docs/TechieFlow-Installation.md +1 -5
  173. package/opencode.jsonc +37 -33
  174. package/package.json +1 -5
  175. package/scripts/install.mjs +56 -46
  176. package/.claude/commands/TechieFlow/tasks/advanced-elicitation.md +0 -117
  177. package/.claude/commands/TechieFlow/tasks/author-brd.md +0 -79
  178. package/.claude/commands/TechieFlow/tasks/document-project.md +0 -343
  179. package/.claude/commands/TechieFlow/tasks/execute-checklist.md +0 -86
  180. package/.claude/commands/TechieFlow/tasks/index-docs.md +0 -173
  181. package/.claude/commands/TechieFlow/tasks/kb-mode-interaction.md +0 -75
  182. package/.claude/commands/TechieFlow/tasks/shard-doc.md +0 -185
  183. package/.codex/config.toml +0 -46
  184. package/.codex/hooks.json +0 -63
  185. package/.codex/rules/techieflow.rules +0 -8
  186. package/.tfcore/hooks/codex-adapter.py +0 -248
  187. package/.tfcore/tasks/advanced-elicitation.md +0 -117
  188. package/.tfcore/tasks/author-brd.md +0 -79
  189. package/.tfcore/tasks/document-project.md +0 -343
  190. package/.tfcore/tasks/execute-checklist.md +0 -86
  191. package/.tfcore/tasks/index-docs.md +0 -173
  192. package/.tfcore/tasks/kb-mode-interaction.md +0 -75
  193. package/.tfcore/tasks/shard-doc.md +0 -185
  194. package/.tfcore/templates/architecture-tmpl.yaml +0 -650
  195. package/.tfcore/templates/brownfield-architecture-tmpl.yaml +0 -476
  196. package/.tfcore/templates/competitor-analysis-tmpl.yaml +0 -306
  197. package/.tfcore/templates/front-end-architecture-tmpl.yaml +0 -218
  198. package/.tfcore/templates/fullstack-architecture-tmpl.yaml +0 -823
  199. package/.tfcore/templates/market-research-tmpl.yaml +0 -252
  200. package/.tfcore/templates/project-brief-tmpl.yaml +0 -221
  201. package/.tfcore/utils/techieflow-doc-template.md +0 -325
  202. package/.tfcore/utils/tf-codex-bind.py +0 -196
  203. package/.tfcore/utils/tf-codex-telemetry.py +0 -60
  204. package/WORKFLOW.html +0 -1986
@@ -1,75 +0,0 @@
1
- # KB Mode Interaction Task
2
-
3
- ## Purpose
4
-
5
- Provide a user-friendly interface to the TechieFlow knowledge base without overwhelming users with information upfront.
6
-
7
- ## Instructions
8
-
9
- When entering KB mode (\*kb-mode), follow these steps:
10
-
11
- ### 1. Welcome and Guide
12
-
13
- Announce entering KB mode with a brief, friendly introduction.
14
-
15
- ### 2. Present Topic Areas
16
-
17
- Offer a concise list of main topic areas the user might want to explore:
18
-
19
- **What would you like to know more about?**
20
-
21
- 1. **Setup & Installation** - Getting started with TechieFlow
22
- 2. **Workflows** - Choosing the right workflow for your project
23
- 3. **Web vs IDE** - When to use each environment
24
- 4. **Agents** - Understanding specialized agents and their roles
25
- 5. **Documents** - PRDs, Architecture, Stories, and more
26
- 6. **Agile Process** - How TechieFlow implements Agile methodologies
27
- 7. **Configuration** - Customizing TechieFlow for your needs
28
- 8. **Best Practices** - Tips for effective TechieFlow usage
29
-
30
- Or ask me about anything else related to TechieFlow!
31
-
32
- ### 3. Respond Contextually
33
-
34
- - Wait for user's specific question or topic selection
35
- - Provide focused, relevant information from the knowledge base
36
- - Offer to dive deeper or explore related topics
37
- - Keep responses concise unless user asks for detailed explanations
38
-
39
- ### 4. Interactive Exploration
40
-
41
- - After answering, suggest related topics they might find helpful
42
- - Maintain conversational flow rather than data dumping
43
- - Use examples when appropriate
44
- - Reference specific documentation sections when relevant
45
-
46
- ### 5. Exit Gracefully
47
-
48
- When user is done or wants to exit KB mode:
49
-
50
- - Summarize key points discussed if helpful
51
- - Remind them they can return to KB mode anytime with \*kb-mode
52
- - Suggest next steps based on what was discussed
53
-
54
- ## Example Interaction
55
-
56
- **User**: \*kb-mode
57
-
58
- **Assistant**: I've entered KB mode and have access to the full TechieFlow knowledge base. I can help you with detailed information about any aspect of TechieFlow.
59
-
60
- **What would you like to know more about?**
61
-
62
- 1. **Setup & Installation** - Getting started with TechieFlow
63
- 2. **Workflows** - Choosing the right workflow for your project
64
- 3. **Web vs IDE** - When to use each environment
65
- 4. **Agents** - Understanding specialized agents and their roles
66
- 5. **Documents** - PRDs, Architecture, Stories, and more
67
- 6. **Agile Process** - How TechieFlow implements Agile methodologies
68
- 7. **Configuration** - Customizing TechieFlow for your needs
69
- 8. **Best Practices** - Tips for effective TechieFlow usage
70
-
71
- Or ask me about anything else related to TechieFlow!
72
-
73
- **User**: Tell me about workflows
74
-
75
- **Assistant**: [Provides focused information about workflows from the KB, then offers to explore specific workflow types or related topics]
@@ -1,185 +0,0 @@
1
- # Document Sharding Task
2
-
3
- ## Purpose
4
-
5
- - Split a large document into multiple smaller documents based on level 2 sections
6
- - Create a folder structure to organize the sharded documents
7
- - Maintain all content integrity including code blocks, diagrams, and markdown formatting
8
-
9
- ## Primary Method: Automatic with markdown-tree
10
-
11
- [[LLM: First, check if markdownExploder is set to true in .tfcore/core-config.yaml. If it is, attempt to run the command: `md-tree explode {input file} {output path}`.
12
-
13
- If the command succeeds, inform the user that the document has been sharded successfully and STOP - do not proceed further.
14
-
15
- If the command fails (especially with an error indicating the command is not found or not available), inform the user: "The markdownExploder setting is enabled but the md-tree command is not available. Please either:
16
-
17
- 1. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
18
- 2. Or set markdownExploder to false in .tfcore/core-config.yaml
19
-
20
- **IMPORTANT: STOP HERE - do not proceed with manual sharding until one of the above actions is taken.**"
21
-
22
- If markdownExploder is set to false, inform the user: "The markdownExploder setting is currently false. For better performance and reliability, you should:
23
-
24
- 1. Set markdownExploder to true in .tfcore/core-config.yaml
25
- 2. Install @kayvan/markdown-tree-parser globally with: `npm install -g @kayvan/markdown-tree-parser`
26
-
27
- I will now proceed with the manual sharding process."
28
-
29
- Then proceed with the manual method below ONLY if markdownExploder is false.]]
30
-
31
- ### Installation and Usage
32
-
33
- 1. **Install globally**:
34
-
35
- ```bash
36
- npm install -g @kayvan/markdown-tree-parser
37
- ```
38
-
39
- 2. **Use the explode command**:
40
-
41
- ```bash
42
- # For PRD
43
- md-tree explode docs/prd.md docs/prd
44
-
45
- # For Architecture
46
- md-tree explode docs/architecture.md docs/architecture
47
-
48
- # For any document
49
- md-tree explode [source-document] [destination-folder]
50
- ```
51
-
52
- 3. **What it does**:
53
- - Automatically splits the document by level 2 sections
54
- - Creates properly named files
55
- - Adjusts heading levels appropriately
56
- - Handles all edge cases with code blocks and special markdown
57
-
58
- If the user has @kayvan/markdown-tree-parser installed, use it and skip the manual process below.
59
-
60
- ---
61
-
62
- ## Manual Method (if @kayvan/markdown-tree-parser is not available or user indicated manual method)
63
-
64
- ### Task Instructions
65
-
66
- 1. Identify Document and Target Location
67
-
68
- - Determine which document to shard (user-provided path)
69
- - Create a new folder under `docs/` with the same name as the document (without extension)
70
- - Example: `docs/prd.md` → create folder `docs/prd/`
71
-
72
- 2. Parse and Extract Sections
73
-
74
- CRITICAL AEGNT SHARDING RULES:
75
-
76
- 1. Read the entire document content
77
- 2. Identify all level 2 sections (## headings)
78
- 3. For each level 2 section:
79
- - Extract the section heading and ALL content until the next level 2 section
80
- - Include all subsections, code blocks, diagrams, lists, tables, etc.
81
- - Be extremely careful with:
82
- - Fenced code blocks (```) - ensure you capture the full block including closing backticks and account for potential misleading level 2's that are actually part of a fenced section example
83
- - Mermaid diagrams - preserve the complete diagram syntax
84
- - Nested markdown elements
85
- - Multi-line content that might contain ## inside code blocks
86
-
87
- CRITICAL: Use proper parsing that understands markdown context. A ## inside a code block is NOT a section header.]]
88
-
89
- ### 3. Create Individual Files
90
-
91
- For each extracted section:
92
-
93
- 1. **Generate filename**: Convert the section heading to lowercase-dash-case
94
- - Remove special characters
95
- - Replace spaces with dashes
96
- - Example: "## Tech Stack" → `tech-stack.md`
97
-
98
- 2. **Adjust heading levels**:
99
- - The level 2 heading becomes level 1 (# instead of ##) in the sharded new document
100
- - All subsection levels decrease by 1:
101
-
102
- ```txt
103
- - ### → ##
104
- - #### → ###
105
- - ##### → ####
106
- - etc.
107
- ```
108
-
109
- 3. **Write content**: Save the adjusted content to the new file
110
-
111
- ### 4. Create Index File
112
-
113
- Create an `index.md` file in the sharded folder that:
114
-
115
- 1. Contains the original level 1 heading and any content before the first level 2 section
116
- 2. Lists all the sharded files with links:
117
-
118
- ```markdown
119
- # Original Document Title
120
-
121
- [Original introduction content if any]
122
-
123
- ## Sections
124
-
125
- - [Section Name 1](./section-name-1.md)
126
- - [Section Name 2](./section-name-2.md)
127
- - [Section Name 3](./section-name-3.md)
128
- ...
129
- ```
130
-
131
- ### 5. Preserve Special Content
132
-
133
- 1. **Code blocks**: Must capture complete blocks including:
134
-
135
- ```language
136
- content
137
- ```
138
-
139
- 2. **Mermaid diagrams**: Preserve complete syntax:
140
-
141
- ```mermaid
142
- graph TD
143
- ...
144
- ```
145
-
146
- 3. **Tables**: Maintain proper markdown table formatting
147
-
148
- 4. **Lists**: Preserve indentation and nesting
149
-
150
- 5. **Inline code**: Preserve backticks
151
-
152
- 6. **Links and references**: Keep all markdown links intact
153
-
154
- 7. **Template markup**: If documents contain {{placeholders}} ,preserve exactly
155
-
156
- ### 6. Validation
157
-
158
- After sharding:
159
-
160
- 1. Verify all sections were extracted
161
- 2. Check that no content was lost
162
- 3. Ensure heading levels were properly adjusted
163
- 4. Confirm all files were created successfully
164
-
165
- ### 7. Report Results
166
-
167
- Provide a summary:
168
-
169
- ```text
170
- Document sharded successfully:
171
- - Source: [original document path]
172
- - Destination: docs/[folder-name]/
173
- - Files created: [count]
174
- - Sections:
175
- - section-name-1.md: "Section Title 1"
176
- - section-name-2.md: "Section Title 2"
177
- ...
178
- ```
179
-
180
- ## Important Notes
181
-
182
- - Never modify the actual content, only adjust heading levels
183
- - Preserve ALL formatting, including whitespace where significant
184
- - Handle edge cases like sections with code blocks containing ## symbols
185
- - Ensure the sharding is reversible (could reconstruct the original from shards)