docs: 초기 파일 추가 및 기본 설정 구성
- .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: 기본 작업 파일 추가
This commit is contained in:
77
.claude/commands/task/spec.md
Normal file
77
.claude/commands/task/spec.md
Normal file
@ -0,0 +1,77 @@
|
||||
# End-to-End Feature Implementation Guide
|
||||
|
||||
## Context
|
||||
|
||||
- When implementing new end-to-end features
|
||||
- When planning feature development workflow
|
||||
- When ensuring consistent architecture
|
||||
|
||||
## Requirements
|
||||
|
||||
- Follow the implementation steps in order
|
||||
- Use the appropriate standards for each step
|
||||
- Ensure consistency across all implementation layers
|
||||
- Test each phase before moving to the next
|
||||
|
||||
## Implementation Steps
|
||||
|
||||
1. **Schema Definition** → Use rule @.cursor/rules/2101-schema-prisma.mdc
|
||||
|
||||
- Define Prisma schema with standard fields
|
||||
- Add proper relations and indexes
|
||||
- Use correct field types and constraints
|
||||
- Follow naming conventions
|
||||
|
||||
2. **Router Implementation** → Use rule @.cursor/rules/2102-router.mdc
|
||||
|
||||
- Create protected tRPC router
|
||||
- Add input validation with Zod
|
||||
- Implement cursor-based pagination
|
||||
- Handle security and responses
|
||||
|
||||
3. **React Query Integration** → Use rule @.cursor/rules/2103-trpc-react-query.mdc
|
||||
|
||||
- Set up queries with queryOptions
|
||||
- Handle loading states
|
||||
- Implement optimistic updates
|
||||
- Manage cache invalidation
|
||||
|
||||
4. **CRUD Implementation** → Use rule @.cursor/rules/2105-crud.mdc
|
||||
|
||||
- Follow phased implementation approach
|
||||
- Start with Create & Read operations
|
||||
- Add Update & Delete operations
|
||||
- Implement advanced features last
|
||||
|
||||
5. **Authentication** → Use rule @.cursor/rules/2106-auth.mdc
|
||||
- Use protectedProcedure for routes
|
||||
- Add session checks in components
|
||||
- Implement auth guards
|
||||
- Handle unauthorized states
|
||||
|
||||
## Examples
|
||||
|
||||
<example>
|
||||
```typescript
|
||||
// Implementation follows all steps in order
|
||||
// 1. Schema defined in prisma/schema.prisma
|
||||
// 2. Router implemented in src/server/api/routers/item.ts
|
||||
// 3. React Query integration in src/components/ItemList.tsx
|
||||
// 4. CRUD operations implemented in phases
|
||||
// 5. Authentication checks in all appropriate places
|
||||
```
|
||||
Complete feature implementation following all steps in order
|
||||
</example>
|
||||
|
||||
<example type="invalid">
|
||||
```typescript
|
||||
// Implementation skips steps or does them out of order
|
||||
// Missing schema definition
|
||||
// Incomplete router implementation
|
||||
// Using old tRPC patterns instead of React Query
|
||||
// Missing error handling
|
||||
// Implementing all CRUD operations at once
|
||||
// Missing authentication checks
|
||||
```
|
||||
Incomplete or out-of-order implementation missing critical steps
|
||||
</example>
|
||||
Reference in New Issue
Block a user