jell-utils 0.1.0 → 0.2.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/.claude/commands/tm/add-dependency.md +58 -0
- package/.claude/commands/tm/add-subtask.md +79 -0
- package/.claude/commands/tm/add-task.md +81 -0
- package/.claude/commands/tm/analyze-complexity.md +124 -0
- package/.claude/commands/tm/analyze-project.md +100 -0
- package/.claude/commands/tm/auto-implement-tasks.md +100 -0
- package/.claude/commands/tm/command-pipeline.md +80 -0
- package/.claude/commands/tm/complexity-report.md +120 -0
- package/.claude/commands/tm/convert-task-to-subtask.md +74 -0
- package/.claude/commands/tm/expand-all-tasks.md +52 -0
- package/.claude/commands/tm/expand-task.md +52 -0
- package/.claude/commands/tm/fix-dependencies.md +82 -0
- package/.claude/commands/tm/help.md +101 -0
- package/.claude/commands/tm/init-project-quick.md +49 -0
- package/.claude/commands/tm/init-project.md +53 -0
- package/.claude/commands/tm/install-taskmaster.md +118 -0
- package/.claude/commands/tm/learn.md +106 -0
- package/.claude/commands/tm/list-tasks-by-status.md +42 -0
- package/.claude/commands/tm/list-tasks-with-subtasks.md +30 -0
- package/.claude/commands/tm/list-tasks.md +46 -0
- package/.claude/commands/tm/next-task.md +69 -0
- package/.claude/commands/tm/parse-prd-with-research.md +51 -0
- package/.claude/commands/tm/parse-prd.md +52 -0
- package/.claude/commands/tm/project-status.md +67 -0
- package/.claude/commands/tm/quick-install-taskmaster.md +23 -0
- package/.claude/commands/tm/remove-all-subtasks.md +94 -0
- package/.claude/commands/tm/remove-dependency.md +65 -0
- package/.claude/commands/tm/remove-subtask.md +87 -0
- package/.claude/commands/tm/remove-subtasks.md +89 -0
- package/.claude/commands/tm/remove-task.md +110 -0
- package/.claude/commands/tm/setup-models.md +52 -0
- package/.claude/commands/tm/show-task.md +85 -0
- package/.claude/commands/tm/smart-workflow.md +58 -0
- package/.claude/commands/tm/sync-readme.md +120 -0
- package/.claude/commands/tm/tm-main.md +147 -0
- package/.claude/commands/tm/to-cancelled.md +58 -0
- package/.claude/commands/tm/to-deferred.md +50 -0
- package/.claude/commands/tm/to-done.md +47 -0
- package/.claude/commands/tm/to-in-progress.md +39 -0
- package/.claude/commands/tm/to-pending.md +35 -0
- package/.claude/commands/tm/to-review.md +43 -0
- package/.claude/commands/tm/update-single-task.md +122 -0
- package/.claude/commands/tm/update-task.md +75 -0
- package/.claude/commands/tm/update-tasks-from-id.md +111 -0
- package/.claude/commands/tm/validate-dependencies.md +72 -0
- package/.claude/commands/tm/view-models.md +52 -0
- package/.claude/settings.local.json +17 -3
- package/.cursor/commands/tm/add-dependency.md +55 -0
- package/.cursor/commands/tm/add-subtask.md +76 -0
- package/.cursor/commands/tm/add-task.md +78 -0
- package/.cursor/commands/tm/analyze-complexity.md +121 -0
- package/.cursor/commands/tm/analyze-project.md +97 -0
- package/.cursor/commands/tm/auto-implement-tasks.md +97 -0
- package/.cursor/commands/tm/command-pipeline.md +77 -0
- package/.cursor/commands/tm/complexity-report.md +117 -0
- package/.cursor/commands/tm/convert-task-to-subtask.md +71 -0
- package/.cursor/commands/tm/expand-all-tasks.md +51 -0
- package/.cursor/commands/tm/expand-task.md +49 -0
- package/.cursor/commands/tm/fix-dependencies.md +81 -0
- package/.cursor/commands/tm/help.md +98 -0
- package/.cursor/commands/tm/init-project-quick.md +46 -0
- package/.cursor/commands/tm/init-project.md +50 -0
- package/.cursor/commands/tm/install-taskmaster.md +117 -0
- package/.cursor/commands/tm/learn.md +103 -0
- package/.cursor/commands/tm/list-tasks-by-status.md +39 -0
- package/.cursor/commands/tm/list-tasks-with-subtasks.md +29 -0
- package/.cursor/commands/tm/list-tasks.md +43 -0
- package/.cursor/commands/tm/next-task.md +66 -0
- package/.cursor/commands/tm/parse-prd-with-research.md +48 -0
- package/.cursor/commands/tm/parse-prd.md +49 -0
- package/.cursor/commands/tm/project-status.md +64 -0
- package/.cursor/commands/tm/quick-install-taskmaster.md +22 -0
- package/.cursor/commands/tm/remove-all-subtasks.md +93 -0
- package/.cursor/commands/tm/remove-dependency.md +62 -0
- package/.cursor/commands/tm/remove-subtask.md +84 -0
- package/.cursor/commands/tm/remove-subtasks.md +86 -0
- package/.cursor/commands/tm/remove-task.md +107 -0
- package/.cursor/commands/tm/setup-models.md +51 -0
- package/.cursor/commands/tm/show-task.md +82 -0
- package/.cursor/commands/tm/smart-workflow.md +55 -0
- package/.cursor/commands/tm/sync-readme.md +117 -0
- package/.cursor/commands/tm/tm-main.md +146 -0
- package/.cursor/commands/tm/to-cancelled.md +55 -0
- package/.cursor/commands/tm/to-deferred.md +47 -0
- package/.cursor/commands/tm/to-done.md +44 -0
- package/.cursor/commands/tm/to-in-progress.md +36 -0
- package/.cursor/commands/tm/to-pending.md +32 -0
- package/.cursor/commands/tm/to-review.md +40 -0
- package/.cursor/commands/tm/update-single-task.md +119 -0
- package/.cursor/commands/tm/update-task.md +72 -0
- package/.cursor/commands/tm/update-tasks-from-id.md +108 -0
- package/.cursor/commands/tm/validate-dependencies.md +71 -0
- package/.cursor/commands/tm/view-models.md +51 -0
- package/.cursor/mcp.json +20 -0
- package/.cursor/rules/cursor_rules.mdc +53 -0
- package/.cursor/rules/self_improve.mdc +72 -0
- package/.cursor/rules/taskmaster/dev_workflow.mdc +424 -0
- package/.cursor/rules/taskmaster/taskmaster.mdc +573 -0
- package/.env.example +12 -0
- package/.gemini/commands/tm/add-dependency.toml +58 -0
- package/.gemini/commands/tm/add-subtask.toml +79 -0
- package/.gemini/commands/tm/add-task.toml +81 -0
- package/.gemini/commands/tm/analyze-complexity.toml +124 -0
- package/.gemini/commands/tm/analyze-project.toml +100 -0
- package/.gemini/commands/tm/auto-implement-tasks.toml +100 -0
- package/.gemini/commands/tm/command-pipeline.toml +80 -0
- package/.gemini/commands/tm/complexity-report.toml +120 -0
- package/.gemini/commands/tm/convert-task-to-subtask.toml +74 -0
- package/.gemini/commands/tm/expand-all-tasks.toml +54 -0
- package/.gemini/commands/tm/expand-task.toml +52 -0
- package/.gemini/commands/tm/fix-dependencies.toml +84 -0
- package/.gemini/commands/tm/help.toml +101 -0
- package/.gemini/commands/tm/init-project-quick.toml +49 -0
- package/.gemini/commands/tm/init-project.toml +53 -0
- package/.gemini/commands/tm/install-taskmaster.toml +120 -0
- package/.gemini/commands/tm/learn.toml +106 -0
- package/.gemini/commands/tm/list-tasks-by-status.toml +42 -0
- package/.gemini/commands/tm/list-tasks-with-subtasks.toml +32 -0
- package/.gemini/commands/tm/list-tasks.toml +46 -0
- package/.gemini/commands/tm/next-task.toml +69 -0
- package/.gemini/commands/tm/parse-prd-with-research.toml +51 -0
- package/.gemini/commands/tm/parse-prd.toml +52 -0
- package/.gemini/commands/tm/project-status.toml +67 -0
- package/.gemini/commands/tm/quick-install-taskmaster.toml +25 -0
- package/.gemini/commands/tm/remove-all-subtasks.toml +96 -0
- package/.gemini/commands/tm/remove-dependency.toml +65 -0
- package/.gemini/commands/tm/remove-subtask.toml +87 -0
- package/.gemini/commands/tm/remove-subtasks.toml +89 -0
- package/.gemini/commands/tm/remove-task.toml +110 -0
- package/.gemini/commands/tm/setup-models.toml +54 -0
- package/.gemini/commands/tm/show-task.toml +85 -0
- package/.gemini/commands/tm/smart-workflow.toml +58 -0
- package/.gemini/commands/tm/sync-readme.toml +120 -0
- package/.gemini/commands/tm/tm-main.toml +149 -0
- package/.gemini/commands/tm/to-cancelled.toml +58 -0
- package/.gemini/commands/tm/to-deferred.toml +50 -0
- package/.gemini/commands/tm/to-done.toml +47 -0
- package/.gemini/commands/tm/to-in-progress.toml +39 -0
- package/.gemini/commands/tm/to-pending.toml +35 -0
- package/.gemini/commands/tm/to-review.toml +43 -0
- package/.gemini/commands/tm/update-single-task.toml +122 -0
- package/.gemini/commands/tm/update-task.toml +75 -0
- package/.gemini/commands/tm/update-tasks-from-id.toml +111 -0
- package/.gemini/commands/tm/validate-dependencies.toml +74 -0
- package/.gemini/commands/tm/view-models.toml +54 -0
- package/.gemini/settings.json +20 -0
- package/.mcp.json +15 -0
- package/.taskmaster/CLAUDE.md +435 -0
- package/.taskmaster/config.json +44 -0
- package/.taskmaster/docs/prd.txt +584 -0
- package/.taskmaster/state.json +6 -0
- package/.taskmaster/tasks/tasks.json +304 -0
- package/.taskmaster/templates/example_prd.txt +47 -0
- package/.taskmaster/templates/example_prd_rpg.txt +511 -0
- package/CLAUDE.md +4 -138
- package/README.md +551 -0
- package/coverage/clover.xml +134 -22
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +21 -21
- package/coverage/lcov-report/index.js.html +854 -29
- package/coverage/lcov.info +246 -39
- package/internal-docs/CLAUDE.md +139 -0
- package/internal-docs/NPM_DEPLOYMENT_GUIDE.md +203 -0
- package/internal-docs/OBSIDIAN_PROJECT_PROMPT.md +302 -0
- package/lib/index.d.ts +88 -0
- package/lib/index.js +275 -0
- package/package.json +11 -3
- /package/{DEPLOYMENT.md → internal-docs/DEPLOYMENT.md} +0 -0
- /package/{TEST_RESULTS.md → internal-docs/TEST_RESULTS.md} +0 -0
- /package/{TEST_SIMULATION.md → internal-docs/TEST_SIMULATION.md} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Update multiple tasks starting from a specific ID.
|
|
2
|
+
|
|
3
|
+
Arguments: $ARGUMENTS
|
|
4
|
+
|
|
5
|
+
Parse starting task ID and update context.
|
|
6
|
+
|
|
7
|
+
## Bulk Task Updates
|
|
8
|
+
|
|
9
|
+
Update multiple related tasks based on new requirements or context changes.
|
|
10
|
+
|
|
11
|
+
## Argument Parsing
|
|
12
|
+
|
|
13
|
+
- "from 5: add security requirements"
|
|
14
|
+
- "5 onwards: update API endpoints"
|
|
15
|
+
- "starting at 5: change to use new framework"
|
|
16
|
+
|
|
17
|
+
## Execution
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
task-master update --from=<id> --prompt="<context>"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Update Process
|
|
24
|
+
|
|
25
|
+
### 1. **Task Selection**
|
|
26
|
+
Starting from specified ID:
|
|
27
|
+
- Include the task itself
|
|
28
|
+
- Include all dependent tasks
|
|
29
|
+
- Include related subtasks
|
|
30
|
+
- Smart boundary detection
|
|
31
|
+
|
|
32
|
+
### 2. **Context Application**
|
|
33
|
+
AI analyzes the update context and:
|
|
34
|
+
- Identifies what needs changing
|
|
35
|
+
- Maintains consistency
|
|
36
|
+
- Preserves completed work
|
|
37
|
+
- Updates related information
|
|
38
|
+
|
|
39
|
+
### 3. **Intelligent Updates**
|
|
40
|
+
- Modify descriptions appropriately
|
|
41
|
+
- Update test strategies
|
|
42
|
+
- Adjust time estimates
|
|
43
|
+
- Revise dependencies if needed
|
|
44
|
+
|
|
45
|
+
## Smart Features
|
|
46
|
+
|
|
47
|
+
1. **Scope Detection**
|
|
48
|
+
- Find natural task groupings
|
|
49
|
+
- Identify related features
|
|
50
|
+
- Stop at logical boundaries
|
|
51
|
+
- Avoid over-updating
|
|
52
|
+
|
|
53
|
+
2. **Consistency Maintenance**
|
|
54
|
+
- Keep naming conventions
|
|
55
|
+
- Preserve relationships
|
|
56
|
+
- Update cross-references
|
|
57
|
+
- Maintain task flow
|
|
58
|
+
|
|
59
|
+
3. **Change Preview**
|
|
60
|
+
```
|
|
61
|
+
Bulk Update Preview
|
|
62
|
+
━━━━━━━━━━━━━━━━━━
|
|
63
|
+
Starting from: Task #5
|
|
64
|
+
Tasks to update: 8 tasks + 12 subtasks
|
|
65
|
+
|
|
66
|
+
Context: "add security requirements"
|
|
67
|
+
|
|
68
|
+
Changes will include:
|
|
69
|
+
- Add security sections to descriptions
|
|
70
|
+
- Update test strategies for security
|
|
71
|
+
- Add security-related subtasks where needed
|
|
72
|
+
- Adjust time estimates (+20% average)
|
|
73
|
+
|
|
74
|
+
Continue? (y/n)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Example Updates
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
/taskmaster:update-tasks-from-id 5: change database to PostgreSQL
|
|
81
|
+
→ Analyzing impact starting from task #5
|
|
82
|
+
→ Found 6 related tasks to update
|
|
83
|
+
→ Updates will maintain consistency
|
|
84
|
+
→ Preview changes? (y/n)
|
|
85
|
+
|
|
86
|
+
Applied updates:
|
|
87
|
+
✓ Task #5: Updated connection logic references
|
|
88
|
+
✓ Task #6: Changed migration approach
|
|
89
|
+
✓ Task #7: Updated query syntax notes
|
|
90
|
+
✓ Task #8: Revised testing strategy
|
|
91
|
+
✓ Task #9: Updated deployment steps
|
|
92
|
+
✓ Task #12: Changed backup procedures
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Safety Features
|
|
96
|
+
|
|
97
|
+
- Preview all changes
|
|
98
|
+
- Selective confirmation
|
|
99
|
+
- Rollback capability
|
|
100
|
+
- Change logging
|
|
101
|
+
- Validation checks
|
|
102
|
+
|
|
103
|
+
## Post-Update
|
|
104
|
+
|
|
105
|
+
- Summary of changes
|
|
106
|
+
- Consistency verification
|
|
107
|
+
- Suggest review tasks
|
|
108
|
+
- Update timeline if needed
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Validate all task dependencies for issues.
|
|
2
|
+
|
|
3
|
+
## Dependency Validation
|
|
4
|
+
|
|
5
|
+
Comprehensive check for dependency problems across the entire project.
|
|
6
|
+
|
|
7
|
+
## Execution
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
task-master validate-dependencies
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Validation Checks
|
|
14
|
+
|
|
15
|
+
1. **Circular Dependencies**
|
|
16
|
+
- A depends on B, B depends on A
|
|
17
|
+
- Complex circular chains
|
|
18
|
+
- Self-dependencies
|
|
19
|
+
|
|
20
|
+
2. **Missing Dependencies**
|
|
21
|
+
- References to non-existent tasks
|
|
22
|
+
- Deleted task references
|
|
23
|
+
- Invalid task IDs
|
|
24
|
+
|
|
25
|
+
3. **Logical Issues**
|
|
26
|
+
- Completed tasks depending on pending
|
|
27
|
+
- Cancelled tasks in dependency chains
|
|
28
|
+
- Impossible sequences
|
|
29
|
+
|
|
30
|
+
4. **Complexity Warnings**
|
|
31
|
+
- Over-complex dependency chains
|
|
32
|
+
- Too many dependencies per task
|
|
33
|
+
- Bottleneck tasks
|
|
34
|
+
|
|
35
|
+
## Smart Analysis
|
|
36
|
+
|
|
37
|
+
The validation provides:
|
|
38
|
+
- Visual dependency graph
|
|
39
|
+
- Critical path analysis
|
|
40
|
+
- Bottleneck identification
|
|
41
|
+
- Suggested optimizations
|
|
42
|
+
|
|
43
|
+
## Report Format
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Dependency Validation Report
|
|
47
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
48
|
+
✅ No circular dependencies found
|
|
49
|
+
⚠️ 2 warnings found:
|
|
50
|
+
- Task #23 has 7 dependencies (consider breaking down)
|
|
51
|
+
- Task #45 blocks 5 other tasks (potential bottleneck)
|
|
52
|
+
❌ 1 error found:
|
|
53
|
+
- Task #67 depends on deleted task #66
|
|
54
|
+
|
|
55
|
+
Critical Path: #1 → #5 → #23 → #45 → #50 (15 days)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Actionable Output
|
|
59
|
+
|
|
60
|
+
For each issue found:
|
|
61
|
+
- Clear description
|
|
62
|
+
- Impact assessment
|
|
63
|
+
- Suggested fix
|
|
64
|
+
- Command to resolve
|
|
65
|
+
|
|
66
|
+
## Next Steps
|
|
67
|
+
|
|
68
|
+
After validation:
|
|
69
|
+
- Run `/taskmaster:fix-dependencies` to auto-fix
|
|
70
|
+
- Manually adjust problematic dependencies
|
|
71
|
+
- Rerun to verify fixes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
View current AI model configuration.
|
|
2
|
+
|
|
3
|
+
## Model Configuration Display
|
|
4
|
+
|
|
5
|
+
Shows the currently configured AI providers and models for Task Master.
|
|
6
|
+
|
|
7
|
+
## Execution
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
task-master models
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Information Displayed
|
|
14
|
+
|
|
15
|
+
1. **Main Provider**
|
|
16
|
+
- Model ID and name
|
|
17
|
+
- API key status (configured/missing)
|
|
18
|
+
- Usage: Primary task generation
|
|
19
|
+
|
|
20
|
+
2. **Research Provider**
|
|
21
|
+
- Model ID and name
|
|
22
|
+
- API key status
|
|
23
|
+
- Usage: Enhanced research mode
|
|
24
|
+
|
|
25
|
+
3. **Fallback Provider**
|
|
26
|
+
- Model ID and name
|
|
27
|
+
- API key status
|
|
28
|
+
- Usage: Backup when main fails
|
|
29
|
+
|
|
30
|
+
## Visual Status
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Task Master AI Model Configuration
|
|
34
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
35
|
+
Main: ✅ claude-3-5-sonnet (configured)
|
|
36
|
+
Research: ✅ perplexity-sonar (configured)
|
|
37
|
+
Fallback: ⚠️ Not configured (optional)
|
|
38
|
+
|
|
39
|
+
Available Models:
|
|
40
|
+
- claude-3-5-sonnet
|
|
41
|
+
- gpt-4-turbo
|
|
42
|
+
- gpt-3.5-turbo
|
|
43
|
+
- perplexity-sonar
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Next Actions
|
|
47
|
+
|
|
48
|
+
Based on configuration:
|
|
49
|
+
- If missing API keys → Suggest setup
|
|
50
|
+
- If no research model → Explain benefits
|
|
51
|
+
- If all configured → Show usage tips
|
package/.cursor/mcp.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"task-master-ai": {
|
|
4
|
+
"command": "npx",
|
|
5
|
+
"args": ["-y", "task-master-ai"],
|
|
6
|
+
"env": {
|
|
7
|
+
"TASK_MASTER_TOOLS": "core",
|
|
8
|
+
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
|
|
9
|
+
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
|
|
10
|
+
"OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
|
|
11
|
+
"GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
|
|
12
|
+
"XAI_API_KEY": "YOUR_XAI_KEY_HERE",
|
|
13
|
+
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
|
|
14
|
+
"MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
|
|
15
|
+
"AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
|
|
16
|
+
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Guidelines for creating and maintaining Cursor rules to ensure consistency and effectiveness.
|
|
3
|
+
globs: .cursor/rules/*.mdc
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
- **Required Rule Structure:**
|
|
8
|
+
```markdown
|
|
9
|
+
---
|
|
10
|
+
description: Clear, one-line description of what the rule enforces
|
|
11
|
+
globs: path/to/files/*.ext, other/path/**/*
|
|
12
|
+
alwaysApply: boolean
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
- **Main Points in Bold**
|
|
16
|
+
- Sub-points with details
|
|
17
|
+
- Examples and explanations
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- **File References:**
|
|
21
|
+
- Use `[filename](mdc:path/to/file)` ([filename](mdc:filename)) to reference files
|
|
22
|
+
- Example: [prisma.mdc](mdc:.cursor/rules/prisma.mdc) for rule references
|
|
23
|
+
- Example: [schema.prisma](mdc:prisma/schema.prisma) for code references
|
|
24
|
+
|
|
25
|
+
- **Code Examples:**
|
|
26
|
+
- Use language-specific code blocks
|
|
27
|
+
```typescript
|
|
28
|
+
// ✅ DO: Show good examples
|
|
29
|
+
const goodExample = true;
|
|
30
|
+
|
|
31
|
+
// ❌ DON'T: Show anti-patterns
|
|
32
|
+
const badExample = false;
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- **Rule Content Guidelines:**
|
|
36
|
+
- Start with high-level overview
|
|
37
|
+
- Include specific, actionable requirements
|
|
38
|
+
- Show examples of correct implementation
|
|
39
|
+
- Reference existing code when possible
|
|
40
|
+
- Keep rules DRY by referencing other rules
|
|
41
|
+
|
|
42
|
+
- **Rule Maintenance:**
|
|
43
|
+
- Update rules when new patterns emerge
|
|
44
|
+
- Add examples from actual codebase
|
|
45
|
+
- Remove outdated patterns
|
|
46
|
+
- Cross-reference related rules
|
|
47
|
+
|
|
48
|
+
- **Best Practices:**
|
|
49
|
+
- Use bullet points for clarity
|
|
50
|
+
- Keep descriptions concise
|
|
51
|
+
- Include both DO and DON'T examples
|
|
52
|
+
- Reference actual code over theoretical examples
|
|
53
|
+
- Use consistent formatting across rules
|
|
@@ -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.
|