taskgraph-ai 0.0.0-stage → 0.50.1
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/CHANGELOG.md +4078 -0
- package/LICENSE +26 -0
- package/README-upstream.md +648 -0
- package/README.md +235 -2
- package/dist/ai-services-unified-DbjBfAvG.js +3 -0
- package/dist/ai-services-unified-TeIK2DoX.js +1 -0
- package/dist/assets/AGENTS.md +453 -0
- package/dist/assets/claude/TM_COMMANDS_GUIDE.md +147 -0
- package/dist/assets/config.json +31 -0
- package/dist/assets/env.example +6 -0
- package/dist/assets/example_prd.txt +47 -0
- package/dist/assets/example_prd_rpg.txt +511 -0
- package/dist/assets/gitignore +25 -0
- package/dist/assets/scripts_README.md +445 -0
- package/dist/commands-2aOf3ERj.js +230 -0
- package/dist/config-manager-C8-BTReQ.js +1 -0
- package/dist/config-manager-Da0wEujO.js +1 -0
- package/dist/dependency-manager-DIbDdrUV.js +964 -0
- package/dist/git-utils-BFUgMf2g.js +1 -0
- package/dist/git-utils-CrYiSKu0.js +1 -0
- package/dist/init-CNSqtmPC.js +3460 -0
- package/dist/mcp-server.js +13 -0
- package/dist/research-CUiuqEKk.js +1 -0
- package/dist/response-language-CGnha79j.js +1 -0
- package/dist/response-language-Cc70IGmg.js +1 -0
- package/dist/src-lvp18X-h.js +203 -0
- package/dist/tag-management-B5XoFcUP.js +1 -0
- package/dist/task-manager-BKqm9QPb.js +1 -0
- package/dist/taskgraph.js +2 -0
- package/dist/update-subtask-by-id-Ct9TTTgG.js +1 -0
- package/dist/update-task-by-id-BvdEKXsG.js +1 -0
- package/dist/utils-D1-Eo-6k.js +1 -0
- package/index.js +157 -0
- package/package.json +156 -5
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
# TaskGraph - Agent Integration Guide
|
|
2
|
+
|
|
3
|
+
## Essential Commands
|
|
4
|
+
|
|
5
|
+
### Core Workflow Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Project Setup
|
|
9
|
+
taskgraph init # Initialize TaskGraph in current project
|
|
10
|
+
taskgraph parse-prd .taskgraph/docs/prd.md # Generate tasks from PRD document
|
|
11
|
+
taskgraph models --setup # Configure AI models interactively
|
|
12
|
+
|
|
13
|
+
# Daily Development Workflow
|
|
14
|
+
taskgraph list # Show all tasks with status
|
|
15
|
+
taskgraph next # Get next available task to work on
|
|
16
|
+
taskgraph show <id> # View detailed task information (e.g., taskgraph show 1.2)
|
|
17
|
+
taskgraph set-status --id=<id> --status=done # Mark task complete
|
|
18
|
+
|
|
19
|
+
# Task Management
|
|
20
|
+
taskgraph add-task --prompt="description" --research # Add new task with AI assistance
|
|
21
|
+
taskgraph expand --id=<id> --research --force # Break task into subtasks
|
|
22
|
+
taskgraph update-task --id=<id> --prompt="changes" # Update specific task
|
|
23
|
+
taskgraph update --from=<id> --prompt="changes" # Update multiple tasks from ID onwards
|
|
24
|
+
taskgraph update-subtask --id=<id> --prompt="notes" # Add implementation notes to subtask
|
|
25
|
+
|
|
26
|
+
# Analysis & Planning
|
|
27
|
+
taskgraph analyze-complexity --research # Analyze task complexity
|
|
28
|
+
taskgraph complexity-report # View complexity analysis
|
|
29
|
+
taskgraph expand --all --research # Expand all eligible tasks
|
|
30
|
+
|
|
31
|
+
# Dependencies & Organization
|
|
32
|
+
taskgraph add-dependency --id=<id> --depends-on=<id> # Add task dependency
|
|
33
|
+
taskgraph move --from=<id> --to=<id> # Reorganize task hierarchy
|
|
34
|
+
taskgraph validate-dependencies # Check for dependency issues
|
|
35
|
+
taskgraph generate # Update task markdown files (usually auto-called)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Key Files & Project Structure
|
|
39
|
+
|
|
40
|
+
### Core Files
|
|
41
|
+
|
|
42
|
+
- `.taskgraph/tasks/tasks.json` - Main task data file (auto-managed)
|
|
43
|
+
- `.taskgraph/config.json` - AI model configuration (use `taskgraph models` to modify)
|
|
44
|
+
- `.taskgraph/docs/prd.md` - Product Requirements Document for parsing (`.md` extension recommended for better editor support)
|
|
45
|
+
- `.taskgraph/tasks/*.txt` - Individual task files (auto-generated from tasks.json)
|
|
46
|
+
- `.env` - API keys for CLI usage
|
|
47
|
+
|
|
48
|
+
**PRD File Format:** While both `.txt` and `.md` extensions work, **`.md` is recommended** because:
|
|
49
|
+
- Markdown syntax highlighting in editors improves readability
|
|
50
|
+
- Proper rendering when previewing in VS Code, GitHub, or other tools
|
|
51
|
+
- Better collaboration through formatted documentation
|
|
52
|
+
|
|
53
|
+
### Claude Code Integration Files
|
|
54
|
+
|
|
55
|
+
- `CLAUDE.md` - Auto-loaded context for Claude Code (this file)
|
|
56
|
+
- `.claude/settings.json` - Claude Code tool allowlist and preferences
|
|
57
|
+
- `.claude/commands/` - Custom slash commands for repeated workflows
|
|
58
|
+
- `.mcp.json` - MCP server configuration (project-specific)
|
|
59
|
+
|
|
60
|
+
### Directory Structure
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
project/
|
|
64
|
+
├── .taskgraph/
|
|
65
|
+
│ ├── tasks/ # Task files directory
|
|
66
|
+
│ │ ├── tasks.json # Main task database
|
|
67
|
+
│ │ ├── task-1.md # Individual task files
|
|
68
|
+
│ │ └── task-2.md
|
|
69
|
+
│ ├── docs/ # Documentation directory
|
|
70
|
+
│ │ ├── prd.md # Product requirements (.md recommended)
|
|
71
|
+
│ ├── reports/ # Analysis reports directory
|
|
72
|
+
│ │ └── task-complexity-report.json
|
|
73
|
+
│ ├── templates/ # Template files
|
|
74
|
+
│ │ └── example_prd.md # Example PRD template (.md recommended)
|
|
75
|
+
│ └── config.json # AI models & settings
|
|
76
|
+
├── .claude/
|
|
77
|
+
│ ├── settings.json # Claude Code configuration
|
|
78
|
+
│ └── commands/ # Custom slash commands
|
|
79
|
+
├── .env # API keys
|
|
80
|
+
├── .mcp.json # MCP configuration
|
|
81
|
+
└── CLAUDE.md # This file - auto-loaded by Claude Code
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Slash Commands & CLI (Preferred)
|
|
85
|
+
|
|
86
|
+
Use slash commands or the `taskgraph` CLI first. They need no MCP server and load no extra tool definitions into context. Only fall back to the MCP tools below when a command you need has no slash command or CLI equivalent.
|
|
87
|
+
|
|
88
|
+
After `taskgraph init --rules claude`, the slash commands live under `/tm:` (type `/tm` to list them):
|
|
89
|
+
|
|
90
|
+
| Task | Slash command | CLI |
|
|
91
|
+
|------|---------------|-----|
|
|
92
|
+
| Find next task | `/tm:next-task` | `taskgraph next` |
|
|
93
|
+
| View a task | `/tm:show-task <id>` | `taskgraph show <id>` |
|
|
94
|
+
| List tasks | `/tm:list-tasks` | `taskgraph list` |
|
|
95
|
+
| Parse a PRD | `/tm:parse-prd` | `taskgraph parse-prd <file>` |
|
|
96
|
+
| Add a task | `/tm:add-task` | `taskgraph add-task --prompt="..."` |
|
|
97
|
+
| Break into subtasks | `/tm:expand-task <id>` | `taskgraph expand --id=<id>` |
|
|
98
|
+
| Change status | `/tm:to-in-progress <id>`, `/tm:to-done <id>`, `/tm:to-review <id>` | `taskgraph set-status --id=<id> --status=<status>` |
|
|
99
|
+
| Update a task | `/tm:update-task <id>` | `taskgraph update-task --id=<id> --prompt="..."` |
|
|
100
|
+
| Check complexity | `/tm:analyze-complexity` | `taskgraph analyze-complexity` |
|
|
101
|
+
|
|
102
|
+
## MCP Integration (Optional)
|
|
103
|
+
|
|
104
|
+
TaskGraph also provides an MCP server that Claude Code can connect to. It is optional; the slash commands and CLI above cover the same workflow. To use it, configure `.mcp.json`:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"mcpServers": {
|
|
109
|
+
"taskgraph-ai": {
|
|
110
|
+
"command": "npx",
|
|
111
|
+
"args": ["-y", "taskgraph-ai"],
|
|
112
|
+
"env": {
|
|
113
|
+
"TASKGRAPH_TOOLS": "core",
|
|
114
|
+
"ANTHROPIC_API_KEY": "your_key_here",
|
|
115
|
+
"PERPLEXITY_API_KEY": "your_key_here",
|
|
116
|
+
"OPENAI_API_KEY": "OPENAI_API_KEY_HERE",
|
|
117
|
+
"GOOGLE_API_KEY": "GOOGLE_API_KEY_HERE",
|
|
118
|
+
"XAI_API_KEY": "XAI_API_KEY_HERE",
|
|
119
|
+
"OPENROUTER_API_KEY": "OPENROUTER_API_KEY_HERE",
|
|
120
|
+
"MISTRAL_API_KEY": "MISTRAL_API_KEY_HERE",
|
|
121
|
+
"AZURE_OPENAI_API_KEY": "AZURE_OPENAI_API_KEY_HERE",
|
|
122
|
+
"OLLAMA_API_KEY": "OLLAMA_API_KEY_HERE"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### MCP Tool Tiers
|
|
130
|
+
|
|
131
|
+
Default: `core` (7 tools). Set via `TASKGRAPH_TOOLS` env var.
|
|
132
|
+
|
|
133
|
+
| Tier | Count | Tools |
|
|
134
|
+
|------|-------|-------|
|
|
135
|
+
| `core` | 7 | `get_tasks`, `next_task`, `get_task`, `set_task_status`, `update_subtask`, `parse_prd`, `expand_task` |
|
|
136
|
+
| `standard` | 14 | core + `initialize_project`, `analyze_project_complexity`, `expand_all`, `add_subtask`, `remove_task`, `add_task`, `complexity_report` |
|
|
137
|
+
| `all` | 43 | standard + dependencies, tags, research, autopilot, scoping, models |
|
|
138
|
+
|
|
139
|
+
**Upgrade when tool unavailable:** Edit MCP config, change `TASKGRAPH_TOOLS` from `"core"` to `"standard"` or `"all"`, restart MCP.
|
|
140
|
+
|
|
141
|
+
### Essential MCP Tools
|
|
142
|
+
|
|
143
|
+
```javascript
|
|
144
|
+
help; // = shows available taskgraph commands
|
|
145
|
+
// Project setup
|
|
146
|
+
initialize_project; // = taskgraph init
|
|
147
|
+
parse_prd; // = taskgraph parse-prd
|
|
148
|
+
|
|
149
|
+
// Daily workflow
|
|
150
|
+
get_tasks; // = taskgraph list
|
|
151
|
+
next_task; // = taskgraph next
|
|
152
|
+
get_task; // = taskgraph show <id>
|
|
153
|
+
set_task_status; // = taskgraph set-status
|
|
154
|
+
|
|
155
|
+
// Task management
|
|
156
|
+
add_task; // = taskgraph add-task
|
|
157
|
+
expand_task; // = taskgraph expand
|
|
158
|
+
update_task; // = taskgraph update-task
|
|
159
|
+
update_subtask; // = taskgraph update-subtask
|
|
160
|
+
update; // = taskgraph update
|
|
161
|
+
|
|
162
|
+
// Analysis
|
|
163
|
+
analyze_project_complexity; // = taskgraph analyze-complexity
|
|
164
|
+
complexity_report; // = taskgraph complexity-report
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Claude Code Workflow Integration
|
|
168
|
+
|
|
169
|
+
### Standard Development Workflow
|
|
170
|
+
|
|
171
|
+
#### 1. Project Initialization
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Initialize TaskGraph
|
|
175
|
+
taskgraph init
|
|
176
|
+
|
|
177
|
+
# Create or obtain PRD, then parse it (use .md extension for better editor support)
|
|
178
|
+
taskgraph parse-prd .taskgraph/docs/prd.md
|
|
179
|
+
|
|
180
|
+
# Analyze complexity and expand tasks
|
|
181
|
+
taskgraph analyze-complexity --research
|
|
182
|
+
taskgraph expand --all --research
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
If tasks already exist, another PRD can be parsed (with new information only!) using parse-prd with --append flag. This will add the generated tasks to the existing list of tasks..
|
|
186
|
+
|
|
187
|
+
#### 2. Daily Development Loop
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
# Start each session
|
|
191
|
+
taskgraph next # Find next available task
|
|
192
|
+
taskgraph show <id> # Review task details
|
|
193
|
+
|
|
194
|
+
# During implementation, check in code context into the tasks and subtasks
|
|
195
|
+
taskgraph update-subtask --id=<id> --prompt="implementation notes..."
|
|
196
|
+
|
|
197
|
+
# Complete tasks
|
|
198
|
+
taskgraph set-status --id=<id> --status=done
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
#### 3. Multi-Claude Workflows
|
|
202
|
+
|
|
203
|
+
For complex projects, use multiple Claude Code sessions:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# Terminal 1: Main implementation
|
|
207
|
+
cd project && claude
|
|
208
|
+
|
|
209
|
+
# Terminal 2: Testing and validation
|
|
210
|
+
cd project-test-worktree && claude
|
|
211
|
+
|
|
212
|
+
# Terminal 3: Documentation updates
|
|
213
|
+
cd project-docs-worktree && claude
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Custom Slash Commands
|
|
217
|
+
|
|
218
|
+
Create `.claude/commands/taskgraph-next.md`:
|
|
219
|
+
|
|
220
|
+
```markdown
|
|
221
|
+
Find the next available TaskGraph task and show its details.
|
|
222
|
+
|
|
223
|
+
Steps:
|
|
224
|
+
|
|
225
|
+
1. Run `taskgraph next` to get the next task
|
|
226
|
+
2. If a task is available, run `taskgraph show <id>` for full details
|
|
227
|
+
3. Provide a summary of what needs to be implemented
|
|
228
|
+
4. Suggest the first implementation step
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Create `.claude/commands/taskgraph-complete.md`:
|
|
232
|
+
|
|
233
|
+
```markdown
|
|
234
|
+
Complete a TaskGraph task: $ARGUMENTS
|
|
235
|
+
|
|
236
|
+
Steps:
|
|
237
|
+
|
|
238
|
+
1. Review the current task with `taskgraph show $ARGUMENTS`
|
|
239
|
+
2. Verify all implementation is complete
|
|
240
|
+
3. Run any tests related to this task
|
|
241
|
+
4. Mark as complete: `taskgraph set-status --id=$ARGUMENTS --status=done`
|
|
242
|
+
5. Show the next available task with `taskgraph next`
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Tool Allowlist Recommendations
|
|
246
|
+
|
|
247
|
+
Add to `.claude/settings.json`:
|
|
248
|
+
|
|
249
|
+
```json
|
|
250
|
+
{
|
|
251
|
+
"allowedTools": [
|
|
252
|
+
"Edit",
|
|
253
|
+
"Bash(taskgraph *)",
|
|
254
|
+
"Bash(git commit:*)",
|
|
255
|
+
"Bash(git add:*)",
|
|
256
|
+
"Bash(npm run *)",
|
|
257
|
+
"mcp__taskgraph_ai__*"
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## Configuration & Setup
|
|
263
|
+
|
|
264
|
+
### API Keys Required
|
|
265
|
+
|
|
266
|
+
At least **one** of these API keys must be configured:
|
|
267
|
+
|
|
268
|
+
- `ANTHROPIC_API_KEY` (Claude models) - **Recommended**
|
|
269
|
+
- `PERPLEXITY_API_KEY` (Research features) - **Highly recommended**
|
|
270
|
+
- `OPENAI_API_KEY` (GPT models)
|
|
271
|
+
- `GOOGLE_API_KEY` (Gemini models)
|
|
272
|
+
- `MISTRAL_API_KEY` (Mistral models)
|
|
273
|
+
- `OPENROUTER_API_KEY` (Multiple models)
|
|
274
|
+
- `XAI_API_KEY` (Grok models)
|
|
275
|
+
|
|
276
|
+
An API key is required for any provider used across any of the 3 roles defined in the `models` command.
|
|
277
|
+
|
|
278
|
+
### Model Configuration
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# Interactive setup (recommended)
|
|
282
|
+
taskgraph models --setup
|
|
283
|
+
|
|
284
|
+
# Set specific models
|
|
285
|
+
taskgraph models --set-main claude-sonnet-5-5
|
|
286
|
+
taskgraph models --set-research perplexity-llama-3.1-sonar-large-128k-online
|
|
287
|
+
taskgraph models --set-fallback gpt-4o-mini
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
## Task Structure & IDs
|
|
291
|
+
|
|
292
|
+
### Task ID Format
|
|
293
|
+
|
|
294
|
+
- Main tasks: `1`, `2`, `3`, etc.
|
|
295
|
+
- Subtasks: `1.1`, `1.2`, `2.1`, etc.
|
|
296
|
+
- Sub-subtasks: `1.1.1`, `1.1.2`, etc.
|
|
297
|
+
|
|
298
|
+
### Task Status Values
|
|
299
|
+
|
|
300
|
+
- `pending` - Ready to work on
|
|
301
|
+
- `in-progress` - Currently being worked on
|
|
302
|
+
- `done` - Completed and verified
|
|
303
|
+
- `deferred` - Postponed
|
|
304
|
+
- `cancelled` - No longer needed
|
|
305
|
+
- `blocked` - Waiting on external factors
|
|
306
|
+
|
|
307
|
+
### Task Fields
|
|
308
|
+
|
|
309
|
+
```json
|
|
310
|
+
{
|
|
311
|
+
"id": "1.2",
|
|
312
|
+
"title": "Implement user authentication",
|
|
313
|
+
"description": "Set up JWT-based auth system",
|
|
314
|
+
"status": "pending",
|
|
315
|
+
"priority": "high",
|
|
316
|
+
"dependencies": ["1.1"],
|
|
317
|
+
"details": "Use bcrypt for hashing, JWT for tokens...",
|
|
318
|
+
"testStrategy": "Unit tests for auth functions, integration tests for login flow",
|
|
319
|
+
"subtasks": []
|
|
320
|
+
}
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
## Claude Code Best Practices with TaskGraph
|
|
324
|
+
|
|
325
|
+
### Context Management
|
|
326
|
+
|
|
327
|
+
- Use `/clear` between different tasks to maintain focus
|
|
328
|
+
- This CLAUDE.md file is automatically loaded for context
|
|
329
|
+
- Use `taskgraph show <id>` to pull specific task context when needed
|
|
330
|
+
|
|
331
|
+
### Iterative Implementation
|
|
332
|
+
|
|
333
|
+
1. `taskgraph show <subtask-id>` - Understand requirements
|
|
334
|
+
2. Explore codebase and plan implementation
|
|
335
|
+
3. `taskgraph update-subtask --id=<id> --prompt="detailed plan"` - Log plan
|
|
336
|
+
4. `taskgraph set-status --id=<id> --status=in-progress` - Start work
|
|
337
|
+
5. Implement code following logged plan
|
|
338
|
+
6. `taskgraph update-subtask --id=<id> --prompt="what worked/didn't work"` - Log progress
|
|
339
|
+
7. `taskgraph set-status --id=<id> --status=done` - Complete task
|
|
340
|
+
|
|
341
|
+
### Complex Workflows with Checklists
|
|
342
|
+
|
|
343
|
+
For large migrations or multi-step processes:
|
|
344
|
+
|
|
345
|
+
1. Create a markdown PRD file describing the new changes: `touch task-migration-checklist.md` (prds can be .txt or .md)
|
|
346
|
+
2. Use TaskGraph to parse the new prd with `taskgraph parse-prd --append` (also available in MCP)
|
|
347
|
+
3. Use TaskGraph to expand the newly generated tasks into subtasks. Consdier using `analyze-complexity` with the correct --to and --from IDs (the new ids) to identify the ideal subtask amounts for each task. Then expand them.
|
|
348
|
+
4. Work through items systematically, checking them off as completed
|
|
349
|
+
5. Use `taskgraph update-subtask` to log progress on each task/subtask and/or updating/researching them before/during implementation if getting stuck
|
|
350
|
+
|
|
351
|
+
### Git Integration
|
|
352
|
+
|
|
353
|
+
TaskGraph works well with `gh` CLI:
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
# Create PR for completed task
|
|
357
|
+
gh pr create --title "Complete task 1.2: User authentication" --body "Implements JWT auth system as specified in task 1.2"
|
|
358
|
+
|
|
359
|
+
# Reference task in commits
|
|
360
|
+
git commit -m "feat: implement JWT auth (task 1.2)"
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### Parallel Development with Git Worktrees
|
|
364
|
+
|
|
365
|
+
```bash
|
|
366
|
+
# Create worktrees for parallel task development
|
|
367
|
+
git worktree add ../project-auth feature/auth-system
|
|
368
|
+
git worktree add ../project-api feature/api-refactor
|
|
369
|
+
|
|
370
|
+
# Run Claude Code in each worktree
|
|
371
|
+
cd ../project-auth && claude # Terminal 1: Auth work
|
|
372
|
+
cd ../project-api && claude # Terminal 2: API work
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
## Troubleshooting
|
|
376
|
+
|
|
377
|
+
### AI Commands Failing
|
|
378
|
+
|
|
379
|
+
```bash
|
|
380
|
+
# Check API keys are configured
|
|
381
|
+
cat .env # For CLI usage
|
|
382
|
+
|
|
383
|
+
# Verify model configuration
|
|
384
|
+
taskgraph models
|
|
385
|
+
|
|
386
|
+
# Test with different model
|
|
387
|
+
taskgraph models --set-fallback gpt-4o-mini
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### MCP Connection Issues (only if you use MCP)
|
|
391
|
+
|
|
392
|
+
- Check `.mcp.json` configuration
|
|
393
|
+
- Verify Node.js installation
|
|
394
|
+
- Use `--mcp-debug` flag when starting Claude Code
|
|
395
|
+
- Slash commands and the CLI work without MCP; use them if the server will not connect
|
|
396
|
+
|
|
397
|
+
### Task File Sync Issues
|
|
398
|
+
|
|
399
|
+
```bash
|
|
400
|
+
# Regenerate task files from tasks.json
|
|
401
|
+
taskgraph generate
|
|
402
|
+
|
|
403
|
+
# Fix dependency issues
|
|
404
|
+
taskgraph fix-dependencies
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
DO NOT RE-INITIALIZE. That will not do anything beyond re-adding the same TaskGraph core files.
|
|
408
|
+
|
|
409
|
+
## Important Notes
|
|
410
|
+
|
|
411
|
+
### AI-Powered Operations
|
|
412
|
+
|
|
413
|
+
These commands make AI calls and may take up to a minute:
|
|
414
|
+
|
|
415
|
+
- `parse_prd` / `taskgraph parse-prd`
|
|
416
|
+
- `analyze_project_complexity` / `taskgraph analyze-complexity`
|
|
417
|
+
- `expand_task` / `taskgraph expand`
|
|
418
|
+
- `expand_all` / `taskgraph expand --all`
|
|
419
|
+
- `add_task` / `taskgraph add-task`
|
|
420
|
+
- `update` / `taskgraph update`
|
|
421
|
+
- `update_task` / `taskgraph update-task`
|
|
422
|
+
- `update_subtask` / `taskgraph update-subtask`
|
|
423
|
+
|
|
424
|
+
### File Management
|
|
425
|
+
|
|
426
|
+
- Never manually edit `tasks.json` - use commands instead
|
|
427
|
+
- Never manually edit `.taskgraph/config.json` - use `taskgraph models`
|
|
428
|
+
- Task markdown files in `tasks/` are auto-generated
|
|
429
|
+
- Run `taskgraph generate` after manual changes to tasks.json
|
|
430
|
+
|
|
431
|
+
### Claude Code Session Management
|
|
432
|
+
|
|
433
|
+
- Use `/clear` frequently to maintain focused context
|
|
434
|
+
- Create custom slash commands for repeated TaskGraph workflows
|
|
435
|
+
- Configure tool allowlist to streamline permissions
|
|
436
|
+
- Use headless mode for automation: `claude -p "taskgraph next"`
|
|
437
|
+
|
|
438
|
+
### Multi-Task Updates
|
|
439
|
+
|
|
440
|
+
- Use `update --from=<id>` to update multiple future tasks
|
|
441
|
+
- Use `update-task --id=<id>` for single task updates
|
|
442
|
+
- Use `update-subtask --id=<id>` for implementation logging
|
|
443
|
+
|
|
444
|
+
### Research Mode
|
|
445
|
+
|
|
446
|
+
- Add `--research` flag for research-based AI enhancement
|
|
447
|
+
- Requires a research model API key like Perplexity (`PERPLEXITY_API_KEY`) in environment
|
|
448
|
+
- Provides more informed task creation and updates
|
|
449
|
+
- Recommended for complex technical tasks
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
_This guide ensures Claude Code has immediate access to TaskGraph's essential functionality for agentic development workflows._
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# TaskGraph Commands for Claude Code
|
|
2
|
+
|
|
3
|
+
Complete guide to using TaskGraph through Claude Code's slash commands.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
All TaskGraph functionality is available through the `/project:tm/` namespace with natural language support and intelligent features.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Install TaskGraph
|
|
13
|
+
/project:tm/setup/quick-install
|
|
14
|
+
|
|
15
|
+
# Initialize project
|
|
16
|
+
/project:tm/init/quick
|
|
17
|
+
|
|
18
|
+
# Parse requirements
|
|
19
|
+
/project:tm/parse-prd requirements.md
|
|
20
|
+
|
|
21
|
+
# Start working
|
|
22
|
+
/project:tm/next
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Command Structure
|
|
26
|
+
|
|
27
|
+
Commands are organized hierarchically to match TaskGraph's CLI:
|
|
28
|
+
- Main commands at `/project:tm/[command]`
|
|
29
|
+
- Subcommands for specific operations `/project:tm/[command]/[subcommand]`
|
|
30
|
+
- Natural language arguments accepted throughout
|
|
31
|
+
|
|
32
|
+
## Complete Command Reference
|
|
33
|
+
|
|
34
|
+
### Setup & Configuration
|
|
35
|
+
- `/project:tm/setup/install` - Full installation guide
|
|
36
|
+
- `/project:tm/setup/quick-install` - One-line install
|
|
37
|
+
- `/project:tm/init` - Initialize project
|
|
38
|
+
- `/project:tm/init/quick` - Quick init with -y
|
|
39
|
+
- `/project:tm/models` - View AI config
|
|
40
|
+
- `/project:tm/models/setup` - Configure AI
|
|
41
|
+
|
|
42
|
+
### Task Generation
|
|
43
|
+
- `/project:tm/parse-prd` - Generate from PRD
|
|
44
|
+
- `/project:tm/parse-prd/with-research` - Enhanced parsing
|
|
45
|
+
- `/project:tm/generate` - Create task files
|
|
46
|
+
|
|
47
|
+
### Task Management
|
|
48
|
+
- `/project:tm/list` - List with natural language filters
|
|
49
|
+
- `/project:tm/list/with-subtasks` - Hierarchical view
|
|
50
|
+
- `/project:tm/list/by-status <status>` - Filter by status
|
|
51
|
+
- `/project:tm/show <id>` - Task details
|
|
52
|
+
- `/project:tm/add-task` - Create task
|
|
53
|
+
- `/project:tm/update` - Update tasks
|
|
54
|
+
- `/project:tm/remove-task` - Delete task
|
|
55
|
+
|
|
56
|
+
### Status Management
|
|
57
|
+
- `/project:tm/set-status/to-pending <id>`
|
|
58
|
+
- `/project:tm/set-status/to-in-progress <id>`
|
|
59
|
+
- `/project:tm/set-status/to-done <id>`
|
|
60
|
+
- `/project:tm/set-status/to-review <id>`
|
|
61
|
+
- `/project:tm/set-status/to-deferred <id>`
|
|
62
|
+
- `/project:tm/set-status/to-cancelled <id>`
|
|
63
|
+
|
|
64
|
+
### Task Analysis
|
|
65
|
+
- `/project:tm/analyze-complexity` - AI analysis
|
|
66
|
+
- `/project:tm/complexity-report` - View report
|
|
67
|
+
- `/project:tm/expand <id>` - Break down task
|
|
68
|
+
- `/project:tm/expand/all` - Expand all complex
|
|
69
|
+
|
|
70
|
+
### Dependencies
|
|
71
|
+
- `/project:tm/add-dependency` - Add dependency
|
|
72
|
+
- `/project:tm/remove-dependency` - Remove dependency
|
|
73
|
+
- `/project:tm/validate-dependencies` - Check issues
|
|
74
|
+
- `/project:tm/fix-dependencies` - Auto-fix
|
|
75
|
+
|
|
76
|
+
### Workflows
|
|
77
|
+
- `/project:tm/workflows/smart-flow` - Adaptive workflows
|
|
78
|
+
- `/project:tm/workflows/pipeline` - Chain commands
|
|
79
|
+
- `/project:tm/workflows/auto-implement` - AI implementation
|
|
80
|
+
|
|
81
|
+
### Utilities
|
|
82
|
+
- `/project:tm/status` - Project dashboard
|
|
83
|
+
- `/project:tm/next` - Next task recommendation
|
|
84
|
+
- `/project:tm/utils/analyze` - Project analysis
|
|
85
|
+
- `/project:tm/learn` - Interactive help
|
|
86
|
+
|
|
87
|
+
## Key Features
|
|
88
|
+
|
|
89
|
+
### Natural Language Support
|
|
90
|
+
All commands understand natural language:
|
|
91
|
+
```
|
|
92
|
+
/project:tm/list pending high priority
|
|
93
|
+
/project:tm/update mark 23 as done
|
|
94
|
+
/project:tm/add-task implement OAuth login
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Smart Context
|
|
98
|
+
Commands analyze project state and provide intelligent suggestions based on:
|
|
99
|
+
- Current task status
|
|
100
|
+
- Dependencies
|
|
101
|
+
- Team patterns
|
|
102
|
+
- Project phase
|
|
103
|
+
|
|
104
|
+
### Visual Enhancements
|
|
105
|
+
- Progress bars and indicators
|
|
106
|
+
- Status badges
|
|
107
|
+
- Organized displays
|
|
108
|
+
- Clear hierarchies
|
|
109
|
+
|
|
110
|
+
## Common Workflows
|
|
111
|
+
|
|
112
|
+
### Daily Development
|
|
113
|
+
```
|
|
114
|
+
/project:tm/workflows/smart-flow morning
|
|
115
|
+
/project:tm/next
|
|
116
|
+
/project:tm/set-status/to-in-progress <id>
|
|
117
|
+
/project:tm/set-status/to-done <id>
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Task Breakdown
|
|
121
|
+
```
|
|
122
|
+
/project:tm/show <id>
|
|
123
|
+
/project:tm/expand <id>
|
|
124
|
+
/project:tm/list/with-subtasks
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Sprint Planning
|
|
128
|
+
```
|
|
129
|
+
/project:tm/analyze-complexity
|
|
130
|
+
/project:tm/workflows/pipeline init → expand/all → status
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Migration from Old Commands
|
|
134
|
+
|
|
135
|
+
| Old | New |
|
|
136
|
+
|-----|-----|
|
|
137
|
+
| `/project:taskgraph:list` | `/project:tm/list` |
|
|
138
|
+
| `/project:taskgraph:complete` | `/project:tm/set-status/to-done` |
|
|
139
|
+
| `/project:workflows:auto-implement` | `/project:tm/workflows/auto-implement` |
|
|
140
|
+
|
|
141
|
+
## Tips
|
|
142
|
+
|
|
143
|
+
1. Use `/project:tm/` + Tab for command discovery
|
|
144
|
+
2. Natural language is supported everywhere
|
|
145
|
+
3. Commands provide smart defaults
|
|
146
|
+
4. Chain commands for automation
|
|
147
|
+
5. Check `/project:tm/learn` for interactive help
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"models": {
|
|
3
|
+
"main": {
|
|
4
|
+
"provider": "claude-code",
|
|
5
|
+
"modelId": "sonnet",
|
|
6
|
+
"maxTokens": 64000,
|
|
7
|
+
"temperature": 0.2
|
|
8
|
+
},
|
|
9
|
+
"research": {
|
|
10
|
+
"provider": "claude-code",
|
|
11
|
+
"modelId": "sonnet",
|
|
12
|
+
"maxTokens": 8700,
|
|
13
|
+
"temperature": 0.1
|
|
14
|
+
},
|
|
15
|
+
"fallback": {
|
|
16
|
+
"provider": "claude-code",
|
|
17
|
+
"modelId": "sonnet",
|
|
18
|
+
"maxTokens": 64000,
|
|
19
|
+
"temperature": 0.2
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"global": {
|
|
23
|
+
"logLevel": "info",
|
|
24
|
+
"debug": false,
|
|
25
|
+
"defaultSubtasks": 5,
|
|
26
|
+
"defaultPriority": "medium",
|
|
27
|
+
"projectName": "TaskGraph",
|
|
28
|
+
"defaultTag": "master",
|
|
29
|
+
"responseLanguage": "English"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# TaskGraph uses Claude Code for all AI calls, so no AI provider API keys are needed.
|
|
2
|
+
# Install Claude Code and sign in with: claude
|
|
3
|
+
|
|
4
|
+
# Proxy Configuration (Optional)
|
|
5
|
+
# When enabled, automatically uses http_proxy/https_proxy environment variables
|
|
6
|
+
TASKGRAPH_ENABLE_PROXY=false
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<context>
|
|
2
|
+
# Overview
|
|
3
|
+
[Provide a high-level overview of your product here. Explain what problem it solves, who it's for, and why it's valuable.]
|
|
4
|
+
|
|
5
|
+
# Core Features
|
|
6
|
+
[List and describe the main features of your product. For each feature, include:
|
|
7
|
+
- What it does
|
|
8
|
+
- Why it's important
|
|
9
|
+
- How it works at a high level]
|
|
10
|
+
|
|
11
|
+
# User Experience
|
|
12
|
+
[Describe the user journey and experience. Include:
|
|
13
|
+
- User personas
|
|
14
|
+
- Key user flows
|
|
15
|
+
- UI/UX considerations]
|
|
16
|
+
</context>
|
|
17
|
+
<PRD>
|
|
18
|
+
# Technical Architecture
|
|
19
|
+
[Outline the technical implementation details:
|
|
20
|
+
- System components
|
|
21
|
+
- Data models
|
|
22
|
+
- APIs and integrations
|
|
23
|
+
- Infrastructure requirements]
|
|
24
|
+
|
|
25
|
+
# Development Roadmap
|
|
26
|
+
[Break down the development process into phases:
|
|
27
|
+
- MVP requirements
|
|
28
|
+
- Future enhancements
|
|
29
|
+
- Do not think about timelines whatsoever -- all that matters is scope and detailing exactly what needs to be build in each phase so it can later be cut up into tasks]
|
|
30
|
+
|
|
31
|
+
# Logical Dependency Chain
|
|
32
|
+
[Define the logical order of development:
|
|
33
|
+
- Which features need to be built first (foundation)
|
|
34
|
+
- Getting as quickly as possible to something usable/visible front end that works
|
|
35
|
+
- Properly pacing and scoping each feature so it is atomic but can also be built upon and improved as development approaches]
|
|
36
|
+
|
|
37
|
+
# Risks and Mitigations
|
|
38
|
+
[Identify potential risks and how they'll be addressed:
|
|
39
|
+
- Technical challenges
|
|
40
|
+
- Figuring out the MVP that we can build upon
|
|
41
|
+
- Resource constraints]
|
|
42
|
+
|
|
43
|
+
# Appendix
|
|
44
|
+
[Include any additional information:
|
|
45
|
+
- Research findings
|
|
46
|
+
- Technical specifications]
|
|
47
|
+
</PRD>
|