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,77 +0,0 @@
1
- #!/bin/bash
2
- # Create Epic Issue
3
- # Creates the main GitHub issue for an epic with proper labels and stats
4
-
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- EPIC_NAME="${1:-}"
9
-
10
- if [[ -z "$EPIC_NAME" ]]; then
11
- echo "❌ Error: Epic name required"
12
- echo "Usage: $0 <epic_name>"
13
- exit 1
14
- fi
15
-
16
- # Source utilities if they exist
17
- if [[ -f "$SCRIPT_DIR/../../lib/github-utils.sh" ]]; then
18
- source "$SCRIPT_DIR/../../lib/github-utils.sh"
19
- fi
20
-
21
- EPIC_FILE=".claude/epics/$EPIC_NAME/epic.md"
22
-
23
- if [[ ! -f "$EPIC_FILE" ]]; then
24
- echo "❌ Error: Epic file not found: $EPIC_FILE"
25
- exit 1
26
- fi
27
-
28
- # Check GitHub CLI
29
- if ! command -v gh &> /dev/null; then
30
- echo "❌ Error: GitHub CLI (gh) not installed"
31
- exit 1
32
- fi
33
-
34
- # Check authentication
35
- if ! gh auth status &> /dev/null; then
36
- echo "❌ Error: GitHub CLI not authenticated. Run: gh auth login"
37
- exit 1
38
- fi
39
-
40
- # Strip frontmatter and get content
41
- epic_content=$(awk 'BEGIN{p=0} /^---$/{p++; next} p==2{print}' "$EPIC_FILE")
42
-
43
- # Count tasks
44
- task_count=$(find ".claude/epics/$EPIC_NAME" -name "[0-9]*.md" -type f 2>/dev/null | wc -l)
45
-
46
- # Detect epic type (bug vs feature)
47
- if echo "$epic_content" | grep -qi "bug\|fix\|error\|issue"; then
48
- labels="epic,bug"
49
- else
50
- labels="epic,feature"
51
- fi
52
-
53
- # Create issue
54
- echo "📝 Creating epic issue for: $EPIC_NAME"
55
- echo " Tasks: $task_count"
56
- echo " Labels: $labels"
57
-
58
- # Create the issue
59
- epic_number=$(gh issue create \
60
- --title "Epic: $EPIC_NAME" \
61
- --body "$epic_content
62
-
63
- ---
64
- **Epic Statistics:**
65
- - Tasks: $task_count
66
- - Status: Planning
67
- - Created: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
68
- " \
69
- --label "$labels" \
70
- 2>&1 | grep -oP '(?<=#)[0-9]+' | head -1)
71
-
72
- if [[ -z "$epic_number" ]]; then
73
- echo "❌ Error: Failed to create epic issue"
74
- exit 1
75
- fi
76
-
77
- echo "$epic_number"
@@ -1,86 +0,0 @@
1
- #!/bin/bash
2
- # Create Task Issues
3
- # Creates GitHub issues for all tasks and generates mapping file
4
-
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- EPIC_NAME="${1:-}"
9
- EPIC_NUMBER="${2:-}"
10
-
11
- if [[ -z "$EPIC_NAME" ]] || [[ -z "$EPIC_NUMBER" ]]; then
12
- echo "❌ Error: Epic name and epic number required"
13
- echo "Usage: $0 <epic_name> <epic_number>"
14
- exit 1
15
- fi
16
-
17
- EPIC_DIR=".claude/epics/$EPIC_NAME"
18
-
19
- if [[ ! -d "$EPIC_DIR" ]]; then
20
- echo "❌ Error: Epic directory not found: $EPIC_DIR"
21
- exit 1
22
- fi
23
-
24
- # Mapping file - PERSISTENT location (not in /tmp)
25
- MAPPING_FILE="$EPIC_DIR/.task-mapping.txt"
26
- > "$MAPPING_FILE" # Clear/create file
27
-
28
- echo "📋 Creating task issues for epic #$EPIC_NUMBER"
29
-
30
- # Find all task files (sequential numbered files)
31
- task_files=$(find "$EPIC_DIR" -name "[0-9]*.md" -type f | sort)
32
-
33
- if [[ -z "$task_files" ]]; then
34
- echo "❌ Error: No task files found in $EPIC_DIR"
35
- exit 1
36
- fi
37
-
38
- task_count=$(echo "$task_files" | wc -l)
39
- echo " Found $task_count tasks to create"
40
-
41
- current=0
42
-
43
- # Create issues for each task
44
- for task_file in $task_files; do
45
- ((current++))
46
-
47
- task_basename=$(basename "$task_file" .md)
48
-
49
- # Strip frontmatter and get content
50
- task_content=$(awk 'BEGIN{p=0} /^---$/{p++; next} p==2{print}' "$task_file")
51
-
52
- # Extract title from first heading or use basename
53
- task_title=$(echo "$task_content" | grep -m1 "^#" | sed 's/^# *//' || echo "Task $task_basename")
54
-
55
- echo -n " [$current/$task_count] Creating issue for task $task_basename... "
56
-
57
- # Create task issue
58
- issue_number=$(gh issue create \
59
- --title "$task_title" \
60
- --body "$task_content
61
-
62
- ---
63
- **Task Information:**
64
- - Epic: #$EPIC_NUMBER
65
- - Original ID: $task_basename
66
- - Created: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
67
- " \
68
- --label "task,epic:$EPIC_NAME" \
69
- 2>&1 | grep -oP '(?<=#)[0-9]+' | head -1)
70
-
71
- if [[ -n "$issue_number" ]]; then
72
- echo "#$issue_number ✓"
73
- # Save mapping: old_name -> new_number
74
- echo "$task_basename $issue_number" >> "$MAPPING_FILE"
75
- else
76
- echo "FAILED"
77
- echo "⚠️ Failed to create issue for $task_basename"
78
- fi
79
- done
80
-
81
- echo ""
82
- echo "✅ Created $current task issues"
83
- echo " Mapping saved to: $MAPPING_FILE"
84
-
85
- # Output the mapping file path for next script
86
- echo "$MAPPING_FILE"
@@ -1,79 +0,0 @@
1
- #!/bin/bash
2
- # Update Epic File
3
- # Updates epic.md with GitHub URL and real task issue numbers
4
-
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- EPIC_NAME="${1:-}"
9
- EPIC_NUMBER="${2:-}"
10
-
11
- if [[ -z "$EPIC_NAME" ]] || [[ -z "$EPIC_NUMBER" ]]; then
12
- echo "❌ Error: Epic name and epic number required"
13
- echo "Usage: $0 <epic_name> <epic_number>"
14
- exit 1
15
- fi
16
-
17
- EPIC_DIR=".claude/epics/$EPIC_NAME"
18
- EPIC_FILE="$EPIC_DIR/epic.md"
19
- MAPPING_FILE="$EPIC_DIR/.task-mapping.txt"
20
-
21
- if [[ ! -f "$EPIC_FILE" ]]; then
22
- echo "❌ Error: Epic file not found: $EPIC_FILE"
23
- exit 1
24
- fi
25
-
26
- # Get repository info
27
- REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "unknown/repo")
28
- EPIC_URL="https://github.com/$REPO/issues/$EPIC_NUMBER"
29
-
30
- echo "📄 Updating epic file: $EPIC_FILE"
31
-
32
- # Create backup
33
- cp "$EPIC_FILE" "$EPIC_FILE.backup"
34
-
35
- # Update frontmatter
36
- timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
37
-
38
- awk -v url="$EPIC_URL" -v ts="$timestamp" '
39
- BEGIN { in_front=0; front_done=0 }
40
- /^---$/ {
41
- if (!front_done) {
42
- in_front = !in_front
43
- if (!in_front) front_done=1
44
- }
45
- print
46
- next
47
- }
48
- in_front && /^github:/ {
49
- print "github: " url
50
- next
51
- }
52
- in_front && /^updated:/ {
53
- print "updated: " ts
54
- next
55
- }
56
- { print }
57
- ' "$EPIC_FILE.backup" > "$EPIC_FILE.tmp"
58
-
59
- # If mapping file exists, update task references in the body
60
- if [[ -f "$MAPPING_FILE" ]]; then
61
- echo " Updating task references with real issue numbers..."
62
-
63
- # Read mapping and update task references
64
- while read -r old_name new_number; do
65
- # Update checkbox items like "- [ ] 001" to "- [ ] #2"
66
- sed -i "s/- \[ \] $old_name\b/- [ ] #$new_number/g" "$EPIC_FILE.tmp"
67
- sed -i "s/- \[x\] $old_name\b/- [x] #$new_number/g" "$EPIC_FILE.tmp"
68
-
69
- # Update task links
70
- sed -i "s/Task $old_name\b/Task #$new_number/g" "$EPIC_FILE.tmp"
71
- done < "$MAPPING_FILE"
72
- fi
73
-
74
- # Finalize
75
- mv "$EPIC_FILE.tmp" "$EPIC_FILE"
76
- rm "$EPIC_FILE.backup"
77
-
78
- echo "✅ Epic file updated"
79
- echo " GitHub: $EPIC_URL"
@@ -1,89 +0,0 @@
1
- #!/bin/bash
2
- # Update Task References
3
- # Renames task files to GitHub issue numbers and updates frontmatter
4
-
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- EPIC_NAME="${1:-}"
9
- MAPPING_FILE="${2:-}"
10
-
11
- if [[ -z "$EPIC_NAME" ]] || [[ -z "$MAPPING_FILE" ]]; then
12
- echo "❌ Error: Epic name and mapping file required"
13
- echo "Usage: $0 <epic_name> <mapping_file>"
14
- exit 1
15
- fi
16
-
17
- if [[ ! -f "$MAPPING_FILE" ]]; then
18
- echo "❌ Error: Mapping file not found: $MAPPING_FILE"
19
- exit 1
20
- fi
21
-
22
- EPIC_DIR=".claude/epics/$EPIC_NAME"
23
-
24
- if [[ ! -d "$EPIC_DIR" ]]; then
25
- echo "❌ Error: Epic directory not found: $EPIC_DIR"
26
- exit 1
27
- fi
28
-
29
- # Get repository info
30
- REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "unknown/repo")
31
-
32
- echo "🔗 Updating task references and renaming files"
33
-
34
- # Read mapping file and rename files
35
- while read -r old_name new_number; do
36
- old_file="$EPIC_DIR/$old_name.md"
37
- new_file="$EPIC_DIR/$new_number.md"
38
-
39
- if [[ ! -f "$old_file" ]]; then
40
- echo "⚠️ File not found: $old_file (skipping)"
41
- continue
42
- fi
43
-
44
- echo -n " Renaming $old_name.md → $new_number.md... "
45
-
46
- # Create backup
47
- cp "$old_file" "$old_file.backup"
48
-
49
- # Update frontmatter with GitHub URL and timestamp
50
- github_url="https://github.com/$REPO/issues/$new_number"
51
- timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
52
-
53
- # Update frontmatter
54
- awk -v url="$github_url" -v ts="$timestamp" '
55
- BEGIN { in_front=0; front_done=0 }
56
- /^---$/ {
57
- if (!front_done) {
58
- in_front = !in_front
59
- if (!in_front) front_done=1
60
- }
61
- print
62
- next
63
- }
64
- in_front && /^github:/ {
65
- print "github: " url
66
- next
67
- }
68
- in_front && /^updated:/ {
69
- print "updated: " ts
70
- next
71
- }
72
- { print }
73
- ' "$old_file" > "$new_file"
74
-
75
- # Remove old file if new file was created successfully
76
- if [[ -f "$new_file" ]]; then
77
- rm "$old_file"
78
- rm "$old_file.backup"
79
- echo "✓"
80
- else
81
- # Restore from backup if something went wrong
82
- mv "$old_file.backup" "$old_file"
83
- echo "FAILED"
84
- fi
85
-
86
- done < "$MAPPING_FILE"
87
-
88
- echo ""
89
- echo "✅ Task files renamed and frontmatter updated"
@@ -1,137 +0,0 @@
1
- #!/bin/bash
2
- # Epic Sync - Complete Orchestration
3
- # Orchestrates the full epic sync workflow with all 4 modular scripts
4
-
5
- set -euo pipefail
6
-
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
- EPIC_NAME="${1:-}"
9
-
10
- if [[ -z "$EPIC_NAME" ]]; then
11
- echo ""
12
- echo "❌ Error: Epic name required"
13
- echo ""
14
- echo "Usage: $0 <epic_name>"
15
- echo ""
16
- echo "Example:"
17
- echo " $0 postgresql-connection-module"
18
- echo ""
19
- exit 1
20
- fi
21
-
22
- EPIC_DIR=".claude/epics/$EPIC_NAME"
23
-
24
- # Validate epic exists
25
- if [[ ! -d "$EPIC_DIR" ]]; then
26
- echo "❌ Error: Epic directory not found: $EPIC_DIR"
27
- echo ""
28
- echo "Create an epic first:"
29
- echo " /pm:prd-new $EPIC_NAME"
30
- echo " /pm:prd-parse $EPIC_NAME"
31
- echo " /pm:epic-decompose $EPIC_NAME"
32
- exit 1
33
- fi
34
-
35
- if [[ ! -f "$EPIC_DIR/epic.md" ]]; then
36
- echo "❌ Error: Epic file not found: $EPIC_DIR/epic.md"
37
- exit 1
38
- fi
39
-
40
- # Check for tasks
41
- task_count=$(find "$EPIC_DIR" -name "[0-9]*.md" -type f 2>/dev/null | wc -l)
42
- if [[ $task_count -eq 0 ]]; then
43
- echo "❌ Error: No tasks found in $EPIC_DIR"
44
- echo ""
45
- echo "Create tasks first:"
46
- echo " /pm:epic-decompose $EPIC_NAME"
47
- exit 1
48
- fi
49
-
50
- echo ""
51
- echo "🚀 Starting Epic Sync"
52
- echo "═══════════════════════════════════════════"
53
- echo " Epic: $EPIC_NAME"
54
- echo " Tasks: $task_count"
55
- echo "═══════════════════════════════════════════"
56
- echo ""
57
-
58
- # Step 1: Create epic issue
59
- echo "📝 Step 1/4: Creating Epic Issue"
60
- echo "─────────────────────────────────────────"
61
-
62
- epic_number=$(bash "$SCRIPT_DIR/epic-sync/create-epic-issue.sh" "$EPIC_NAME")
63
-
64
- if [[ -z "$epic_number" ]]; then
65
- echo ""
66
- echo "❌ Failed to create epic issue"
67
- exit 1
68
- fi
69
-
70
- echo ""
71
- echo "✅ Epic issue created: #$epic_number"
72
- echo ""
73
-
74
- # Step 2: Create task issues
75
- echo "📋 Step 2/4: Creating Task Issues"
76
- echo "─────────────────────────────────────────"
77
-
78
- task_mapping_file=$(bash "$SCRIPT_DIR/epic-sync/create-task-issues.sh" "$EPIC_NAME" "$epic_number")
79
-
80
- if [[ ! -f "$task_mapping_file" ]]; then
81
- echo ""
82
- echo "❌ Failed to create task issues or mapping file"
83
- exit 1
84
- fi
85
-
86
- echo ""
87
- echo "✅ Task issues created"
88
- echo " Mapping: $task_mapping_file"
89
- echo ""
90
-
91
- # Step 3: Update references and rename files
92
- echo "🔗 Step 3/4: Updating References & Renaming Files"
93
- echo "─────────────────────────────────────────"
94
-
95
- bash "$SCRIPT_DIR/epic-sync/update-references.sh" "$EPIC_NAME" "$task_mapping_file"
96
-
97
- echo ""
98
- echo "✅ Files renamed and references updated"
99
- echo ""
100
-
101
- # Step 4: Update epic file
102
- echo "📄 Step 4/4: Updating Epic File"
103
- echo "─────────────────────────────────────────"
104
-
105
- bash "$SCRIPT_DIR/epic-sync/update-epic-file.sh" "$EPIC_NAME" "$epic_number"
106
-
107
- echo ""
108
-
109
- # Get repository info for final output
110
- REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "unknown/repo")
111
-
112
- # Final summary
113
- echo ""
114
- echo "✨ Epic Sync Complete!"
115
- echo "═══════════════════════════════════════════"
116
- echo ""
117
- echo "📊 Summary:"
118
- echo " Epic: #$epic_number - $EPIC_NAME"
119
- echo " Tasks: $task_count issues created"
120
- echo " Files: Renamed to GitHub issue numbers"
121
- echo ""
122
- echo "🔗 Links:"
123
- echo " Epic: https://github.com/$REPO/issues/$epic_number"
124
- echo " Tasks: View in GitHub project board"
125
- echo ""
126
- echo "📁 Local Files:"
127
- echo " Epic: $EPIC_DIR/epic.md"
128
- echo " Tasks: $EPIC_DIR/<issue_number>.md"
129
- echo " Mapping: $EPIC_DIR/.task-mapping.txt"
130
- echo ""
131
- echo "📋 Next Steps:"
132
- echo " 1. Review epic and tasks on GitHub"
133
- echo " 2. Start working on a task:"
134
- echo " /pm:issue-start <issue_number>"
135
- echo " 3. Or start the full epic in parallel:"
136
- echo " /pm:epic-start $EPIC_NAME"
137
- echo ""
@@ -1,92 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * PM Help Script - Node.js Implementation
5
- *
6
- * Migrated from help.sh to provide help information for PM commands
7
- * Maintains full compatibility with the original bash implementation
8
- */
9
-
10
- function displayHelp() {
11
- const helpContent = `
12
-
13
- 📚 Claude Code PM - Project Management System
14
- =============================================
15
-
16
- 🎯 Quick Start Workflow
17
- 1. /pm:prd-new <name> - Create a new PRD
18
- 2. /pm:prd-parse <name> - Convert PRD to epic
19
- 3. /pm:epic-decompose <name> - Break into tasks
20
- 4. /pm:epic-sync <name> - Push to GitHub
21
- 5. /pm:epic-start <name> - Start parallel execution
22
-
23
- 📄 PRD Commands
24
- /pm:prd-new <name> - Launch brainstorming for new product requirement
25
- /pm:prd-parse <name> - Convert PRD to implementation epic
26
- /pm:prd-list - List all PRDs
27
- /pm:prd-edit <name> - Edit existing PRD
28
- /pm:prd-status - Show PRD implementation status
29
-
30
- 📚 Epic Commands
31
- /pm:epic-decompose <name> - Break epic into task files
32
- /pm:epic-sync <name> - Push epic and tasks to GitHub
33
- /pm:epic-oneshot <name> - Decompose and sync in one command
34
- /pm:epic-list - List all epics
35
- /pm:epic-show <name> - Display epic and its tasks
36
- /pm:epic-status [name] - Show epic progress
37
- /pm:epic-close <name> - Mark epic as complete
38
- /pm:epic-edit <name> - Edit epic details
39
- /pm:epic-refresh <name> - Update epic progress from tasks
40
- /pm:epic-start <name> - Launch parallel agent execution
41
-
42
- 📝 Issue Commands
43
- /pm:issue-show <num> - Display issue and sub-issues
44
- /pm:issue-status <num> - Check issue status
45
- /pm:issue-start <num> - Begin work with specialized agent
46
- /pm:issue-sync <num> - Push updates to GitHub
47
- /pm:issue-close <num> - Mark issue as complete
48
- /pm:issue-reopen <num> - Reopen closed issue
49
- /pm:issue-edit <num> - Edit issue details
50
- /pm:issue-analyze <num> - Analyze for parallel work streams
51
-
52
- 🔄 Workflow Commands
53
- /pm:next - Show next priority tasks
54
- /pm:status - Overall project dashboard
55
- /pm:standup - Daily standup report
56
- /pm:blocked - Show blocked tasks
57
- /pm:in-progress - List work in progress
58
-
59
- 🔗 Sync Commands
60
- /pm:sync - Full bidirectional sync with GitHub
61
- /pm:import <issue> - Import existing GitHub issues
62
-
63
- 🔧 Maintenance Commands
64
- /pm:validate - Check system integrity
65
- /pm:clean - Archive completed work
66
- /pm:search <query> - Search across all content
67
-
68
- ⚙️ Setup Commands
69
- /pm:init - Install dependencies and configure GitHub
70
- /pm:help - Show this help message
71
-
72
- 💡 Tips
73
- • Use /pm:next to find available work
74
- • Run /pm:status for quick overview
75
- • Epic workflow: prd-new → prd-parse → epic-decompose → epic-sync
76
- • View README.md for complete documentation
77
- `;
78
-
79
- return helpContent;
80
- }
81
-
82
- // CommonJS export for testing
83
- module.exports = displayHelp;
84
-
85
- // CLI execution
86
- if (require.main === module) {
87
- console.log('Helping...');
88
- console.log('');
89
- console.log('');
90
- console.log(displayHelp());
91
- process.exit(0);
92
- }
@@ -1,90 +0,0 @@
1
- #!/bin/bash
2
-
3
- # PM Help Script - Wrapper for Node.js implementation
4
- # This wrapper maintains backward compatibility while delegating to the Node.js version
5
-
6
- # Get the directory of this script
7
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
-
9
- # Check if Node.js is available
10
- if command -v node >/dev/null 2>&1; then
11
- # Use the Node.js implementation
12
- node "$SCRIPT_DIR/help.js"
13
- exit $?
14
- else
15
- # Fallback to the original bash implementation if Node.js is not available
16
- echo "⚠️ Node.js not found, falling back to bash implementation"
17
- echo ""
18
-
19
- # Original bash implementation (preserved for fallback)
20
- echo "Helping..."
21
- echo ""
22
- echo ""
23
-
24
- echo "📚 Claude Code PM - Project Management System"
25
- echo "============================================="
26
- echo ""
27
- echo "🎯 Quick Start Workflow"
28
- echo " 1. /pm:prd-new <name> - Create a new PRD"
29
- echo " 2. /pm:prd-parse <name> - Convert PRD to epic"
30
- echo " 3. /pm:epic-decompose <name> - Break into tasks"
31
- echo " 4. /pm:epic-sync <name> - Push to GitHub"
32
- echo " 5. /pm:epic-start <name> - Start parallel execution"
33
- echo ""
34
- echo "📄 PRD Commands"
35
- echo " /pm:prd-new <name> - Launch brainstorming for new product requirement"
36
- echo " /pm:prd-parse <name> - Convert PRD to implementation epic"
37
- echo " /pm:prd-list - List all PRDs"
38
- echo " /pm:prd-edit <name> - Edit existing PRD"
39
- echo " /pm:prd-status - Show PRD implementation status"
40
- echo ""
41
- echo "📚 Epic Commands"
42
- echo " /pm:epic-decompose <name> - Break epic into task files"
43
- echo " /pm:epic-sync <name> - Push epic and tasks to GitHub"
44
- echo " /pm:epic-oneshot <name> - Decompose and sync in one command"
45
- echo " /pm:epic-list - List all epics"
46
- echo " /pm:epic-show <name> - Display epic and its tasks"
47
- echo " /pm:epic-status [name] - Show epic progress"
48
- echo " /pm:epic-close <name> - Mark epic as complete"
49
- echo " /pm:epic-edit <name> - Edit epic details"
50
- echo " /pm:epic-refresh <name> - Update epic progress from tasks"
51
- echo " /pm:epic-start <name> - Launch parallel agent execution"
52
- echo ""
53
- echo "📝 Issue Commands"
54
- echo " /pm:issue-show <num> - Display issue and sub-issues"
55
- echo " /pm:issue-status <num> - Check issue status"
56
- echo " /pm:issue-start <num> - Begin work with specialized agent"
57
- echo " /pm:issue-sync <num> - Push updates to GitHub"
58
- echo " /pm:issue-close <num> - Mark issue as complete"
59
- echo " /pm:issue-reopen <num> - Reopen closed issue"
60
- echo " /pm:issue-edit <num> - Edit issue details"
61
- echo " /pm:issue-analyze <num> - Analyze for parallel work streams"
62
- echo ""
63
- echo "🔄 Workflow Commands"
64
- echo " /pm:next - Show next priority tasks"
65
- echo " /pm:status - Overall project dashboard"
66
- echo " /pm:standup - Daily standup report"
67
- echo " /pm:blocked - Show blocked tasks"
68
- echo " /pm:in-progress - List work in progress"
69
- echo ""
70
- echo "🔗 Sync Commands"
71
- echo " /pm:sync - Full bidirectional sync with GitHub"
72
- echo " /pm:import <issue> - Import existing GitHub issues"
73
- echo ""
74
- echo "🔧 Maintenance Commands"
75
- echo " /pm:validate - Check system integrity"
76
- echo " /pm:clean - Archive completed work"
77
- echo " /pm:search <query> - Search across all content"
78
- echo ""
79
- echo "⚙️ Setup Commands"
80
- echo " /pm:init - Install dependencies and configure GitHub"
81
- echo " /pm:help - Show this help message"
82
- echo ""
83
- echo "💡 Tips"
84
- echo " • Use /pm:next to find available work"
85
- echo " • Run /pm:status for quick overview"
86
- echo " • Epic workflow: prd-new → prd-parse → epic-decompose → epic-sync"
87
- echo " • View README.md for complete documentation"
88
-
89
- exit 0
90
- fi