@hhsw2015/task-master-ai 0.43.0
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 +4072 -0
- package/LICENSE +25 -0
- package/README-task-master.md +648 -0
- package/README.md +415 -0
- package/dist/ai-services-unified-BgdcS4fE.js +7 -0
- package/dist/ai-services-unified-DVAKOPK0.js +1 -0
- package/dist/assets/.windsurfrules +524 -0
- package/dist/assets/AGENTS.md +435 -0
- package/dist/assets/GEMINI.md +110 -0
- package/dist/assets/claude/TM_COMMANDS_GUIDE.md +147 -0
- package/dist/assets/config.json +34 -0
- package/dist/assets/env.example +12 -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/hamster-art.txt +49 -0
- package/dist/assets/kiro-hooks/tm-code-change-task-tracker.kiro.hook +23 -0
- package/dist/assets/kiro-hooks/tm-complexity-analyzer.kiro.hook +16 -0
- package/dist/assets/kiro-hooks/tm-daily-standup-assistant.kiro.hook +13 -0
- package/dist/assets/kiro-hooks/tm-git-commit-task-linker.kiro.hook +13 -0
- package/dist/assets/kiro-hooks/tm-pr-readiness-checker.kiro.hook +13 -0
- package/dist/assets/kiro-hooks/tm-task-dependency-auto-progression.kiro.hook +17 -0
- package/dist/assets/kiro-hooks/tm-test-success-task-completer.kiro.hook +23 -0
- package/dist/assets/roocode/.roo/rules-architect/architect-rules +93 -0
- package/dist/assets/roocode/.roo/rules-ask/ask-rules +89 -0
- package/dist/assets/roocode/.roo/rules-code/code-rules +61 -0
- package/dist/assets/roocode/.roo/rules-debug/debug-rules +68 -0
- package/dist/assets/roocode/.roo/rules-orchestrator/orchestrator-rules +181 -0
- package/dist/assets/roocode/.roo/rules-test/test-rules +61 -0
- package/dist/assets/roocode/.roomodes +63 -0
- package/dist/assets/rules/cursor_rules.mdc +53 -0
- package/dist/assets/rules/dev_workflow.mdc +424 -0
- package/dist/assets/rules/hamster.mdc +173 -0
- package/dist/assets/rules/self_improve.mdc +72 -0
- package/dist/assets/rules/taskmaster.mdc +573 -0
- package/dist/assets/rules/taskmaster_hooks_workflow.mdc +59 -0
- package/dist/assets/scripts_README.md +445 -0
- package/dist/commands-D7m4KWx1.js +329 -0
- package/dist/config-manager-CvbfYtIR.js +1 -0
- package/dist/config-manager-cjltSxIS.js +270 -0
- package/dist/dependency-manager-CyOxi5uo.js +1078 -0
- package/dist/git-utils-DllbRE35.js +1 -0
- package/dist/git-utils-PBP1PRVP.js +1 -0
- package/dist/mcp-server.js +44 -0
- package/dist/profiles-DcD-JxPM.js +3528 -0
- package/dist/research-DN4RyyJY.js +1 -0
- package/dist/response-language-C5AwQSfD.js +1 -0
- package/dist/response-language-LzM2RD6-.js +1 -0
- package/dist/sentry-CBAZ4LSk.js +1 -0
- package/dist/tag-management-6HOtYZMj.js +1 -0
- package/dist/task-manager-BtFURFe0.js +1 -0
- package/dist/task-master.js +2 -0
- package/dist/update-subtask-by-id-DiWMqGfw.js +1 -0
- package/dist/update-task-by-id-eyL-PNVX.js +1 -0
- package/dist/utils-CGk8TL6x.js +1 -0
- package/index.js +160 -0
- package/package.json +183 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Guidelines for implementing tasks imported from Hamster using Task Master CLI
|
|
3
|
+
globs: "**/*"
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Hamster Integration Workflow
|
|
8
|
+
|
|
9
|
+
This guide outlines the process for working with tasks imported from Hamster briefs using Task Master. When connected to a Hamster brief, follow these specific guidelines to ensure proper task management and workflow execution.
|
|
10
|
+
|
|
11
|
+
## **Command Restrictions**
|
|
12
|
+
|
|
13
|
+
### **Supported Commands**
|
|
14
|
+
- **✅ DO**: Use only these Task Master CLI commands when working with Hamster briefs:
|
|
15
|
+
```bash
|
|
16
|
+
tm list # List all tasks
|
|
17
|
+
tm show <sub/task id> --json # Show task details
|
|
18
|
+
tm set-status # Update task status
|
|
19
|
+
tm auth refresh # Refresh authentication token
|
|
20
|
+
tm context <brief url> # Reconnect to Hamster brief context
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### **Unsupported Commands**
|
|
24
|
+
- **❌ DON'T**: Use MCP tools when connected with Hamster briefs - they are not yet up to date with Hamster integration
|
|
25
|
+
- **❌ DON'T**: Use other Task Master CLI commands that haven't been verified to work with Hamster integration
|
|
26
|
+
|
|
27
|
+
## **Task Workflow Process**
|
|
28
|
+
|
|
29
|
+
### **Starting a Task**
|
|
30
|
+
```bash
|
|
31
|
+
# ✅ DO: Mark task and subtasks as in-progress when starting
|
|
32
|
+
tm set-status -i 1,1.1 -s in-progress
|
|
33
|
+
|
|
34
|
+
# Multiple tasks/subtasks can be marked at once using comma separation
|
|
35
|
+
tm set-status -i 1,1.1,1.2,2 -s in-progress
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### **Task Implementation Flow**
|
|
39
|
+
1. **Read the Task**: Use `tm show <id> --json` to understand the task requirements (json used to save tokens, gets you same information)
|
|
40
|
+
2. **Check for Subtasks**: If the task has subtasks, implement them one at a time
|
|
41
|
+
3. **Implement Subtask**: Complete the subtask implementation
|
|
42
|
+
4. **Verify Quality**: Run lint and typecheck before marking as done
|
|
43
|
+
```bash
|
|
44
|
+
npm lint
|
|
45
|
+
npm typecheck
|
|
46
|
+
```
|
|
47
|
+
5. **Mark Complete**: If verification passes, mark the subtask as done
|
|
48
|
+
```bash
|
|
49
|
+
tm set-status -i 1.1 -s done
|
|
50
|
+
```
|
|
51
|
+
6. **Commit Changes**: Commit the completed subtask work
|
|
52
|
+
7. **Repeat**: Continue until all subtasks are complete
|
|
53
|
+
|
|
54
|
+
### **Parent Task Completion**
|
|
55
|
+
- After all subtasks are done, run final verification:
|
|
56
|
+
```bash
|
|
57
|
+
npm lint
|
|
58
|
+
npm typecheck
|
|
59
|
+
```
|
|
60
|
+
- Mark the parent task as done:
|
|
61
|
+
```bash
|
|
62
|
+
tm set-status -i 1 -s done
|
|
63
|
+
```
|
|
64
|
+
- Move to the next task and repeat the process
|
|
65
|
+
|
|
66
|
+
## **Multiple Task Context**
|
|
67
|
+
|
|
68
|
+
### **Viewing Multiple Tasks**
|
|
69
|
+
```bash
|
|
70
|
+
# ✅ DO: Use comma-separated IDs to get context from multiple tasks
|
|
71
|
+
tm show 1,1.1,2,2.1 --json
|
|
72
|
+
|
|
73
|
+
# This is more efficient than calling tm show multiple times
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### **Parallel Subtask Execution**
|
|
77
|
+
- **When to Parallelize**: If a task has subtasks that can be completed in parallel
|
|
78
|
+
- **Requirements**:
|
|
79
|
+
- Ensure work/files to adjust are **not the same** across subtasks
|
|
80
|
+
- Spawn sub-agents for each parallel subtask
|
|
81
|
+
- Verify clear separation of work before parallelizing
|
|
82
|
+
- **Example**: If subtask 1.1 modifies `src/api.js` and subtask 1.2 modifies `src/utils.js`, these can run in parallel
|
|
83
|
+
|
|
84
|
+
## **Pull Request Management**
|
|
85
|
+
|
|
86
|
+
### **PR Creation Strategy**
|
|
87
|
+
- **Preferred Approach**: Keep everything in one PR if scope remains manageable
|
|
88
|
+
- **When to Split**: Create separate PRs if the work becomes too large
|
|
89
|
+
- **Multi-PR Strategy**: If splitting is necessary:
|
|
90
|
+
- Create PRs that build on top of previous ones
|
|
91
|
+
- **Always confirm with the human** before creating multiple PRs
|
|
92
|
+
- **PR Creation**: Use GitHub CLI after completing a task:
|
|
93
|
+
```bash
|
|
94
|
+
gh pr create --title "Task X: [Task Title]" --body "Description"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### **Committing to PRs**
|
|
98
|
+
- Keep committing to the same PR as long as the scope is maintained
|
|
99
|
+
- An entire task list (brief) might fit into a single PR
|
|
100
|
+
- If scope grows too large, discuss with human before creating new PRs
|
|
101
|
+
|
|
102
|
+
## **Authentication & Context Management**
|
|
103
|
+
|
|
104
|
+
### **Token Refresh**
|
|
105
|
+
```bash
|
|
106
|
+
# ✅ DO: Refresh token if JWT seems expired or commands don't work
|
|
107
|
+
tm auth refresh
|
|
108
|
+
|
|
109
|
+
# If refresh doesn't work, reconnect context
|
|
110
|
+
tm context <brief url>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### **Context Reconnection**
|
|
114
|
+
- **When Needed**: If commands stop working or authentication fails
|
|
115
|
+
- **Required Information**: Brief URL (ask user if not available)
|
|
116
|
+
- **Best Practice**: Store brief URL at the beginning of the session
|
|
117
|
+
- **Command**: `tm context <brief url>`
|
|
118
|
+
|
|
119
|
+
## **Integration with Git Workflow**
|
|
120
|
+
|
|
121
|
+
When working with Hamster briefs, follow the standard Git workflow patterns outlined in [git_workflow.mdc](mdc:.cursor/rules/git_workflow.mdc):
|
|
122
|
+
|
|
123
|
+
- Create task-specific branches: `task-XXX`
|
|
124
|
+
- Commit subtask work incrementally
|
|
125
|
+
- Create PRs after task completion
|
|
126
|
+
- Follow commit message standards
|
|
127
|
+
|
|
128
|
+
## **Workflow Summary**
|
|
129
|
+
|
|
130
|
+
```mermaid
|
|
131
|
+
flowchart TD
|
|
132
|
+
A[Start: Connect to Hamster Brief] --> B[Get Brief URL]
|
|
133
|
+
B --> C[tm list - View Tasks]
|
|
134
|
+
C --> D[Select Task]
|
|
135
|
+
D --> E[tm show <id> --json - Read Task]
|
|
136
|
+
E --> F{Has Subtasks?}
|
|
137
|
+
F -->|Yes| G[Select First Subtask]
|
|
138
|
+
F -->|No| M[Implement Task]
|
|
139
|
+
G --> H[tm set-status -i X.Y -s in-progress]
|
|
140
|
+
H --> I[Implement Subtask]
|
|
141
|
+
I --> J[npm lint && npm typecheck]
|
|
142
|
+
J --> K{Passes?}
|
|
143
|
+
K -->|Yes| L[tm set-status -i X.Y -s done]
|
|
144
|
+
K -->|No| I
|
|
145
|
+
L --> N{More Subtasks?}
|
|
146
|
+
N -->|Yes| G
|
|
147
|
+
N -->|No| O[Final lint/typecheck]
|
|
148
|
+
M --> O
|
|
149
|
+
O --> P[tm set-status -i X -s done]
|
|
150
|
+
P --> Q[Commit & Create PR]
|
|
151
|
+
Q --> R{More Tasks?}
|
|
152
|
+
R -->|Yes| D
|
|
153
|
+
R -->|No| S[Complete]
|
|
154
|
+
|
|
155
|
+
style A fill:#e1f5fe
|
|
156
|
+
style H fill:#fff3e0
|
|
157
|
+
style L fill:#e8f5e8
|
|
158
|
+
style Q fill:#fce4ec
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## **Key Principles**
|
|
162
|
+
|
|
163
|
+
- **Incremental Progress**: Work through subtasks one at a time
|
|
164
|
+
- **Quality Gates**: Always run lint and typecheck before marking tasks as done
|
|
165
|
+
- **Clear Communication**: Confirm with human before splitting work across multiple PRs
|
|
166
|
+
- **Efficient Context Gathering**: Use comma-separated IDs when viewing multiple tasks
|
|
167
|
+
- **Authentication Management**: Proactively refresh tokens and reconnect context when needed
|
|
168
|
+
|
|
169
|
+
## **Related Rules**
|
|
170
|
+
|
|
171
|
+
- [Git Workflow](mdc:.cursor/rules/git_workflow.mdc) - Standard Git branching and PR practices
|
|
172
|
+
- [Development Workflow](mdc:.cursor/rules/dev_workflow.mdc) - General Task Master development patterns
|
|
173
|
+
- [Task Management](mdc:.cursor/rules/tasks.mdc) - Task structure and operations
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Guidelines for continuously improving Cursor rules based on emerging code patterns and best practices.
|
|
3
|
+
globs: **/*
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
- **Rule Improvement Triggers:**
|
|
8
|
+
- New code patterns not covered by existing rules
|
|
9
|
+
- Repeated similar implementations across files
|
|
10
|
+
- Common error patterns that could be prevented
|
|
11
|
+
- New libraries or tools being used consistently
|
|
12
|
+
- Emerging best practices in the codebase
|
|
13
|
+
|
|
14
|
+
- **Analysis Process:**
|
|
15
|
+
- Compare new code with existing rules
|
|
16
|
+
- Identify patterns that should be standardized
|
|
17
|
+
- Look for references to external documentation
|
|
18
|
+
- Check for consistent error handling patterns
|
|
19
|
+
- Monitor test patterns and coverage
|
|
20
|
+
|
|
21
|
+
- **Rule Updates:**
|
|
22
|
+
- **Add New Rules When:**
|
|
23
|
+
- A new technology/pattern is used in 3+ files
|
|
24
|
+
- Common bugs could be prevented by a rule
|
|
25
|
+
- Code reviews repeatedly mention the same feedback
|
|
26
|
+
- New security or performance patterns emerge
|
|
27
|
+
|
|
28
|
+
- **Modify Existing Rules When:**
|
|
29
|
+
- Better examples exist in the codebase
|
|
30
|
+
- Additional edge cases are discovered
|
|
31
|
+
- Related rules have been updated
|
|
32
|
+
- Implementation details have changed
|
|
33
|
+
|
|
34
|
+
- **Example Pattern Recognition:**
|
|
35
|
+
```typescript
|
|
36
|
+
// If you see repeated patterns like:
|
|
37
|
+
const data = await prisma.user.findMany({
|
|
38
|
+
select: { id: true, email: true },
|
|
39
|
+
where: { status: 'ACTIVE' }
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// Consider adding to [prisma.mdc](mdc:.cursor/rules/prisma.mdc):
|
|
43
|
+
// - Standard select fields
|
|
44
|
+
// - Common where conditions
|
|
45
|
+
// - Performance optimization patterns
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- **Rule Quality Checks:**
|
|
49
|
+
- Rules should be actionable and specific
|
|
50
|
+
- Examples should come from actual code
|
|
51
|
+
- References should be up to date
|
|
52
|
+
- Patterns should be consistently enforced
|
|
53
|
+
|
|
54
|
+
- **Continuous Improvement:**
|
|
55
|
+
- Monitor code review comments
|
|
56
|
+
- Track common development questions
|
|
57
|
+
- Update rules after major refactors
|
|
58
|
+
- Add links to relevant documentation
|
|
59
|
+
- Cross-reference related rules
|
|
60
|
+
|
|
61
|
+
- **Rule Deprecation:**
|
|
62
|
+
- Mark outdated patterns as deprecated
|
|
63
|
+
- Remove rules that no longer apply
|
|
64
|
+
- Update references to deprecated rules
|
|
65
|
+
- Document migration paths for old patterns
|
|
66
|
+
|
|
67
|
+
- **Documentation Updates:**
|
|
68
|
+
- Keep examples synchronized with code
|
|
69
|
+
- Update references to external docs
|
|
70
|
+
- Maintain links between related rules
|
|
71
|
+
- Document breaking changes
|
|
72
|
+
Follow [cursor_rules.mdc](mdc:.cursor/rules/cursor_rules.mdc) for proper rule formatting and structure.
|