티스토리 뷰

AI

Anthropic Courses: Claude Code in Action

yhyuk 2026. 3. 26. 13:22

해당 포스팅은 엔트로픽에서 제공하는 Courses 강의 플랫폼을 통해 몰랐었던 내용을 작성한 포스팅입니다.

따라서 정보공유 목적이 아닌 순수 학습을 위한 글 입니다. 참고해주세요.

Adding Custom Instructions

메모리 모드(#) 를 사용하면 효율적으로 편집 가능

Use the # command to enter "memory mode" - this lets you edit your CLAUDE.md files intelligently. Just type something like:

# Use CComments sparingly. Only comment complex code.

Claude will merge this instruction into your CLAUDE.md file automatically.

파일 언급 (@) 시 기호 사용

When you need Claude to look at specific files, use the @ symbol followed by the file path. This automatically includes that file's contents in your request to Claude.
For example, if you want to ask about your authentication system and you know the relevant files, you can type:

How does the auth system work? @auth

Claude will show you a list of auth-related files to choose from, then include the selected file in your conversation.

 

Marking changes

계획 모드 (Shift + Tab )

For more complex tasks that require extensive research across your codebase, you can enable Planning Mode. This feature makes Claude do thorough exploration of your project before implementing changes.

Enable Planning Mode by pressing Shift + Tab twice (or once if you're already auto-accepting edits). In this mode, Claude will:

  • Read more files in your project
  • Create a detailed implementation plan
  • Show you exactly what it intends to do
  • Wait for your approval before proceeding

This gives you the opportunity to review the plan and redirect Claude if it missed something important or didn't consider a particular scenario.

When to Use Planning?

  • 코드베이스에 대한 폭넓은 이해가 필요한 작업
  • 다단계 구현
  • 여러 파일이나 구성요소에 영향을 미치는 변경 사항

 

Controlling Context

말을 끊고 탈출하기

가끔 엉뚱한 방향으로 하면 Esc 키를 눌러서 응답을 멈추고 대화의 방향을 바꾸자.

Sometimes Claude starts heading in the wrong direction or tries to tackle too much at once. You can press the Escape key to stop Claude mid-response, allowing you to redirect the conversation.

This is particularly useful when you want Claude to focus on one specific task instead of trying to handle multiple things simultaneously. For example, if you ask Claude to write tests for multiple functions and it starts creating a comprehensive plan for all of them, you can interrupt and ask it to focus on just one function at a time.

반복 오류 제어

반복적인 오류 발생 시 아래와 같은 방법을 사용하자.

  • Esc 키로 현재 응답 중지.
  • # 단축키를 사용하여 올바른 접근 방식에 대한 기억을 추가하기.
  • 수정된 정보를 사용하여 대화를 이어가기.

One of the most powerful applications of the escape technique is fixing repetitive errors. When Claude makes the same mistake repeatedly across different conversations, you can:

  • Press Escape to stop the current response
  • Use the # shortcut to add a memory about the correct approach
  • Continue the conversation with the corrected information

This prevents Claude from making the same error in future conversations on your project.

대화 되감기

긴 대화를 나누다보면 불필요거나 주의를 분산시키는 맥락 정보가 쌓일 수 있다. Esc 키를 두번 눌러 대화를 되돌리도록 하자.

  • 중요한 맥락을 항상 유지.
  • 주의를 산만한게 하거나 관련없는 대화 기록 삭제.
  • 클로드가 현재 작업에 진중하도록 하기.

During long conversations, you might accumulate context that becomes irrelevant or distracting. For instance, if Claude encounters an error and spends time debugging it, that back-and-forth discussion might not be useful for the next task.

You can rewind the conversation by pressing Escape twice. This shows you all the messages you've sent, allowing you to jump back to an earlier point and continue from there. This technique helps you:

  • Maintain valuable context (like Claude's understanding of your codebase)
  • Remove distracting or irrelevant conversation history
  • Keep Claude focused on the current task

컨텍스트 관리

/compact

  • 핵심정보 유지하면서 전체 대화기록을 요약.
    The /compact command summarizes your entire conversation history while preserving the key information Claude has learned. This is ideal when:
  • Claude has gained valuable knowledge about your project
  • You want to continue with related tasks
  • The conversation has become long but contains important context

Use compact when Claude has learned a lot about the current task and you want to maintain that knowledge as it moves to the next related task.

/clear

  • 대화 기록을 완전히 삭제하여 새롭게 시작.
    The /clear command completely removes the conversation history, giving you a fresh start. This is most useful when:
  • You're switching to a completely different, unrelated task
  • The current conversation context might confuse Claude for the new task
  • You want to start over without any previous context
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2026/05   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함