claude-autopm 2.7.0 → 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 (281) hide show
  1. package/README.md +307 -56
  2. package/autopm/.claude/.env +158 -0
  3. package/autopm/.claude/settings.local.json +9 -0
  4. package/bin/autopm.js +11 -2
  5. package/bin/commands/epic.js +23 -3
  6. package/bin/commands/plugin.js +395 -0
  7. package/bin/commands/team.js +184 -10
  8. package/install/install.js +223 -4
  9. package/lib/cli/commands/issue.js +360 -20
  10. package/lib/plugins/PluginManager.js +1328 -0
  11. package/lib/plugins/PluginManager.old.js +400 -0
  12. package/lib/providers/AzureDevOpsProvider.js +575 -0
  13. package/lib/providers/GitHubProvider.js +475 -0
  14. package/lib/services/EpicService.js +1092 -3
  15. package/lib/services/IssueService.js +991 -0
  16. package/package.json +9 -1
  17. package/scripts/publish-plugins.sh +166 -0
  18. package/autopm/.claude/agents/cloud/README.md +0 -55
  19. package/autopm/.claude/agents/cloud/aws-cloud-architect.md +0 -521
  20. package/autopm/.claude/agents/cloud/azure-cloud-architect.md +0 -436
  21. package/autopm/.claude/agents/cloud/gcp-cloud-architect.md +0 -385
  22. package/autopm/.claude/agents/cloud/gcp-cloud-functions-engineer.md +0 -306
  23. package/autopm/.claude/agents/cloud/gemini-api-expert.md +0 -880
  24. package/autopm/.claude/agents/cloud/kubernetes-orchestrator.md +0 -566
  25. package/autopm/.claude/agents/cloud/openai-python-expert.md +0 -1087
  26. package/autopm/.claude/agents/cloud/terraform-infrastructure-expert.md +0 -454
  27. package/autopm/.claude/agents/core/agent-manager.md +0 -296
  28. package/autopm/.claude/agents/core/code-analyzer.md +0 -131
  29. package/autopm/.claude/agents/core/file-analyzer.md +0 -162
  30. package/autopm/.claude/agents/core/test-runner.md +0 -200
  31. package/autopm/.claude/agents/data/airflow-orchestration-expert.md +0 -52
  32. package/autopm/.claude/agents/data/kedro-pipeline-expert.md +0 -50
  33. package/autopm/.claude/agents/data/langgraph-workflow-expert.md +0 -520
  34. package/autopm/.claude/agents/databases/README.md +0 -50
  35. package/autopm/.claude/agents/databases/bigquery-expert.md +0 -392
  36. package/autopm/.claude/agents/databases/cosmosdb-expert.md +0 -368
  37. package/autopm/.claude/agents/databases/mongodb-expert.md +0 -398
  38. package/autopm/.claude/agents/databases/postgresql-expert.md +0 -321
  39. package/autopm/.claude/agents/databases/redis-expert.md +0 -52
  40. package/autopm/.claude/agents/devops/README.md +0 -52
  41. package/autopm/.claude/agents/devops/azure-devops-specialist.md +0 -308
  42. package/autopm/.claude/agents/devops/docker-containerization-expert.md +0 -298
  43. package/autopm/.claude/agents/devops/github-operations-specialist.md +0 -335
  44. package/autopm/.claude/agents/devops/mcp-context-manager.md +0 -319
  45. package/autopm/.claude/agents/devops/observability-engineer.md +0 -574
  46. package/autopm/.claude/agents/devops/ssh-operations-expert.md +0 -1093
  47. package/autopm/.claude/agents/devops/traefik-proxy-expert.md +0 -444
  48. package/autopm/.claude/agents/frameworks/README.md +0 -64
  49. package/autopm/.claude/agents/frameworks/e2e-test-engineer.md +0 -360
  50. package/autopm/.claude/agents/frameworks/nats-messaging-expert.md +0 -254
  51. package/autopm/.claude/agents/frameworks/react-frontend-engineer.md +0 -217
  52. package/autopm/.claude/agents/frameworks/react-ui-expert.md +0 -226
  53. package/autopm/.claude/agents/frameworks/tailwindcss-expert.md +0 -770
  54. package/autopm/.claude/agents/frameworks/ux-design-expert.md +0 -244
  55. package/autopm/.claude/agents/integration/message-queue-engineer.md +0 -794
  56. package/autopm/.claude/agents/languages/README.md +0 -50
  57. package/autopm/.claude/agents/languages/bash-scripting-expert.md +0 -541
  58. package/autopm/.claude/agents/languages/javascript-frontend-engineer.md +0 -197
  59. package/autopm/.claude/agents/languages/nodejs-backend-engineer.md +0 -226
  60. package/autopm/.claude/agents/languages/python-backend-engineer.md +0 -214
  61. package/autopm/.claude/agents/languages/python-backend-expert.md +0 -289
  62. package/autopm/.claude/agents/testing/frontend-testing-engineer.md +0 -395
  63. package/autopm/.claude/commands/ai/langgraph-workflow.md +0 -65
  64. package/autopm/.claude/commands/ai/openai-chat.md +0 -65
  65. package/autopm/.claude/commands/azure/COMMANDS.md +0 -107
  66. package/autopm/.claude/commands/azure/COMMAND_MAPPING.md +0 -252
  67. package/autopm/.claude/commands/azure/INTEGRATION_FIX.md +0 -103
  68. package/autopm/.claude/commands/azure/README.md +0 -246
  69. package/autopm/.claude/commands/azure/active-work.md +0 -198
  70. package/autopm/.claude/commands/azure/aliases.md +0 -143
  71. package/autopm/.claude/commands/azure/blocked-items.md +0 -287
  72. package/autopm/.claude/commands/azure/clean.md +0 -93
  73. package/autopm/.claude/commands/azure/docs-query.md +0 -48
  74. package/autopm/.claude/commands/azure/feature-decompose.md +0 -380
  75. package/autopm/.claude/commands/azure/feature-list.md +0 -61
  76. package/autopm/.claude/commands/azure/feature-new.md +0 -115
  77. package/autopm/.claude/commands/azure/feature-show.md +0 -205
  78. package/autopm/.claude/commands/azure/feature-start.md +0 -130
  79. package/autopm/.claude/commands/azure/fix-integration-example.md +0 -93
  80. package/autopm/.claude/commands/azure/help.md +0 -150
  81. package/autopm/.claude/commands/azure/import-us.md +0 -269
  82. package/autopm/.claude/commands/azure/init.md +0 -211
  83. package/autopm/.claude/commands/azure/next-task.md +0 -262
  84. package/autopm/.claude/commands/azure/search.md +0 -160
  85. package/autopm/.claude/commands/azure/sprint-status.md +0 -235
  86. package/autopm/.claude/commands/azure/standup.md +0 -260
  87. package/autopm/.claude/commands/azure/sync-all.md +0 -99
  88. package/autopm/.claude/commands/azure/task-analyze.md +0 -186
  89. package/autopm/.claude/commands/azure/task-close.md +0 -329
  90. package/autopm/.claude/commands/azure/task-edit.md +0 -145
  91. package/autopm/.claude/commands/azure/task-list.md +0 -263
  92. package/autopm/.claude/commands/azure/task-new.md +0 -84
  93. package/autopm/.claude/commands/azure/task-reopen.md +0 -79
  94. package/autopm/.claude/commands/azure/task-show.md +0 -126
  95. package/autopm/.claude/commands/azure/task-start.md +0 -301
  96. package/autopm/.claude/commands/azure/task-status.md +0 -65
  97. package/autopm/.claude/commands/azure/task-sync.md +0 -67
  98. package/autopm/.claude/commands/azure/us-edit.md +0 -164
  99. package/autopm/.claude/commands/azure/us-list.md +0 -202
  100. package/autopm/.claude/commands/azure/us-new.md +0 -265
  101. package/autopm/.claude/commands/azure/us-parse.md +0 -253
  102. package/autopm/.claude/commands/azure/us-show.md +0 -188
  103. package/autopm/.claude/commands/azure/us-status.md +0 -320
  104. package/autopm/.claude/commands/azure/validate.md +0 -86
  105. package/autopm/.claude/commands/azure/work-item-sync.md +0 -47
  106. package/autopm/.claude/commands/cloud/infra-deploy.md +0 -38
  107. package/autopm/.claude/commands/github/workflow-create.md +0 -42
  108. package/autopm/.claude/commands/infrastructure/ssh-security.md +0 -65
  109. package/autopm/.claude/commands/infrastructure/traefik-setup.md +0 -65
  110. package/autopm/.claude/commands/kubernetes/deploy.md +0 -37
  111. package/autopm/.claude/commands/playwright/test-scaffold.md +0 -38
  112. package/autopm/.claude/commands/pm/blocked.md +0 -28
  113. package/autopm/.claude/commands/pm/clean.md +0 -119
  114. package/autopm/.claude/commands/pm/context-create.md +0 -136
  115. package/autopm/.claude/commands/pm/context-prime.md +0 -170
  116. package/autopm/.claude/commands/pm/context-update.md +0 -292
  117. package/autopm/.claude/commands/pm/context.md +0 -28
  118. package/autopm/.claude/commands/pm/epic-close.md +0 -86
  119. package/autopm/.claude/commands/pm/epic-decompose.md +0 -370
  120. package/autopm/.claude/commands/pm/epic-edit.md +0 -83
  121. package/autopm/.claude/commands/pm/epic-list.md +0 -30
  122. package/autopm/.claude/commands/pm/epic-merge.md +0 -222
  123. package/autopm/.claude/commands/pm/epic-oneshot.md +0 -119
  124. package/autopm/.claude/commands/pm/epic-refresh.md +0 -119
  125. package/autopm/.claude/commands/pm/epic-show.md +0 -28
  126. package/autopm/.claude/commands/pm/epic-split.md +0 -120
  127. package/autopm/.claude/commands/pm/epic-start.md +0 -195
  128. package/autopm/.claude/commands/pm/epic-status.md +0 -28
  129. package/autopm/.claude/commands/pm/epic-sync-modular.md +0 -338
  130. package/autopm/.claude/commands/pm/epic-sync-original.md +0 -473
  131. package/autopm/.claude/commands/pm/epic-sync.md +0 -486
  132. package/autopm/.claude/commands/pm/help.md +0 -28
  133. package/autopm/.claude/commands/pm/import.md +0 -115
  134. package/autopm/.claude/commands/pm/in-progress.md +0 -28
  135. package/autopm/.claude/commands/pm/init.md +0 -28
  136. package/autopm/.claude/commands/pm/issue-analyze.md +0 -202
  137. package/autopm/.claude/commands/pm/issue-close.md +0 -119
  138. package/autopm/.claude/commands/pm/issue-edit.md +0 -93
  139. package/autopm/.claude/commands/pm/issue-reopen.md +0 -87
  140. package/autopm/.claude/commands/pm/issue-show.md +0 -41
  141. package/autopm/.claude/commands/pm/issue-start.md +0 -234
  142. package/autopm/.claude/commands/pm/issue-status.md +0 -95
  143. package/autopm/.claude/commands/pm/issue-sync.md +0 -411
  144. package/autopm/.claude/commands/pm/next.md +0 -28
  145. package/autopm/.claude/commands/pm/prd-edit.md +0 -82
  146. package/autopm/.claude/commands/pm/prd-list.md +0 -28
  147. package/autopm/.claude/commands/pm/prd-new.md +0 -55
  148. package/autopm/.claude/commands/pm/prd-parse.md +0 -42
  149. package/autopm/.claude/commands/pm/prd-status.md +0 -28
  150. package/autopm/.claude/commands/pm/search.md +0 -28
  151. package/autopm/.claude/commands/pm/standup.md +0 -28
  152. package/autopm/.claude/commands/pm/status.md +0 -28
  153. package/autopm/.claude/commands/pm/sync.md +0 -99
  154. package/autopm/.claude/commands/pm/test-reference-update.md +0 -151
  155. package/autopm/.claude/commands/pm/validate.md +0 -28
  156. package/autopm/.claude/commands/pm/what-next.md +0 -28
  157. package/autopm/.claude/commands/python/api-scaffold.md +0 -50
  158. package/autopm/.claude/commands/python/docs-query.md +0 -48
  159. package/autopm/.claude/commands/react/app-scaffold.md +0 -50
  160. package/autopm/.claude/commands/testing/prime.md +0 -314
  161. package/autopm/.claude/commands/testing/run.md +0 -125
  162. package/autopm/.claude/commands/ui/bootstrap-scaffold.md +0 -65
  163. package/autopm/.claude/commands/ui/tailwind-system.md +0 -64
  164. package/autopm/.claude/rules/ai-integration-patterns.md +0 -219
  165. package/autopm/.claude/rules/ci-cd-kubernetes-strategy.md +0 -25
  166. package/autopm/.claude/rules/database-management-strategy.md +0 -17
  167. package/autopm/.claude/rules/database-pipeline.md +0 -94
  168. package/autopm/.claude/rules/devops-troubleshooting-playbook.md +0 -450
  169. package/autopm/.claude/rules/docker-first-development.md +0 -404
  170. package/autopm/.claude/rules/infrastructure-pipeline.md +0 -128
  171. package/autopm/.claude/rules/performance-guidelines.md +0 -403
  172. package/autopm/.claude/rules/ui-development-standards.md +0 -281
  173. package/autopm/.claude/rules/ui-framework-rules.md +0 -151
  174. package/autopm/.claude/rules/ux-design-rules.md +0 -209
  175. package/autopm/.claude/rules/visual-testing.md +0 -223
  176. package/autopm/.claude/scripts/azure/README.md +0 -192
  177. package/autopm/.claude/scripts/azure/active-work.js +0 -524
  178. package/autopm/.claude/scripts/azure/active-work.sh +0 -20
  179. package/autopm/.claude/scripts/azure/blocked.js +0 -520
  180. package/autopm/.claude/scripts/azure/blocked.sh +0 -20
  181. package/autopm/.claude/scripts/azure/daily.js +0 -533
  182. package/autopm/.claude/scripts/azure/daily.sh +0 -20
  183. package/autopm/.claude/scripts/azure/dashboard.js +0 -970
  184. package/autopm/.claude/scripts/azure/dashboard.sh +0 -20
  185. package/autopm/.claude/scripts/azure/feature-list.js +0 -254
  186. package/autopm/.claude/scripts/azure/feature-list.sh +0 -20
  187. package/autopm/.claude/scripts/azure/feature-show.js +0 -7
  188. package/autopm/.claude/scripts/azure/feature-show.sh +0 -20
  189. package/autopm/.claude/scripts/azure/feature-status.js +0 -604
  190. package/autopm/.claude/scripts/azure/feature-status.sh +0 -20
  191. package/autopm/.claude/scripts/azure/help.js +0 -342
  192. package/autopm/.claude/scripts/azure/help.sh +0 -20
  193. package/autopm/.claude/scripts/azure/next-task.js +0 -508
  194. package/autopm/.claude/scripts/azure/next-task.sh +0 -20
  195. package/autopm/.claude/scripts/azure/search.js +0 -469
  196. package/autopm/.claude/scripts/azure/search.sh +0 -20
  197. package/autopm/.claude/scripts/azure/setup.js +0 -745
  198. package/autopm/.claude/scripts/azure/setup.sh +0 -20
  199. package/autopm/.claude/scripts/azure/sprint-report.js +0 -1012
  200. package/autopm/.claude/scripts/azure/sprint-report.sh +0 -20
  201. package/autopm/.claude/scripts/azure/sync.js +0 -563
  202. package/autopm/.claude/scripts/azure/sync.sh +0 -20
  203. package/autopm/.claude/scripts/azure/us-list.js +0 -210
  204. package/autopm/.claude/scripts/azure/us-list.sh +0 -20
  205. package/autopm/.claude/scripts/azure/us-status.js +0 -238
  206. package/autopm/.claude/scripts/azure/us-status.sh +0 -20
  207. package/autopm/.claude/scripts/azure/validate.js +0 -626
  208. package/autopm/.claude/scripts/azure/validate.sh +0 -20
  209. package/autopm/.claude/scripts/azure/wrapper-template.sh +0 -20
  210. package/autopm/.claude/scripts/github/dependency-tracker.js +0 -554
  211. package/autopm/.claude/scripts/github/dependency-validator.js +0 -545
  212. package/autopm/.claude/scripts/github/dependency-visualizer.js +0 -477
  213. package/autopm/.claude/scripts/pm/analytics.js +0 -425
  214. package/autopm/.claude/scripts/pm/blocked.js +0 -164
  215. package/autopm/.claude/scripts/pm/blocked.sh +0 -78
  216. package/autopm/.claude/scripts/pm/clean.js +0 -464
  217. package/autopm/.claude/scripts/pm/context-create.js +0 -216
  218. package/autopm/.claude/scripts/pm/context-prime.js +0 -335
  219. package/autopm/.claude/scripts/pm/context-update.js +0 -344
  220. package/autopm/.claude/scripts/pm/context.js +0 -338
  221. package/autopm/.claude/scripts/pm/epic-close.js +0 -347
  222. package/autopm/.claude/scripts/pm/epic-edit.js +0 -382
  223. package/autopm/.claude/scripts/pm/epic-list.js +0 -273
  224. package/autopm/.claude/scripts/pm/epic-list.sh +0 -109
  225. package/autopm/.claude/scripts/pm/epic-show.js +0 -291
  226. package/autopm/.claude/scripts/pm/epic-show.sh +0 -105
  227. package/autopm/.claude/scripts/pm/epic-split.js +0 -522
  228. package/autopm/.claude/scripts/pm/epic-start/epic-start.js +0 -183
  229. package/autopm/.claude/scripts/pm/epic-start/epic-start.sh +0 -94
  230. package/autopm/.claude/scripts/pm/epic-status.js +0 -291
  231. package/autopm/.claude/scripts/pm/epic-status.sh +0 -104
  232. package/autopm/.claude/scripts/pm/epic-sync/README.md +0 -208
  233. package/autopm/.claude/scripts/pm/epic-sync/create-epic-issue.sh +0 -77
  234. package/autopm/.claude/scripts/pm/epic-sync/create-task-issues.sh +0 -86
  235. package/autopm/.claude/scripts/pm/epic-sync/update-epic-file.sh +0 -79
  236. package/autopm/.claude/scripts/pm/epic-sync/update-references.sh +0 -89
  237. package/autopm/.claude/scripts/pm/epic-sync.sh +0 -137
  238. package/autopm/.claude/scripts/pm/help.js +0 -92
  239. package/autopm/.claude/scripts/pm/help.sh +0 -90
  240. package/autopm/.claude/scripts/pm/in-progress.js +0 -178
  241. package/autopm/.claude/scripts/pm/in-progress.sh +0 -93
  242. package/autopm/.claude/scripts/pm/init.js +0 -321
  243. package/autopm/.claude/scripts/pm/init.sh +0 -178
  244. package/autopm/.claude/scripts/pm/issue-close.js +0 -232
  245. package/autopm/.claude/scripts/pm/issue-edit.js +0 -310
  246. package/autopm/.claude/scripts/pm/issue-show.js +0 -272
  247. package/autopm/.claude/scripts/pm/issue-start.js +0 -181
  248. package/autopm/.claude/scripts/pm/issue-sync/format-comment.sh +0 -468
  249. package/autopm/.claude/scripts/pm/issue-sync/gather-updates.sh +0 -460
  250. package/autopm/.claude/scripts/pm/issue-sync/post-comment.sh +0 -330
  251. package/autopm/.claude/scripts/pm/issue-sync/preflight-validation.sh +0 -348
  252. package/autopm/.claude/scripts/pm/issue-sync/update-frontmatter.sh +0 -387
  253. package/autopm/.claude/scripts/pm/lib/README.md +0 -85
  254. package/autopm/.claude/scripts/pm/lib/epic-discovery.js +0 -119
  255. package/autopm/.claude/scripts/pm/lib/logger.js +0 -78
  256. package/autopm/.claude/scripts/pm/next.js +0 -189
  257. package/autopm/.claude/scripts/pm/next.sh +0 -72
  258. package/autopm/.claude/scripts/pm/optimize.js +0 -407
  259. package/autopm/.claude/scripts/pm/pr-create.js +0 -337
  260. package/autopm/.claude/scripts/pm/pr-list.js +0 -257
  261. package/autopm/.claude/scripts/pm/prd-list.js +0 -242
  262. package/autopm/.claude/scripts/pm/prd-list.sh +0 -103
  263. package/autopm/.claude/scripts/pm/prd-new.js +0 -684
  264. package/autopm/.claude/scripts/pm/prd-parse.js +0 -547
  265. package/autopm/.claude/scripts/pm/prd-status.js +0 -152
  266. package/autopm/.claude/scripts/pm/prd-status.sh +0 -63
  267. package/autopm/.claude/scripts/pm/release.js +0 -460
  268. package/autopm/.claude/scripts/pm/search.js +0 -192
  269. package/autopm/.claude/scripts/pm/search.sh +0 -89
  270. package/autopm/.claude/scripts/pm/standup.js +0 -362
  271. package/autopm/.claude/scripts/pm/standup.sh +0 -95
  272. package/autopm/.claude/scripts/pm/status.js +0 -148
  273. package/autopm/.claude/scripts/pm/status.sh +0 -59
  274. package/autopm/.claude/scripts/pm/sync-batch.js +0 -337
  275. package/autopm/.claude/scripts/pm/sync.js +0 -343
  276. package/autopm/.claude/scripts/pm/template-list.js +0 -141
  277. package/autopm/.claude/scripts/pm/template-new.js +0 -366
  278. package/autopm/.claude/scripts/pm/validate.js +0 -274
  279. package/autopm/.claude/scripts/pm/validate.sh +0 -106
  280. package/autopm/.claude/scripts/pm/what-next.js +0 -660
  281. package/bin/node/azure-feature-show.js +0 -7
@@ -1,473 +0,0 @@
1
- ---
2
- allowed-tools: Bash, Read, Write, LS, Task
3
- ---
4
-
5
- # Epic Sync
6
-
7
- Push epic and tasks to GitHub as issues.
8
-
9
- ## Usage
10
- ```
11
- /pm:epic-sync <feature_name>
12
- ```
13
-
14
- ## Required Documentation Access
15
-
16
- **MANDATORY:** Before project management workflows, query Context7 for best practices:
17
-
18
- **Documentation Queries:**
19
- - `mcp://context7/agile/epic-management` - epic management best practices
20
- - `mcp://context7/project-management/issue-tracking` - issue tracking best practices
21
- - `mcp://context7/agile/task-breakdown` - task breakdown best practices
22
- - `mcp://context7/project-management/workflow` - workflow best practices
23
-
24
- **Why This is Required:**
25
- - Ensures adherence to current industry standards and best practices
26
- - Prevents outdated or incorrect implementation patterns
27
- - Provides access to latest framework/tool documentation
28
- - Reduces errors from stale knowledge or assumptions
29
-
30
-
31
- ## Quick Check
32
-
33
- ```bash
34
- # Verify epic exists
35
- test -f .claude/epics/$ARGUMENTS/epic.md || echo "❌ Epic not found. Run: /pm:prd-parse $ARGUMENTS"
36
-
37
- # Count task files
38
- ls .claude/epics/$ARGUMENTS/*.md 2>/dev/null | grep -v epic.md | wc -l
39
- ```
40
-
41
- If no tasks found: "❌ No tasks to sync. Run: /pm:epic-decompose $ARGUMENTS"
42
-
43
- ## Instructions
44
-
45
- ### 0. Check Remote Repository
46
-
47
- Follow `/rules/github-operations.md` to ensure we're not syncing to the AutoPM template:
48
-
49
- ```bash
50
- # Check if remote origin is the AutoPM template repository
51
- remote_url=$(git remote get-url origin 2>/dev/null || echo "")
52
- if [[ "$remote_url" == *"rlagowski/autopm"* ]] || [[ "$remote_url" == *"rlagowski/autopm.git"* ]]; then
53
- echo "❌ ERROR: You're trying to sync with the AutoPM template repository!"
54
- echo ""
55
- echo "This repository (rlagowski/autopm) is a template for others to use."
56
- echo "You should NOT create issues or PRs here."
57
- echo ""
58
- echo "To fix this:"
59
- echo "1. Fork this repository to your own GitHub account"
60
- echo "2. Update your remote origin:"
61
- echo " git remote set-url origin https://github.com/YOUR_USERNAME/YOUR_REPO.git"
62
- echo ""
63
- echo "Or if this is a new project:"
64
- echo "1. Create a new repository on GitHub"
65
- echo "2. Update your remote origin:"
66
- echo " git remote set-url origin https://github.com/YOUR_USERNAME/YOUR_REPO.git"
67
- echo ""
68
- echo "Current remote: $remote_url"
69
- exit 1
70
- fi
71
- ```
72
-
73
- ### 1. Create Epic Issue
74
-
75
- Strip frontmatter and prepare GitHub issue body:
76
- ```bash
77
- # Extract content without frontmatter
78
- sed '1,/^---$/d; 1,/^---$/d' .claude/epics/$ARGUMENTS/epic.md > /tmp/epic-body-raw.md
79
-
80
- # Remove "## Tasks Created" section and replace with Stats
81
- awk '
82
- /^## Tasks Created/ {
83
- in_tasks=1
84
- next
85
- }
86
- /^## / && in_tasks {
87
- in_tasks=0
88
- # When we hit the next section after Tasks Created, add Stats
89
- if (total_tasks) {
90
- print "## Stats\n"
91
- print "Total tasks: " total_tasks
92
- print "Parallel tasks: " parallel_tasks " (can be worked on simultaneously)"
93
- print "Sequential tasks: " sequential_tasks " (have dependencies)"
94
- if (total_effort) print "Estimated total effort: " total_effort " hours"
95
- print ""
96
- }
97
- }
98
- /^Total tasks:/ && in_tasks { total_tasks = $3; next }
99
- /^Parallel tasks:/ && in_tasks { parallel_tasks = $3; next }
100
- /^Sequential tasks:/ && in_tasks { sequential_tasks = $3; next }
101
- /^Estimated total effort:/ && in_tasks {
102
- gsub(/^Estimated total effort: /, "")
103
- total_effort = $0
104
- next
105
- }
106
- !in_tasks { print }
107
- END {
108
- # If we were still in tasks section at EOF, add stats
109
- if (in_tasks && total_tasks) {
110
- print "## Stats\n"
111
- print "Total tasks: " total_tasks
112
- print "Parallel tasks: " parallel_tasks " (can be worked on simultaneously)"
113
- print "Sequential tasks: " sequential_tasks " (have dependencies)"
114
- if (total_effort) print "Estimated total effort: " total_effort
115
- }
116
- }
117
- ' /tmp/epic-body-raw.md > /tmp/epic-body.md
118
-
119
- # Determine epic type (feature vs bug) from content
120
- if grep -qi "bug\|fix\|issue\|problem\|error" /tmp/epic-body.md; then
121
- epic_type="bug"
122
- else
123
- epic_type="feature"
124
- fi
125
-
126
- # Create epic issue with labels
127
- epic_number=$(gh issue create \
128
- --title "Epic: $ARGUMENTS" \
129
- --body-file /tmp/epic-body.md \
130
- --label "epic,epic:$ARGUMENTS,$epic_type" \
131
- --json number -q .number)
132
- ```
133
-
134
- Store the returned issue number for epic frontmatter update.
135
-
136
- ### 2. Create Task Sub-Issues
137
-
138
- Check if gh-sub-issue is available:
139
- ```bash
140
- if gh extension list | grep -q "yahsan2/gh-sub-issue"; then
141
- use_subissues=true
142
- else
143
- use_subissues=false
144
- echo "⚠️ gh-sub-issue not installed. Using fallback mode."
145
- fi
146
- ```
147
-
148
- Count task files to determine strategy:
149
- ```bash
150
- task_count=$(ls .claude/epics/$ARGUMENTS/[0-9][0-9][0-9].md 2>/dev/null | wc -l)
151
- ```
152
-
153
- ### For Small Batches (< 5 tasks): Sequential Creation
154
-
155
- ```bash
156
- if [ "$task_count" -lt 5 ]; then
157
- # Create sequentially for small batches
158
- for task_file in .claude/epics/$ARGUMENTS/[0-9][0-9][0-9].md; do
159
- [ -f "$task_file" ] || continue
160
-
161
- # Extract task name from frontmatter
162
- task_name=$(grep '^name:' "$task_file" | sed 's/^name: *//')
163
-
164
- # Strip frontmatter from task content
165
- sed '1,/^---$/d; 1,/^---$/d' "$task_file" > /tmp/task-body.md
166
-
167
- # Create sub-issue with labels
168
- if [ "$use_subissues" = true ]; then
169
- task_number=$(gh sub-issue create \
170
- --parent "$epic_number" \
171
- --title "$task_name" \
172
- --body-file /tmp/task-body.md \
173
- --label "task,epic:$ARGUMENTS" \
174
- --json number -q .number)
175
- else
176
- task_number=$(gh issue create \
177
- --title "$task_name" \
178
- --body-file /tmp/task-body.md \
179
- --label "task,epic:$ARGUMENTS" \
180
- --json number -q .number)
181
- fi
182
-
183
- # Record mapping for renaming
184
- echo "$task_file:$task_number" >> /tmp/task-mapping.txt
185
- done
186
-
187
- # After creating all issues, update references and rename files
188
- # This follows the same process as step 3 below
189
- fi
190
- ```
191
-
192
- ### For Larger Batches: Parallel Creation
193
-
194
- ```bash
195
- if [ "$task_count" -ge 5 ]; then
196
- echo "Creating $task_count sub-issues in parallel..."
197
-
198
- # Check if gh-sub-issue is available for parallel agents
199
- if gh extension list | grep -q "yahsan2/gh-sub-issue"; then
200
- subissue_cmd="gh sub-issue create --parent $epic_number"
201
- else
202
- subissue_cmd="gh issue create"
203
- fi
204
-
205
- # Batch tasks for parallel processing
206
- # Spawn agents to create sub-issues in parallel with proper labels
207
- # Each agent must use: --label "task,epic:$ARGUMENTS"
208
- fi
209
- ```
210
-
211
- Use Task tool for parallel creation:
212
- ```yaml
213
- Task:
214
- description: "Create GitHub sub-issues batch {X}"
215
- subagent_type: "general-purpose"
216
- prompt: |
217
- Create GitHub sub-issues for tasks in epic $ARGUMENTS
218
- Parent epic issue: #$epic_number
219
-
220
- Tasks to process:
221
- - {list of 3-4 task files}
222
-
223
- For each task file:
224
- 1. Extract task name from frontmatter
225
- 2. Strip frontmatter using: sed '1,/^---$/d; 1,/^---$/d'
226
- 3. Create sub-issue using:
227
- - If gh-sub-issue available:
228
- gh sub-issue create --parent $epic_number --title "$task_name" \
229
- --body-file /tmp/task-body.md --label "task,epic:$ARGUMENTS"
230
- - Otherwise:
231
- gh issue create --title "$task_name" --body-file /tmp/task-body.md \
232
- --label "task,epic:$ARGUMENTS"
233
- 4. Record: task_file:issue_number
234
-
235
- IMPORTANT: Always include --label parameter with "task,epic:$ARGUMENTS"
236
-
237
- Return mapping of files to issue numbers.
238
- ```
239
-
240
- Consolidate results from parallel agents:
241
- ```bash
242
- # Collect all mappings from agents
243
- cat /tmp/batch-*/mapping.txt >> /tmp/task-mapping.txt
244
-
245
- # IMPORTANT: After consolidation, follow step 3 to:
246
- # 1. Build old->new ID mapping
247
- # 2. Update all task references (depends_on, conflicts_with)
248
- # 3. Rename files with proper frontmatter updates
249
- ```
250
-
251
- ### 3. Rename Task Files and Update References
252
-
253
- First, build a mapping of old numbers to new issue IDs:
254
- ```bash
255
- # Create mapping from old task numbers (001, 002, etc.) to new issue IDs
256
- > /tmp/id-mapping.txt
257
- while IFS=: read -r task_file task_number; do
258
- # Extract old number from filename (e.g., 001 from 001.md)
259
- old_num=$(basename "$task_file" .md)
260
- echo "$old_num:$task_number" >> /tmp/id-mapping.txt
261
- done < /tmp/task-mapping.txt
262
- ```
263
-
264
- Then rename files and update all references:
265
- ```bash
266
- # Process each task file
267
- while IFS=: read -r task_file task_number; do
268
- new_name="$(dirname "$task_file")/${task_number}.md"
269
-
270
- # Read the file content
271
- content=$(cat "$task_file")
272
-
273
- # Update depends_on and conflicts_with references
274
- while IFS=: read -r old_num new_num; do
275
- # Update arrays like [001, 002] to use new issue numbers
276
- content=$(echo "$content" | sed "s/\b$old_num\b/$new_num/g")
277
- done < /tmp/id-mapping.txt
278
-
279
- # Write updated content to new file
280
- echo "$content" > "$new_name"
281
-
282
- # Remove old file if different from new
283
- [ "$task_file" != "$new_name" ] && rm "$task_file"
284
-
285
- # Update github field in frontmatter
286
- # Add the GitHub URL to the frontmatter
287
- repo=$(gh repo view --json nameWithOwner -q .nameWithOwner)
288
- github_url="https://github.com/$repo/issues/$task_number"
289
-
290
- # Update frontmatter with GitHub URL and current timestamp
291
- current_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
292
-
293
- # Use sed to update the github and updated fields
294
- sed -i.bak "/^github:/c\github: $github_url" "$new_name"
295
- sed -i.bak "/^updated:/c\updated: $current_date" "$new_name"
296
- rm "${new_name}.bak"
297
- done < /tmp/task-mapping.txt
298
- ```
299
-
300
- ### 4. Update Epic with Task List (Fallback Only)
301
-
302
- If NOT using gh-sub-issue, add task list to epic:
303
-
304
- ```bash
305
- if [ "$use_subissues" = false ]; then
306
- # Get current epic body
307
- gh issue view {epic_number} --json body -q .body > /tmp/epic-body.md
308
-
309
- # Append task list
310
- cat >> /tmp/epic-body.md << 'EOF'
311
-
312
- ## Tasks
313
- - [ ] #{task1_number} {task1_name}
314
- - [ ] #{task2_number} {task2_name}
315
- - [ ] #{task3_number} {task3_name}
316
- EOF
317
-
318
- # Update epic issue
319
- gh issue edit {epic_number} --body-file /tmp/epic-body.md
320
- fi
321
- ```
322
-
323
- With gh-sub-issue, this is automatic!
324
-
325
- ### 5. Update Epic File
326
-
327
- Update the epic file with GitHub URL, timestamp, and real task IDs:
328
-
329
- #### 5a. Update Frontmatter
330
- ```bash
331
- # Get repo info
332
- repo=$(gh repo view --json nameWithOwner -q .nameWithOwner)
333
- epic_url="https://github.com/$repo/issues/$epic_number"
334
- current_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
335
-
336
- # Update epic frontmatter
337
- sed -i.bak "/^github:/c\github: $epic_url" .claude/epics/$ARGUMENTS/epic.md
338
- sed -i.bak "/^updated:/c\updated: $current_date" .claude/epics/$ARGUMENTS/epic.md
339
- rm .claude/epics/$ARGUMENTS/epic.md.bak
340
- ```
341
-
342
- #### 5b. Update Tasks Created Section
343
- ```bash
344
- # Create a temporary file with the updated Tasks Created section
345
- cat > /tmp/tasks-section.md << 'EOF'
346
- ## Tasks Created
347
- EOF
348
-
349
- # Add each task with its real issue number
350
- for task_file in .claude/epics/$ARGUMENTS/[0-9]*.md; do
351
- [ -f "$task_file" ] || continue
352
-
353
- # Get issue number (filename without .md)
354
- issue_num=$(basename "$task_file" .md)
355
-
356
- # Get task name from frontmatter
357
- task_name=$(grep '^name:' "$task_file" | sed 's/^name: *//')
358
-
359
- # Get parallel status
360
- parallel=$(grep '^parallel:' "$task_file" | sed 's/^parallel: *//')
361
-
362
- # Add to tasks section
363
- echo "- [ ] #${issue_num} - ${task_name} (parallel: ${parallel})" >> /tmp/tasks-section.md
364
- done
365
-
366
- # Add summary statistics
367
- total_count=$(ls .claude/epics/$ARGUMENTS/[0-9]*.md 2>/dev/null | wc -l)
368
- parallel_count=$(grep -l '^parallel: true' .claude/epics/$ARGUMENTS/[0-9]*.md 2>/dev/null | wc -l)
369
- sequential_count=$((total_count - parallel_count))
370
-
371
- cat >> /tmp/tasks-section.md << EOF
372
-
373
- Total tasks: ${total_count}
374
- Parallel tasks: ${parallel_count}
375
- Sequential tasks: ${sequential_count}
376
- EOF
377
-
378
- # Replace the Tasks Created section in epic.md
379
- # First, create a backup
380
- cp .claude/epics/$ARGUMENTS/epic.md .claude/epics/$ARGUMENTS/epic.md.backup
381
-
382
- # Use awk to replace the section
383
- awk '
384
- /^## Tasks Created/ {
385
- skip=1
386
- while ((getline line < "/tmp/tasks-section.md") > 0) print line
387
- close("/tmp/tasks-section.md")
388
- }
389
- /^## / && !/^## Tasks Created/ { skip=0 }
390
- !skip && !/^## Tasks Created/ { print }
391
- ' .claude/epics/$ARGUMENTS/epic.md.backup > .claude/epics/$ARGUMENTS/epic.md
392
-
393
- # Clean up
394
- rm .claude/epics/$ARGUMENTS/epic.md.backup
395
- rm /tmp/tasks-section.md
396
- ```
397
-
398
- ### 6. Create Mapping File
399
-
400
- Create `.claude/epics/$ARGUMENTS/github-mapping.md`:
401
- ```bash
402
- # Create mapping file
403
- cat > .claude/epics/$ARGUMENTS/github-mapping.md << EOF
404
- # GitHub Issue Mapping
405
-
406
- Epic: #${epic_number} - https://github.com/${repo}/issues/${epic_number}
407
-
408
- Tasks:
409
- EOF
410
-
411
- # Add each task mapping
412
- for task_file in .claude/epics/$ARGUMENTS/[0-9]*.md; do
413
- [ -f "$task_file" ] || continue
414
-
415
- issue_num=$(basename "$task_file" .md)
416
- task_name=$(grep '^name:' "$task_file" | sed 's/^name: *//')
417
-
418
- echo "- #${issue_num}: ${task_name} - https://github.com/${repo}/issues/${issue_num}" >> .claude/epics/$ARGUMENTS/github-mapping.md
419
- done
420
-
421
- # Add sync timestamp
422
- echo "" >> .claude/epics/$ARGUMENTS/github-mapping.md
423
- echo "Synced: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> .claude/epics/$ARGUMENTS/github-mapping.md
424
- ```
425
-
426
- ### 7. Create Branch
427
-
428
- Follow `/rules/git-strategy.md` to create development branch:
429
-
430
- ```bash
431
- # Ensure main is current
432
- git checkout main
433
- git pull origin main
434
-
435
- # Create branch for epic
436
- git checkout -b epic/$ARGUMENTS
437
- git push -u origin epic/$ARGUMENTS
438
-
439
- echo "✅ Created branch: epic/$ARGUMENTS"
440
- ```
441
-
442
- ### 8. Output
443
-
444
- ```
445
- ✅ Synced to GitHub
446
- - Epic: #{epic_number} - {epic_title}
447
- - Tasks: {count} sub-issues created
448
- - Labels applied: epic, task, epic:{name}
449
- - Files renamed: 001.md → {issue_id}.md
450
- - References updated: depends_on/conflicts_with now use issue IDs
451
- - Branch: epic/$ARGUMENTS
452
-
453
- Next steps:
454
- - Start parallel execution: /pm:epic-start $ARGUMENTS
455
- - Or work on single issue: /pm:issue-start {issue_number}
456
- - View epic: https://github.com/{owner}/{repo}/issues/{epic_number}
457
- ```
458
-
459
- ## Error Handling
460
-
461
- Follow `/rules/github-operations.md` for GitHub CLI errors.
462
-
463
- If any issue creation fails:
464
- - Report what succeeded
465
- - Note what failed
466
- - Don't attempt rollback (partial sync is fine)
467
-
468
- ## Important Notes
469
-
470
- - Trust GitHub CLI authentication
471
- - Don't pre-check for duplicates
472
- - Update frontmatter only after successful creation
473
- - Keep operations simple and atomic