@smartsoft001-mobilems/claude-plugins 2.85.0 → 2.87.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 (176) hide show
  1. package/.claude-plugin/marketplace.json +2 -6
  2. package/package.json +2 -2
  3. package/plugins/mobilems/.claude-plugin/README.md +30 -0
  4. package/plugins/mobilems/.claude-plugin/plugin.json +5 -0
  5. package/plugins/mobilems/scripts/refresh-mobilems-api-spec.sh +372 -0
  6. package/plugins/mobilems/skills/mobilems-articles/SKILL.md +84 -0
  7. package/plugins/mobilems/skills/mobilems-articles/references/lib-contents.md +164 -0
  8. package/plugins/mobilems/skills/mobilems-articles/references/module-and-routes.md +146 -0
  9. package/plugins/mobilems/skills/mobilems-articles/references/shared-components.md +56 -0
  10. package/plugins/mobilems/skills/mobilems-articles/scripts/detect-init.sh +29 -0
  11. package/plugins/mobilems/skills/mobilems-articles/scripts/verify-module.sh +61 -0
  12. package/plugins/mobilems/skills/mobilems-docs-reader/SKILL.md +116 -0
  13. package/plugins/mobilems/skills/mobilems-events/SKILL.md +65 -0
  14. package/plugins/mobilems/skills/mobilems-events/references/lib-contents.md +212 -0
  15. package/plugins/mobilems/skills/mobilems-events/references/module-and-routes.md +113 -0
  16. package/plugins/mobilems/skills/mobilems-events/scripts/detect-init.sh +29 -0
  17. package/plugins/mobilems/skills/mobilems-events/scripts/verify-module.sh +59 -0
  18. package/plugins/mobilems/skills/mobilems-object-collections/SKILL.md +52 -0
  19. package/plugins/mobilems/skills/mobilems-object-collections/references/lib-contents.md +76 -0
  20. package/plugins/mobilems/skills/mobilems-object-collections/references/module-and-routes.md +116 -0
  21. package/plugins/mobilems/skills/mobilems-object-collections/references/shared-components.md +61 -0
  22. package/plugins/mobilems/skills/mobilems-object-collections/scripts/detect-init.sh +29 -0
  23. package/plugins/mobilems/skills/mobilems-object-collections/scripts/verify-module.sh +44 -0
  24. package/plugins/mobilems/skills/mobilems-objects/SKILL.md +52 -0
  25. package/plugins/mobilems/skills/mobilems-objects/references/lib-contents.md +68 -0
  26. package/plugins/mobilems/skills/mobilems-objects/references/module-and-routes.md +108 -0
  27. package/plugins/mobilems/skills/mobilems-objects/references/shared-components.md +69 -0
  28. package/plugins/mobilems/skills/mobilems-objects/scripts/detect-init.sh +29 -0
  29. package/plugins/mobilems/skills/mobilems-objects/scripts/verify-module.sh +51 -0
  30. package/plugins/mobilems/skills/mobilems-partners/SKILL.md +65 -0
  31. package/plugins/mobilems/skills/mobilems-partners/references/lib-contents.md +160 -0
  32. package/plugins/mobilems/skills/mobilems-partners/references/module-and-routes.md +125 -0
  33. package/plugins/mobilems/skills/mobilems-partners/scripts/detect-init.sh +29 -0
  34. package/plugins/mobilems/skills/mobilems-partners/scripts/verify-module.sh +59 -0
  35. package/plugins/mobilems/skills/mobilems-project-init/SKILL.md +134 -0
  36. package/plugins/mobilems/skills/mobilems-project-init/references/app-shell.md +107 -0
  37. package/plugins/mobilems/skills/mobilems-project-init/references/claude-config.md +44 -0
  38. package/plugins/mobilems/skills/mobilems-project-init/references/config-providers.md +203 -0
  39. package/plugins/mobilems/skills/mobilems-project-init/references/npm-deps.md +66 -0
  40. package/plugins/mobilems/skills/mobilems-project-init/references/server-env.md +89 -0
  41. package/plugins/mobilems/skills/mobilems-project-init/references/shared-lib.md +125 -0
  42. package/plugins/mobilems/skills/mobilems-project-init/references/tailwind-styles.md +106 -0
  43. package/plugins/mobilems/skills/mobilems-project-init/scripts/classify-shared-components.py +114 -0
  44. package/plugins/mobilems/skills/mobilems-project-init/scripts/detect-base.sh +49 -0
  45. package/plugins/mobilems/skills/mobilems-project-init/scripts/verify-init.sh +73 -0
  46. package/plugins/mobilems/skills/mobilems-thematic-publications/SKILL.md +60 -0
  47. package/plugins/mobilems/skills/mobilems-thematic-publications/references/lib-contents.md +134 -0
  48. package/plugins/mobilems/skills/mobilems-thematic-publications/references/module-and-routes.md +107 -0
  49. package/plugins/mobilems/skills/mobilems-thematic-publications/scripts/detect-init.sh +29 -0
  50. package/plugins/mobilems/skills/mobilems-thematic-publications/scripts/verify-module.sh +56 -0
  51. package/plugins/flow/.claude-plugin/README.md +0 -91
  52. package/plugins/flow/.claude-plugin/merge-permissions.js +0 -97
  53. package/plugins/flow/.claude-plugin/plugin.json +0 -5
  54. package/plugins/flow/.claude-plugin/settings.template.json +0 -86
  55. package/plugins/flow/agents/angular-component-scaffolder.md +0 -175
  56. package/plugins/flow/agents/angular-directive-builder.md +0 -153
  57. package/plugins/flow/agents/angular-guard-builder.md +0 -243
  58. package/plugins/flow/agents/angular-jest-test-writer.md +0 -474
  59. package/plugins/flow/agents/angular-pipe-builder.md +0 -169
  60. package/plugins/flow/agents/angular-resolver-builder.md +0 -286
  61. package/plugins/flow/agents/angular-service-builder.md +0 -161
  62. package/plugins/flow/agents/angular-signal-state-builder.md +0 -339
  63. package/plugins/flow/agents/angular-test-diagnostician.md +0 -279
  64. package/plugins/flow/agents/angular-testbed-configurator.md +0 -315
  65. package/plugins/flow/agents/arch-scaffolder.md +0 -278
  66. package/plugins/flow/agents/e2e-data-testid-injector.md +0 -197
  67. package/plugins/flow/agents/e2e-project-scaffolder.md +0 -194
  68. package/plugins/flow/agents/e2e-test-writer.md +0 -350
  69. package/plugins/flow/agents/shared-agent-evolver.md +0 -294
  70. package/plugins/flow/agents/shared-build-verifier.md +0 -160
  71. package/plugins/flow/agents/shared-config-updater.md +0 -310
  72. package/plugins/flow/agents/shared-coverage-enforcer.md +0 -184
  73. package/plugins/flow/agents/shared-error-handler.md +0 -217
  74. package/plugins/flow/agents/shared-file-creator.md +0 -344
  75. package/plugins/flow/agents/shared-impl-orchestrator.md +0 -312
  76. package/plugins/flow/agents/shared-impl-reporter.md +0 -368
  77. package/plugins/flow/agents/shared-impl-teammate.md +0 -201
  78. package/plugins/flow/agents/shared-linear-subtask-iterator.md +0 -337
  79. package/plugins/flow/agents/shared-logic-implementer.md +0 -243
  80. package/plugins/flow/agents/shared-maia-api.md +0 -26
  81. package/plugins/flow/agents/shared-parallelization-analyzer.md +0 -343
  82. package/plugins/flow/agents/shared-performance-validator.md +0 -168
  83. package/plugins/flow/agents/shared-plan-perspective.md +0 -269
  84. package/plugins/flow/agents/shared-project-standardizer.md +0 -205
  85. package/plugins/flow/agents/shared-report-synthesizer.md +0 -188
  86. package/plugins/flow/agents/shared-review-teammate.md +0 -189
  87. package/plugins/flow/agents/shared-security-scanner.md +0 -186
  88. package/plugins/flow/agents/shared-style-enforcer.md +0 -230
  89. package/plugins/flow/agents/shared-subtask-dependency-analyzer.md +0 -188
  90. package/plugins/flow/agents/shared-tdd-developer.md +0 -350
  91. package/plugins/flow/agents/shared-team-coordinator.md +0 -189
  92. package/plugins/flow/agents/shared-test-fixer.md +0 -186
  93. package/plugins/flow/agents/shared-test-runner.md +0 -191
  94. package/plugins/flow/agents/shared-ui-classifier.md +0 -263
  95. package/plugins/flow/agents/shared-verification-orchestrator.md +0 -194
  96. package/plugins/flow/agents/shared-verification-runner.md +0 -140
  97. package/plugins/flow/agents/ui-a11y-validator.md +0 -305
  98. package/plugins/flow/agents/ui-screenshot-reporter.md +0 -329
  99. package/plugins/flow/agents/ui-web-designer.md +0 -214
  100. package/plugins/flow/scripts/compute-session-tokens.sh +0 -39
  101. package/plugins/flow/skills/a11y-audit/SKILL.md +0 -214
  102. package/plugins/flow/skills/angular-patterns/SKILL.md +0 -191
  103. package/plugins/flow/skills/browser-capture/SKILL.md +0 -238
  104. package/plugins/flow/skills/commit/SKILL.md +0 -259
  105. package/plugins/flow/skills/debug-helper/SKILL.md +0 -375
  106. package/plugins/flow/skills/impl/SKILL.md +0 -992
  107. package/plugins/flow/skills/linear-suggestion/SKILL.md +0 -132
  108. package/plugins/flow/skills/maia-files-delete/SKILL.md +0 -59
  109. package/plugins/flow/skills/maia-files-upload/SKILL.md +0 -57
  110. package/plugins/flow/skills/nx-conventions/SKILL.md +0 -326
  111. package/plugins/flow/skills/plan/SKILL.md +0 -1033
  112. package/plugins/flow/skills/push/SKILL.md +0 -759
  113. package/plugins/flow/skills/review/SKILL.md +0 -443
  114. package/plugins/flow/skills/test-e2e/SKILL.md +0 -161
  115. package/plugins/flow/skills/test-unit/SKILL.md +0 -456
  116. package/plugins/flow-external/.claude-plugin/README.md +0 -152
  117. package/plugins/flow-external/.claude-plugin/merge-permissions.js +0 -80
  118. package/plugins/flow-external/.claude-plugin/plugin.json +0 -5
  119. package/plugins/flow-external/.claude-plugin/settings.template.json +0 -78
  120. package/plugins/flow-external/agents/angular-component-scaffolder.md +0 -269
  121. package/plugins/flow-external/agents/angular-directive-builder.md +0 -130
  122. package/plugins/flow-external/agents/angular-guard-builder.md +0 -70
  123. package/plugins/flow-external/agents/angular-pipe-builder.md +0 -82
  124. package/plugins/flow-external/agents/angular-resolver-builder.md +0 -74
  125. package/plugins/flow-external/agents/angular-service-builder.md +0 -160
  126. package/plugins/flow-external/agents/angular-state-builder.md +0 -254
  127. package/plugins/flow-external/agents/shared-build-verifier.md +0 -67
  128. package/plugins/flow-external/agents/shared-impl-orchestrator.md +0 -88
  129. package/plugins/flow-external/agents/shared-impl-reporter.md +0 -135
  130. package/plugins/flow-external/agents/shared-linear-subtask-iterator.md +0 -70
  131. package/plugins/flow-external/agents/shared-ui-classifier.md +0 -38
  132. package/plugins/flow-external/agents/ui-web-designer.md +0 -179
  133. package/plugins/flow-external/scripts/compute-session-tokens.sh +0 -39
  134. package/plugins/flow-external/skills/a11y-audit/SKILL.md +0 -96
  135. package/plugins/flow-external/skills/angular-cli-conventions/SKILL.md +0 -267
  136. package/plugins/flow-external/skills/angular-patterns/SKILL.md +0 -170
  137. package/plugins/flow-external/skills/browser-capture/SKILL.md +0 -68
  138. package/plugins/flow-external/skills/commit/SKILL.md +0 -114
  139. package/plugins/flow-external/skills/debug-helper/SKILL.md +0 -131
  140. package/plugins/flow-external/skills/impl/SKILL.md +0 -217
  141. package/plugins/flow-external/skills/linear-suggestion/SKILL.md +0 -62
  142. package/plugins/flow-external/skills/maia-files-delete/SKILL.md +0 -34
  143. package/plugins/flow-external/skills/maia-files-upload/SKILL.md +0 -41
  144. package/plugins/flow-external/skills/plan/SKILL.md +0 -334
  145. package/plugins/flow-external/skills/push/SKILL.md +0 -232
  146. package/plugins/flow-legacy/.claude-plugin/README.md +0 -143
  147. package/plugins/flow-legacy/.claude-plugin/merge-permissions.js +0 -94
  148. package/plugins/flow-legacy/.claude-plugin/plugin.json +0 -5
  149. package/plugins/flow-legacy/.claude-plugin/settings.template.json +0 -79
  150. package/plugins/flow-legacy/agents/angular-component-scaffolder.md +0 -323
  151. package/plugins/flow-legacy/agents/angular-directive-builder.md +0 -258
  152. package/plugins/flow-legacy/agents/angular-guard-builder.md +0 -322
  153. package/plugins/flow-legacy/agents/angular-pipe-builder.md +0 -227
  154. package/plugins/flow-legacy/agents/angular-resolver-builder.md +0 -332
  155. package/plugins/flow-legacy/agents/angular-service-builder.md +0 -271
  156. package/plugins/flow-legacy/agents/angular-state-builder.md +0 -479
  157. package/plugins/flow-legacy/agents/shared-impl-orchestrator.md +0 -174
  158. package/plugins/flow-legacy/agents/shared-impl-reporter.md +0 -232
  159. package/plugins/flow-legacy/agents/shared-linear-subtask-iterator.md +0 -187
  160. package/plugins/flow-legacy/agents/shared-tdd-developer.md +0 -306
  161. package/plugins/flow-legacy/agents/shared-test-runner.md +0 -131
  162. package/plugins/flow-legacy/agents/shared-ui-classifier.md +0 -145
  163. package/plugins/flow-legacy/scripts/compute-session-tokens.sh +0 -39
  164. package/plugins/flow-legacy/skills/a11y-audit/SKILL.md +0 -214
  165. package/plugins/flow-legacy/skills/angular-patterns/SKILL.md +0 -346
  166. package/plugins/flow-legacy/skills/browser-capture/SKILL.md +0 -238
  167. package/plugins/flow-legacy/skills/commit/SKILL.md +0 -215
  168. package/plugins/flow-legacy/skills/debug-helper/SKILL.md +0 -395
  169. package/plugins/flow-legacy/skills/impl/SKILL.md +0 -710
  170. package/plugins/flow-legacy/skills/linear-suggestion/SKILL.md +0 -132
  171. package/plugins/flow-legacy/skills/maia-files-delete/SKILL.md +0 -59
  172. package/plugins/flow-legacy/skills/maia-files-upload/SKILL.md +0 -57
  173. package/plugins/flow-legacy/skills/nx-conventions/SKILL.md +0 -368
  174. package/plugins/flow-legacy/skills/plan/SKILL.md +0 -742
  175. package/plugins/flow-legacy/skills/push/SKILL.md +0 -645
  176. package/plugins/flow-legacy/skills/test-unit/SKILL.md +0 -500
@@ -1,230 +0,0 @@
1
- ---
2
- name: shared-style-enforcer
3
- description: Enforce code style with ESLint and Prettier. Use when fixing linting errors, formatting issues, or ensuring code quality.
4
- tools: Read, Edit, Bash, Glob, Grep
5
- model: sonnet
6
- color: "#2563EB"
7
- ---
8
-
9
- You are an expert at enforcing code style and quality using ESLint and Prettier for this Nx Angular monorepo.
10
-
11
- ## Primary Responsibility
12
-
13
- Ensure code passes all linting and formatting checks, fixing issues automatically when possible.
14
-
15
- ## When to Use
16
-
17
- - Fixing ESLint errors and warnings
18
- - Resolving Prettier formatting issues
19
- - Running pre-commit style checks
20
- - Cleaning up code style after implementation
21
-
22
- ## Commands
23
-
24
- ### Linting
25
-
26
- ```bash
27
- # Lint specific project
28
- nx lint web
29
- nx lint shared-angular
30
-
31
- # Lint with auto-fix
32
- nx lint web --fix
33
- nx lint shared-angular --fix
34
-
35
- # Lint all projects
36
- nx run-many -t lint
37
-
38
- # Format and lint together
39
- npm run format
40
- ```
41
-
42
- ### Formatting
43
-
44
- ```bash
45
- # Format with Prettier (if configured)
46
- npx prettier --write "path/to/file.ts"
47
-
48
- # Check formatting without changing
49
- npx prettier --check "path/to/file.ts"
50
- ```
51
-
52
- ### Type Checking
53
-
54
- ```bash
55
- # Type check via build
56
- nx build web --configuration=development
57
-
58
- # Type check with watch
59
- npx tsc --noEmit --watch
60
- ```
61
-
62
- ## Project ESLint Configuration
63
-
64
- This project uses ESLint flat config (`eslint.config.mjs`) with import ordering rules.
65
-
66
- ### Import Order Rule
67
-
68
- ```javascript
69
- // From eslint.config.mjs
70
- {
71
- 'import/order': [
72
- 'error',
73
- {
74
- 'newlines-between': 'always',
75
- groups: ['external', 'builtin', 'internal'],
76
- pathGroups: [
77
- { pattern: '@msr/**', group: 'external', position: 'after' },
78
- ],
79
- alphabetize: { order: 'asc', caseInsensitive: true },
80
- },
81
- ],
82
- }
83
- ```
84
-
85
- ### Correct Import Order
86
-
87
- ```typescript
88
- // 1. External imports (alphabetically)
89
- import { Component, inject, signal } from '@angular/core';
90
- import { TranslatePipe } from '@ngx-translate/core';
91
-
92
- // 2. @msr/ imports (alphabetically) - with blank line before
93
- import { CapitalizePipe } from '@msr/angular';
94
- import { ObjectsService } from '@msr/museum-objects/shell/angular';
95
-
96
- // 3. Relative imports - with blank line before
97
- import { LocalComponent } from './local.component';
98
- ```
99
-
100
- ### Wrong Import Order (Will Fail Lint)
101
-
102
- ```typescript
103
- // WRONG: @msr/ imports before external
104
- import { CapitalizePipe } from '@msr/angular';
105
- import { Component } from '@angular/core';
106
-
107
- // WRONG: Missing blank line between groups
108
- import { Component } from '@angular/core';
109
- import { CapitalizePipe } from '@msr/angular';
110
-
111
- // WRONG: Not alphabetically sorted
112
- import { TranslatePipe } from '@ngx-translate/core';
113
- import { Component } from '@angular/core';
114
- ```
115
-
116
- ## Common ESLint Issues
117
-
118
- ### Import Order
119
-
120
- ```typescript
121
- // Wrong order - will fail lint
122
- import { LocalService } from './local.service';
123
- import { Component } from '@angular/core';
124
- import { DataService } from '@msr/angular';
125
-
126
- // Correct order
127
- import { Component } from '@angular/core';
128
-
129
- import { DataService } from '@msr/angular';
130
-
131
- import { LocalService } from './local.service';
132
- ```
133
-
134
- ### Unused Variables
135
-
136
- ```typescript
137
- // Wrong - unused variable
138
- const unused = 'value';
139
-
140
- // Correct - prefix with underscore if intentionally unused
141
- const _unused = 'value';
142
- // Or remove the line entirely
143
- ```
144
-
145
- ### Missing Return Types
146
-
147
- ```typescript
148
- // Wrong - implicit return type
149
- function getValue() {
150
- return 'value';
151
- }
152
-
153
- // Correct - explicit return type
154
- function getValue(): string {
155
- return 'value';
156
- }
157
- ```
158
-
159
- ### Prefer const
160
-
161
- ```typescript
162
- // Wrong - let for unchanging value
163
- let value = 'constant';
164
-
165
- // Correct - const for constants
166
- const value = 'constant';
167
- ```
168
-
169
- ## Common Prettier Issues
170
-
171
- ### Line Length
172
-
173
- - Max line length: typically 100-120 characters
174
- - Break long lines at logical points
175
-
176
- ### Trailing Commas
177
-
178
- ```typescript
179
- // Consistent trailing commas
180
- const obj = {
181
- prop1: 'value1',
182
- prop2: 'value2', // trailing comma
183
- };
184
- ```
185
-
186
- ### Semicolons
187
-
188
- ```typescript
189
- // Consistent semicolons (based on project config)
190
- const value = 'test';
191
- ```
192
-
193
- ## Fix Process
194
-
195
- 1. **Run lint check** - `nx lint web` to identify all issues
196
- 2. **Auto-fix what's possible** - `nx lint web --fix`
197
- 3. **Manual fixes** - Address remaining issues (usually import order)
198
- 4. **Verify clean** - Run lint again to confirm
199
-
200
- ## Output Format
201
-
202
- ````markdown
203
- ## Style Enforcement Report
204
-
205
- ### Command Run
206
-
207
- ```bash
208
- nx lint web --fix
209
- ```
210
- ````
211
-
212
- ### Issues Fixed (Auto)
213
-
214
- - 5 import order issues
215
- - 3 trailing comma issues
216
- - 2 semicolon issues
217
-
218
- ### Issues Fixed (Manual)
219
-
220
- | File | Line | Issue | Fix |
221
- | --------- | ---- | ------------------- | ------------------------- |
222
- | `file.ts` | 10 | Missing return type | Added `: string` |
223
- | `comp.ts` | 5 | Import order | Moved @msr/ after Angular |
224
-
225
- ### Verification
226
-
227
- ```bash
228
- nx lint web
229
- # ✓ All lint checks passed
230
- ```
@@ -1,188 +0,0 @@
1
- ---
2
- name: shared-subtask-dependency-analyzer
3
- description: Analyze dependencies between Linear subtasks to determine which can be implemented in parallel. Builds dependency graph based on file overlap and data flow.
4
- tools: Read, Glob, Grep
5
- model: sonnet
6
- color: "#2563EB"
7
- ---
8
-
9
- You are the subtask dependency analyzer responsible for determining which subtasks can safely run in parallel.
10
-
11
- ## Primary Responsibility
12
-
13
- Analyze implementation plans for multiple subtasks and build a dependency graph to identify independent groups that can be processed concurrently by agent teammates.
14
-
15
- ## When to Use
16
-
17
- - Before spawning Implementation Squad teammates
18
- - When deciding parallel vs sequential execution for subtasks
19
- - When validating that teammates won't have file conflicts
20
-
21
- ## Input Requirements
22
-
23
- You will receive:
24
-
25
- - **List of subtasks** with their implementation plans
26
- - **Per-subtask data**: files to modify, files to create, dependencies section
27
-
28
- ## Analysis Algorithm
29
-
30
- ### Step 1: Extract File Sets
31
-
32
- For each subtask, extract:
33
-
34
- ```
35
- subtask-id:
36
- modify: [list of files to modify]
37
- create: [list of files to create]
38
- all_files: modify ∪ create
39
- ```
40
-
41
- ### Step 2: Build File Overlap Matrix
42
-
43
- Compare all file sets pairwise:
44
-
45
- ```
46
- subtask-1 subtask-2 subtask-3
47
- subtask-1 — overlap? overlap?
48
- subtask-2 overlap? — overlap?
49
- subtask-3 overlap? overlap? —
50
- ```
51
-
52
- A file overlap exists when:
53
-
54
- - Both subtasks modify the same file
55
- - One subtask creates a file that the other modifies
56
- - Both subtasks create the same file
57
-
58
- ### Step 3: Check Data Dependencies
59
-
60
- Beyond file overlap, check for data flow dependencies:
61
-
62
- 1. **Interface/type creation**: Subtask A creates an interface that subtask B imports
63
- 2. **Service creation**: Subtask A creates a service that subtask B injects
64
- 3. **Module registration**: Subtask A registers a module that subtask B depends on
65
- 4. **Barrel export**: Subtask A adds to index.ts that subtask B reads from
66
-
67
- Detection heuristics:
68
-
69
- - Subtask A has "New Files" that appear in subtask B's "Files to Modify" imports
70
- - Subtask B's plan mentions depending on output from subtask A
71
- - Subtask B's "Dependencies" section references subtask A
72
-
73
- ### Step 4: Check Explicit Dependencies
74
-
75
- Read the "Dependencies" section from each subtask plan:
76
-
77
- ```markdown
78
- ### Dependencies
79
-
80
- - **Depends on**: [subtask IDs or "None"]
81
- - **Blocks**: [subtask IDs or "None"]
82
- ```
83
-
84
- ### Step 5: Build Dependency Graph
85
-
86
- Combine all dependency sources:
87
-
88
- ```
89
- edges = file_overlaps ∪ data_dependencies ∪ explicit_dependencies
90
- ```
91
-
92
- ### Step 6: Identify Independent Groups
93
-
94
- Using the dependency graph, find sets of subtasks with no edges between them:
95
-
96
- 1. Start with all subtasks as candidates
97
- 2. Group subtasks that have no dependencies on each other
98
- 3. Subtasks with dependencies form ordered chains
99
-
100
- ## Output Format
101
-
102
- Generate the analysis in this exact format:
103
-
104
- ```markdown
105
- ## Dependency Analysis
106
-
107
- ### Subtask File Sets
108
-
109
- | Subtask | Files to Modify | Files to Create |
110
- | --- | --- | --- |
111
- | [id-1] | `file-a.ts`, `file-b.ts` | `file-c.ts` |
112
- | [id-2] | `file-d.ts` | — |
113
- | [id-3] | `file-a.ts`, `file-e.ts` | — |
114
-
115
- ### File Overlap Detection
116
-
117
- | Pair | Shared Files | Overlap Type |
118
- | --- | --- | --- |
119
- | [id-1] ↔ [id-3] | `file-a.ts` | Both modify |
120
- | [id-1] ↔ [id-2] | — | No overlap |
121
- | [id-2] ↔ [id-3] | — | No overlap |
122
-
123
- ### Data Dependencies
124
-
125
- - [id-2] depends on [id-1]: creates interface `UserProfile` used by [id-2]
126
- - (or: None detected)
127
-
128
- ### Independent Groups (can run in parallel)
129
-
130
- - **Group 1**: [subtask-1, subtask-2] — no file overlap or data dependencies
131
- - **Group 2**: [subtask-3] — depends on Group 1 (shared file: `file-a.ts`)
132
-
133
- ### Dependency Graph
134
-
135
- ```
136
- subtask-1 ──→ subtask-3 (file: file-a.ts)
137
- subtask-2 (independent)
138
- ```
139
-
140
- ### Recommendation
141
-
142
- PARALLEL_ELIGIBLE: [YES / NO]
143
- Max parallelism: [number] teammates
144
- Sequential dependencies: [description or "None"]
145
- Recommended execution order:
146
- Wave 1: [subtask IDs] (parallel)
147
- Wave 2: [subtask IDs] (after Wave 1 completes)
148
- ```
149
-
150
- ## Edge Cases
151
-
152
- ### All Subtasks Share Files
153
-
154
- ```markdown
155
- ### Recommendation
156
-
157
- PARALLEL_ELIGIBLE: NO
158
- Reason: All subtasks share files — parallel execution would cause conflicts.
159
- Recommended: Sequential execution in dependency order.
160
- ```
161
-
162
- ### Single Subtask
163
-
164
- ```markdown
165
- ### Recommendation
166
-
167
- PARALLEL_ELIGIBLE: NO
168
- Reason: Only 1 subtask — no parallelization possible.
169
- ```
170
-
171
- ### All Subtasks Independent
172
-
173
- ```markdown
174
- ### Recommendation
175
-
176
- PARALLEL_ELIGIBLE: YES
177
- Max parallelism: [N] teammates (1 per subtask)
178
- Sequential dependencies: None
179
- All subtasks can run simultaneously.
180
- ```
181
-
182
- ## Rules
183
-
184
- 1. **Be conservative** — if uncertain about a dependency, mark it as dependent (safer)
185
- 2. **Check barrel exports** — `index.ts` files are common hidden dependencies
186
- 3. **Consider test files** — `.spec.ts` files count as modified files
187
- 4. **Max 4 groups** — even if more parallelism is possible, cap at 4 for coordination
188
- 5. **Report all findings** — even if result is "not parallelizable", provide the full analysis