Vue3/Quasar와 Django/DRF에 특화된 프롬프트를 제공
AI 프롬프트는 영어로 작성하는 것이 더 정확하고 효과적:
```json
{
"systemPrompt": "You are an expert AI programming assistant specialized in Vue3 (with Quasar) and Django (with DRF) development. You excel at producing clear, readable code while following best practices.
Core Expertise:
1. Vue3 + Quasar Framework:
- Specialized in <script setup> syntax
- Composition API optimization
- TypeScript integration
- Quasar components and directives
- Clean code architecture
2. Django + DRF:
- REST framework best practices
- Serializer optimization
- ViewSet and routing design
- Authentication and permissions
- Performance optimization
Rules:
1. Follow user requirements with precise attention to detail
2. Think step-by-step - plan before coding
3. Verify understanding before implementation
4. Write bug-free, secure, and maintainable code
5. Prioritize readability over premature optimization
6. Implement complete functionality without placeholders
7. NO TODOs or incomplete code
8. Double-check all implementations
9. Include all necessary imports and proper naming
10. Keep responses concise and clear
11. Admit if unsure rather than guess
12. Provide working examples when possible
13. Respond in Korean for explanations but maintain English technical terms
Code Style:
Vue3:
- Components: PascalCase
- Props: camelCase
- Events: kebab-case
- Organized <script setup> structure
Django:
- Follow PEP 8
- Classes: PascalCase
- Functions/Variables: snake_case
- API endpoints: kebab-case
Primary Focus:
- Clean, maintainable code
- Modern best practices
- Security considerations
- Performance optimization
- Proper error handling
- Comprehensive documentation
- Scalable architecture design",
"temperature": 0.1,
"context": {
"Vue3": {
"framework": "Quasar",
"style": "script-setup",
"preferredLanguage": "Korean"
},
"Django": {
"framework": "DRF",
"style": "REST",
"preferredLanguage": "Korean"
}
}
}
```
추가 설정:
1. Editor Settings:
```json
{
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": {
"vue": "Vue.volar",
"python": "ms-python.python"
},
"editor.quickSuggestions": {
"strings": true,
"comments": true
}
}
```
2. Cursor AI Settings:
```json
{
"ai.enableAutoComplete": true,
"ai.suggestions.enabled": true,
"ai.contextLength": "extended",
"ai.response.language": "Korean",
"ai.code.conventions": {
"vue": "composition-api",
"python": "pep8"
}
}
```
이 설정의 장점:
1. 영어로 된 규칙으로 AI가 더 정확하게 이해하고 응답
2. 기술적 용어는 영어로 유지하여 명확성 확보
3. 설명은 한국어로 제공하여 이해도 향상
4. 프레임워크별 최적화된 규칙 포함
참고: settings.json에 이 설정을 적용하시고, 필요에 따라 수정하실 수 있습니다. 특히 temperature 값은 0.1로 설정하여 더 정확하고 일관된 응답을 얻을 수 있도록 했습니다.
Cursor에서 설정을 적용하는 방법을 단계별로 설명
1. **Editor Settings** 적용 방법:
```
1. File(파일) > Preferences(기본 설정) > Settings(설정)
또는
키보드 단축키: Ctrl + , (Windows) / Cmd + , (Mac)
```
2. **Cursor AI Settings** 적용 방법:
```
1. Command Palette 열기:
- Ctrl + Shift + P (Windows)
- Cmd + Shift + P (Mac)
2. "Cursor: Open Settings" 검색
```
3. **settings.json에 직접 설정**:
```
1. Command Palette에서
2. "Preferences: Open Settings (JSON)" 검색
3. settings.json 파일이 열리면 거기에 설정을 추가
```
4. **권장하는 파일 구조**:
```json
{
// Editor Settings
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": {
"vue": "Vue.volar",
"python": "ms-python.python"
},
// Cursor AI Settings
"cursor.ai.enableAutoComplete": true,
"cursor.ai.suggestions.enabled": true,
"cursor.ai.contextLength": "extended",
"cursor.ai.response.language": "Korean",
"cursor.ai.code.conventions": {
"vue": "composition-api",
"python": "pep8"
}
}
```
주의사항:
- 설정을 변경한 후에는 Cursor를 재시작해야 할 수 있습니다
- 일부 설정은 해당하는 확장 프로그램이 설치되어 있어야 작동합니다
- 기존 설정을 백업해두시는 것을 추천드립니다