den-github-manager 1.0.0 ā 1.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 +18 -2
- package/bin/den.js +12 -3
- package/docs/ai-agent-usage.md +243 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
> Automate your GitHub Projects setup in minutes. Analyze projects, generate backlogs, and configure milestones, issues, and project boards - all from the command line.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/den-github-manager)
|
|
6
|
+
[](https://www.npmjs.com/package/den-github-manager)
|
|
6
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://github.com/wolfcito/den-github-manager)
|
|
7
9
|
|
|
8
10
|
## ⨠Features
|
|
9
11
|
|
|
@@ -13,6 +15,7 @@
|
|
|
13
15
|
- š **One Command Setup** - Configure everything in minutes
|
|
14
16
|
- š¾ **Reusable** - Works with any project, new or existing
|
|
15
17
|
- š¤ **GitHub Integration** - Creates milestones, issues, labels automatically
|
|
18
|
+
- 𦾠**AI Agent Friendly** - Non-interactive mode for Claude, ChatGPT, Cursor
|
|
16
19
|
|
|
17
20
|
## š Quick Start
|
|
18
21
|
|
|
@@ -32,12 +35,25 @@ npx den-github-manager init
|
|
|
32
35
|
# Navigate to your project
|
|
33
36
|
cd my-project
|
|
34
37
|
|
|
35
|
-
#
|
|
38
|
+
# Interactive mode (asks questions)
|
|
36
39
|
den init
|
|
37
40
|
|
|
38
|
-
#
|
|
41
|
+
# Non-interactive mode (perfect for AI agents)
|
|
42
|
+
den init --template startup --auto
|
|
39
43
|
```
|
|
40
44
|
|
|
45
|
+
### š¤ Using with AI Agents (Claude, ChatGPT, Cursor)
|
|
46
|
+
|
|
47
|
+
**Perfect for AI coding assistants!** Tell your AI agent:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Run: den init --template startup --auto
|
|
51
|
+
|
|
52
|
+
This will set up GitHub Projects without any prompts.
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
See [AI Agent Usage Guide](docs/ai-agent-usage.md) for complete documentation.
|
|
56
|
+
|
|
41
57
|
## š Usage
|
|
42
58
|
|
|
43
59
|
### Initialize Project Setup
|
package/bin/den.js
CHANGED
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
import { program } from 'commander';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
|
+
import { readFileSync } from 'fs';
|
|
6
|
+
import { fileURLToPath } from 'url';
|
|
7
|
+
import { dirname, join } from 'path';
|
|
5
8
|
import { initCommand } from '../src/commands/init.js';
|
|
6
9
|
import { analyzeCommand } from '../src/commands/analyze.js';
|
|
7
10
|
import { templatesCommand } from '../src/commands/templates.js';
|
|
8
11
|
import { configCommand } from '../src/commands/config.js';
|
|
9
12
|
|
|
13
|
+
// Read version from package.json
|
|
14
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
const packageJson = JSON.parse(
|
|
16
|
+
readFileSync(join(__dirname, '../package.json'), 'utf-8')
|
|
17
|
+
);
|
|
18
|
+
|
|
10
19
|
const pkg = {
|
|
11
|
-
name:
|
|
12
|
-
version:
|
|
13
|
-
description:
|
|
20
|
+
name: packageJson.name,
|
|
21
|
+
version: packageJson.version,
|
|
22
|
+
description: packageJson.description
|
|
14
23
|
};
|
|
15
24
|
|
|
16
25
|
console.log(chalk.blue.bold(`\nš¦ ${pkg.name} v${pkg.version}`));
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# š¤ Using Den with AI Agents
|
|
2
|
+
|
|
3
|
+
Den GitHub Manager is designed to work seamlessly with AI coding agents like Claude, ChatGPT, Cursor, and others.
|
|
4
|
+
|
|
5
|
+
## Problem
|
|
6
|
+
|
|
7
|
+
By default, `den init` is interactive - it asks questions that AI agents cannot answer.
|
|
8
|
+
|
|
9
|
+
## Solution
|
|
10
|
+
|
|
11
|
+
Use **AI-friendly modes** that are completely non-interactive:
|
|
12
|
+
|
|
13
|
+
## šÆ Recommended Commands for AI Agents
|
|
14
|
+
|
|
15
|
+
### Option 1: Auto Mode (Recommended)
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Non-interactive setup with defaults
|
|
19
|
+
den init --auto
|
|
20
|
+
|
|
21
|
+
# With specific template
|
|
22
|
+
den init --template startup --auto
|
|
23
|
+
|
|
24
|
+
# With dry-run to preview
|
|
25
|
+
den init --template agile --auto --dry-run
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Option 2: Step-by-step
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# 1. Analyze first
|
|
32
|
+
den analyze --json
|
|
33
|
+
|
|
34
|
+
# 2. Based on analysis, init with template
|
|
35
|
+
den init --template simple --auto
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## š Prompt Templates for AI Agents
|
|
39
|
+
|
|
40
|
+
### For New Projects
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Before we start coding, set up project management:
|
|
44
|
+
|
|
45
|
+
1. Run: den analyze --json
|
|
46
|
+
2. Run: den init --template startup --auto
|
|
47
|
+
3. Show me the summary
|
|
48
|
+
|
|
49
|
+
This will create milestones, issues, and labels automatically.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### For Existing Projects
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
Set up GitHub project management:
|
|
56
|
+
|
|
57
|
+
1. Run: den analyze
|
|
58
|
+
2. If backlog exists: den init --auto
|
|
59
|
+
3. If no backlog: den init --template agile --auto
|
|
60
|
+
|
|
61
|
+
Then show me what was created.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### For Claude Code / Cursor
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
Execute this command and tell me the results:
|
|
68
|
+
|
|
69
|
+
den init --template startup --auto --dry-run
|
|
70
|
+
|
|
71
|
+
If everything looks good, run without --dry-run
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## šØ Template Selection Guide for AI
|
|
75
|
+
|
|
76
|
+
| Project Type | Recommended Template | Command |
|
|
77
|
+
|--------------|---------------------|---------|
|
|
78
|
+
| Side project | `simple` | `den init --template simple --auto` |
|
|
79
|
+
| Startup/MVP | `startup` | `den init --template startup --auto` |
|
|
80
|
+
| Team project | `agile` | `den init --template agile --auto` |
|
|
81
|
+
| Enterprise | `enterprise` | `den init --template enterprise --auto` |
|
|
82
|
+
|
|
83
|
+
## š JSON Output for Parsing
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Get analysis as JSON for programmatic use
|
|
87
|
+
den analyze --json
|
|
88
|
+
|
|
89
|
+
# Example output:
|
|
90
|
+
{
|
|
91
|
+
"projectName": "my-app",
|
|
92
|
+
"projectType": "nodejs",
|
|
93
|
+
"phase": "development",
|
|
94
|
+
"techStack": ["React", "Next.js"],
|
|
95
|
+
"hasBacklog": { "exists": true, "path": "docs/backlog.md" },
|
|
96
|
+
"recommendations": [...]
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## š Complete AI Agent Workflow
|
|
101
|
+
|
|
102
|
+
### Example Conversation with Claude Code
|
|
103
|
+
|
|
104
|
+
**Human:** "Set up GitHub project management for this repository"
|
|
105
|
+
|
|
106
|
+
**AI Agent executes:**
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Step 1: Analyze
|
|
110
|
+
den analyze
|
|
111
|
+
|
|
112
|
+
# Step 2: Initialize (non-interactive)
|
|
113
|
+
den init --template startup --auto
|
|
114
|
+
|
|
115
|
+
# Step 3: Verify
|
|
116
|
+
ls docs/backlog.md
|
|
117
|
+
cat docs/backlog.md | head -50
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**AI Agent reports:** "ā
Created 4 milestones, 28 issues, and complete backlog"
|
|
121
|
+
|
|
122
|
+
## āļø Configuration for AI Agents
|
|
123
|
+
|
|
124
|
+
Set defaults to avoid flags:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# Set default template
|
|
128
|
+
den config --set defaultTemplate=startup
|
|
129
|
+
|
|
130
|
+
# Set auto mode as default
|
|
131
|
+
den config --set autoMode=true
|
|
132
|
+
|
|
133
|
+
# Now AI can just run:
|
|
134
|
+
den init
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## šÆ Best Practices
|
|
138
|
+
|
|
139
|
+
### ā
DO
|
|
140
|
+
|
|
141
|
+
- Use `--auto` flag for non-interactive execution
|
|
142
|
+
- Use `--dry-run` first to preview changes
|
|
143
|
+
- Use `--json` for programmatic parsing
|
|
144
|
+
- Specify `--template` explicitly
|
|
145
|
+
|
|
146
|
+
### ā DON'T
|
|
147
|
+
|
|
148
|
+
- Run `den init` without `--auto` in AI context
|
|
149
|
+
- Forget to check if `gh` CLI is authenticated
|
|
150
|
+
- Run without analyzing first (`den analyze`)
|
|
151
|
+
|
|
152
|
+
## š Troubleshooting
|
|
153
|
+
|
|
154
|
+
### "Waiting for user input"
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# This will hang:
|
|
158
|
+
den init
|
|
159
|
+
|
|
160
|
+
# Use this instead:
|
|
161
|
+
den init --auto
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### "GitHub authentication required"
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
# AI agent should check first:
|
|
168
|
+
gh auth status
|
|
169
|
+
|
|
170
|
+
# If not authenticated:
|
|
171
|
+
gh auth login
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### "No template selected"
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
# Always specify template in auto mode:
|
|
178
|
+
den init --template simple --auto
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## š Example Prompts
|
|
182
|
+
|
|
183
|
+
### For Claude Code
|
|
184
|
+
|
|
185
|
+
```
|
|
186
|
+
Please set up GitHub Projects for this repository:
|
|
187
|
+
|
|
188
|
+
1. First run: `den analyze` to understand the project
|
|
189
|
+
2. Then run: `den init --template startup --auto`
|
|
190
|
+
3. Show me what milestones and issues were created
|
|
191
|
+
|
|
192
|
+
Use the startup template since this is an MVP.
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### For Cursor
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
Configure project management:
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
den init --template agile --auto --dry-run
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Review the output, then execute without --dry-run
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### For ChatGPT Code Interpreter
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
Execute this command sequence:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
cd /project
|
|
214
|
+
den analyze --json
|
|
215
|
+
den init --template simple --auto
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
Parse the JSON output and summarize what was created.
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## š Advanced: Custom AI Prompts
|
|
222
|
+
|
|
223
|
+
### Create a custom den command via AI
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
Based on my project analysis, suggest the best den command:
|
|
227
|
+
|
|
228
|
+
Project type: [nodejs/python/go]
|
|
229
|
+
Team size: [solo/small/large]
|
|
230
|
+
Methodology: [agile/kanban/waterfall]
|
|
231
|
+
|
|
232
|
+
Then execute the suggested command with --auto flag.
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## š See Also
|
|
236
|
+
|
|
237
|
+
- [Configuration Guide](configuration.md)
|
|
238
|
+
- [Templates Guide](templates.md)
|
|
239
|
+
- [CLI Reference](usage.md)
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
**Made for AI agents by AI agents** š¤ā¤ļøš¦
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "den-github-manager",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "CLI tool to setup GitHub Projects automatically - Analyze, generate backlog, and configure milestones, issues, and project boards in minutes",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|