- .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: 기본 작업 파일 추가
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
---
|
|
description: Guidelines for creating and maintaining Cursor rules to ensure consistency and effectiveness.
|
|
globs: .cursor/rules/*.mdc
|
|
alwaysApply: true
|
|
---
|
|
|
|
- **Required Rule Structure:**
|
|
```markdown
|
|
---
|
|
description: Clear, one-line description of what the rule enforces
|
|
globs: path/to/files/*.ext, other/path/**/*
|
|
alwaysApply: boolean
|
|
---
|
|
|
|
- **Main Points in Bold**
|
|
- Sub-points with details
|
|
- Examples and explanations
|
|
```
|
|
|
|
- **File References:**
|
|
- Use `[filename](mdc:path/to/file)` ([filename](mdc:filename)) to reference files
|
|
- Example: [prisma.mdc](mdc:.cursor/rules/prisma.mdc) for rule references
|
|
- Example: [schema.prisma](mdc:prisma/schema.prisma) for code references
|
|
|
|
- **Code Examples:**
|
|
- Use language-specific code blocks
|
|
```typescript
|
|
// ✅ DO: Show good examples
|
|
const goodExample = true;
|
|
|
|
// ❌ DON'T: Show anti-patterns
|
|
const badExample = false;
|
|
```
|
|
|
|
- **Rule Content Guidelines:**
|
|
- Start with high-level overview
|
|
- Include specific, actionable requirements
|
|
- Show examples of correct implementation
|
|
- Reference existing code when possible
|
|
- Keep rules DRY by referencing other rules
|
|
|
|
- **Rule Maintenance:**
|
|
- Update rules when new patterns emerge
|
|
- Add examples from actual codebase
|
|
- Remove outdated patterns
|
|
- Cross-reference related rules
|
|
- Update CLAUDE.md if new slash commands or guidelines are added
|
|
|
|
- **Best Practices:**
|
|
- Use bullet points for clarity
|
|
- Keep descriptions concise
|
|
- Include both DO and DON'T examples
|
|
- Reference actual code over theoretical examples
|
|
- Use consistent formatting across rules |