- .git-commit-template.txt: 커밋 메시지 템플릿 추가 - .gitignore: OS 및 데이터베이스 관련 파일 무시 설정 추가 - .mcp.json: MCP 서버 설정 추가 - CLAUDE.md: SuperClaude 엔트리 포인트 문서 추가 - README.md: 프로젝트 템플릿 설명 추가 - .claude/COMMANDS.md: 명령어 실행 프레임워크 문서 추가 - .claude/FLAGS.md: 플래그 시스템 문서 추가 - .claude/MCP.md: MCP 서버 통합 문서 추가 - .claude/MODES.md: 운영 모드 문서 추가 - .claude/ORCHESTRATOR.md: 지능형 라우팅 시스템 문서 추가 - .claude/PERSONAS.md: 페르소나 시스템 문서 추가 - .claude/PRINCIPLES.md: 핵심 원칙 문서 추가 - .claude/RULES.md: 실행 가능한 규칙 문서 추가 - .claude/settings.json: 권한 설정 추가 - .claude/commands 디렉토리: 다양한 명령어 문서 추가 - .taskmaster/config.json: 기본 설정 파일 추가 - .taskmaster/docs 디렉토리: 문서 파일 추가 - .taskmaster/tasks/tasks.json: 기본 작업 파일 추가
74 lines
2.4 KiB
Plaintext
74 lines
2.4 KiB
Plaintext
---
|
|
description: Guidelines for continuously improving Cursor rules based on emerging code patterns and best practices.
|
|
globs: **/*
|
|
alwaysApply: true
|
|
---
|
|
|
|
- **Rule Improvement Triggers:**
|
|
- New code patterns not covered by existing rules
|
|
- Repeated similar implementations across files
|
|
- Common error patterns that could be prevented
|
|
- New libraries or tools being used consistently
|
|
- Emerging best practices in the codebase
|
|
|
|
- **Analysis Process:**
|
|
- Compare new code with existing rules
|
|
- Identify patterns that should be standardized
|
|
- Look for references to external documentation
|
|
- Check for consistent error handling patterns
|
|
- Monitor test patterns and coverage
|
|
|
|
- **Rule Updates:**
|
|
- **Add New Rules When:**
|
|
- A new technology/pattern is used in 3+ files
|
|
- Common bugs could be prevented by a rule
|
|
- Code reviews repeatedly mention the same feedback
|
|
- New security or performance patterns emerge
|
|
|
|
- **Modify Existing Rules When:**
|
|
- Better examples exist in the codebase
|
|
- Additional edge cases are discovered
|
|
- Related rules have been updated
|
|
- Implementation details have changed
|
|
|
|
- **Example Pattern Recognition:**
|
|
```typescript
|
|
// If you see repeated patterns like:
|
|
const data = await prisma.user.findMany({
|
|
select: { id: true, email: true },
|
|
where: { status: 'ACTIVE' }
|
|
});
|
|
|
|
// Consider adding to [prisma.mdc](mdc:.cursor/rules/prisma.mdc):
|
|
// - Standard select fields
|
|
// - Common where conditions
|
|
// - Performance optimization patterns
|
|
```
|
|
|
|
- **Rule Quality Checks:**
|
|
- Rules should be actionable and specific
|
|
- Examples should come from actual code
|
|
- References should be up to date
|
|
- Patterns should be consistently enforced
|
|
|
|
- **Continuous Improvement:**
|
|
- Monitor code review comments
|
|
- Track common development questions
|
|
- Update rules after major refactors
|
|
- Add links to relevant documentation
|
|
- Cross-reference related rules
|
|
|
|
- **Rule Deprecation:**
|
|
- Mark outdated patterns as deprecated
|
|
- Remove rules that no longer apply
|
|
- Update references to deprecated rules
|
|
- Document migration paths for old patterns
|
|
|
|
- **Documentation Updates:**
|
|
- Keep examples synchronized with code
|
|
- Update references to external docs
|
|
- Maintain links between related rules
|
|
- Document breaking changes
|
|
- Update CLAUDE.md when adding new rules or slash commands
|
|
Follow for proper rule formatting and structure.
|