팟캐스트로 돌아가기Claude
Claude Code skills
첫 번째 스킬 만들기
So, let's create a skill.
자, skill을 만들어 보겠습니다.
This skill will teach Claude how we would like it to explain code using visual diagrams and analogies.
이 skill은 Claude에게 시각적 다이어그램과 비유를 사용하여 코드를 설명하는 방법을 가르칩니다.
[music]
[음악]
Then, we'll look at what happens under the hood when Claude uses it.
그런 다음, Claude가 이를 사용할 때 내부적으로 어떤 일이 일어나는지 살펴보겠습니다.
First, [music] let's create a directory for your skill.
먼저, [음악] skill을 위한 디렉터리를 만들겠습니다.
We're going to be making a personal skill, so it'll live in many projects, so it will go in your home directory.
개인 skill을 만들 것이므로 여러 프로젝트에서 사용할 수 있게 되고, 홈 디렉터리에 저장됩니다.
Take into consideration that we're creating a directory with the skill name inside of the skills directory.
skills 디렉터리 안에 skill 이름으로 디렉터리를 생성한다는 점을 기억하세요.
Now create the skill.
이제 skill을 만드세요.
The name identifies your skill.
이름은 skill을 식별합니다.
The description tells Claude when to use it.
설명은 Claude에게 언제 사용해야 하는지 알려줍니다.
This is the matching criteria.
이것이 매칭 기준입니다.
And then everything after the second dashes is the instructions that Claude follows.
두 번째 대시 이후의 모든 내용이 Claude가 따르는 지침입니다.
Cloud code loads skills at startup.
Claude Code는 시작 시 skill을 로드합니다.
So restart your session.
세션을 재시작하세요.
Then verify it's available.
그런 다음 사용 가능한지 확인하세요.
You should see PR description in the list.
목록에서 PR description이 보여야 합니다.
Now test it.
이제 테스트해 보세요.
Make some changes on a branch and say, "Write a PR description for my changes."
branch에서 몇 가지 변경 사항을 만들고 "내 변경 사항에 대한 PR description을 작성해줘"라고 말하세요.
Claude will then show you that it's using the PR description skill.
그러면 Claude가 PR description skill을 사용하고 있다는 것을 보여줄 것입니다.
After that, it'll check your diff and write a description following your template.
그 후, diff를 확인하고 템플릿에 따라 설명을 작성합니다.
Same format every single time.
매번 동일한 형식으로.
When Cloud Code starts, it scans four locations for skills.
Claude Code가 시작될 때 skill을 찾기 위해 네 곳을 스캔합니다.
Enterprise paths, your personal Claude skills, the project's Claude skills, and installed plugins.
Enterprise 경로, 개인적인 Claude skill 목록, 프로젝트의 Claude skill 목록, 그리고 설치된 plugins 목록입니다.
It loads only the name and description of each skill, not the full content.
각 skill의 이름과 설명만 로드하며 전체 내용은 로드하지 않습니다.
This is important later.
이것은 나중에 중요합니다.
When you send a request, Claude compares it to the descriptions of your skills.
요청을 보내면 Claude는 이를 skill 설명과 비교합니다.
Explain what this function does matches a skill described as explain code with visual diagrams because the intent overlaps.
"이 함수가 무엇을 하는지 설명해줘"는 인텐트가 겹치기 때문에 '시각적 다이어그램으로 코드 설명'으로 묘사된 skill과 일치합니다.
It will then ask you to confirm loading up the skill.
그러면 skill 로드를 확인하도록 요청합니다.
This confirmation step keeps you aware of what context Claude is using.
이 확인 단계는 Claude가 어떤 컨텍스트를 사용하는지 인식하게 해줍니다.
After you confirm, Claude reads the complete file and follows its instructions.
확인 후 Claude는 전체 파일을 읽고 지침을 따릅니다.
Now, let's say you clone a Git repository and have an overlapping skill name.
이제 Git 저장소를 클론했는데 겹치는 skill 이름이 있다고 가정해 보겠습니다.
Well, which one wins?
어느 것이 이길까요?
Here's the priority list.
우선순위 목록입니다.
The highest is enterprise, which lives in the manage settings.
가장 높은 것은 enterprise로, 관리 설정에 있습니다.
Two is the personal, which lives in your root directory configuration like we're doing right now.
두 번째는 개인으로, 지금 우리가 하는 것처럼 루트 디렉터리 설정에 있습니다.
Three is the project which is the claw directory inside of your repository.
세 번째는 프로젝트로, 저장소 내부의 .claude 디렉터리에 있습니다.
And the lowest is the plugins where you store your plugins that you got online.
그리고 가장 낮은 것은 plugins로, 온라인에서 가져온 plugins을 저장하는 곳입니다.
This lets organizations enforce standards while allowing individual customization through differently named skills.
이를 통해 조직은 다른 이름의 skill을 통해 개인 맞춤화를 허용하면서 표준을 강제할 수 있습니다.
If your company has an enterprise code review skill and you create a personal code review skill, the enterprise version of that takes precedence.
만약 회사에 enterprise code review skill이 있는데 본인이 개인 code review skill을 만들면, enterprise 버전이 우선순위를 갖습니다.
To avoid conflicts, use descriptive names.
충돌을 피하려면 설명적인 이름을 사용하세요.
Instead of review, use front-end PR review or security review.
review라고만 하지 말고, front-end PR review 또는 security review처럼 더 구체적인 이름을 사용하세요.
To update a skill, edit it skill.md file.
skill을 업데이트하려면 skill.md 파일을 편집하세요.
Simple.
간단합니다.
To remove one, delete its directory.
제거하려면 디렉터리를 삭제하세요.
Restart clock code after changes for them to take effect.
변경 사항을 적용하려면 변경 후 Claude Code를 재시작하세요.
Creating a skill means making a directory with a skill.md file containing metadata and instructions.
skill을 만드는 것은 메타데이터와 지침이 담긴 skill.md 파일이 있는 디렉터리를 만드는 것을 의미합니다.
Claude loads skill names and descriptions at startup.
Claude는 시작 시 skill 이름과 설명을 로드합니다.
matches incoming requests against those descriptions and asks for confirmation before loading the full content.
들어오는 요청을 해당 설명과 비교하고 전체 내용을 로드하기 전에 확인을 요청합니다.
Priority rules handling name conflicts.
우선순위 규칙이 이름 충돌을 처리합니다.
Enterprise overrides personal personal overrides project overrides plugins.
Enterprise는 개인을, 개인은 프로젝트를, 프로젝트는 plugins을 재정의합니다.
[music]
[음악]
Edit the skill.md file to update a skill and restart cloud code for changes to take effect.
skill.md 파일을 편집하여 skill을 업데이트하고 변경 사항을 적용하려면 Claude Code를 재시작하세요.