Podcasts पर वापस जाएं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.
हम एक personal skill बना रहे हैं, इसलिए यह कई projects में उपलब्ध रहेगा और आपकी home directory में जाएगा।
Take into consideration that we're creating a directory with the skill name inside of the skills directory.
ध्यान रखें कि हम skills directory के अंदर skill के नाम से एक directory बना रहे हैं।
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.
यह matching criteria है।
And then everything after the second dashes is the instructions that Claude follows.
और दूसरे dashes के बाद सब कुछ वे instructions हैं जिनका Claude पालन करता है।
Cloud code loads skills at startup.
Claude Code startup पर skills लोड करता है।
So restart your session.
इसलिए अपना session पुनः शुरू करें।
Then verify it's available.
फिर सत्यापित करें कि यह उपलब्ध है।
You should see PR description in the list.
आपको list में PR description दिखनी चाहिए।
Now test it.
अब इसे test करें।
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 जांचेगा और आपके template के अनुसार एक description लिखेगा।
Same format every single time.
हर बार एक ही format।
When Cloud Code starts, it scans four locations for skills.
जब Claude Code शुरू होता है, तो यह skills के लिए चार स्थानों को स्कैन करता है।
Enterprise paths, your personal Claude skills, the project's Claude skills, and installed plugins.
Enterprise paths, आपके personal Claude skills, project के Claude skills, और installed 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.
जब आप कोई request भेजते हैं, तो Claude इसे आपके skills के विवरण से तुलना करता है।
Explain what this function does matches a skill described as explain code with visual diagrams because the intent overlaps.
"यह function क्या करता है, समझाओ" एक ऐसे skill से मेल खाता है जिसे 'visual diagrams के साथ code समझाएं' के रूप में वर्णित किया गया है क्योंकि intent ओवरलैप होता है।
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 किस context का उपयोग कर रहा है।
After you confirm, Claude reads the complete file and follows its instructions.
पुष्टि करने के बाद, Claude पूरी file पढ़ता है और उसके instructions का पालन करता है।
Now, let's say you clone a Git repository and have an overlapping skill name.
अब, मान लीजिए आप एक Git repository clone करते हैं और एक overlapping skill name है।
Well, which one wins?
तो कौन सा जीतता है?
Here's the priority list.
यहाँ priority list है।
The highest is enterprise, which lives in the manage settings.
सबसे ऊंचा enterprise है, जो manage settings में रहता है।
Two is the personal, which lives in your root directory configuration like we're doing right now.
दूसरा personal है, जो आपकी root directory configuration में रहता है, जैसा हम अभी कर रहे हैं।
Three is the project which is the claw directory inside of your repository.
तीसरा project है, जो आपके repository के अंदर .claude directory में होता है।
And the lowest is the plugins where you store your plugins that you got online.
और सबसे कम plugins हैं, जहाँ आप online से प्राप्त plugins संग्रहीत करते हैं।
This lets organizations enforce standards while allowing individual customization through differently named skills.
यह organizations को अलग-अलग नामों वाले skills के माध्यम से व्यक्तिगत customization की अनुमति देते हुए standards लागू करने की सुविधा देता है।
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 है और आप एक personal code review skill बनाते हैं, तो enterprise संस्करण की प्राथमिकता होती है।
To avoid conflicts, use descriptive names.
conflicts से बचने के लिए, वर्णनात्मक नामों का उपयोग करें।
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 update करने के लिए, उसकी skill.md file संपादित करें।
Simple.
सरल।
To remove one, delete its directory.
किसी को हटाने के लिए, उसकी directory delete करें।
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 बनाने का मतलब है metadata और instructions वाली skill.md file के साथ एक directory बनाना।
Claude loads skill names and descriptions at startup.
Claude startup पर skill के नाम और विवरण लोड करता है।
matches incoming requests against those descriptions and asks for confirmation before loading the full content.
आने वाले requests की उन descriptions से तुलना करता है और पूर्ण सामग्री लोड करने से पहले पुष्टि माँगता है।
Priority rules handling name conflicts.
Priority rules नाम conflicts को संभालती हैं।
Enterprise overrides personal personal overrides project overrides plugins.
Enterprise, personal को override करता है, personal, project को override करता है, project, plugins को override करता है।
[music]
[संगीत]
Edit the skill.md file to update a skill and restart cloud code for changes to take effect.
एक skill update करने के लिए skill.md file संपादित करें और बदलावों को प्रभावी करने के लिए Claude Code को पुनः शुरू करें।