OPEN HYPER STEP
← 목록으로 (ai-startup)
AI-STARTUP · 19 / 100
ai-startup
CHAPTER 19 / 100
읽기 약 2
FUNCTION

Cursor: AI 코딩의 실전 워크플로우


핵심 개념

Composer·Chat·Tab·shortcuts·rules — Cursor 마스터.

본문

Cursor의 4가지 모드

📋 코드 (18줄)
1. Tab Completion (자동완성)
- AI가 다음 코드 예측
- Tab으로 수락
- 가장 빠른 흐름

2. Chat (Cmd+L)
- 사이드바 대화
- 코드 컨텍스트 자동 인식
- 빠른 질문·디버깅

3. Composer (Cmd+I)
- 멀티 파일 편집
- 큰 변경 작업
- 가장 강력

4. Apply (Cmd+K)
- 인라인 편집
- 선택한 코드만 변경

Composer 마스터

📋 코드 (21줄)
[프롬프트 구조]

@codebase
@docs https://...

Task: [명확한 목표]

Context:
- [관련 정보]
- [제약 사항]

Files needed:
- src/...
- src/...

Implementation:
- [step 1]
- [step 2]

Tests:
- [어떻게 검증]

.cursorrules 파일

📋 코드 (22줄)
// 프로젝트 루트에 .cursorrules
You are an expert in Next.js 16, TypeScript strict, and Tailwind CSS.

Code style:
- Use named exports
- Functional components only
- Use Server Components by default
- 'use client' only when needed (interactivity)

Database:
- Prisma ORM
- All queries through repository layer

UI:
- shadcn/ui components
- Tailwind classes (no inline styles)
- Mobile-first responsive

When suggesting code:
- Always include error handling
- Add TypeScript types
- Write tests for business logic

Cursor Rules — Project Rules (modern)

📋 코드 (33줄)
// .cursor/rules/main.mdc
---
description: Main project rules
globs: ['**/*']
---

# Project Conventions

## TypeScript
- strict mode
- no `any`
- prefer interfaces over types for objects

## Components
- Server Components by default
- 'use client' only for interactivity
- Use shadcn for UI primitives

## API
- Validate input with Zod
- Use tRPC where possible
- Error handling with custom errors


// .cursor/rules/database.mdc
---
description: Database access patterns
globs: ['**/repositories/**', '**/services/**']
---

- Use Prisma transactions for multi-table writes
- Always validate user permissions before query
- Use cursor-based pagination

효과적 프롬프팅

📋 코드 (12줄)
[잘못된]
"Make this better"


[좋은]
"Refactor this component to:
1. Extract the form logic to a custom hook
2. Add loading and error states
3. Use Zod for validation
4. Add unit tests with Vitest

Keep the UI exactly the same."

Cursor + Git Workflow

📋 코드 (19줄)
[작업 흐름]
1. 새 브랜치
   git checkout -b feature/checkout

2. Cursor Composer로 큰 변경
   "Implement Stripe checkout flow"

3. 코드 리뷰 (수동)

4. 테스트
   pnpm test

5. Commit (Cursor가 메시지 제안)
   git add . && git commit


[Tip — Cursor Commit Generator]
- Cursor가 변경 사항 보고 커밋 메시지
- conventional commits 자동

단축키 마스터

📋 코드 (11줄)
Cmd+L         Chat 열기
Cmd+I         Composer 열기
Cmd+K         인라인 편집
Cmd+Enter     실행
Cmd+/         코드 주석
Cmd+P         파일 열기
Cmd+Shift+P   명령 팔레트
@file         파일 컨텍스트 추가
@symbol       심볼 추가
@docs         외부 문서 추가
@codebase     전체 코드베이스

모델 선택

📋 코드 (15줄)
[빠른 작업] Claude Sonnet 4.6
- 일반 코딩
- 가장 균형

[복잡한 작업] Claude Opus 4.7 (1M context)
- 큰 리팩터링
- 풀 코드베이스 분석

[저비용] GPT-4o-mini
- 자동완성
- 단순 질문


→ 일반은 Sonnet 4.6
→ 어려울 때만 Opus 4.7

다음 챕터

CH.20 "Claude Code: 터미널에서 AI와 코딩".


AI 프롬프트
🤖 AI에게 잘 물어보는 법 — 모델·전략별 프롬프트
무료

월 $0 — 검증·시작 단계

Cursor 마스터을 무료 도구만으로
시작하는 방법을 알려줘.
소자본

월 $20~50 — MVP·초기 운영

월 $20~50 예산으로 Cursor 마스터을
검증·MVP 단계까지 진행하는 전략은?
프로덕션

월 $200~500 — 성장 단계

Cursor 마스터을 프로덕션 단계로
확장할 때 필요한 도구·운영 체계는?
스택

풀스택 — 도구 조합 분석

2026년 Cursor 마스터 관련 도구 5개를
조합한 추천 스택을 알려줘.

⭐ 이것만 기억하세요
Cursor: AI 코딩의 실전 워크플로우 이 3가지만 확실히 잡으세요
1.Composer = 멀티 파일 편집의 표준 — 큰 변경 작업
2..cursorrules로 프로젝트 일관성 보장
3.명확한 프롬프트 (목표·컨텍스트·파일·구현·테스트) = 정확한 결과


공유하기
진행도 19 / 100