claude-autopm 2.8.1 → 2.8.2

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 (273) hide show
  1. package/README.md +116 -8
  2. package/bin/autopm.js +2 -0
  3. package/bin/commands/plugin.js +395 -0
  4. package/bin/commands/team.js +184 -10
  5. package/install/install.js +223 -4
  6. package/lib/plugins/PluginManager.js +1328 -0
  7. package/lib/plugins/PluginManager.old.js +400 -0
  8. package/package.json +4 -1
  9. package/scripts/publish-plugins.sh +166 -0
  10. package/autopm/.claude/agents/cloud/README.md +0 -55
  11. package/autopm/.claude/agents/cloud/aws-cloud-architect.md +0 -521
  12. package/autopm/.claude/agents/cloud/azure-cloud-architect.md +0 -436
  13. package/autopm/.claude/agents/cloud/gcp-cloud-architect.md +0 -385
  14. package/autopm/.claude/agents/cloud/gcp-cloud-functions-engineer.md +0 -306
  15. package/autopm/.claude/agents/cloud/gemini-api-expert.md +0 -880
  16. package/autopm/.claude/agents/cloud/kubernetes-orchestrator.md +0 -566
  17. package/autopm/.claude/agents/cloud/openai-python-expert.md +0 -1087
  18. package/autopm/.claude/agents/cloud/terraform-infrastructure-expert.md +0 -454
  19. package/autopm/.claude/agents/core/agent-manager.md +0 -296
  20. package/autopm/.claude/agents/core/code-analyzer.md +0 -131
  21. package/autopm/.claude/agents/core/file-analyzer.md +0 -162
  22. package/autopm/.claude/agents/core/test-runner.md +0 -200
  23. package/autopm/.claude/agents/data/airflow-orchestration-expert.md +0 -52
  24. package/autopm/.claude/agents/data/kedro-pipeline-expert.md +0 -50
  25. package/autopm/.claude/agents/data/langgraph-workflow-expert.md +0 -520
  26. package/autopm/.claude/agents/databases/README.md +0 -50
  27. package/autopm/.claude/agents/databases/bigquery-expert.md +0 -392
  28. package/autopm/.claude/agents/databases/cosmosdb-expert.md +0 -368
  29. package/autopm/.claude/agents/databases/mongodb-expert.md +0 -398
  30. package/autopm/.claude/agents/databases/postgresql-expert.md +0 -321
  31. package/autopm/.claude/agents/databases/redis-expert.md +0 -52
  32. package/autopm/.claude/agents/devops/README.md +0 -52
  33. package/autopm/.claude/agents/devops/azure-devops-specialist.md +0 -308
  34. package/autopm/.claude/agents/devops/docker-containerization-expert.md +0 -298
  35. package/autopm/.claude/agents/devops/github-operations-specialist.md +0 -335
  36. package/autopm/.claude/agents/devops/mcp-context-manager.md +0 -319
  37. package/autopm/.claude/agents/devops/observability-engineer.md +0 -574
  38. package/autopm/.claude/agents/devops/ssh-operations-expert.md +0 -1093
  39. package/autopm/.claude/agents/devops/traefik-proxy-expert.md +0 -444
  40. package/autopm/.claude/agents/frameworks/README.md +0 -64
  41. package/autopm/.claude/agents/frameworks/e2e-test-engineer.md +0 -360
  42. package/autopm/.claude/agents/frameworks/nats-messaging-expert.md +0 -254
  43. package/autopm/.claude/agents/frameworks/react-frontend-engineer.md +0 -217
  44. package/autopm/.claude/agents/frameworks/react-ui-expert.md +0 -226
  45. package/autopm/.claude/agents/frameworks/tailwindcss-expert.md +0 -770
  46. package/autopm/.claude/agents/frameworks/ux-design-expert.md +0 -244
  47. package/autopm/.claude/agents/integration/message-queue-engineer.md +0 -794
  48. package/autopm/.claude/agents/languages/README.md +0 -50
  49. package/autopm/.claude/agents/languages/bash-scripting-expert.md +0 -541
  50. package/autopm/.claude/agents/languages/javascript-frontend-engineer.md +0 -197
  51. package/autopm/.claude/agents/languages/nodejs-backend-engineer.md +0 -226
  52. package/autopm/.claude/agents/languages/python-backend-engineer.md +0 -214
  53. package/autopm/.claude/agents/languages/python-backend-expert.md +0 -289
  54. package/autopm/.claude/agents/testing/frontend-testing-engineer.md +0 -395
  55. package/autopm/.claude/commands/ai/langgraph-workflow.md +0 -65
  56. package/autopm/.claude/commands/ai/openai-chat.md +0 -65
  57. package/autopm/.claude/commands/azure/COMMANDS.md +0 -107
  58. package/autopm/.claude/commands/azure/COMMAND_MAPPING.md +0 -252
  59. package/autopm/.claude/commands/azure/INTEGRATION_FIX.md +0 -103
  60. package/autopm/.claude/commands/azure/README.md +0 -246
  61. package/autopm/.claude/commands/azure/active-work.md +0 -198
  62. package/autopm/.claude/commands/azure/aliases.md +0 -143
  63. package/autopm/.claude/commands/azure/blocked-items.md +0 -287
  64. package/autopm/.claude/commands/azure/clean.md +0 -93
  65. package/autopm/.claude/commands/azure/docs-query.md +0 -48
  66. package/autopm/.claude/commands/azure/feature-decompose.md +0 -380
  67. package/autopm/.claude/commands/azure/feature-list.md +0 -61
  68. package/autopm/.claude/commands/azure/feature-new.md +0 -115
  69. package/autopm/.claude/commands/azure/feature-show.md +0 -205
  70. package/autopm/.claude/commands/azure/feature-start.md +0 -130
  71. package/autopm/.claude/commands/azure/fix-integration-example.md +0 -93
  72. package/autopm/.claude/commands/azure/help.md +0 -150
  73. package/autopm/.claude/commands/azure/import-us.md +0 -269
  74. package/autopm/.claude/commands/azure/init.md +0 -211
  75. package/autopm/.claude/commands/azure/next-task.md +0 -262
  76. package/autopm/.claude/commands/azure/search.md +0 -160
  77. package/autopm/.claude/commands/azure/sprint-status.md +0 -235
  78. package/autopm/.claude/commands/azure/standup.md +0 -260
  79. package/autopm/.claude/commands/azure/sync-all.md +0 -99
  80. package/autopm/.claude/commands/azure/task-analyze.md +0 -186
  81. package/autopm/.claude/commands/azure/task-close.md +0 -329
  82. package/autopm/.claude/commands/azure/task-edit.md +0 -145
  83. package/autopm/.claude/commands/azure/task-list.md +0 -263
  84. package/autopm/.claude/commands/azure/task-new.md +0 -84
  85. package/autopm/.claude/commands/azure/task-reopen.md +0 -79
  86. package/autopm/.claude/commands/azure/task-show.md +0 -126
  87. package/autopm/.claude/commands/azure/task-start.md +0 -301
  88. package/autopm/.claude/commands/azure/task-status.md +0 -65
  89. package/autopm/.claude/commands/azure/task-sync.md +0 -67
  90. package/autopm/.claude/commands/azure/us-edit.md +0 -164
  91. package/autopm/.claude/commands/azure/us-list.md +0 -202
  92. package/autopm/.claude/commands/azure/us-new.md +0 -265
  93. package/autopm/.claude/commands/azure/us-parse.md +0 -253
  94. package/autopm/.claude/commands/azure/us-show.md +0 -188
  95. package/autopm/.claude/commands/azure/us-status.md +0 -320
  96. package/autopm/.claude/commands/azure/validate.md +0 -86
  97. package/autopm/.claude/commands/azure/work-item-sync.md +0 -47
  98. package/autopm/.claude/commands/cloud/infra-deploy.md +0 -38
  99. package/autopm/.claude/commands/github/workflow-create.md +0 -42
  100. package/autopm/.claude/commands/infrastructure/ssh-security.md +0 -65
  101. package/autopm/.claude/commands/infrastructure/traefik-setup.md +0 -65
  102. package/autopm/.claude/commands/kubernetes/deploy.md +0 -37
  103. package/autopm/.claude/commands/playwright/test-scaffold.md +0 -38
  104. package/autopm/.claude/commands/pm/blocked.md +0 -28
  105. package/autopm/.claude/commands/pm/clean.md +0 -119
  106. package/autopm/.claude/commands/pm/context-create.md +0 -136
  107. package/autopm/.claude/commands/pm/context-prime.md +0 -170
  108. package/autopm/.claude/commands/pm/context-update.md +0 -292
  109. package/autopm/.claude/commands/pm/context.md +0 -28
  110. package/autopm/.claude/commands/pm/epic-close.md +0 -86
  111. package/autopm/.claude/commands/pm/epic-decompose.md +0 -370
  112. package/autopm/.claude/commands/pm/epic-edit.md +0 -83
  113. package/autopm/.claude/commands/pm/epic-list.md +0 -30
  114. package/autopm/.claude/commands/pm/epic-merge.md +0 -222
  115. package/autopm/.claude/commands/pm/epic-oneshot.md +0 -119
  116. package/autopm/.claude/commands/pm/epic-refresh.md +0 -119
  117. package/autopm/.claude/commands/pm/epic-show.md +0 -28
  118. package/autopm/.claude/commands/pm/epic-split.md +0 -120
  119. package/autopm/.claude/commands/pm/epic-start.md +0 -195
  120. package/autopm/.claude/commands/pm/epic-status.md +0 -28
  121. package/autopm/.claude/commands/pm/epic-sync-modular.md +0 -338
  122. package/autopm/.claude/commands/pm/epic-sync-original.md +0 -473
  123. package/autopm/.claude/commands/pm/epic-sync.md +0 -486
  124. package/autopm/.claude/commands/pm/help.md +0 -28
  125. package/autopm/.claude/commands/pm/import.md +0 -115
  126. package/autopm/.claude/commands/pm/in-progress.md +0 -28
  127. package/autopm/.claude/commands/pm/init.md +0 -28
  128. package/autopm/.claude/commands/pm/issue-analyze.md +0 -202
  129. package/autopm/.claude/commands/pm/issue-close.md +0 -119
  130. package/autopm/.claude/commands/pm/issue-edit.md +0 -93
  131. package/autopm/.claude/commands/pm/issue-reopen.md +0 -87
  132. package/autopm/.claude/commands/pm/issue-show.md +0 -41
  133. package/autopm/.claude/commands/pm/issue-start.md +0 -234
  134. package/autopm/.claude/commands/pm/issue-status.md +0 -95
  135. package/autopm/.claude/commands/pm/issue-sync.md +0 -411
  136. package/autopm/.claude/commands/pm/next.md +0 -28
  137. package/autopm/.claude/commands/pm/prd-edit.md +0 -82
  138. package/autopm/.claude/commands/pm/prd-list.md +0 -28
  139. package/autopm/.claude/commands/pm/prd-new.md +0 -55
  140. package/autopm/.claude/commands/pm/prd-parse.md +0 -42
  141. package/autopm/.claude/commands/pm/prd-status.md +0 -28
  142. package/autopm/.claude/commands/pm/search.md +0 -28
  143. package/autopm/.claude/commands/pm/standup.md +0 -28
  144. package/autopm/.claude/commands/pm/status.md +0 -28
  145. package/autopm/.claude/commands/pm/sync.md +0 -99
  146. package/autopm/.claude/commands/pm/test-reference-update.md +0 -151
  147. package/autopm/.claude/commands/pm/validate.md +0 -28
  148. package/autopm/.claude/commands/pm/what-next.md +0 -28
  149. package/autopm/.claude/commands/python/api-scaffold.md +0 -50
  150. package/autopm/.claude/commands/python/docs-query.md +0 -48
  151. package/autopm/.claude/commands/react/app-scaffold.md +0 -50
  152. package/autopm/.claude/commands/testing/prime.md +0 -314
  153. package/autopm/.claude/commands/testing/run.md +0 -125
  154. package/autopm/.claude/commands/ui/bootstrap-scaffold.md +0 -65
  155. package/autopm/.claude/commands/ui/tailwind-system.md +0 -64
  156. package/autopm/.claude/rules/ai-integration-patterns.md +0 -219
  157. package/autopm/.claude/rules/ci-cd-kubernetes-strategy.md +0 -25
  158. package/autopm/.claude/rules/database-management-strategy.md +0 -17
  159. package/autopm/.claude/rules/database-pipeline.md +0 -94
  160. package/autopm/.claude/rules/devops-troubleshooting-playbook.md +0 -450
  161. package/autopm/.claude/rules/docker-first-development.md +0 -404
  162. package/autopm/.claude/rules/infrastructure-pipeline.md +0 -128
  163. package/autopm/.claude/rules/performance-guidelines.md +0 -403
  164. package/autopm/.claude/rules/ui-development-standards.md +0 -281
  165. package/autopm/.claude/rules/ui-framework-rules.md +0 -151
  166. package/autopm/.claude/rules/ux-design-rules.md +0 -209
  167. package/autopm/.claude/rules/visual-testing.md +0 -223
  168. package/autopm/.claude/scripts/azure/README.md +0 -192
  169. package/autopm/.claude/scripts/azure/active-work.js +0 -524
  170. package/autopm/.claude/scripts/azure/active-work.sh +0 -20
  171. package/autopm/.claude/scripts/azure/blocked.js +0 -520
  172. package/autopm/.claude/scripts/azure/blocked.sh +0 -20
  173. package/autopm/.claude/scripts/azure/daily.js +0 -533
  174. package/autopm/.claude/scripts/azure/daily.sh +0 -20
  175. package/autopm/.claude/scripts/azure/dashboard.js +0 -970
  176. package/autopm/.claude/scripts/azure/dashboard.sh +0 -20
  177. package/autopm/.claude/scripts/azure/feature-list.js +0 -254
  178. package/autopm/.claude/scripts/azure/feature-list.sh +0 -20
  179. package/autopm/.claude/scripts/azure/feature-show.js +0 -7
  180. package/autopm/.claude/scripts/azure/feature-show.sh +0 -20
  181. package/autopm/.claude/scripts/azure/feature-status.js +0 -604
  182. package/autopm/.claude/scripts/azure/feature-status.sh +0 -20
  183. package/autopm/.claude/scripts/azure/help.js +0 -342
  184. package/autopm/.claude/scripts/azure/help.sh +0 -20
  185. package/autopm/.claude/scripts/azure/next-task.js +0 -508
  186. package/autopm/.claude/scripts/azure/next-task.sh +0 -20
  187. package/autopm/.claude/scripts/azure/search.js +0 -469
  188. package/autopm/.claude/scripts/azure/search.sh +0 -20
  189. package/autopm/.claude/scripts/azure/setup.js +0 -745
  190. package/autopm/.claude/scripts/azure/setup.sh +0 -20
  191. package/autopm/.claude/scripts/azure/sprint-report.js +0 -1012
  192. package/autopm/.claude/scripts/azure/sprint-report.sh +0 -20
  193. package/autopm/.claude/scripts/azure/sync.js +0 -563
  194. package/autopm/.claude/scripts/azure/sync.sh +0 -20
  195. package/autopm/.claude/scripts/azure/us-list.js +0 -210
  196. package/autopm/.claude/scripts/azure/us-list.sh +0 -20
  197. package/autopm/.claude/scripts/azure/us-status.js +0 -238
  198. package/autopm/.claude/scripts/azure/us-status.sh +0 -20
  199. package/autopm/.claude/scripts/azure/validate.js +0 -626
  200. package/autopm/.claude/scripts/azure/validate.sh +0 -20
  201. package/autopm/.claude/scripts/azure/wrapper-template.sh +0 -20
  202. package/autopm/.claude/scripts/github/dependency-tracker.js +0 -554
  203. package/autopm/.claude/scripts/github/dependency-validator.js +0 -545
  204. package/autopm/.claude/scripts/github/dependency-visualizer.js +0 -477
  205. package/autopm/.claude/scripts/pm/analytics.js +0 -425
  206. package/autopm/.claude/scripts/pm/blocked.js +0 -164
  207. package/autopm/.claude/scripts/pm/blocked.sh +0 -78
  208. package/autopm/.claude/scripts/pm/clean.js +0 -464
  209. package/autopm/.claude/scripts/pm/context-create.js +0 -216
  210. package/autopm/.claude/scripts/pm/context-prime.js +0 -335
  211. package/autopm/.claude/scripts/pm/context-update.js +0 -344
  212. package/autopm/.claude/scripts/pm/context.js +0 -338
  213. package/autopm/.claude/scripts/pm/epic-close.js +0 -347
  214. package/autopm/.claude/scripts/pm/epic-edit.js +0 -382
  215. package/autopm/.claude/scripts/pm/epic-list.js +0 -273
  216. package/autopm/.claude/scripts/pm/epic-list.sh +0 -109
  217. package/autopm/.claude/scripts/pm/epic-show.js +0 -291
  218. package/autopm/.claude/scripts/pm/epic-show.sh +0 -105
  219. package/autopm/.claude/scripts/pm/epic-split.js +0 -522
  220. package/autopm/.claude/scripts/pm/epic-start/epic-start.js +0 -183
  221. package/autopm/.claude/scripts/pm/epic-start/epic-start.sh +0 -94
  222. package/autopm/.claude/scripts/pm/epic-status.js +0 -291
  223. package/autopm/.claude/scripts/pm/epic-status.sh +0 -104
  224. package/autopm/.claude/scripts/pm/epic-sync/README.md +0 -208
  225. package/autopm/.claude/scripts/pm/epic-sync/create-epic-issue.sh +0 -77
  226. package/autopm/.claude/scripts/pm/epic-sync/create-task-issues.sh +0 -86
  227. package/autopm/.claude/scripts/pm/epic-sync/update-epic-file.sh +0 -79
  228. package/autopm/.claude/scripts/pm/epic-sync/update-references.sh +0 -89
  229. package/autopm/.claude/scripts/pm/epic-sync.sh +0 -137
  230. package/autopm/.claude/scripts/pm/help.js +0 -92
  231. package/autopm/.claude/scripts/pm/help.sh +0 -90
  232. package/autopm/.claude/scripts/pm/in-progress.js +0 -178
  233. package/autopm/.claude/scripts/pm/in-progress.sh +0 -93
  234. package/autopm/.claude/scripts/pm/init.js +0 -321
  235. package/autopm/.claude/scripts/pm/init.sh +0 -178
  236. package/autopm/.claude/scripts/pm/issue-close.js +0 -232
  237. package/autopm/.claude/scripts/pm/issue-edit.js +0 -310
  238. package/autopm/.claude/scripts/pm/issue-show.js +0 -272
  239. package/autopm/.claude/scripts/pm/issue-start.js +0 -181
  240. package/autopm/.claude/scripts/pm/issue-sync/format-comment.sh +0 -468
  241. package/autopm/.claude/scripts/pm/issue-sync/gather-updates.sh +0 -460
  242. package/autopm/.claude/scripts/pm/issue-sync/post-comment.sh +0 -330
  243. package/autopm/.claude/scripts/pm/issue-sync/preflight-validation.sh +0 -348
  244. package/autopm/.claude/scripts/pm/issue-sync/update-frontmatter.sh +0 -387
  245. package/autopm/.claude/scripts/pm/lib/README.md +0 -85
  246. package/autopm/.claude/scripts/pm/lib/epic-discovery.js +0 -119
  247. package/autopm/.claude/scripts/pm/lib/logger.js +0 -78
  248. package/autopm/.claude/scripts/pm/next.js +0 -189
  249. package/autopm/.claude/scripts/pm/next.sh +0 -72
  250. package/autopm/.claude/scripts/pm/optimize.js +0 -407
  251. package/autopm/.claude/scripts/pm/pr-create.js +0 -337
  252. package/autopm/.claude/scripts/pm/pr-list.js +0 -257
  253. package/autopm/.claude/scripts/pm/prd-list.js +0 -242
  254. package/autopm/.claude/scripts/pm/prd-list.sh +0 -103
  255. package/autopm/.claude/scripts/pm/prd-new.js +0 -684
  256. package/autopm/.claude/scripts/pm/prd-parse.js +0 -547
  257. package/autopm/.claude/scripts/pm/prd-status.js +0 -152
  258. package/autopm/.claude/scripts/pm/prd-status.sh +0 -63
  259. package/autopm/.claude/scripts/pm/release.js +0 -460
  260. package/autopm/.claude/scripts/pm/search.js +0 -192
  261. package/autopm/.claude/scripts/pm/search.sh +0 -89
  262. package/autopm/.claude/scripts/pm/standup.js +0 -362
  263. package/autopm/.claude/scripts/pm/standup.sh +0 -95
  264. package/autopm/.claude/scripts/pm/status.js +0 -148
  265. package/autopm/.claude/scripts/pm/status.sh +0 -59
  266. package/autopm/.claude/scripts/pm/sync-batch.js +0 -337
  267. package/autopm/.claude/scripts/pm/sync.js +0 -343
  268. package/autopm/.claude/scripts/pm/template-list.js +0 -141
  269. package/autopm/.claude/scripts/pm/template-new.js +0 -366
  270. package/autopm/.claude/scripts/pm/validate.js +0 -274
  271. package/autopm/.claude/scripts/pm/validate.sh +0 -106
  272. package/autopm/.claude/scripts/pm/what-next.js +0 -660
  273. package/bin/node/azure-feature-show.js +0 -7
@@ -1,486 +0,0 @@
1
- ---
2
- allowed-tools: Bash, Read, Write, LS, Task
3
- ---
4
-
5
- # Epic Sync - Modular Version
6
-
7
- Push epic and tasks to GitHub as issues using modular scripts.
8
-
9
- ## Usage
10
- ```
11
- /pm:epic-sync <feature_name>
12
- ```
13
-
14
- ## Quick Start
15
-
16
- The simplest way to sync an epic to GitHub:
17
-
18
- ```bash
19
- # Full automated sync (recommended)
20
- bash .claude/scripts/pm/epic-sync.sh "$ARGUMENTS"
21
- ```
22
-
23
- This orchestration script automatically runs all 4 steps:
24
- 1. Creates epic issue
25
- 2. Creates task issues
26
- 3. Renames files to issue numbers
27
- 4. Updates all references
28
-
29
- ## Required Documentation Access
30
-
31
- **MANDATORY:** Before project management workflows, query Context7 for best practices:
32
-
33
- **Documentation Queries:**
34
- - `mcp://context7/agile/epic-management` - epic management best practices
35
- - `mcp://context7/project-management/issue-tracking` - issue tracking best practices
36
- - `mcp://context7/agile/task-breakdown` - task breakdown best practices
37
- - `mcp://context7/project-management/workflow` - workflow best practices
38
-
39
- **Why This is Required:**
40
- - Ensures adherence to current industry standards and best practices
41
- - Prevents outdated or incorrect implementation patterns
42
- - Provides access to latest framework/tool documentation
43
- - Reduces errors from stale knowledge or assumptions
44
-
45
-
46
- ## Quick Check
47
-
48
- ```bash
49
- # Check for single epic or multi-epic structure
50
- if [ -f ".claude/epics/$ARGUMENTS/epic.md" ]; then
51
- echo "Single epic mode detected"
52
- # Count task files
53
- ls .claude/epics/$ARGUMENTS/*.md 2>/dev/null | grep -v epic.md | wc -l
54
- elif [ -d ".claude/epics/$ARGUMENTS" ] && ls .claude/epics/$ARGUMENTS/*/epic.md 2>/dev/null | head -1; then
55
- echo "Multi-epic mode detected (from epic-split)"
56
- # Count task files in all subdirectories
57
- find .claude/epics/$ARGUMENTS -name "*.md" ! -name "epic.md" ! -name "meta.yaml" | wc -l
58
- else
59
- echo "❌ Epic not found. Run: /pm:prd-parse $ARGUMENTS or /pm:epic-split $ARGUMENTS"
60
- fi
61
- ```
62
-
63
- If no tasks found: "❌ No tasks to sync. Run: /pm:epic-decompose $ARGUMENTS"
64
-
65
- ## Instructions
66
-
67
- **⚡ Quick Command:**
68
- ```bash
69
- bash .claude/scripts/pm/epic-sync.sh "$ARGUMENTS"
70
- ```
71
-
72
- The epic sync process is modularized into 4 specialized scripts that handle different aspects of the synchronization. Each script is designed for reliability, testability, and maintainability.
73
-
74
- The orchestration script (`.claude/scripts/pm/epic-sync.sh`) automatically runs all 4 steps in sequence. The individual scripts are documented below for reference and debugging.
75
-
76
- ### Processing Mode Detection
77
-
78
- **Single Epic Mode:**
79
- - Process `.claude/epics/$ARGUMENTS/epic.md` and its tasks
80
- - Create one epic issue with all tasks linked
81
-
82
- **Multi-Epic Mode (from epic-split):**
83
- - Process each subdirectory separately
84
- - Create separate epic issues for each subdirectory
85
- - Maintain epic dependencies as specified in meta.yaml
86
- - Show progress for each epic being synced
87
-
88
- ### 1. Repository Protection Check
89
-
90
- This is handled automatically by our modular scripts, but you can run the check manually:
91
-
92
- ```bash
93
- # Check repository protection (built into all scripts)
94
- bash .claude/scripts/lib/github-utils.sh
95
- ```
96
-
97
- The scripts will automatically:
98
- - ✅ Verify GitHub CLI authentication
99
- - ✅ Check repository protection against template repos
100
- - ✅ Validate epic structure and inputs
101
-
102
- ### 2. Create Epic Issue
103
-
104
- Create the main GitHub issue for the epic:
105
-
106
- ```bash
107
- # Create epic issue with proper stats and labels
108
- epic_number=$(bash .claude/scripts/pm/epic-sync/create-epic-issue.sh "$ARGUMENTS")
109
-
110
- echo "✅ Epic issue created: #$epic_number"
111
- ```
112
-
113
- This script handles:
114
- - ✅ Frontmatter stripping and content processing
115
- - ✅ Epic type detection (bug vs feature)
116
- - ✅ Statistics calculation (tasks, parallel/sequential breakdown)
117
- - ✅ GitHub issue creation with proper labels
118
- - ✅ Epic vs bug labeling based on content analysis
119
-
120
- ### 3. Create Task Issues
121
-
122
- Create GitHub issues for all tasks with automatic parallel processing:
123
-
124
- ```bash
125
- # Create task issues (automatically chooses sequential/parallel)
126
- task_mapping_file=$(bash .claude/scripts/pm/epic-sync/create-task-issues.sh "$ARGUMENTS" "$epic_number")
127
-
128
- echo "✅ Task issues created. Mapping: $task_mapping_file"
129
- ```
130
-
131
- This script handles:
132
- - ✅ Automatic strategy selection (sequential < 5 tasks, parallel ≥ 5 tasks)
133
- - ✅ Sub-issues support (if gh-sub-issue extension available)
134
- - ✅ Parallel batch processing for large task sets
135
- - ✅ Proper labeling with `task,epic:$ARGUMENTS`
136
- - ✅ Error handling and partial failure recovery
137
- - ✅ Progress reporting and result consolidation
138
-
139
- **Environment Configuration:**
140
- ```bash
141
- # Optional: Set custom parallel threshold
142
- export AUTOPM_PARALLEL_THRESHOLD=3 # Default: 5
143
- ```
144
-
145
- ### 4. Update Task References
146
-
147
- Update all task dependencies and rename files to use GitHub issue numbers:
148
-
149
- ```bash
150
- # Update references and rename files
151
- bash .claude/scripts/pm/epic-sync/update-references.sh "$ARGUMENTS" "$task_mapping_file"
152
-
153
- echo "✅ Task references updated and files renamed"
154
- ```
155
-
156
- This script handles:
157
- - ✅ ID mapping generation (001 → real issue numbers)
158
- - ✅ Dependency reference updates (`depends_on`, `conflicts_with`)
159
- - ✅ File renaming (001.md → 123.md)
160
- - ✅ Frontmatter updates with GitHub URLs
161
- - ✅ Timestamp updates
162
- - ✅ Cleanup of old-format files
163
-
164
- ### 5. Update Epic File
165
-
166
- Update the epic.md file with GitHub information and real task IDs:
167
-
168
- ```bash
169
- # Update epic file with GitHub info and real task IDs
170
- bash .claude/scripts/pm/epic-sync/update-epic-file.sh "$ARGUMENTS" "$epic_number"
171
-
172
- echo "✅ Epic file updated with GitHub information"
173
- ```
174
-
175
- This script handles:
176
- - ✅ Epic frontmatter updates (GitHub URL, timestamp)
177
- - ✅ Tasks Created section replacement with real issue numbers
178
- - ✅ Statistics recalculation
179
- - ✅ GitHub mapping file creation
180
- - ✅ Content structure preservation
181
-
182
- ### 6. Create Development Branch
183
-
184
- Follow `/rules/git-strategy.md` to create development branch:
185
-
186
- ```bash
187
- # Ensure main is current
188
- git checkout main
189
- git pull origin main
190
-
191
- # Create branch for epic
192
- git checkout -b epic/$ARGUMENTS
193
- git push -u origin epic/$ARGUMENTS
194
-
195
- echo "✅ Created branch: epic/$ARGUMENTS"
196
- ```
197
-
198
- ## Complete Workflow Examples
199
-
200
- ### Single Epic Workflow (Automated - Recommended)
201
-
202
- The **easiest way** is to use the orchestration script that handles everything:
203
-
204
- ```bash
205
- # One command does it all!
206
- bash .claude/scripts/pm/epic-sync.sh "$ARGUMENTS"
207
- ```
208
-
209
- This automatically runs all 4 steps and provides a complete summary.
210
-
211
- ### Single Epic Workflow (Manual Steps)
212
-
213
- If you need to run steps individually for debugging:
214
-
215
- ```bash
216
- #!/bin/bash
217
- # Complete epic sync using modular scripts (manual)
218
-
219
- EPIC_NAME="$ARGUMENTS"
220
-
221
- echo "🚀 Starting modular epic sync for: $EPIC_NAME"
222
-
223
- # Step 1: Create epic issue
224
- echo "📝 Creating epic issue..."
225
- epic_number=$(bash .claude/scripts/pm/epic-sync/create-epic-issue.sh "$EPIC_NAME")
226
-
227
- if [[ -z "$epic_number" ]]; then
228
- echo "❌ Failed to create epic issue"
229
- exit 1
230
- fi
231
-
232
- echo "✅ Epic issue created: #$epic_number"
233
-
234
- # Step 2: Create task issues
235
- echo "📋 Creating task issues..."
236
- task_mapping_file=$(bash .claude/scripts/pm/epic-sync/create-task-issues.sh "$EPIC_NAME" "$epic_number")
237
-
238
- if [[ ! -f "$task_mapping_file" ]]; then
239
- echo "❌ Failed to create task issues"
240
- exit 1
241
- fi
242
-
243
- task_count=$(wc -l < "$task_mapping_file")
244
- echo "✅ Created $task_count task issues"
245
-
246
- # Step 3: Update references
247
- echo "🔗 Updating task references..."
248
- bash .claude/scripts/pm/epic-sync/update-references.sh "$EPIC_NAME" "$task_mapping_file"
249
-
250
- echo "✅ Task references updated"
251
-
252
- # Step 4: Update epic file
253
- echo "📄 Updating epic file..."
254
- bash .claude/scripts/pm/epic-sync/update-epic-file.sh "$EPIC_NAME" "$epic_number"
255
-
256
- echo "✅ Epic file updated"
257
-
258
- # Step 5: Create branch
259
- echo "🌿 Creating development branch..."
260
- git checkout main
261
- git pull origin main
262
- git checkout -b epic/$EPIC_NAME
263
- git push -u origin epic/$EPIC_NAME
264
-
265
- echo "✅ Created branch: epic/$EPIC_NAME"
266
-
267
- # Get repository info for final output
268
- repo=$(gh repo view --json nameWithOwner -q .nameWithOwner)
269
-
270
- # Final output
271
- echo ""
272
- echo "🎉 Epic sync completed successfully!"
273
- echo ""
274
- echo "📊 Summary:"
275
- echo " Epic: #$epic_number - $EPIC_NAME"
276
- echo " Tasks: $task_count sub-issues created"
277
- echo " Branch: epic/$EPIC_NAME"
278
- echo ""
279
- echo "🔗 Links:"
280
- echo " Epic: https://github.com/$repo/issues/$epic_number"
281
- echo " Branch: https://github.com/$repo/tree/epic/$EPIC_NAME"
282
- echo ""
283
- echo "📋 Next steps:"
284
- echo " - Start parallel execution: /pm:epic-start $EPIC_NAME"
285
- echo " - Or work on single issue: /pm:issue-start <issue_number>"
286
- echo ""
287
- ```
288
-
289
- ### Multi-Epic Workflow (from epic-split)
290
-
291
- Here's the workflow for syncing multiple epics created by epic-split:
292
-
293
- ```bash
294
- #!/bin/bash
295
- # Sync multiple epics from split structure
296
-
297
- FEATURE_NAME="$ARGUMENTS"
298
- EPICS_DIR=".claude/epics/$FEATURE_NAME"
299
-
300
- echo "🚀 Starting multi-epic sync for: $FEATURE_NAME"
301
-
302
- # Find all epic subdirectories
303
- epic_dirs=$(find "$EPICS_DIR" -maxdepth 1 -type d -name "[0-9]*-*" | sort)
304
- epic_count=$(echo "$epic_dirs" | wc -l)
305
-
306
- echo "📦 Found $epic_count epics to sync"
307
-
308
- # Track all created epic issues
309
- all_epic_numbers=""
310
- total_tasks=0
311
-
312
- # Process each epic
313
- for epic_dir in $epic_dirs; do
314
- epic_name=$(basename "$epic_dir")
315
- echo ""
316
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
317
- echo "📂 Processing: $epic_name"
318
- echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
319
-
320
- # Step 1: Create epic issue
321
- echo "📝 Creating epic issue..."
322
- epic_number=$(bash .claude/scripts/pm/epic-sync/create-epic-issue.sh "$FEATURE_NAME/$epic_name")
323
-
324
- if [[ -z "$epic_number" ]]; then
325
- echo "⚠️ Failed to create epic issue for $epic_name"
326
- continue
327
- fi
328
-
329
- all_epic_numbers="$all_epic_numbers $epic_number"
330
- echo "✅ Epic issue created: #$epic_number"
331
-
332
- # Step 2: Create task issues for this epic
333
- echo "📋 Creating task issues..."
334
- task_mapping_file=$(bash .claude/scripts/pm/epic-sync/create-task-issues.sh "$FEATURE_NAME/$epic_name" "$epic_number")
335
-
336
- if [[ -f "$task_mapping_file" ]]; then
337
- task_count=$(wc -l < "$task_mapping_file")
338
- total_tasks=$((total_tasks + task_count))
339
- echo "✅ Created $task_count task issues"
340
-
341
- # Step 3: Update references
342
- echo "🔗 Updating task references..."
343
- bash .claude/scripts/pm/epic-sync/update-references.sh "$FEATURE_NAME/$epic_name" "$task_mapping_file"
344
-
345
- # Step 4: Update epic file
346
- bash .claude/scripts/pm/epic-sync/update-epic-file.sh "$FEATURE_NAME/$epic_name" "$epic_number"
347
- fi
348
- done
349
-
350
- # Create meta-branch for all epics
351
- echo ""
352
- echo "🌿 Creating meta-branch for feature..."
353
- git checkout main
354
- git pull origin main
355
- git checkout -b feature/$FEATURE_NAME
356
- git push -u origin feature/$FEATURE_NAME
357
-
358
- # Final summary
359
- repo=$(gh repo view --json nameWithOwner -q .nameWithOwner)
360
-
361
- echo ""
362
- echo "🎉 Multi-epic sync completed!"
363
- echo ""
364
- echo "📊 Summary:"
365
- echo " Feature: $FEATURE_NAME"
366
- echo " Epics created: $epic_count"
367
- echo " Epic issues:$all_epic_numbers"
368
- echo " Total tasks: $total_tasks"
369
- echo " Branch: feature/$FEATURE_NAME"
370
- echo ""
371
- echo "🔗 Links:"
372
- for epic_num in $all_epic_numbers; do
373
- echo " Epic #$epic_num: https://github.com/$repo/issues/$epic_num"
374
- done
375
- echo " Branch: https://github.com/$repo/tree/feature/$FEATURE_NAME"
376
- echo ""
377
- echo "📋 Next steps:"
378
- echo " - Work on P0 epics first (infrastructure, auth backend)"
379
- echo " - Start specific epic: /pm:issue-start <issue_number>"
380
- echo ""
381
- ```
382
-
383
- ## Benefits of Modular Approach
384
-
385
- ### ✅ **Reliability**
386
- - Each script handles one specific responsibility
387
- - Comprehensive error handling and validation
388
- - Atomic operations with proper rollback
389
-
390
- ### ✅ **Performance**
391
- - Automatic parallel processing for large task sets
392
- - Configurable thresholds via environment variables
393
- - Background job management for concurrent operations
394
-
395
- ### ✅ **Maintainability**
396
- - Modular scripts are easier to test and debug
397
- - Shared libraries ensure consistency
398
- - Clear separation of concerns
399
-
400
- ### ✅ **Testability**
401
- - Each script can be tested independently
402
- - Mock-friendly interfaces
403
- - TDD-driven development approach
404
-
405
- ### ✅ **Flexibility**
406
- - Scripts can be used independently
407
- - Easy to extend or modify individual components
408
- - Environment-based configuration
409
-
410
- ## Error Handling
411
-
412
- Each modular script includes comprehensive error handling:
413
-
414
- - **Validation**: Input validation before processing
415
- - **Authentication**: GitHub CLI authentication checks
416
- - **Repository Protection**: Automatic template repository detection
417
- - **Partial Failures**: Graceful handling of partial operations
418
- - **Logging**: Detailed logging with configurable levels
419
- - **Cleanup**: Automatic temporary file cleanup
420
-
421
- ## Configuration Options
422
-
423
- ### Environment Variables
424
-
425
- ```bash
426
- # Parallel processing threshold
427
- export AUTOPM_PARALLEL_THRESHOLD=5 # Default: 5
428
-
429
- # Logging level (0=DEBUG, 1=INFO, 2=WARNING, 3=ERROR)
430
- export AUTOPM_LOG_LEVEL=1 # Default: 1 (INFO)
431
- ```
432
-
433
- ### GitHub Extensions
434
-
435
- The scripts automatically detect and use GitHub CLI extensions:
436
-
437
- - **gh-sub-issue**: For hierarchical issue management
438
- - Fallback to regular issues if extension not available
439
-
440
- ## Troubleshooting
441
-
442
- ### Common Issues
443
-
444
- 1. **"No tasks to sync"**
445
- ```bash
446
- # Generate tasks first
447
- /pm:epic-decompose $ARGUMENTS
448
- ```
449
-
450
- 2. **"GitHub CLI not authenticated"**
451
- ```bash
452
- gh auth login
453
- ```
454
-
455
- 3. **"Template repository detected"**
456
- ```bash
457
- git remote set-url origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
458
- ```
459
-
460
- 4. **Partial task creation failure**
461
- - Scripts handle partial failures gracefully
462
- - Check logs for specific task errors
463
- - Retry individual scripts as needed
464
-
465
- ### Script Debugging
466
-
467
- Enable debug logging for detailed troubleshooting:
468
-
469
- ```bash
470
- export AUTOPM_LOG_LEVEL=0 # Enable debug logging
471
- bash .claude/scripts/pm/epic-sync/create-epic-issue.sh "$EPIC_NAME"
472
- ```
473
-
474
- ## Migration from Legacy Epic Sync
475
-
476
- The modular version is fully backward compatible. To migrate:
477
-
478
- 1. **No changes required** - existing commands work unchanged
479
- 2. **Optional**: Use individual scripts for fine-grained control
480
- 3. **Optional**: Configure environment variables for optimization
481
-
482
- Legacy workflows continue to work, but benefit from improved reliability and performance.
483
-
484
- ---
485
-
486
- *This modular implementation provides the same functionality as the original epic-sync with improved reliability, testability, and maintainability.*
@@ -1,28 +0,0 @@
1
- ---
2
- allowed-tools: Bash
3
- ---
4
-
5
- Run `node .claude/scripts/pm/help.js` using the Bash tool and show me the complete output.
6
-
7
- - DO NOT truncate.
8
- - DO NOT collapse.
9
- - DO NOT abbreviate.
10
- - Show ALL lines in full.
11
- ## Required Documentation Access
12
-
13
- **MANDATORY:** Before project management workflows, query Context7 for best practices:
14
-
15
- **Documentation Queries:**
16
- - `mcp://context7/agile/epic-management` - epic management best practices
17
- - `mcp://context7/project-management/issue-tracking` - issue tracking best practices
18
- - `mcp://context7/agile/task-breakdown` - task breakdown best practices
19
- - `mcp://context7/project-management/workflow` - workflow best practices
20
-
21
- **Why This is Required:**
22
- - Ensures adherence to current industry standards and best practices
23
- - Prevents outdated or incorrect implementation patterns
24
- - Provides access to latest framework/tool documentation
25
- - Reduces errors from stale knowledge or assumptions
26
-
27
-
28
- - DO NOT print any other comments.
@@ -1,115 +0,0 @@
1
- ---
2
- allowed-tools: Bash, Read, Write, LS
3
- ---
4
-
5
- # Import
6
-
7
- Import existing GitHub issues into the PM system.
8
-
9
- ## Usage
10
- ```
11
- /pm:import [--epic <epic_name>] [--label <label>]
12
- ```
13
-
14
- Options:
15
- - `--epic` - Import into specific epic
16
- - `--label` - Import only issues with specific label
17
- - No args - Import all untracked issues
18
-
19
- ## Required Documentation Access
20
-
21
- **MANDATORY:** Before project management workflows, query Context7 for best practices:
22
-
23
- **Documentation Queries:**
24
- - `mcp://context7/agile/epic-management` - epic management best practices
25
- - `mcp://context7/project-management/issue-tracking` - issue tracking best practices
26
- - `mcp://context7/agile/task-breakdown` - task breakdown best practices
27
- - `mcp://context7/project-management/workflow` - workflow best practices
28
-
29
- **Why This is Required:**
30
- - Ensures adherence to current industry standards and best practices
31
- - Prevents outdated or incorrect implementation patterns
32
- - Provides access to latest framework/tool documentation
33
- - Reduces errors from stale knowledge or assumptions
34
-
35
-
36
- ## Instructions
37
-
38
- ### 1. Fetch GitHub Issues
39
-
40
- ```bash
41
- # Get issues based on filters
42
- if [[ "$ARGUMENTS" == *"--label"* ]]; then
43
- gh issue list --label "{label}" --limit 1000 --json number,title,body,state,labels,createdAt,updatedAt
44
- else
45
- gh issue list --limit 1000 --json number,title,body,state,labels,createdAt,updatedAt
46
- fi
47
- ```
48
-
49
- ### 2. Identify Untracked Issues
50
-
51
- For each GitHub issue:
52
- - Search local files for matching github URL
53
- - If not found, it's untracked and needs import
54
-
55
- ### 3. Categorize Issues
56
-
57
- Based on labels:
58
- - Issues with "epic" label → Create epic structure
59
- - Issues with "task" label → Create task in appropriate epic
60
- - Issues with "epic:{name}" label → Assign to that epic
61
- - No PM labels → Ask user or create in "imported" epic
62
-
63
- ### 4. Create Local Structure
64
-
65
- For each issue to import:
66
-
67
- **If Epic:**
68
- ```bash
69
- mkdir -p .claude/epics/{epic_name}
70
- # Create epic.md with GitHub content and frontmatter
71
- ```
72
-
73
- **If Task:**
74
- ```bash
75
- # Find next available number (001.md, 002.md, etc.)
76
- # Create task file with GitHub content
77
- ```
78
-
79
- Set frontmatter:
80
- ```yaml
81
- name: {issue_title}
82
- status: {open|closed based on GitHub}
83
- created: {GitHub createdAt}
84
- updated: {GitHub updatedAt}
85
- github: https://github.com/{org}/{repo}/issues/{number}
86
- imported: true
87
- ```
88
-
89
- ### 5. Output
90
-
91
- ```
92
- 📥 Import Complete
93
-
94
- Imported:
95
- Epics: {count}
96
- Tasks: {count}
97
-
98
- Created structure:
99
- {epic_1}/
100
- - {count} tasks
101
- {epic_2}/
102
- - {count} tasks
103
-
104
- Skipped (already tracked): {count}
105
-
106
- Next steps:
107
- Run /pm:status to see imported work
108
- Run /pm:sync to ensure full synchronization
109
- ```
110
-
111
- ## Important Notes
112
-
113
- Preserve all GitHub metadata in frontmatter.
114
- Mark imported files with `imported: true` flag.
115
- Don't overwrite existing local files.
@@ -1,28 +0,0 @@
1
- ---
2
- allowed-tools: Bash
3
- ---
4
-
5
- Run `node .claude/scripts/pm/in-progress.js` using the Bash tool and show me the complete output.
6
-
7
- - DO NOT truncate.
8
- - DO NOT collapse.
9
- - DO NOT abbreviate.
10
- - Show ALL lines in full.
11
- ## Required Documentation Access
12
-
13
- **MANDATORY:** Before project management workflows, query Context7 for best practices:
14
-
15
- **Documentation Queries:**
16
- - `mcp://context7/agile/epic-management` - epic management best practices
17
- - `mcp://context7/project-management/issue-tracking` - issue tracking best practices
18
- - `mcp://context7/agile/task-breakdown` - task breakdown best practices
19
- - `mcp://context7/project-management/workflow` - workflow best practices
20
-
21
- **Why This is Required:**
22
- - Ensures adherence to current industry standards and best practices
23
- - Prevents outdated or incorrect implementation patterns
24
- - Provides access to latest framework/tool documentation
25
- - Reduces errors from stale knowledge or assumptions
26
-
27
-
28
- - DO NOT print any other comments.
@@ -1,28 +0,0 @@
1
- ---
2
- allowed-tools: Bash
3
- ---
4
-
5
- Run `node .claude/scripts/pm/init.js` using the Bash tool and show me the complete output.
6
-
7
- - DO NOT truncate.
8
- - DO NOT collapse.
9
- - DO NOT abbreviate.
10
- - Show ALL lines in full.
11
- ## Required Documentation Access
12
-
13
- **MANDATORY:** Before project management workflows, query Context7 for best practices:
14
-
15
- **Documentation Queries:**
16
- - `mcp://context7/agile/epic-management` - epic management best practices
17
- - `mcp://context7/project-management/issue-tracking` - issue tracking best practices
18
- - `mcp://context7/agile/task-breakdown` - task breakdown best practices
19
- - `mcp://context7/project-management/workflow` - workflow best practices
20
-
21
- **Why This is Required:**
22
- - Ensures adherence to current industry standards and best practices
23
- - Prevents outdated or incorrect implementation patterns
24
- - Provides access to latest framework/tool documentation
25
- - Reduces errors from stale knowledge or assumptions
26
-
27
-
28
- - DO NOT print any other comments.