팟캐스트로 돌아가기Claude
Claude Code 101
The Explore → Plan → Code → Commit workflow in Claude Code
If you take one thing away from Claude code, let it be this workflow: explore, plan, code, and commit.
Claude Code에서 한 가지만 가져간다면, 이 워크플로우를 기억하세요: 탐색, plan, 코딩, commit.
Without this, most people jump straight to pasting in Claude to write code, which means more course correcting later on.
이것 없이는 대부분의 사람들이 바로 Claude에 코드를 붙여넣어 작성하게 되어, 나중에 더 많은 수정이 필요하게 됩니다.
The fastest way to handle step one and two is with plan mode.
1단계와 2단계를 가장 빠르게 처리하는 방법은 plan mode를 사용하는 것입니다.
With plan mode, Claude can't edit files.
plan mode에서는 Claude가 파일을 편집할 수 없습니다.
It just reads files to gather research on how to tackle this implementation.
이 구현을 어떻게 처리할지 조사하기 위해 파일을 읽기만 합니다.
To enter plan mode, hit shift and tab until you see the plan mode under the text input.
plan mode에 진입하려면, 텍스트 입력 아래에 plan mode가 표시될 때까지 shift와 tab을 누르세요.
I need to add WebP conversion to our image upload pipeline.
이미지 업로드 파이프라인에 WebP 변환을 추가해야 합니다.
Figure out where in the pipeline it should happen, whether we need new dependencies, and how to approach it.
파이프라인의 어느 단계에서 이루어져야 하는지, 새로운 의존성이 필요한지, 어떻게 접근할지 파악하세요.
And Claude will read relevant files, do some web searches, and give you a plan of action.
Claude는 관련 파일을 읽고, 웹 검색을 수행하며, 행동 계획을 제시합니다.
Make sure you review it and determine if it meets your criteria.
반드시 검토하여 기준을 충족하는지 판단하세요.
Otherwise, I can ask it to add on or revise some areas.
그렇지 않으면 추가하거나 일부를 수정해 달라고 요청할 수 있습니다.
Perfect.
완벽합니다.
And this right here is the best place to course correct because it's before any code is written.
여기가 코드가 작성되기 전이므로 수정하기 가장 좋은 시점입니다.
You can also use explore without being in plan mode by just asking Claude to explore your code base.
plan mode에 들어가지 않고도 Claude에게 코드베이스를 탐색하도록 요청하여 탐색할 수 있습니다.
Now, once the plan looks good, you can select approve to accept the plan and let Claude toggle all of the list items it provided.
plan이 좋아 보이면, 승인을 선택하여 plan을 수락하고 Claude가 제공한 모든 항목을 처리하도록 할 수 있습니다.
You can determine if you want Claude to auto accept the file edits or ask every single time.
Claude가 파일 편집을 자동으로 수락할지, 매번 물어볼지 결정할 수 있습니다.
Claude will do its best to troubleshoot your code base before considering the plan finished.
Claude는 plan이 완료되었다고 판단하기 전에 코드베이스 문제 해결에 최선을 다할 것입니다.
But at times, you'll need to course correct.
하지만 때로는 수정이 필요합니다.
This is the benefit of working with plan mode because after the plan is finished, we also have the context of how it got to the results to help it guide its next decision.
이것이 plan mode를 사용하는 장점입니다. plan이 완료된 후에도 어떻게 결과에 도달했는지의 컨텍스트가 남아 다음 결정을 안내하는 데 도움이 됩니다.
In order for Claude to be confident in its results, it has to be clear on what it deems correct.
Claude가 결과에 확신을 갖기 위해서는 무엇이 올바른지 명확히 알아야 합니다.
When writing your plan, make this explicit.
plan을 작성할 때 이를 명시하세요.
Adding tools that will help Claude complete its goals will remove a lot of back and forth.
Claude가 목표를 달성하는 데 도움이 되는 도구를 추가하면 많은 왕복 소통을 줄일 수 있습니다.
For example, if you're building web UIs, make sure you have the Claude and Chrome extension so that Claude code can control a tab and test out the UI before deeming it finished.
예를 들어, Web UI를 구축하는 경우 Claude와 Chrome 확장 프로그램이 있는지 확인하여 Claude Code가 탭을 제어하고 완료로 판단하기 전에 UI를 테스트할 수 있도록 하세요.
In your project, include a test suite that Claude can continuously validate on.
프로젝트에 Claude가 지속적으로 검증할 수 있는 테스트 스위트를 포함하세요.
Claude can even write tests for you.
Claude는 테스트를 작성해 줄 수도 있습니다.
Before passing this off to Claude, make sure that the tests are a source of truth for you and your team to avoid any false positives.
Claude에게 넘기기 전에, 테스트가 허위 양성을 방지하기 위한 신뢰할 수 있는 사실의 출처임을 확인하세요.
Quick tip, if you find Claude keeps running into the same issues, ask Claude to save the solution to his Claude MD file.
빠른 팁: Claude가 같은 문제를 반복적으로 만난다면, 해결책을 Claude MD 파일에 저장하도록 요청하세요.
Now, once you have tested for yourself and are happy with the results, it's time to push your code.
직접 테스트하고 결과에 만족했다면, 코드를 푸시할 시간입니다.
A tip before you commit, run a sub agent code reviewer to look at your code.
commit 전 팁: 서브 에이전트 코드 리뷰어를 실행하여 코드를 검토하세요.
Then you get Claude to generate a commit message for you in your style.
그런 다음 Claude가 당신의 스타일로 commit 메시지를 생성하도록 하세요.
Rinse and repeat.
반복하세요.
If you want to be effective with Claude code, follow the explore, plan, code, and commit workflow.
Claude Code를 효과적으로 사용하고 싶다면, 탐색, plan, 코딩, commit 워크플로우를 따르세요.
Exploration will give the relevant context
탐색은 Claude에게 프로젝트에 필요한 관련 컨텍스트를 제공합니다
Claude needs for your project.
Claude가 프로젝트에 필요로 하는 것입니다.
Plan will create a plan of action that Claude will use to determine if they are successful.
plan은 Claude가 성공 여부를 판단하는 데 사용할 행동 계획을 만듭니다.
Code is the back and forth that you and Claude do before settling on the final outcomes of the plan.
코딩은 plan의 최종 결과에 합의하기 전에 당신과 Claude가 주고받는 과정입니다.
Commit helps you review and push your code so you can start on your next feature.
commit은 코드를 검토하고 푸시하여 다음 기능을 시작할 수 있도록 도와줍니다.