claude-autopm 3.0.0 → 3.0.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.
package/README.md CHANGED
@@ -268,9 +268,14 @@ autopm install
268
268
  autopm config set provider github
269
269
  autopm config set github.owner YOUR_USERNAME
270
270
  autopm config set github.repo YOUR_REPO
271
- export GITHUB_TOKEN=your_github_token
272
271
 
273
- # 5. Open Claude Code
272
+ # Add your token to .claude/.env (recommended) or export directly
273
+ echo "GITHUB_TOKEN=your_github_token" >> .claude/.env
274
+
275
+ # 5. Verify configuration
276
+ autopm config validate
277
+
278
+ # 6. Open Claude Code
274
279
  claude --dangerously-skip-permissions .
275
280
  ```
276
281
 
package/bin/autopm.js CHANGED
@@ -278,12 +278,22 @@ function main() {
278
278
  autopm config set provider github
279
279
  autopm config set github.owner <username>
280
280
  autopm config set github.repo <repository>
281
+
282
+ # Add token to .claude/.env (recommended)
283
+ echo "GITHUB_TOKEN=ghp_your_token_here" >> .claude/.env
284
+
285
+ # Or export as environment variable
281
286
  export GITHUB_TOKEN=ghp_your_token_here
282
287
 
283
288
  # Configure Azure DevOps provider
284
289
  autopm config set provider azure
285
290
  autopm config set azure.organization <org>
286
291
  autopm config set azure.project <project>
292
+
293
+ # Add token to .claude/.env (recommended)
294
+ echo "AZURE_DEVOPS_PAT=your_azure_pat" >> .claude/.env
295
+
296
+ # Or export as environment variable
287
297
  export AZURE_DEVOPS_PAT=your_azure_pat
288
298
 
289
299
  # Quick switch between providers
@@ -312,6 +322,13 @@ function main() {
312
322
  autopm mcp status # Show all MCP servers status
313
323
 
314
324
  🔑 Token Setup:
325
+ # RECOMMENDED: Store tokens in .claude/.env file
326
+ echo "GITHUB_TOKEN=ghp_your_token" >> .claude/.env
327
+ echo "AZURE_DEVOPS_PAT=your_pat" >> .claude/.env
328
+
329
+ # The .env file is automatically loaded during validation
330
+ autopm config validate
331
+
315
332
  # GitHub PAT (Settings → Developer settings → Personal access tokens)
316
333
  Scopes: repo, workflow, admin:repo_hook
317
334
 
@@ -7,11 +7,28 @@
7
7
 
8
8
  const fs = require('fs-extra');
9
9
  const path = require('path');
10
+ const dotenv = require('dotenv');
10
11
 
11
12
  class ConfigCommand {
12
13
  constructor() {
13
14
  this.configPath = path.join(process.cwd(), '.claude', 'config.json');
14
15
  this.envPath = path.join(process.cwd(), '.claude', '.env');
16
+
17
+ // Load .env file if it exists
18
+ this.loadEnv();
19
+ }
20
+
21
+ /**
22
+ * Load environment variables from .claude/.env
23
+ */
24
+ loadEnv() {
25
+ try {
26
+ if (fs.existsSync(this.envPath)) {
27
+ dotenv.config({ path: this.envPath });
28
+ }
29
+ } catch (error) {
30
+ // Silently ignore - env file is optional
31
+ }
15
32
  }
16
33
 
17
34
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-autopm",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Autonomous Project Management Framework for Claude Code - Advanced AI-powered development automation",
5
5
  "main": "bin/autopm.js",
6
6
  "workspaces": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeautopm/plugin-cloud",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Complete cloud infrastructure plugin with agents for AWS, Azure, GCP, Kubernetes, Terraform, and infrastructure automation for ClaudeAutoPM",
5
5
  "main": "plugin.json",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeautopm/plugin-core",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Core framework functionality for ClaudeAutoPM - universal agents, rules, hooks, and utilities",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeautopm/plugin-data",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Complete data engineering plugin with Airflow, Kedro, LangGraph, Kafka, dbt, pandas experts, data quality rules, and example scripts for ClaudeAutoPM",
5
5
  "main": "plugin.json",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeautopm/plugin-databases",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Complete database plugin with PostgreSQL, MongoDB, Redis, BigQuery, and Cosmos DB experts, database rules, and optimization scripts for ClaudeAutoPM",
5
5
  "main": "plugin.json",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeautopm/plugin-devops",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Complete DevOps plugin with agents, commands, rules, and scripts for CI/CD, Docker, GitHub, observability, and infrastructure automation for ClaudeAutoPM",
5
5
  "main": "plugin.json",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudeautopm/plugin-ml",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "Comprehensive Machine Learning plugin with 10 specialist agents: TensorFlow/Keras, PyTorch, RL, Scikit-learn, Neural Architecture, Gradient Boosting, Computer Vision, NLP Transformers, Time Series, and AutoML. Context7-verified patterns.",
5
5
  "main": "plugin.json",
6
6
  "scripts": {
@@ -45,75 +45,120 @@ See `.claude/rules/tdd.enforcement.md` for complete requirements.
45
45
 
46
46
  ### 1. Validate Prerequisites
47
47
 
48
- Check that epic exists and hasn't been processed:
49
48
  ```bash
50
- # Epic must exist
51
- test -f .claude/epics/$ARGUMENTS/epic.md || echo " Epic not found. Run: /pm:prd-parse $ARGUMENTS"
52
-
53
- # Check for existing tasks
54
- if ls .claude/epics/$ARGUMENTS/[0-9]*.md 2>/dev/null | grep -q .; then
55
- echo "⚠️ Tasks already exist. This will create duplicates."
56
- echo "Delete existing tasks or use /pm:epic-sync instead."
49
+ # Check if PRD exists
50
+ if [ ! -f ".claude/prds/$ARGUMENTS.md" ]; then
51
+ echo "❌ PRD not found: $ARGUMENTS.md"
52
+ echo "💡 Create it first with: /pm:prd-new $ARGUMENTS"
57
53
  exit 1
58
54
  fi
59
55
 
60
- # Check if already synced
61
- if grep -q "github:" .claude/epics/$ARGUMENTS/epic.md; then
62
- echo "⚠️ Epic already synced to GitHub."
63
- echo "Use /pm:epic-sync to update."
56
+ echo "✅ PRD found"
57
+
58
+ # Check if epic already exists
59
+ if [ -f ".claude/epics/$ARGUMENTS/epic.md" ]; then
60
+ echo "⚠️ Epic already exists: $ARGUMENTS"
61
+ echo "💡 View it with: /pm:epic-show $ARGUMENTS"
62
+ echo "💡 Or use a different name"
64
63
  exit 1
65
64
  fi
65
+
66
+ echo "✅ Ready to create epic"
66
67
  ```
67
68
 
68
- ### 2. Execute Decompose
69
+ ### 2. Execute Epic Oneshot Script
69
70
 
70
- Simply run the decompose command:
71
+ Run the all-in-one script that handles:
72
+ - PRD parsing
73
+ - Task decomposition
74
+ - GitHub/Azure sync
75
+
76
+ ```bash
77
+ node .claude/scripts/pm/epic-oneshot.cjs $ARGUMENTS
71
78
  ```
72
- Running: /pm:epic-decompose $ARGUMENTS
79
+
80
+ ### 3. Verify Success
81
+
82
+ ```bash
83
+ # Check epic was created
84
+ if [ -f ".claude/epics/$ARGUMENTS/epic.md" ]; then
85
+ echo ""
86
+ echo "✅ Epic Oneshot Complete!"
87
+ echo ""
88
+ echo "📋 Next steps:"
89
+ echo " • View epic: /pm:epic-show $ARGUMENTS"
90
+ echo " • Start work: /pm:epic-start $ARGUMENTS"
91
+ echo " • Get next task: /pm:next"
92
+ echo ""
93
+ else
94
+ echo "❌ Epic creation failed. Check output above for errors."
95
+ exit 1
96
+ fi
73
97
  ```
74
98
 
75
- This will:
76
- - Read the epic
77
- - Create task files (using parallel agents if appropriate)
78
- - Update epic with task summary
99
+ ## What It Does
79
100
 
80
- ### 3. Execute Sync
101
+ This command executes a complete workflow in one operation:
81
102
 
82
- Immediately follow with sync:
83
- ```
84
- Running: /pm:epic-sync $ARGUMENTS
85
- ```
103
+ **Step 1: Parse PRD**
104
+ - Reads `.claude/prds/$ARGUMENTS.md`
105
+ - Extracts features, requirements, technical details
106
+ - Creates epic structure
107
+
108
+ **Step 2: Decompose Tasks**
109
+ - Analyzes epic content
110
+ - Generates implementation tasks
111
+ - Adds tasks to epic.md
86
112
 
87
- This will:
88
- - Create epic issue on GitHub
89
- - Create sub-issues (using parallel agents if appropriate)
90
- - Rename task files to issue IDs
91
- - Create epic branch
113
+ **Step 3: Sync to Provider**
114
+ - Creates epic issue on GitHub/Azure
115
+ - Creates sub-issues for each task
116
+ - Links everything together
92
117
 
93
- ### 4. Output
118
+ ## Output Structure
119
+
120
+ After successful execution:
94
121
 
95
122
  ```
96
- 🚀 Epic Oneshot Complete: $ARGUMENTS
97
-
98
- Step 1: Decomposition ✓
99
- - Tasks created: {count}
100
-
101
- Step 2: GitHub Sync
102
- - Epic: #{number}
103
- - Sub-issues created: {count}
104
- - Branch: epic/$ARGUMENTS
105
-
106
- Ready for development!
107
- Start work: /pm:epic-start $ARGUMENTS
108
- Or single task: /pm:issue-start {task_number}
123
+ .claude/
124
+ epics/
125
+ <feature-name>/
126
+ epic.md # Main epic with embedded tasks
127
+ metadata.json # Epic metadata
128
+ tasks/ # Individual task files (if created)
129
+ ```
130
+
131
+ ## Example Usage
132
+
133
+ ```bash
134
+ # Complete workflow in one command
135
+ /pm:epic-oneshot gym-trading-env
136
+
137
+ # What happens:
138
+ # 1. Parses .claude/prds/gym-trading-env.md
139
+ # 2. Creates .claude/epics/gym-trading-env/epic.md
140
+ # 3. Generates implementation tasks
141
+ # 4. Syncs to GitHub/Azure DevOps
142
+ # 5. Ready to start work!
109
143
  ```
110
144
 
111
145
  ## Important Notes
112
146
 
113
- This is simply a convenience wrapper that runs:
114
- 1. `/pm:epic-decompose`
115
- 2. `/pm:epic-sync`
147
+ **Advantages of Oneshot:**
148
+ - ✅ Fastest way from PRD to implementation
149
+ - ✅ No manual intervention needed
150
+ - ✅ Automatic task generation
151
+ - ✅ Immediate GitHub sync
116
152
 
117
- Both commands handle their own error checking, parallel execution, and validation. This command just orchestrates them in sequence.
153
+ **When NOT to use:**
154
+ - ❌ Complex PRDs needing manual review between steps
155
+ - ❌ Custom task decomposition required
156
+ - ❌ Learning the PM workflow (use step-by-step instead)
118
157
 
119
- Use this when you're confident the epic is ready and want to go from epic to GitHub issues in one step.
158
+ **Alternative: Step-by-Step**
159
+ ```bash
160
+ # If you prefer manual control:
161
+ /pm:prd-parse <feature> # Step 1: Create epic
162
+ /pm:epic-decompose <feature> # Step 2: Add tasks (if available)
163
+ /pm:epic-sync <feature> # Step 3: Sync to provider
164
+ ```