owflow 0.5.0 → 0.7.0

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 (195) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +448 -261
  3. package/dist/agents/bottleneck-analyzer.md +332 -329
  4. package/dist/agents/code-quality-pragmatist.md +353 -354
  5. package/dist/agents/code-reviewer.md +238 -239
  6. package/dist/agents/codebase-analysis-reporter.md +245 -246
  7. package/dist/agents/docs-operator.md +22 -23
  8. package/dist/agents/e2e-test-verifier.md +447 -448
  9. package/dist/agents/gap-analyzer.md +501 -502
  10. package/dist/agents/implementation-completeness-checker.md +219 -220
  11. package/dist/agents/implementation-planner.md +308 -309
  12. package/dist/agents/information-gatherer.md +690 -691
  13. package/dist/agents/production-readiness-checker.md +278 -279
  14. package/dist/agents/project-analyzer.md +403 -403
  15. package/dist/agents/reality-assessor.md +365 -366
  16. package/dist/agents/research-planner.md +449 -450
  17. package/dist/agents/research-synthesizer.md +402 -403
  18. package/dist/agents/solution-brainstormer.md +256 -257
  19. package/dist/agents/solution-designer.md +371 -372
  20. package/dist/agents/spec-auditor.md +297 -298
  21. package/dist/agents/specification-creator.md +333 -334
  22. package/dist/agents/task-classifier.md +449 -450
  23. package/dist/agents/task-group-implementer.md +283 -284
  24. package/dist/agents/test-suite-runner.md +194 -195
  25. package/dist/agents/user-docs-generator.md +508 -509
  26. package/dist/commands/reviews-code.md +90 -90
  27. package/dist/commands/reviews-pragmatic.md +99 -99
  28. package/dist/commands/reviews-production-readiness.md +113 -113
  29. package/dist/commands/reviews-reality-check.md +110 -110
  30. package/dist/commands/reviews-spec-audit.md +114 -114
  31. package/dist/commands/work.md +280 -280
  32. package/dist/configuration/agents-config.d.ts +2 -0
  33. package/dist/configuration/agents-config.js +8 -44
  34. package/dist/configuration/commands-config.d.ts +23 -0
  35. package/dist/configuration/commands-config.js +17 -17
  36. package/dist/configuration/skills-config.d.ts +2 -0
  37. package/dist/configuration/skills-config.js +3 -3
  38. package/dist/hooks/hooks-diagnostics.d.ts +3 -0
  39. package/dist/hooks/hooks-diagnostics.js +21 -0
  40. package/dist/hooks/hooks-persistence.d.ts +17 -0
  41. package/dist/hooks/hooks-persistence.js +207 -0
  42. package/dist/hooks/hooks-registry.d.ts +6 -0
  43. package/dist/hooks/hooks-registry.js +104 -0
  44. package/dist/hooks/hooks-wrapper.d.ts +25 -0
  45. package/dist/hooks/hooks-wrapper.js +318 -0
  46. package/dist/hooks/internal/before-tool.d.ts +6 -0
  47. package/dist/hooks/internal/before-tool.js +13 -0
  48. package/dist/hooks/internal/session-compaction.d.ts +9 -0
  49. package/dist/hooks/{session-compaction.js → internal/session-compaction.js} +9 -7
  50. package/dist/hooks/runtime/circuit-breaker.d.ts +23 -0
  51. package/dist/hooks/runtime/circuit-breaker.js +39 -0
  52. package/dist/hooks/runtime/failure-policy.d.ts +15 -0
  53. package/dist/hooks/runtime/failure-policy.js +49 -0
  54. package/dist/hooks/runtime/process-executor.d.ts +33 -0
  55. package/dist/hooks/runtime/process-executor.js +147 -0
  56. package/dist/hooks/runtime/status-recorder.d.ts +27 -0
  57. package/dist/hooks/runtime/status-recorder.js +111 -0
  58. package/dist/index.d.ts +7 -0
  59. package/dist/index.js +111 -40
  60. package/dist/skills/agents-md-generator/SKILL.md +223 -223
  61. package/dist/skills/codebase-analyzer/SKILL.md +162 -162
  62. package/dist/skills/codebase-analyzer/references/code-analysis.md +63 -63
  63. package/dist/skills/codebase-analyzer/references/combined.md +31 -31
  64. package/dist/skills/codebase-analyzer/references/context-discovery.md +63 -63
  65. package/dist/skills/codebase-analyzer/references/file-discovery.md +51 -51
  66. package/dist/skills/codebase-analyzer/references/migration-target.md +23 -23
  67. package/dist/skills/codebase-analyzer/references/pattern-mining.md +22 -22
  68. package/dist/skills/dev-analyze/SKILL.md +115 -115
  69. package/dist/skills/dev-bugfix/SKILL.md +452 -452
  70. package/dist/skills/dev-finalize/SKILL.md +118 -118
  71. package/dist/skills/dev-implement/SKILL.md +167 -167
  72. package/dist/skills/dev-plan/SKILL.md +147 -147
  73. package/dist/skills/dev-spec/SKILL.md +182 -182
  74. package/dist/skills/dev-tdd-red/SKILL.md +94 -94
  75. package/dist/skills/dev-verify/SKILL.md +153 -153
  76. package/dist/skills/development/SKILL.md +260 -260
  77. package/dist/skills/diagrams-mermaid/SKILL.md +183 -159
  78. package/dist/skills/diagrams-mermaid/references/reference.md +220 -148
  79. package/dist/skills/docs-manager/SKILL.md +379 -379
  80. package/dist/skills/docs-manager/docs/INDEX.md +199 -199
  81. package/dist/skills/docs-manager/docs/standards/backend/api.md +25 -25
  82. package/dist/skills/docs-manager/docs/standards/backend/migrations.md +22 -22
  83. package/dist/skills/docs-manager/docs/standards/backend/models.md +25 -25
  84. package/dist/skills/docs-manager/docs/standards/backend/queries.md +22 -22
  85. package/dist/skills/docs-manager/docs/standards/frontend/accessibility.md +25 -25
  86. package/dist/skills/docs-manager/docs/standards/frontend/components.md +28 -28
  87. package/dist/skills/docs-manager/docs/standards/frontend/css.md +16 -16
  88. package/dist/skills/docs-manager/docs/standards/frontend/responsive.md +28 -28
  89. package/dist/skills/docs-manager/docs/standards/global/coding-style.md +25 -25
  90. package/dist/skills/docs-manager/docs/standards/global/commenting.md +10 -10
  91. package/dist/skills/docs-manager/docs/standards/global/conventions.md +31 -31
  92. package/dist/skills/docs-manager/docs/standards/global/error-handling.md +22 -22
  93. package/dist/skills/docs-manager/docs/standards/global/minimal-implementation.md +22 -22
  94. package/dist/skills/docs-manager/docs/standards/global/validation.md +28 -28
  95. package/dist/skills/docs-manager/docs/standards/testing/test-writing.md +25 -25
  96. package/dist/skills/docs-manager/references/agents-md-template.md +29 -29
  97. package/dist/skills/docs-manager/references/index-md-template.md +73 -73
  98. package/dist/skills/flow-init/SKILL.md +234 -234
  99. package/dist/skills/flow-init/references/architecture-template.md +45 -45
  100. package/dist/skills/flow-init/references/roadmap-templates.md +93 -93
  101. package/dist/skills/flow-init/references/tech-stack-template.md +70 -70
  102. package/dist/skills/flow-init/references/vision-templates.md +75 -75
  103. package/dist/skills/goal-development/SKILL.md +96 -96
  104. package/dist/skills/goal-migration/SKILL.md +114 -114
  105. package/dist/skills/goal-performance/SKILL.md +126 -0
  106. package/dist/skills/goal-research/SKILL.md +118 -118
  107. package/dist/skills/html-renderer/SKILL.md +173 -173
  108. package/dist/skills/html-renderer/references/index.html +318 -318
  109. package/dist/skills/html-renderer/references/styles.css +388 -388
  110. package/dist/skills/html-renderer/references/tokens.json +104 -104
  111. package/dist/skills/implementation-plan-executor/SKILL.md +378 -378
  112. package/dist/skills/implementation-verifier/SKILL.md +307 -307
  113. package/dist/skills/migration/SKILL.md +268 -268
  114. package/dist/skills/migration-analyze/SKILL.md +126 -126
  115. package/dist/skills/migration-finalize/SKILL.md +161 -161
  116. package/dist/skills/migration-fix/SKILL.md +155 -155
  117. package/dist/skills/migration-implement/SKILL.md +131 -131
  118. package/dist/skills/migration-plan/SKILL.md +131 -131
  119. package/dist/skills/migration-spec/SKILL.md +135 -135
  120. package/dist/skills/migration-spec/references/migration-strategies.md +430 -430
  121. package/dist/skills/migration-target/SKILL.md +134 -134
  122. package/dist/skills/migration-target/references/migration-types.md +489 -489
  123. package/dist/skills/migration-verify/SKILL.md +184 -184
  124. package/dist/skills/orchestrator-framework/SKILL.md +65 -65
  125. package/dist/skills/orchestrator-framework/references/command-namespacing.md +7 -7
  126. package/dist/skills/orchestrator-framework/references/confirm-or-revise-exception.md +20 -20
  127. package/dist/skills/orchestrator-framework/references/delegation-rules.md +54 -54
  128. package/dist/skills/orchestrator-framework/references/dispatcher-handoff.md +27 -27
  129. package/dist/skills/orchestrator-framework/references/fix-loop-contract.md +65 -65
  130. package/dist/skills/orchestrator-framework/references/gate-contract.md +122 -117
  131. package/dist/skills/orchestrator-framework/references/orchestrator-creation-checklist.md +51 -51
  132. package/dist/skills/orchestrator-framework/references/orchestrator-patterns.md +235 -235
  133. package/dist/skills/performance/SKILL.md +267 -437
  134. package/dist/skills/performance-analyze/SKILL.md +129 -0
  135. package/dist/skills/{performance → performance-analyze}/references/performance-optimization-guide.md +271 -365
  136. package/dist/skills/performance-finalize/SKILL.md +117 -0
  137. package/dist/skills/performance-implement/SKILL.md +114 -0
  138. package/dist/skills/performance-plan/SKILL.md +112 -0
  139. package/dist/skills/performance-spec/SKILL.md +145 -0
  140. package/dist/skills/performance-verify/SKILL.md +164 -0
  141. package/dist/skills/research/SKILL.md +249 -249
  142. package/dist/skills/research-brainstorm/SKILL.md +120 -120
  143. package/dist/skills/research-brainstorm/references/brainstorming-techniques.md +84 -84
  144. package/dist/skills/research-converge/SKILL.md +130 -130
  145. package/dist/skills/research-design/SKILL.md +146 -146
  146. package/dist/skills/research-design/references/design-techniques.md +40 -40
  147. package/dist/skills/research-finalize/SKILL.md +125 -125
  148. package/dist/skills/research-fork/SKILL.md +190 -190
  149. package/dist/skills/research-gather/SKILL.md +133 -133
  150. package/dist/skills/research-plan/SKILL.md +141 -141
  151. package/dist/skills/research-plan/references/research-methodologies.md +710 -710
  152. package/dist/skills/research-quick/SKILL.md +139 -139
  153. package/dist/skills/research-synthesize/SKILL.md +127 -127
  154. package/dist/skills/rule-reviewer/SKILL.md +334 -334
  155. package/dist/skills/standards-discover/SKILL.md +260 -260
  156. package/dist/skills/standards-discover/references/aggregation-strategy.md +76 -76
  157. package/dist/skills/standards-discover/references/code-pattern-prompt.md +68 -68
  158. package/dist/skills/standards-discover/references/config-analyzer-prompt.md +67 -67
  159. package/dist/skills/standards-discover/references/docs-extractor-prompt.md +65 -65
  160. package/dist/skills/standards-discover/references/external-analyzer-prompt.md +75 -75
  161. package/dist/skills/standards-update/SKILL.md +207 -207
  162. package/dist/templates/orchestrator-state-base.yml +17 -17
  163. package/dist/templates/orchestrator-state-development.yml +95 -95
  164. package/dist/templates/orchestrator-state-migration.yml +95 -95
  165. package/dist/templates/orchestrator-state-performance.yml +64 -53
  166. package/dist/templates/orchestrator-state-research.yml +67 -67
  167. package/dist/tools/fork_task.d.ts +17 -0
  168. package/dist/tools/fork_task.js +21 -11
  169. package/dist/tools/verify_template.d.ts +11 -0
  170. package/dist/tools/verify_template.js +32 -17
  171. package/dist/tui/hooks-dialogs.d.ts +20 -0
  172. package/dist/tui/hooks-dialogs.js +181 -0
  173. package/dist/tui/hooks-presenter.d.ts +15 -0
  174. package/dist/tui/hooks-presenter.js +70 -0
  175. package/dist/tui/hooks-sidebar.d.ts +10 -0
  176. package/dist/tui/hooks-sidebar.js +104 -0
  177. package/dist/tui/primitives.d.ts +21 -0
  178. package/dist/tui/primitives.js +47 -0
  179. package/dist/tui.d.ts +12 -0
  180. package/dist/tui.js +129 -0
  181. package/dist/types/hook-types.d.ts +125 -0
  182. package/dist/types/hook-types.js +76 -0
  183. package/dist/types/opencode-types.d.ts +13 -0
  184. package/dist/utils/file-util.d.ts +2 -0
  185. package/dist/utils/file-util.js +6 -6
  186. package/dist/utils/fork-task.d.ts +27 -0
  187. package/dist/utils/fork-task.js +18 -23
  188. package/dist/utils/plugin-info.d.ts +3 -0
  189. package/dist/utils/plugin-info.js +8 -10
  190. package/dist/utils/workflow-paths.d.ts +17 -0
  191. package/dist/utils/workflow-paths.js +18 -0
  192. package/dist/utils/yaml-structure.d.ts +7 -0
  193. package/dist/utils/yaml-structure.js +7 -11
  194. package/package.json +68 -48
  195. package/dist/hooks/before-tool.js +0 -19
@@ -1,379 +1,379 @@
1
- ---
2
- name: owflow:docs-manager
3
- description: Internal engine for managing project documentation and technical standards in .owflow/docs/. Handles file operations, INDEX.md generation, and AGENTS.md integration. Invoked by flow-init, standards-update, and standards-discover skills.
4
- user-invocable: false
5
- ---
6
-
7
- # Documentation Manager (Internal Engine)
8
-
9
- Internal skill that manages documentation file operations in `.owflow/docs/`. Not directly user-invocable — called by `flow-init`, `standards-update`, and `standards-discover` skills.
10
-
11
- ## Core Principles
12
-
13
- - **Project documentation is source of truth** — plugin-bundled docs are baseline/reference only
14
- - **INDEX.md is the master map** — always kept up-to-date after changes
15
- - **AGENTS.md integration is mandatory** — ensures AI reads documentation
16
-
17
- ## Documentation Structure
18
-
19
- ```
20
- .owflow/docs/
21
- ├── INDEX.md # Master index - READ THIS FIRST
22
- ├── project/ # Project-level documentation (generated by flow-init, not copied from templates)
23
- │ ├── vision.md # Project vision and goals
24
- │ ├── roadmap.md # Development roadmap
25
- │ ├── tech-stack.md # Technology choices and rationale
26
- │ └── architecture.md # System architecture (optional)
27
- └── standards/ # Technical standards and conventions
28
- ├── global/ # Language-agnostic standards
29
- │ ├── error-handling.md
30
- │ ├── validation.md
31
- │ ├── conventions.md
32
- │ ├── coding-style.md
33
- │ └── commenting.md
34
- ├── frontend/ # Frontend-specific standards
35
- │ ├── css.md
36
- │ ├── components.md
37
- │ ├── accessibility.md
38
- │ └── responsive.md
39
- ├── backend/ # Backend-specific standards
40
- │ ├── api.md
41
- │ ├── models.md
42
- │ ├── queries.md
43
- │ └── migrations.md
44
- └── testing/ # Testing standards
45
- └── test-writing.md
46
- ```
47
-
48
- ## Standard File Conventions
49
-
50
- Standard files follow the structure `standards/[category]/[topic].md`:
51
-
52
- - **Category** = domain folder (global, frontend, backend, testing, or custom)
53
- - **Topic file** = contains multiple related standards
54
-
55
- **Format**: Each file uses `## Topic` as the file heading, with `### Standard Name` for each individual standard. Each standard has a 1-10 line description (excluding code snippets) and an optional brief code example (under 10 lines).
56
-
57
- **Conciseness**: Standards are quick-reference conventions, not tutorials. If a file grows unwieldy, split into focused sub-topic files.
58
-
59
- **Why ### per standard**: Each standard as a discrete section makes it easier for agents to find, update, and reference individually — no need to parse bullet lists.
60
-
61
- ---
62
-
63
- ## Bundled Resources
64
-
65
- This skill bundles the following resources within the plugin:
66
-
67
- - **Standards Directory**: Contains baseline technical standards organized by category:
68
- - `global/` - Global standards (error handling, validation, conventions, etc.)
69
- - `frontend/` - Frontend-specific standards (CSS, components, accessibility, etc.)
70
- - `backend/` - Backend-specific standards (API design, database, queries, etc.)
71
- - `testing/` - Testing standards (test writing, coverage, etc.)
72
- - **INDEX.md Template**: Master template for documentation index
73
-
74
- ## Location Reference
75
-
76
- - **Plugin bundles** (read-only baseline): This skill's `docs/` subdirectory within the plugin
77
- - **Project documentation** (source of truth): `.owflow/docs/` in the project root
78
- - **Project configuration**: `AGENTS.md` in the project root
79
-
80
- ## Capabilities
81
-
82
- ### 1. Initialize Documentation in Project
83
-
84
- Use this when a project doesn't have `.owflow/docs/` or needs documentation for the first time. This is a **one-time baseline setup** that gives the project a starting point.
85
-
86
- **IMPORTANT**: This operation accepts an optional `standards_selection` parameter (array of standard categories) to control which standards to initialize. If not provided, all standards are copied (backward compatible). It also accepts an optional `standards_source_path` parameter to copy standards from an external project instead of the bundled defaults.
87
-
88
- **What to do:**
89
-
90
- 1. Check if `.owflow/docs/` exists in the project root
91
- 2. If it exists, warn the user that initialization will overwrite existing documentation and ask for confirmation
92
- 3. Create the directory structure based on standards_selection:
93
- ```
94
- .owflow/docs/
95
- ├── project/
96
- └── standards/
97
- ├── global/ (if 'global' in standards_selection or no selection provided)
98
- ├── frontend/ (if 'frontend' in standards_selection or no selection provided)
99
- ├── backend/ (if 'backend' in standards_selection or no selection provided)
100
- └── testing/ (if 'testing' in standards_selection or no selection provided)
101
- ```
102
- 4. Copy standards to the project's `.owflow/docs/standards/` directory. **Source selection**: If `standards_source_path` is provided, copy from that external path. Otherwise, copy from this skill's bundled `docs/standards/` directory:
103
- - **Project documentation**: Do NOT copy project templates — only create the `project/` directory. Project documentation files (vision, roadmap, tech-stack, architecture) are generated by the calling skill (e.g., flow-init) using analyzer data, not copied as placeholder templates.
104
- - **Standards**: Only copy selected standard categories based on standards_selection parameter:
105
- - If `standards_selection` is empty or not provided: Copy ALL standards (backward compatible)
106
- - If `standards_selection` is provided: Only copy specified categories
107
- - Examples:
108
- - `['global', 'frontend', 'testing']` → Copy only these three categories
109
- - `['global', 'backend', 'testing']` → Skip frontend standards
110
- - `['global', 'testing']` → Only global and testing standards
111
- 5. Generate INDEX.md with entries for all copied documentation (see "Manage INDEX.md" operation):
112
- - For skipped standard categories, add placeholder sections with "Not initialized - run standards discovery if needed"
113
- - Example: If frontend standards are skipped, INDEX.md shows:
114
-
115
- ```markdown
116
- ### Frontend Standards
117
-
118
- _Not initialized for this project. If you need frontend standards, you can:_
119
-
120
- - _Add them manually using the owflow:docs-manager skill_
121
- - _Run `/owflow:standards-discover --scope=frontend` to auto-discover_
122
- ```
123
-
124
- 6. **MANDATORY - Update AGENTS.md:**
125
- - Check if `AGENTS.md` exists in the project root; if not, ask the user if they want to create it
126
- - Add the documentation reference section (see "Manage AGENTS.md Integration" operation)
127
- - Ensure it emphasizes reading INDEX.md at the beginning of any task
128
- 7. Inform the caller about the documentation structure created
129
-
130
- **Parameters:**
131
-
132
- - `standards_selection` (optional, array of strings): Standard categories to initialize
133
- - Array of category names (e.g., `['global', 'frontend', 'backend', 'testing']`). Baseline categories: global, frontend, backend, testing. Custom categories are also supported.
134
- - If omitted or empty: Initialize all baseline standards (backward compatible)
135
- - If provided: Only initialize specified categories (creates directories for custom ones)
136
- - `standards_source_path` (optional, string): Absolute path to an external standards directory (e.g., `/path/to/other-project/.owflow/docs/standards/`)
137
- - If provided: Copy standards from this path instead of the bundled defaults
138
- - If omitted: Copy from this skill's bundled `docs/standards/` directory (default behavior)
139
-
140
- **Result:** The project now has baseline documentation in `.owflow/docs/`, a comprehensive INDEX.md, and AGENTS.md integration that ensures AI assistance is documentation-aware. Only selected standard categories are initialized.
141
-
142
- **Important:** After this initial setup, the project's documentation becomes the source of truth. Teams should customize it for their specific needs.
143
-
144
- **Note on Skipped Standards**: If standard categories are skipped during initialization, teams can add them later using:
145
-
146
- - "Add Documentation File" operation to add specific standards
147
- - `/owflow:standards-discover` command to auto-discover standards from codebase
148
-
149
- ---
150
-
151
- ### 2. Manage INDEX.md
152
-
153
- Use this to create or update the INDEX.md file that serves as the master documentation map.
154
-
155
- **What to do:**
156
-
157
- 1. Scan the `.owflow/docs/` directory structure
158
- 2. For each documentation file found:
159
- - Read the file content to extract description
160
- - Determine the file's purpose and category
161
- - **For technical standards**: The description MUST enumerate the specific practices/conventions documented in the file, not just a generic category description.
162
- 3. Read `references/index-md-template.md` for the INDEX.md structure template
163
- 4. Generate INDEX.md by populating the template with discovered files and descriptions
164
- 5. Write the generated INDEX.md to `.owflow/docs/INDEX.md`
165
- 6. Verify that AGENTS.md references this index (see "Manage AGENTS.md Integration" operation)
166
-
167
- **Result:** A comprehensive, up-to-date INDEX.md that provides a clear map of all project documentation.
168
-
169
- ---
170
-
171
- ### 3. Add Documentation File
172
-
173
- Use this to add new documentation to the project, either from plugin baseline or custom.
174
-
175
- **What to do:**
176
-
177
- 1. Determine the type of documentation to add:
178
- - Project documentation (vision, roadmap, tech-stack, architecture, custom)
179
- - Technical standard (any category under standards/)
180
- 2. If adding from plugin baseline:
181
- - Check if the requested documentation exists in this skill's bundled `docs/` directory
182
- - Copy it to the appropriate location in `.owflow/docs/`
183
- 3. If creating custom documentation:
184
- - Ask for the category (project/ or standards/category/)
185
- - Ask for the filename and purpose
186
- - Create a template file with appropriate frontmatter and structure
187
- 4. Update INDEX.md to include the new documentation (see "Manage INDEX.md" operation)
188
- 5. If this is a technical standard and corresponds to a Agent Skill, ensure consistency
189
-
190
- **Result:** New documentation is added to the project and indexed in INDEX.md.
191
-
192
- ---
193
-
194
- ### 4. Update Documentation
195
-
196
- Use this to help the user update or modify existing project documentation.
197
-
198
- **What to do:**
199
-
200
- 1. Accept the documentation identifier from the user (e.g., "project/vision", "standards/global/error-handling")
201
- 2. Check if the documentation exists in `.owflow/docs/`
202
- 3. If the documentation exists:
203
- - Read the current documentation
204
- - Ask the user what they want to change or update
205
- - Help them edit the documentation file directly
206
- - Optionally, show them the plugin's baseline version for reference if they ask
207
- 4. If the documentation doesn't exist:
208
- - Offer to add it from the plugin baseline (see "Add Documentation File" operation)
209
- - Or offer to help them create custom documentation from scratch
210
- 5. After updating:
211
- - Check if INDEX.md needs updating (if the purpose/description changed significantly)
212
- - If updating tech-stack.md or architecture.md, suggest reviewing AGENTS.md for consistency
213
- 6. For technical standards:
214
- - If a corresponding Agent Skill exists, suggest reviewing it for consistency
215
- - Standards should align with actual code patterns in the project
216
-
217
- **Result:** Documentation is updated to reflect current project state and team decisions.
218
-
219
- ---
220
-
221
- ### 5. Use Plugin Documentation as Reference
222
-
223
- Use this when a team wants to see the plugin's baseline documentation for reference, or reset specific docs to plugin defaults.
224
-
225
- **What to do:**
226
-
227
- 1. Compare the documentation in this skill's bundled `docs/` directory with the project's `.owflow/docs/` directory to identify differences
228
- 2. Show the user which documents differ and how they differ
229
- 3. Explain that plugin documentation is baseline/reference only, and project documentation is superior
230
- 4. **WARNING**: Copying plugin documentation to the project will overwrite any project-specific customizations
231
- 5. Ask the user if they want to:
232
- - View the differences for reference only (no changes)
233
- - Reset specific documentation to plugin baseline (selective overwrite)
234
- - Reset all documentation to plugin baseline (full overwrite - rarely recommended)
235
- 6. If the user chooses to copy any documentation:
236
- - Copy the selected files from this skill's bundled `docs/` directory to the project's `.owflow/docs/` directory
237
- - Update INDEX.md to reflect any changes
238
- - Review AGENTS.md for any necessary updates
239
-
240
- **Important:** This operation should be used rarely, mainly when a team wants to reset to baseline. Project documentation is the source of truth and should be maintained by the team.
241
-
242
- **Result:** User can reference plugin baseline documentation and optionally reset specific docs to plugin versions.
243
-
244
- ---
245
-
246
- ### 6. List Available Documentation
247
-
248
- Use this to show what documentation is bundled with this plugin and their installation status in the project.
249
-
250
- **What to do:**
251
-
252
- 1. List all documentation in this skill's bundled `docs/` directory, organized by category
253
- 2. For each bundled document:
254
- - Show the category and name
255
- - Check if it exists in the project at `.owflow/docs/[category]/[name].md`
256
- - Show installation status (bundled only, installed, or customized)
257
- - If installed, show whether it differs from the baseline (customized)
258
- 3. Show whether INDEX.md exists and is up-to-date
259
- 4. Show whether AGENTS.md has documentation integration
260
- 5. Remind the user that plugin documentation is baseline/reference only, and project documentation (if installed) is the source of truth
261
-
262
- **Result:** The user sees a complete inventory of available baseline documentation and their installation status in the current project.
263
-
264
- ---
265
-
266
- ### 7. Manage AGENTS.md Integration
267
-
268
- Use this to ensure the project's AGENTS.md properly integrates with the documentation system, encouraging AI to read and use the documentation.
269
-
270
- **What to do:**
271
-
272
- 1. Check if `AGENTS.md` exists in the project root
273
- 2. If it doesn't exist, ask the user if they want to create it
274
- 3. Look for a documentation reference section in AGENTS.md
275
- 4. If the section doesn't exist or is incomplete:
276
- - Read `references/agents-md-template.md` for the template
277
- - Add the template section to AGENTS.md
278
- 5. Ensure the documentation section is placed prominently in AGENTS.md (near the top)
279
- 6. Verify that the INDEX.md path is correct and the file exists
280
- 7. If `.owflow/docs/` doesn't exist, suggest running the initialization operation first
281
-
282
- **Result:** AGENTS.md properly integrates with the documentation system, ensuring AI assistance is documentation-aware and follows team conventions.
283
-
284
- ---
285
-
286
- ### 8. Validate Documentation Consistency
287
-
288
- Use this to check that documentation is consistent, up-to-date, and properly integrated.
289
-
290
- **What to do:**
291
-
292
- 1. **Check structure:**
293
- - Verify `.owflow/docs/` directory exists
294
- - Verify all expected subdirectories exist (project/, standards/global/, etc.)
295
- 2. **Check INDEX.md:**
296
- - Verify it exists and is readable
297
- - Check that all files in `.owflow/docs/` are listed in INDEX.md
298
- - Check that all files listed in INDEX.md actually exist
299
- - Report any orphaned files or broken references
300
- 3. **Check AGENTS.md integration:**
301
- - Verify AGENTS.md exists
302
- - Verify it contains documentation reference section
303
- - Verify it uses valid file reference format: @.owflow/docs/INDEX.md (with @ prefix, without backticks)
304
- - Warn if using incorrect formats like `.owflow/docs/INDEX.md` or `@.owflow/docs/INDEX.md` (backticks)
305
- 4. **Check project documentation:**
306
- - Verify critical files exist (vision.md, tech-stack.md)
307
- - Check if they contain placeholder text vs. actual project information
308
- - Warn if critical documentation is missing or empty
309
- 5. **Check standards consistency:**
310
- - If Agent Skills exist, check if corresponding standards documentation exists
311
- - If standards exist without skills, suggest creating skills (if appropriate)
312
- - Report any inconsistencies
313
- 6. **Generate validation report:**
314
- - Summary of documentation status
315
- - List of issues found
316
- - Recommendations for fixes
317
- 7. **Offer to fix issues:**
318
- - Ask if the user wants to automatically fix found issues
319
- - Fix missing INDEX.md entries
320
- - Fix missing AGENTS.md integration
321
- - Create missing directory structure
322
-
323
- **Result:** A comprehensive validation report with optional automatic fixes for common issues.
324
-
325
- ---
326
-
327
- ## Usage Examples
328
-
329
- **Initialize documentation in a new project:**
330
-
331
- ```
332
- User: "Set up documentation for this project"
333
- Agent: [Executes Initialize Documentation - creates structure, copies baseline docs, generates INDEX.md, updates AGENTS.md, gathers project info]
334
- ```
335
-
336
- **Update project vision:**
337
-
338
- ```
339
- User: "I want to update our project vision to include AI-first approach"
340
- Agent: [Executes Update Documentation - reads current vision.md, helps user edit it, updates INDEX.md if needed]
341
- ```
342
-
343
- **Add custom documentation:**
344
-
345
- ```
346
- User: "Add documentation for our deployment process"
347
- Agent: [Executes Add Documentation File - creates custom project/deployment.md, updates INDEX.md]
348
- ```
349
-
350
- **Reference plugin baseline:**
351
-
352
- ```
353
- User: "Show me the plugin's baseline error handling standard"
354
- Agent: [Executes Use Plugin Documentation as Reference - shows plugin baseline, compares with project version, no changes unless user requests]
355
- ```
356
-
357
- **Validate documentation:**
358
-
359
- ```
360
- User: "Check if our documentation is complete and consistent"
361
- Agent: [Executes Validate Documentation Consistency - checks structure, INDEX.md, AGENTS.md integration, generates report]
362
- ```
363
-
364
- **Manage INDEX.md:**
365
-
366
- ```
367
- User: "Rebuild the documentation index"
368
- Agent: [Executes Manage INDEX.md - scans .owflow/docs/, regenerates comprehensive INDEX.md]
369
- ```
370
-
371
- ---
372
-
373
- ## Important Notes
374
-
375
- - **Project documentation is source of truth** — plugin-bundled docs are baseline/reference only
376
- - **INDEX.md must stay current** — regenerate after any documentation change
377
- - **AGENTS.md integration is mandatory** — ensures AI reads documentation at task start
378
- - **This skill is an internal engine** — called by flow-init, standards-update, and standards-discover. Not directly user-invocable.
379
- - **CRITICAL: Return control after completion** — This is an internal sub-skill. After completing the requested operation, return control to the calling workflow. Do NOT treat completion of this skill as the end of the conversation turn — the parent skill has more steps to execute.
1
+ ---
2
+ name: owflow:docs-manager
3
+ description: Internal engine for managing project documentation and technical standards in .owflow/docs/. Handles file operations, INDEX.md generation, and AGENTS.md integration. Invoked by flow-init, standards-update, and standards-discover skills.
4
+ user-invocable: false
5
+ ---
6
+
7
+ # Documentation Manager (Internal Engine)
8
+
9
+ Internal skill that manages documentation file operations in `.owflow/docs/`. Not directly user-invocable — called by `flow-init`, `standards-update`, and `standards-discover` skills.
10
+
11
+ ## Core Principles
12
+
13
+ - **Project documentation is source of truth** — plugin-bundled docs are baseline/reference only
14
+ - **INDEX.md is the master map** — always kept up-to-date after changes
15
+ - **AGENTS.md integration is mandatory** — ensures AI reads documentation
16
+
17
+ ## Documentation Structure
18
+
19
+ ```
20
+ .owflow/docs/
21
+ ├── INDEX.md # Master index - READ THIS FIRST
22
+ ├── project/ # Project-level documentation (generated by flow-init, not copied from templates)
23
+ │ ├── vision.md # Project vision and goals
24
+ │ ├── roadmap.md # Development roadmap
25
+ │ ├── tech-stack.md # Technology choices and rationale
26
+ │ └── architecture.md # System architecture (optional)
27
+ └── standards/ # Technical standards and conventions
28
+ ├── global/ # Language-agnostic standards
29
+ │ ├── error-handling.md
30
+ │ ├── validation.md
31
+ │ ├── conventions.md
32
+ │ ├── coding-style.md
33
+ │ └── commenting.md
34
+ ├── frontend/ # Frontend-specific standards
35
+ │ ├── css.md
36
+ │ ├── components.md
37
+ │ ├── accessibility.md
38
+ │ └── responsive.md
39
+ ├── backend/ # Backend-specific standards
40
+ │ ├── api.md
41
+ │ ├── models.md
42
+ │ ├── queries.md
43
+ │ └── migrations.md
44
+ └── testing/ # Testing standards
45
+ └── test-writing.md
46
+ ```
47
+
48
+ ## Standard File Conventions
49
+
50
+ Standard files follow the structure `standards/[category]/[topic].md`:
51
+
52
+ - **Category** = domain folder (global, frontend, backend, testing, or custom)
53
+ - **Topic file** = contains multiple related standards
54
+
55
+ **Format**: Each file uses `## Topic` as the file heading, with `### Standard Name` for each individual standard. Each standard has a 1-10 line description (excluding code snippets) and an optional brief code example (under 10 lines).
56
+
57
+ **Conciseness**: Standards are quick-reference conventions, not tutorials. If a file grows unwieldy, split into focused sub-topic files.
58
+
59
+ **Why ### per standard**: Each standard as a discrete section makes it easier for agents to find, update, and reference individually — no need to parse bullet lists.
60
+
61
+ ---
62
+
63
+ ## Bundled Resources
64
+
65
+ This skill bundles the following resources within the plugin:
66
+
67
+ - **Standards Directory**: Contains baseline technical standards organized by category:
68
+ - `global/` - Global standards (error handling, validation, conventions, etc.)
69
+ - `frontend/` - Frontend-specific standards (CSS, components, accessibility, etc.)
70
+ - `backend/` - Backend-specific standards (API design, database, queries, etc.)
71
+ - `testing/` - Testing standards (test writing, coverage, etc.)
72
+ - **INDEX.md Template**: Master template for documentation index
73
+
74
+ ## Location Reference
75
+
76
+ - **Plugin bundles** (read-only baseline): This skill's `docs/` subdirectory within the plugin
77
+ - **Project documentation** (source of truth): `.owflow/docs/` in the project root
78
+ - **Project configuration**: `AGENTS.md` in the project root
79
+
80
+ ## Capabilities
81
+
82
+ ### 1. Initialize Documentation in Project
83
+
84
+ Use this when a project doesn't have `.owflow/docs/` or needs documentation for the first time. This is a **one-time baseline setup** that gives the project a starting point.
85
+
86
+ **IMPORTANT**: This operation accepts an optional `standards_selection` parameter (array of standard categories) to control which standards to initialize. If not provided, all standards are copied (backward compatible). It also accepts an optional `standards_source_path` parameter to copy standards from an external project instead of the bundled defaults.
87
+
88
+ **What to do:**
89
+
90
+ 1. Check if `.owflow/docs/` exists in the project root
91
+ 2. If it exists, warn the user that initialization will overwrite existing documentation and ask for confirmation
92
+ 3. Create the directory structure based on standards_selection:
93
+ ```
94
+ .owflow/docs/
95
+ ├── project/
96
+ └── standards/
97
+ ├── global/ (if 'global' in standards_selection or no selection provided)
98
+ ├── frontend/ (if 'frontend' in standards_selection or no selection provided)
99
+ ├── backend/ (if 'backend' in standards_selection or no selection provided)
100
+ └── testing/ (if 'testing' in standards_selection or no selection provided)
101
+ ```
102
+ 4. Copy standards to the project's `.owflow/docs/standards/` directory. **Source selection**: If `standards_source_path` is provided, copy from that external path. Otherwise, copy from this skill's bundled `docs/standards/` directory:
103
+ - **Project documentation**: Do NOT copy project templates — only create the `project/` directory. Project documentation files (vision, roadmap, tech-stack, architecture) are generated by the calling skill (e.g., flow-init) using analyzer data, not copied as placeholder templates.
104
+ - **Standards**: Only copy selected standard categories based on standards_selection parameter:
105
+ - If `standards_selection` is empty or not provided: Copy ALL standards (backward compatible)
106
+ - If `standards_selection` is provided: Only copy specified categories
107
+ - Examples:
108
+ - `['global', 'frontend', 'testing']` → Copy only these three categories
109
+ - `['global', 'backend', 'testing']` → Skip frontend standards
110
+ - `['global', 'testing']` → Only global and testing standards
111
+ 5. Generate INDEX.md with entries for all copied documentation (see "Manage INDEX.md" operation):
112
+ - For skipped standard categories, add placeholder sections with "Not initialized - run standards discovery if needed"
113
+ - Example: If frontend standards are skipped, INDEX.md shows:
114
+
115
+ ```markdown
116
+ ### Frontend Standards
117
+
118
+ _Not initialized for this project. If you need frontend standards, you can:_
119
+
120
+ - _Add them manually using the owflow:docs-manager skill_
121
+ - _Run `/owflow:standards-discover --scope=frontend` to auto-discover_
122
+ ```
123
+
124
+ 6. **MANDATORY - Update AGENTS.md:**
125
+ - Check if `AGENTS.md` exists in the project root; if not, ask the user if they want to create it
126
+ - Add the documentation reference section (see "Manage AGENTS.md Integration" operation)
127
+ - Ensure it emphasizes reading INDEX.md at the beginning of any task
128
+ 7. Inform the caller about the documentation structure created
129
+
130
+ **Parameters:**
131
+
132
+ - `standards_selection` (optional, array of strings): Standard categories to initialize
133
+ - Array of category names (e.g., `['global', 'frontend', 'backend', 'testing']`). Baseline categories: global, frontend, backend, testing. Custom categories are also supported.
134
+ - If omitted or empty: Initialize all baseline standards (backward compatible)
135
+ - If provided: Only initialize specified categories (creates directories for custom ones)
136
+ - `standards_source_path` (optional, string): Absolute path to an external standards directory (e.g., `/path/to/other-project/.owflow/docs/standards/`)
137
+ - If provided: Copy standards from this path instead of the bundled defaults
138
+ - If omitted: Copy from this skill's bundled `docs/standards/` directory (default behavior)
139
+
140
+ **Result:** The project now has baseline documentation in `.owflow/docs/`, a comprehensive INDEX.md, and AGENTS.md integration that ensures AI assistance is documentation-aware. Only selected standard categories are initialized.
141
+
142
+ **Important:** After this initial setup, the project's documentation becomes the source of truth. Teams should customize it for their specific needs.
143
+
144
+ **Note on Skipped Standards**: If standard categories are skipped during initialization, teams can add them later using:
145
+
146
+ - "Add Documentation File" operation to add specific standards
147
+ - `/owflow:standards-discover` command to auto-discover standards from codebase
148
+
149
+ ---
150
+
151
+ ### 2. Manage INDEX.md
152
+
153
+ Use this to create or update the INDEX.md file that serves as the master documentation map.
154
+
155
+ **What to do:**
156
+
157
+ 1. Scan the `.owflow/docs/` directory structure
158
+ 2. For each documentation file found:
159
+ - Read the file content to extract description
160
+ - Determine the file's purpose and category
161
+ - **For technical standards**: The description MUST enumerate the specific practices/conventions documented in the file, not just a generic category description.
162
+ 3. Read `references/index-md-template.md` for the INDEX.md structure template
163
+ 4. Generate INDEX.md by populating the template with discovered files and descriptions
164
+ 5. Write the generated INDEX.md to `.owflow/docs/INDEX.md`
165
+ 6. Verify that AGENTS.md references this index (see "Manage AGENTS.md Integration" operation)
166
+
167
+ **Result:** A comprehensive, up-to-date INDEX.md that provides a clear map of all project documentation.
168
+
169
+ ---
170
+
171
+ ### 3. Add Documentation File
172
+
173
+ Use this to add new documentation to the project, either from plugin baseline or custom.
174
+
175
+ **What to do:**
176
+
177
+ 1. Determine the type of documentation to add:
178
+ - Project documentation (vision, roadmap, tech-stack, architecture, custom)
179
+ - Technical standard (any category under standards/)
180
+ 2. If adding from plugin baseline:
181
+ - Check if the requested documentation exists in this skill's bundled `docs/` directory
182
+ - Copy it to the appropriate location in `.owflow/docs/`
183
+ 3. If creating custom documentation:
184
+ - Ask for the category (project/ or standards/category/)
185
+ - Ask for the filename and purpose
186
+ - Create a template file with appropriate frontmatter and structure
187
+ 4. Update INDEX.md to include the new documentation (see "Manage INDEX.md" operation)
188
+ 5. If this is a technical standard and corresponds to a Agent Skill, ensure consistency
189
+
190
+ **Result:** New documentation is added to the project and indexed in INDEX.md.
191
+
192
+ ---
193
+
194
+ ### 4. Update Documentation
195
+
196
+ Use this to help the user update or modify existing project documentation.
197
+
198
+ **What to do:**
199
+
200
+ 1. Accept the documentation identifier from the user (e.g., "project/vision", "standards/global/error-handling")
201
+ 2. Check if the documentation exists in `.owflow/docs/`
202
+ 3. If the documentation exists:
203
+ - Read the current documentation
204
+ - Ask the user what they want to change or update
205
+ - Help them edit the documentation file directly
206
+ - Optionally, show them the plugin's baseline version for reference if they ask
207
+ 4. If the documentation doesn't exist:
208
+ - Offer to add it from the plugin baseline (see "Add Documentation File" operation)
209
+ - Or offer to help them create custom documentation from scratch
210
+ 5. After updating:
211
+ - Check if INDEX.md needs updating (if the purpose/description changed significantly)
212
+ - If updating tech-stack.md or architecture.md, suggest reviewing AGENTS.md for consistency
213
+ 6. For technical standards:
214
+ - If a corresponding Agent Skill exists, suggest reviewing it for consistency
215
+ - Standards should align with actual code patterns in the project
216
+
217
+ **Result:** Documentation is updated to reflect current project state and team decisions.
218
+
219
+ ---
220
+
221
+ ### 5. Use Plugin Documentation as Reference
222
+
223
+ Use this when a team wants to see the plugin's baseline documentation for reference, or reset specific docs to plugin defaults.
224
+
225
+ **What to do:**
226
+
227
+ 1. Compare the documentation in this skill's bundled `docs/` directory with the project's `.owflow/docs/` directory to identify differences
228
+ 2. Show the user which documents differ and how they differ
229
+ 3. Explain that plugin documentation is baseline/reference only, and project documentation is superior
230
+ 4. **WARNING**: Copying plugin documentation to the project will overwrite any project-specific customizations
231
+ 5. Ask the user if they want to:
232
+ - View the differences for reference only (no changes)
233
+ - Reset specific documentation to plugin baseline (selective overwrite)
234
+ - Reset all documentation to plugin baseline (full overwrite - rarely recommended)
235
+ 6. If the user chooses to copy any documentation:
236
+ - Copy the selected files from this skill's bundled `docs/` directory to the project's `.owflow/docs/` directory
237
+ - Update INDEX.md to reflect any changes
238
+ - Review AGENTS.md for any necessary updates
239
+
240
+ **Important:** This operation should be used rarely, mainly when a team wants to reset to baseline. Project documentation is the source of truth and should be maintained by the team.
241
+
242
+ **Result:** User can reference plugin baseline documentation and optionally reset specific docs to plugin versions.
243
+
244
+ ---
245
+
246
+ ### 6. List Available Documentation
247
+
248
+ Use this to show what documentation is bundled with this plugin and their installation status in the project.
249
+
250
+ **What to do:**
251
+
252
+ 1. List all documentation in this skill's bundled `docs/` directory, organized by category
253
+ 2. For each bundled document:
254
+ - Show the category and name
255
+ - Check if it exists in the project at `.owflow/docs/[category]/[name].md`
256
+ - Show installation status (bundled only, installed, or customized)
257
+ - If installed, show whether it differs from the baseline (customized)
258
+ 3. Show whether INDEX.md exists and is up-to-date
259
+ 4. Show whether AGENTS.md has documentation integration
260
+ 5. Remind the user that plugin documentation is baseline/reference only, and project documentation (if installed) is the source of truth
261
+
262
+ **Result:** The user sees a complete inventory of available baseline documentation and their installation status in the current project.
263
+
264
+ ---
265
+
266
+ ### 7. Manage AGENTS.md Integration
267
+
268
+ Use this to ensure the project's AGENTS.md properly integrates with the documentation system, encouraging AI to read and use the documentation.
269
+
270
+ **What to do:**
271
+
272
+ 1. Check if `AGENTS.md` exists in the project root
273
+ 2. If it doesn't exist, ask the user if they want to create it
274
+ 3. Look for a documentation reference section in AGENTS.md
275
+ 4. If the section doesn't exist or is incomplete:
276
+ - Read `references/agents-md-template.md` for the template
277
+ - Add the template section to AGENTS.md
278
+ 5. Ensure the documentation section is placed prominently in AGENTS.md (near the top)
279
+ 6. Verify that the INDEX.md path is correct and the file exists
280
+ 7. If `.owflow/docs/` doesn't exist, suggest running the initialization operation first
281
+
282
+ **Result:** AGENTS.md properly integrates with the documentation system, ensuring AI assistance is documentation-aware and follows team conventions.
283
+
284
+ ---
285
+
286
+ ### 8. Validate Documentation Consistency
287
+
288
+ Use this to check that documentation is consistent, up-to-date, and properly integrated.
289
+
290
+ **What to do:**
291
+
292
+ 1. **Check structure:**
293
+ - Verify `.owflow/docs/` directory exists
294
+ - Verify all expected subdirectories exist (project/, standards/global/, etc.)
295
+ 2. **Check INDEX.md:**
296
+ - Verify it exists and is readable
297
+ - Check that all files in `.owflow/docs/` are listed in INDEX.md
298
+ - Check that all files listed in INDEX.md actually exist
299
+ - Report any orphaned files or broken references
300
+ 3. **Check AGENTS.md integration:**
301
+ - Verify AGENTS.md exists
302
+ - Verify it contains documentation reference section
303
+ - Verify it uses valid file reference format: @.owflow/docs/INDEX.md (with @ prefix, without backticks)
304
+ - Warn if using incorrect formats like `.owflow/docs/INDEX.md` or `@.owflow/docs/INDEX.md` (backticks)
305
+ 4. **Check project documentation:**
306
+ - Verify critical files exist (vision.md, tech-stack.md)
307
+ - Check if they contain placeholder text vs. actual project information
308
+ - Warn if critical documentation is missing or empty
309
+ 5. **Check standards consistency:**
310
+ - If Agent Skills exist, check if corresponding standards documentation exists
311
+ - If standards exist without skills, suggest creating skills (if appropriate)
312
+ - Report any inconsistencies
313
+ 6. **Generate validation report:**
314
+ - Summary of documentation status
315
+ - List of issues found
316
+ - Recommendations for fixes
317
+ 7. **Offer to fix issues:**
318
+ - Ask if the user wants to automatically fix found issues
319
+ - Fix missing INDEX.md entries
320
+ - Fix missing AGENTS.md integration
321
+ - Create missing directory structure
322
+
323
+ **Result:** A comprehensive validation report with optional automatic fixes for common issues.
324
+
325
+ ---
326
+
327
+ ## Usage Examples
328
+
329
+ **Initialize documentation in a new project:**
330
+
331
+ ```
332
+ User: "Set up documentation for this project"
333
+ Agent: [Executes Initialize Documentation - creates structure, copies baseline docs, generates INDEX.md, updates AGENTS.md, gathers project info]
334
+ ```
335
+
336
+ **Update project vision:**
337
+
338
+ ```
339
+ User: "I want to update our project vision to include AI-first approach"
340
+ Agent: [Executes Update Documentation - reads current vision.md, helps user edit it, updates INDEX.md if needed]
341
+ ```
342
+
343
+ **Add custom documentation:**
344
+
345
+ ```
346
+ User: "Add documentation for our deployment process"
347
+ Agent: [Executes Add Documentation File - creates custom project/deployment.md, updates INDEX.md]
348
+ ```
349
+
350
+ **Reference plugin baseline:**
351
+
352
+ ```
353
+ User: "Show me the plugin's baseline error handling standard"
354
+ Agent: [Executes Use Plugin Documentation as Reference - shows plugin baseline, compares with project version, no changes unless user requests]
355
+ ```
356
+
357
+ **Validate documentation:**
358
+
359
+ ```
360
+ User: "Check if our documentation is complete and consistent"
361
+ Agent: [Executes Validate Documentation Consistency - checks structure, INDEX.md, AGENTS.md integration, generates report]
362
+ ```
363
+
364
+ **Manage INDEX.md:**
365
+
366
+ ```
367
+ User: "Rebuild the documentation index"
368
+ Agent: [Executes Manage INDEX.md - scans .owflow/docs/, regenerates comprehensive INDEX.md]
369
+ ```
370
+
371
+ ---
372
+
373
+ ## Important Notes
374
+
375
+ - **Project documentation is source of truth** — plugin-bundled docs are baseline/reference only
376
+ - **INDEX.md must stay current** — regenerate after any documentation change
377
+ - **AGENTS.md integration is mandatory** — ensures AI reads documentation at task start
378
+ - **This skill is an internal engine** — called by flow-init, standards-update, and standards-discover. Not directly user-invocable.
379
+ - **CRITICAL: Return control after completion** — This is an internal sub-skill. After completing the requested operation, return control to the calling workflow. Do NOT treat completion of this skill as the end of the conversation turn — the parent skill has more steps to execute.