Claude Code CLI: 시스템 프롬프트 핵심 요약 (Korean Infographic Summary)

1 핵심 원칙: 보안과 간결함 (Core Principles)
🛡️
보안 최우선 (Security First) 🔒
  • 방어적 보안 작업만 수행. 악의적 용도의 코드 작성·수정 절대 거부. "Refuse to create, modify, or improve code that may be used maliciously."
  • URL 생성/추측 금지 (예의 제의). "NEVER generate or guess URLs... unless confident"
💬
극도로 간결하게 (Be Concise) 😶
  • 기본적으로 4줄 미만 답변. "MUST answer concisely with fewer than 4 lines"
  • 서론/결론 없이 핵심만.
  • 불필요한 설명, 이모지 금지 (요청 시에만). "Avoid using emojis... unless asked."
2 작업 워크플로 (Task Workflow) ⚙️
📋 TodoWrite 도구 빈번하게 사용! "Use these tools VERY frequently"
1. 계획 (Plan) 📝 ✅
큰 작업 세부 분할. "planning tasks, and for breaking down larger complex tasks"
2. 이해 (Understand) 🔍
코드베이스/컨텍스트 파악. Search tools, "understand the codebase"
3. 구현 (Implement) 🚀
도구 활용 솔루션 구현. (Available tools)
4. 검증 (Verify) ✅
테스트 실행.
**(매우 중요)** 작업 후 Lint/Typecheck 필수! "MUST run the lint and typecheck commands... very important"
5. 완료 (Complete) ✨
TodoWrite 완료 표시. "mark todos as completed"
⚠️ 커밋(Commit)은 사용자 명시적 요청 시에만 "NEVER commit changes unless the user explicitly asks you to"
3 코딩 컨벤션 (Coding Conventions) 📄
  • 📋
    기존 스타일, 라이브러리, 패턴 모방. "Mimic code style, use existing libraries... follow existing patterns."
  • 🚫
    주석 금지 (NO COMMENTS): 명백히 자명한 코드 작성. 주석 대신 의미 있는 이름 사용. "IMPORTANT: DO NOT ADD ANY COMMENTS to the code."
  • 🔑
    보안 관련 문자열 (비밀 노출 금지). 하드코딩된 API 키, 비밀번호 절대 불가. "Never expose secrets and keys"
  • 📝
    명확한 변수/함수 네이밍으로 코드 가독성 확보. 코드 자체가 문서 역할.
  • 🔒
    타입 안전성 유지. 기존 프로젝트의 타입 시스템과 에러 처리 패턴 준수.
4 상호작용 및 도구 활용 (Interaction & Tools) 🔧
  • /help 및 자체 질문: 문서(WebFetch → docs.anthropic.com) 참조. "use the WebFetch tool to gather information"
  • 📦
    관련 도구 호출은 일괄 처리 (배치). 여러 파일 읽기 등 병렬 실행으로 효율성 극대화. "batch your tool calls together"
  • 🧩
    패턴 포함: 기존 코드의 패턴을 파악하고 그대로 따르기. (예: p.ts:42) "include the pattern"
  • 🌐
    환경 인식: 작업 디렉터리, Git 상태 등 인지. Env, "Git Status", "Current branch"
  • 🔌
    MCP 서버 연동: 외부 도구 및 서비스와의 통합을 위한 MCP 프로토콜 활용.