Skip to content

Commit 2a46000

Browse files
committed
chore: init task-master
1 parent 809d308 commit 2a46000

21 files changed

+2670
-1
lines changed

.cursor/mcp.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"mcpServers": {
3+
"task-master-ai": {
4+
"command": "npx",
5+
"args": [
6+
"-y",
7+
"--package=task-master-ai",
8+
"task-master-ai"
9+
],
10+
"env": {
11+
"ANTHROPIC_API_KEY": "ANTHROPIC_API_KEY_HERE",
12+
"PERPLEXITY_API_KEY": "PERPLEXITY_API_KEY_HERE",
13+
"OPENAI_API_KEY": "OPENAI_API_KEY_HERE",
14+
"GOOGLE_API_KEY": "GOOGLE_API_KEY_HERE",
15+
"XAI_API_KEY": "XAI_API_KEY_HERE",
16+
"OPENROUTER_API_KEY": "OPENROUTER_API_KEY_HERE",
17+
"MISTRAL_API_KEY": "MISTRAL_API_KEY_HERE",
18+
"AZURE_OPENAI_API_KEY": "AZURE_OPENAI_API_KEY_HERE",
19+
"OLLAMA_API_KEY": "OLLAMA_API_KEY_HERE"
20+
}
21+
}
22+
}
23+
}

.cursor/rules/cursor_rules.mdc

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.cursor/rules/dev_workflow.mdc

Lines changed: 219 additions & 0 deletions
Large diffs are not rendered by default.

.cursor/rules/self_improve.mdc

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

0 commit comments

Comments
 (0)