Recap - 전체 요약
기본과정 요약
시작하기
- 설치:
npm install -g @anthropic-ai/claude-code - 로그인:
/login,/logout - 실행:
claude→ Enter 실행, Alt+Enter 줄바꿈
프롬프트 관리
| 기능 | 단축키/명령어 |
|---|---|
| 히스토리 | ↑/↓ 방향키 |
| 되돌리기 | esc esc 또는 /rewind |
| 검색 | Ctrl + r |
| 외부 에디터 | Ctrl + g |
| 인터럽트 | Esc |
주요 CLI
claude -c # 이어가기
claude -r # 세션 선택
claude -p "msg" # print 모드
claude update # 업데이트
설정 파일 경로
- 전역:
~/.claude/settings.json - 프로젝트:
.claude/settings.json - 로컬:
.claude/settings.local.json
Mode 전환 (Shift + Tab)
- default → plan → auto accept → bypass
Context 관리
/context- 현재 상태 확인- CLAUDE.md - 메모리 파일
/clear- 세션 초기화
Thinking 레벨
think → think hard → think harder → ultrathink
고급 확장 요약
Custom Slash Commands
~/.claude/commands/ # 전역
.claude/commands/ # 프로젝트
Skills
.claude/skills/{name}/SKILL.md
- Progressive Disclosure 방식
- description에 구체적 트리거 조건 명시
SubAgent
.claude/agents/ # 프로젝트
~/.claude/agents/ # 전역
@agent-이름으로 멘션- 기본: agent-Plan, agent-Explore, agent-general-purpose
Hooks
settings.json에서 설정:
- PreToolUse, PostToolUse, Notification, Stop
Plugins
/plugin marketplace add owner/repo
/plugin install name@owner
Spec-Driven Development
Specify → Plan → Tasks → Implement
Context 구성요소
System prompt → System tools → MCP tools → Custom agents → Memory files → Messages
프롬프팅 성공지표
- Size: 작업 수
- Attempts: 시도 횟수 (↓좋음)
- Streak: 연속 성공
- Presence: 개입 횟수 (↓좋음)