Skills & Commands
A skill turns a testing procedure that you repeat, such as a bug hunt or a test design pass, into a /name command that Claude can also use by itself. This page shows the SKILL.md format, six example QA skills, and the built-in commands that a tester uses most.
15 min read15 মিনিটে পড়া যায় · 9 sections9টি সেকশন · 3 sources3টি সোর্স · updated Nov 2026আপডেট: Nov 2026
A skill loads only when it is usedস্কিল ব্যবহার হলেই তবে লোড হয়
Watch skill descriptions sit in context at the start, and the full SKILL.md load only on use.শুরুতে স্কিলের বিবরণ কনটেক্সটে থাকে, আর পুরো SKILL.md লোড হয় শুধু ব্যবহারের সময়। নিজে দেখুন।
You’ll learnআপনি শিখবেন
- A description is always in contextবিবরণ সবসময় কনটেক্সটে থাকে✓
- disable-model-invocation hides the descriptiondisable-model-invocation বিবরণ লুকায়
- The full body loads only on useপুরো বডি লোড হয় শুধু ব্যবহারে
- allowed-tools skips prompts for one turnallowed-tools এক টার্নের প্রম্পট বাদ দেয়
What a skill is
A skill is a SKILL.md file with instructions. Claude uses a skill when it is relevant, or you invoke it directly with /skill-name. Source 1সোর্স 1
- A skill body loads only when the skill is used. Unlike
CLAUDE.mdcontent, long reference material in a skill costs almost nothing until you need it. Source 1সোর্স 1 - Claude Code skills follow the Agent Skills open standard. Source 1সোর্স 1
Skills and commands
Custom commands have been merged into skills. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy and work the same way. Source 1সোর্স 1
- Your existing
.claude/commands/files keep working. A command file supports the same frontmatter as a skill, exceptnameandpaths. Source 1সোর্স 1 - For new work, prefer a skill. Source 1সোর্স 1
- If a skill and a command file have the same name, the skill wins. Source 1সোর্স 1
Legacy format
Older tutorials, including earlier versions of this one, put qa-agent.md and sdet-agent.md in .claude/commands/. Those files still work. Source 1সোর্স 1 The section Run a skill in a subagent shows the current form.
Skill, CLAUDE.md, or hook?
| Put it in | When |
|---|---|
CLAUDE.md | Claude must always know it, for example the test command. See CLAUDE.md & Memory. |
| A skill | Claude needs it only for some tasks, for example a bug-hunt checklist. Source 1সোর্স 1 |
| A hook | The rule must hold every time. If Claude skips a rule that must always hold, move the rule into a hook. Source 1সোর্স 1 See Hooks. |
সহজ English
A skill is a SKILL.md file with instructions. Claude uses a skill when it is relevant. You can also start it yourself with /skill-name. Source 1সোর্স 1 The body of a skill loads only when someone uses the skill. Thus, long reference text in a skill costs almost nothing until you need it. This is not true for CLAUDE.md content. Source 1সোর্স 1
Custom commands are now part of skills. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both make /deploy, and they work the same way. Source 1সোর্স 1 Your old .claude/commands/ files keep working. For new work, use a skill. If a skill and a command file have the same name, the skill wins. Source 1সোর্স 1
Where to put an instruction:
CLAUDE.md: Claude must always know it, for example the test command.- A skill: Claude needs it only for some tasks, for example a bug-hunt checklist. Source 1সোর্স 1
- A hook: the rule must hold every time. If Claude skips such a rule, move the rule into a hook. Source 1সোর্স 1
বাংলা ব্যাখ্যা
Skill হলো instruction-সহ একটি SKILL.md file। কোনো skill প্রাসঙ্গিক হলে Claude নিজেই সেটি ব্যবহার করে, অথবা আপনি /skill-name দিয়ে সরাসরি সেটি চালাতে পারেন। Source 1সোর্স 1 Skill ব্যবহার হলে তবেই তার body load হয়। তাই CLAUDE.md-এর content-এর মতো নয়, skill-এর ভেতরের লম্বা reference লেখা দরকার না পড়া পর্যন্ত প্রায় কোনো খরচ করে না। Source 1সোর্স 1 Claude Code-এর skill-গুলো Agent Skills open standard মেনে চলে। Source 1সোর্স 1
Custom command-গুলো এখন skill-এর সঙ্গে মিশে গেছে। .claude/commands/deploy.md file এবং .claude/skills/deploy/SKILL.md skill, দুটোই /deploy তৈরি করে এবং একইভাবে কাজ করে। Source 1সোর্স 1 আপনার পুরোনো .claude/commands/ file-গুলো কাজ করতেই থাকবে। নতুন কাজের জন্য skill বেছে নিন। একই নামের skill আর command file থাকলে skill জেতে। Source 1সোর্স 1
কোন জিনিস কোথায় রাখবেন:
CLAUDE.md: যা Claude-এর সবসময় জানা দরকার, যেমন test command।- Skill: যা শুধু কিছু task-এ দরকার, যেমন একটি bug-hunt checklist। Source 1সোর্স 1
- Hook: যে rule প্রতিবার মানতেই হবে। Claude এমন rule বাদ দিলে rule-টি hook-এ সরিয়ে নিন। Source 1সোর্স 1
Where skills live
| Location | Path | Who gets it |
|---|---|---|
| Personal | ~/.claude/skills/<skill-name>/SKILL.md | You, in all your projects on this machine Source 1সোর্স 1 |
| Project | .claude/skills/<skill-name>/SKILL.md | Sessions in this repository. Commit it so your team gets it too. Source 1সোর্স 1 |
| Plugin | <plugin>/skills/<skill-name>/SKILL.md | Wherever the plugin is enabled, as /plugin-name:skill-name Source 1সোর্স 1 |
- Other locations are enterprise (managed settings), nested
<subdir>/.claude/skills/folders, and folders that you add with--add-dir. Source 1সোর্স 1 - If two skills have the same name, enterprise wins over personal, and personal wins over project. Plugin skills have a namespace, so they do not clash. Source 1সোর্স 1
- In a monorepo, skills in a
.claude/skills/folder below the start folder do not load at startup. They load when Claude reads or edits a file in that part of the tree. Source 1সোর্স 1 - Cowork and cloud sessions do not read
~/.claude/skills/on your machine. Source 1সোর্স 1
সহজ English
You can keep a skill in three main places: Source 1সোর্স 1
- Personal:
~/.claude/skills/<skill-name>/SKILL.md. You get it in all your projects on this machine. - Project:
.claude/skills/<skill-name>/SKILL.md. Sessions in this repository get it. Commit it, and your team gets it too. - Plugin:
<plugin>/skills/<skill-name>/SKILL.md. You get it where the plugin is enabled, as/plugin-name:skill-name.
Other places are enterprise (managed settings), nested <subdir>/.claude/skills/ folders, and folders that you add with --add-dir. Source 1সোর্স 1
If two skills have the same name, enterprise wins over personal, and personal wins over project. Plugin skills have a namespace, so their names do not clash. Source 1সোর্স 1
In a monorepo, a .claude/skills/ folder below the start folder does not load at startup. Its skills load when Claude reads or edits a file in that part of the tree. Source 1সোর্স 1 Cowork and cloud sessions do not read ~/.claude/skills/ on your machine. Source 1সোর্স 1
বাংলা ব্যাখ্যা
Skill রাখার তিনটি প্রধান জায়গা আছে: Source 1সোর্স 1
- Personal:
~/.claude/skills/<skill-name>/SKILL.md। এই মেশিনে আপনার সব project-এ আপনি এটি পাবেন। - Project:
.claude/skills/<skill-name>/SKILL.md। এই repository-র session-গুলো এটি পায়। এটি commit করলে আপনার team-ও পাবে। - Plugin:
<plugin>/skills/<skill-name>/SKILL.md। Plugin যেখানে enabled, সেখানে এটি/plugin-name:skill-nameহিসেবে পাওয়া যায়।
এছাড়া আরও জায়গা আছে: enterprise (managed settings), nested <subdir>/.claude/skills/ folder, এবং --add-dir দিয়ে যোগ করা folder। Source 1সোর্স 1
একই নামের দুটি skill থাকলে enterprise জেতে personal-এর ওপর, আর personal জেতে project-এর ওপর। Plugin skill-এর namespace থাকে, তাই তাদের নামে সংঘাত হয় না। Source 1সোর্স 1
Monorepo-তে start folder-এর নিচের কোনো .claude/skills/ folder startup-এ load হয় না। Claude যখন tree-এর ওই অংশের কোনো file পড়ে বা edit করে, তখন সেই skill-গুলো load হয়। Source 1সোর্স 1 Cowork এবং cloud session আপনার মেশিনের ~/.claude/skills/ পড়ে না। Source 1সোর্স 1
Write a SKILL.md
Each skill is a folder. The SKILL.md file is required. Other files are optional, for example: Source 1সোর্স 1
.claude/skills/find-bug/
├── SKILL.md ← instructions and frontmatter
├── reference.md ← details Claude reads when needed
├── examples.md
└── scripts/
└── helper.pyKeep SKILL.md under 500 lines. Move detailed reference material to separate files. Source 1সোর্স 1
The frontmatter sits between two --- lines. Claude Code reads the frontmatter only when the opening --- is the first line of the file. Source 1সোর্স 1 All fields are optional. Only description is recommended. Source 1সোর্স 1
Example: a find-bug skill in .claude/skills/find-bug/SKILL.md.
---
description: Finds high-probability bugs with evidence in code or a diff. Use after code changes or before test design.
allowed-tools: Read Grep Glob
argument-hint: [file-or-commit]
---
You are a senior QA bug hunter. Find high-probability bugs in: $ARGUMENTS
## Steps
1. Read the code. Trace the execution flow and the surrounding functions.
2. Find broken assumptions.
## Output per bug
- Probability: High / Medium
- Type: Functional / Security / Performance / Concurrency
- Why: evidence from the code, as file:line
- Steps to trigger, expected vs actual, impact
## Rules
- 5 to 8 bugs at most. No generic guesses. Evidence required.Note: on macOS, Linux, and WSL, Claude Code leaves Glob and Grep out of the default tool set. Claude searches with find and grep through the Bash tool. These searches reach your permission rules as Bash calls. Source 2সোর্স 2 The Grep and Glob entries in this page's allowed-tools examples apply where those tools are present, for example on Windows. Source 2সোর্স 2
Common mistake: a misspelled field
A field name must match the documented name exactly, hyphens included. Claude Code ignores a field that it does not recognize and reports no error. Source 1সোর্স 1 Check the spelling yourself. To find SKILL.md files whose frontmatter does not parse, run claude plugin validate .claude/skills (Claude Code v2.1.233 or later). Source 1সোর্স 1
Write the description
The description says what the skill does and when to use it. Claude uses it to decide when to apply the skill. Source 1সোর্স 1
- Put the key use case first. The combined
descriptionandwhen_to_usetext is cut at 1,536 characters in the skill listing. Source 1সোর্স 1 - By default, the description is always in context, and the full skill loads when someone invokes it. Source 1সোর্স 1
Doকরুন: Says what and when
description: Ranks likely root causes from an error, log, or failing test. Use when the user pastes a stack trace or log.
Don'tকরবেন না: Says only what
description: Analyze logs/errors and identify root cause
It says what the skill does, but not when to use it.
Who can invoke a skill
| Frontmatter | You can invoke | Claude can invoke | Context cost |
|---|---|---|---|
| (default) | Yes | Yes | Description always in context, full skill loads when invoked Source 1সোর্স 1 |
disable-model-invocation: true | Yes | Not on its own | Description not in context, full skill loads when invoked Source 1সোর্স 1 |
Use disable-model-invocation: true for a workflow that you want to start yourself with /name. It also stops the skill from being preloaded into subagents. Source 1সোর্স 1
Use user-invocable: false when only Claude should invoke the skill. Claude Code then hides it from the / menu and does not run it when you type /name. Source 1সোর্স 1
সহজ English
Each skill is a folder. Only the SKILL.md file is required. Source 1সোর্স 1 Keep SKILL.md under 500 lines. Move long reference text to other files. Source 1সোর্স 1 The frontmatter is the block between two --- lines at the top of the file. All fields are optional. Only description is recommended. Source 1সোর্স 1 Claude Code ignores a misspelled field name and shows no error. Source 1সোর্স 1
The main parts:
description: what the skill does and when to use it. Claude uses it to decide when to apply the skill. Source 1সোর্স 1disable-model-invocation: true: only you can start the skill.user-invocable: false: only Claude can start it. Source 1সোর্স 1
বাংলা ব্যাখ্যা
প্রতিটি skill একটি folder। এর মধ্যে শুধু SKILL.md file থাকা বাধ্যতামূলক, বাকি file ঐচ্ছিক। Source 1সোর্স 1 SKILL.md 500 line-এর নিচে রাখুন এবং বিস্তারিত reference আলাদা file-এ সরিয়ে দিন। Source 1সোর্স 1 Frontmatter থাকে দুটি --- line-এর মাঝে। Opening --- file-এর প্রথম line হলে তবেই Claude Code frontmatter পড়ে। সব field ঐচ্ছিক, শুধু description দেওয়ার পরামর্শ দেওয়া হয়। Source 1সোর্স 1 Field-এর নামের বানান ভুল হলে Claude Code সেই field ignore করে এবং কোনো error দেখায় না। Source 1সোর্স 1
মূল অংশগুলো:
description: skill কী করে এবং কখন ব্যবহার করতে হবে। Claude এটি দেখে ঠিক করে কখন skill প্রয়োগ করবে। মূল use case শুরুতে লিখুন। Source 1সোর্স 1disable-model-invocation: trueদিলে শুধু আপনি skill চালাতে পারবেন।user-invocable: falseদিলে শুধু Claude পারবে। Source 1সোর্স 1
Pre-approve tools
allowed-tools lists tools that Claude can use without asking for permission during the turn that invokes the skill. The grant clears when you send your next message. Source 1সোর্স 1 The value is a space- or comma-separated string, or a YAML list. Source 1সোর্স 1 An example from the docs: Source 1সোর্স 1
allowed-tools: Bash(git add *) Bash(git commit *) Bash(git status *)Common mistake: allowed-tools as a sandbox
allowed-tools does not restrict which tools are available. Every tool stays callable, and your permission settings still apply to the tools that are not listed. Source 1সোর্স 1 To remove tools while the skill is active, use disallowed-tools. Source 1সোর্স 1
Review skills in a repository you did not write
A skill can grant itself broad tool access. Review the allowed-tools of skills checked into a repository before you run Claude Code there. Source 1সোর্স 1 Claude Code applies a project skill's allowed-tools even in a -p run in a folder that you never trusted. Source 1সোর্স 1
Arguments
The text after the skill name is the arguments. $ARGUMENTS in the skill body is replaced with that text. Source 1সোর্স 1 If the body has no placeholder, Claude Code adds ARGUMENTS: <your input> to the end of the skill content. Source 1সোর্স 1
$0,$1, and so on are single arguments, counted from 0. Arguments use shell-style quotes:/my-skill "hello world" secondgives$0=hello world. Source 1সোর্স 1- The
argumentsfield gives names to positions, for$namesubstitution.argument-hintshows a hint such as[issue-number]in autocomplete. Source 1সোর্স 1 - Type the skill name at the start of your message. There,
/test-design src/checkout.jsruns the skill directly. Source 1সোর্স 1 Claude Code recognizes a command only at the start of a message. Source 3সোর্স 3
Inject live data
!`<command>` runs a shell command before Claude sees the skill. The output replaces the placeholder. Source 1সোর্স 1 Injected commands also go through your permission rules first, and allowed-tools can pre-approve them. Source 1সোর্স 1
Example: a skill that reviews the current change.
---
description: Reviews the uncommitted change for bugs. Use before a commit.
allowed-tools: Bash(git diff *)
---
## The change
!`git diff HEAD`
Find bugs in this change. Give file:line evidence for each one.A failed command stops the whole skill, and Claude never sees the skill content for that call. Add || true to a command that can exit with a non-zero code. Source 1সোর্স 1
Run a skill in a subagent
context: fork runs the skill in a forked subagent. The agent field selects the subagent: Explore, Plan, general-purpose, or a custom subagent from .claude/agents/. The default is general-purpose. Source 1সোর্স 1
- The skill content becomes the task. The subagent does not see your conversation history, so the instructions must stand on their own. Source 1সোর্স 1
context: forksuits only skills with an explicit task. Source 1সোর্স 1- A forked skill runs in the background by default.
background: falsewaits for the result. Source 1সোর্স 1
Example: .claude/skills/qa-task/SKILL.md replaces the old .claude/commands/qa-agent.md file. It sends a task to the qa-agent subagent from the Subagents page.
---
description: Sends a QA task to the qa-agent subagent.
context: fork
agent: qa-agent
background: false
disable-model-invocation: true
argument-hint: [task]
---
Do this QA task and return a short report with evidence:
$ARGUMENTSRun it as /qa-task Find bugs and design test cases for src/payment.js.
| Approach | System prompt | Task |
|---|---|---|
Skill with context: fork | From the agent type | The skill content Source 1সোর্স 1 |
Subagent with skills: | The subagent body | Claude's request. The skills are reference material. Source 1সোর্স 1 |
সহজ English
allowed-tools: tools that Claude can use with no permission prompt during the turn that starts the skill. It does not block other tools. Source 1সোর্স 1 Review it in skills from a repository that you did not write. Source 1সোর্স 1$ARGUMENTS: the text that you type after the skill name. Source 1সোর্স 1!`<command>`: runs a shell command before Claude sees the skill. The output replaces the placeholder. Source 1সোর্স 1context: fork: runs the skill in a subagent. The subagent does not see your conversation. Source 1সোর্স 1
বাংলা ব্যাখ্যা
allowed-tools: skill চালু করার turn-এ কোন tool permission prompt ছাড়া চলবে। এটি অন্য tool বন্ধ করে না। Tool সরাতেdisallowed-toolsব্যবহার করুন। Source 1সোর্স 1 যে repository আপনি লেখেননি, সেখানে Claude Code চালানোর আগে skill-গুলোরallowed-toolsreview করুন। Source 1সোর্স 1$ARGUMENTS: skill-এর নামের পরে আপনি যে text লেখেন। Source 1সোর্স 1!`<command>`: Claude skill দেখার আগে একটি shell command চলে, আর তার output placeholder-এর জায়গা নেয়। Command fail করলে পুরো skill থেমে যায়। Source 1সোর্স 1context: fork: skill-টি একটি forked subagent-এ চালায়। Subagent আপনার conversation history দেখে না। Source 1সোর্স 1
Six example QA skills
This tutorial uses six example skills. They are examples, not a required set. Each one below uses the current format: a description that says when to use it, and allowed-tools instead of a "Tool Usage (MANDATORY)" section.
analyze-requirement
---
description: Analyzes a requirement or Jira ticket for scope, risks, gaps, and edge cases. Use when the user shares a ticket, story, or spec.
argument-hint: [ticket-key-or-text]
---
You are a senior SDET and QA engineer. Analyze: $ARGUMENTS
If the input is a Jira key, read the ticket through the Jira MCP server.
If it is plain text, analyze the text directly.
## Output
1. Summary: feature, user, goal
2. Business flow: main flow, key conditions, input to output
3. Scope: in scope, out of scope
4. System impact: UI, API, DB, services, roles
5. Risks: functional, data, security, performance
6. Gaps: missing requirements, assumptions, questions
7. Edge cases: 3 to 5 boundary conditions or failure paths
## Rules
- Bullet points only. No test cases. No deep code explanation.explain-code
---
description: Explains the flow and logic of a file or change. Use when the user asks what code does or what a change affects.
allowed-tools: Read Grep Glob Bash(git show *)
argument-hint: [file-or-commit]
---
You are a senior SDET. Explain: $ARGUMENTS
For a commit hash or "latest change", read it with git show.
For a symbol, find it with search, then read the file.
## Output
1. Purpose
2. Flow: entry point, function calls, exit
3. Logic: conditions and decisions
4. Components: functions, APIs, DB
5. Data flow: input, transform, store or return
6. Dependencies
7. Risks: logic, data, concurrency
## Rules
- No test cases. No requirement analysis. Be concise.find-bug
The full find-bug example is in Write a SKILL.md. To check data or state, add a read-only database MCP server. See MCP Servers.
test-design
---
description: Designs test cases for a feature or change using named techniques. Use when the user asks for test cases or coverage.
disable-model-invocation: true
argument-hint: [requirement-or-file]
---
Design test cases for: $ARGUMENTS
Pick the techniques, build the test model, show it, and stop for review.
After approval, write one test case for each coverage item.The Test Design with Claude page has the full skill with the techniques and the output format.
analyze-security
---
description: Reviews code for real, relevant security issues with attack steps. Use for auth, payment, or data-handling changes.
allowed-tools: Read Grep Glob
argument-hint: [file-or-commit]
---
You are a security-focused SDET. Review: $ARGUMENTS
## Output
1. Context: what the feature does, and if it touches auth, payment, or personal data
2. Issues, for each one: severity, evidence, attack steps, impact, fix
## Focus
Auth and access, input validation, data exposure, logic bypass, API misuse.
## Rules
- No generic OWASP list. Only real, relevant issues. Be concise.analyze-rootcause
---
description: Ranks likely root causes from an error, log, or failing test. Use when the user pastes a stack trace or log.
allowed-tools: Read Grep Glob
argument-hint: [log-file]
---
You are a senior SDET debugger. Find the most probable root cause of: $ARGUMENTS
If the log points to data, check it with the read-only database MCP server.
## Output
1. Error: what failed, where
2. Root cause: up to 3 causes, ranked by confidence, with evidence
3. Flow: what happened before the failure
4. Reproduction: inputs, state, environment
5. Impact: system, data, user
6. Fix: immediate fix and prevention
## Rules
- No guessing without evidence. Be concise.See it in practice
In the case study, a find-bug skill feeds a review gate in Bug Hunting with a Review Gate. A pr-review skill with a supporting prompt file is in From Issue to Reviewed PR.
সহজ English
This tutorial uses six example skills. They are examples. You do not have to use all of them. Each one uses the current format: a description that says when to use the skill, and allowed-tools in place of a "Tool Usage (MANDATORY)" section.
analyze-requirement: checks a requirement or Jira ticket for scope, risks, gaps, and edge cases.explain-code: explains the flow and logic of a file or a change.find-bug: finds high-probability bugs, with evidence in the code or a diff.test-design: designs test cases with named techniques.analyze-security: finds real, relevant security issues in code, with attack steps.analyze-rootcause: ranks the likely root causes of an error, a log, or a failing test.
In the case study, a find-bug skill feeds a review gate. A pr-review skill uses a supporting prompt file.
বাংলা ব্যাখ্যা
এই tutorial ছয়টি উদাহরণ skill ব্যবহার করে। এগুলো শুধু উদাহরণ, বাধ্যতামূলক কোনো set নয়। প্রতিটি skill বর্তমান format মেনে চলে: একটি description, যা বলে কখন skill-টি ব্যবহার করতে হবে, আর "Tool Usage (MANDATORY)" section-এর বদলে allowed-tools।
analyze-requirement: একটি requirement বা Jira ticket-এর scope, risk, gap এবং edge case বিশ্লেষণ করে।explain-code: একটি file বা change-এর flow আর logic ব্যাখ্যা করে।find-bug: code বা diff-এ evidence-সহ উচ্চ সম্ভাবনার bug খোঁজে।test-design: নির্দিষ্ট নামের technique দিয়ে test case design করে।analyze-security: code-এ বাস্তব ও প্রাসঙ্গিক security issue খোঁজে, attack step-সহ।analyze-rootcause: একটি error, log বা failing test থেকে সম্ভাব্য root cause-গুলো ক্রম অনুযায়ী সাজায়।
Case study-তে একটি find-bug skill একটি review gate-কে input দেয়। একটি pr-review skill একটি সহায়ক prompt file ব্যবহার করে।
Keep skills reliable
- Put key rules at the top. After auto-compaction, Claude Code keeps the first 5,000 tokens of each recent skill, within a shared budget of 25,000 tokens. Source 1সোর্স 1
- Keep descriptions short. Skill descriptions share a listing budget of 1% of the model's context window. Source 1সোর্স 1
- Edit without a restart. Claude Code watches skill folders, so edits apply in the same session. If a new skill does not appear, run
/reload-skills. Source 1সোর্স 1 Source 3সোর্স 3 - Use a hook for a must-hold rule. A skill can define a hook in its
hooksfrontmatter. Source 1সোর্স 1 - Validate in CI.
claude plugin validate .claude/skillsfindsSKILL.mdfiles whose frontmatter does not parse. Source 1সোর্স 1
সহজ English
- Put the key rules at the top of a skill. After auto-compaction, Claude Code keeps the first 5,000 tokens of each recent skill, within a shared budget of 25,000 tokens. Source 1সোর্স 1
- Keep descriptions short. All skill descriptions share a listing budget of 1% of the model's context window. Source 1সোর্স 1
- You do not need a restart after an edit. Claude Code watches skill folders, so edits apply in the same session. If a new skill does not appear, run
/reload-skills. Source 1সোর্স 1 Source 3সোর্স 3 - For a rule that must always hold, use a hook. A skill can define a hook in its
hooksfrontmatter. Source 1সোর্স 1 - In CI, run
claude plugin validate .claude/skills. It findsSKILL.mdfiles whose frontmatter does not parse. Source 1সোর্স 1
বাংলা ব্যাখ্যা
- মূল rule-গুলো skill-এর শুরুতে রাখুন। Auto-compaction-এর পরে Claude Code প্রতিটি সাম্প্রতিক skill-এর প্রথম 5,000 token রাখে, মোট 25,000 token-এর একটি shared budget-এর মধ্যে। Source 1সোর্স 1
- Description ছোট রাখুন। সব skill description মিলে model-এর context window-এর 1% listing budget ভাগ করে নেয়। Source 1সোর্স 1
- Edit করার পরে restart লাগে না। Claude Code skill folder-গুলো নজরে রাখে, তাই edit একই session-এ কাজ করে। কোনো নতুন skill না দেখা গেলে
/reload-skillsচালান। Source 1সোর্স 1 Source 3সোর্স 3 - যে rule সবসময় মানতেই হবে, তার জন্য hook ব্যবহার করুন। একটি skill তার
hooksfrontmatter-এ hook define করতে পারে। Source 1সোর্স 1 - CI-তে
claude plugin validate .claude/skillsচালান। এটি সেইSKILL.mdfile-গুলো খুঁজে বের করে, যাদের frontmatter parse হয় না। Source 1সোর্স 1
Built-in commands for QA
A command is recognized only at the start of your message. The text after it is its arguments. Source 3সোর্স 3
| Command | What it does |
|---|---|
/init | Creates a starter CLAUDE.md. With CLAUDE_CODE_NEW_INIT=1, an interactive flow also covers skills, hooks, and personal memory files. Source 3সোর্স 3 |
/memory | Edits CLAUDE.md files, turns auto memory on or off, and shows auto memory entries. Source 3সোর্স 3 |
/mcp | Manages MCP server connections and OAuth sign-in. Source 3সোর্স 3 |
/permissions | Manages allow, ask, and deny rules. Alias: /allowed-tools. Source 3সোর্স 3 |
/plan [description] | Enters plan mode from the prompt. Source 3সোর্স 3 |
/context | Shows context usage as a colored grid. Source 3সোর্স 3 |
/compact [instructions] | Summarizes the conversation to free context. Source 3সোর্স 3 |
/diff | Shows what changed in your working tree, including the edits that Claude made so far. Source 3সোর্স 3 |
/code-review | Checks the current diff, a PR number, a branch, or a path for correctness bugs. --fix applies the findings and --comment posts them. /review is an alias. Source 3সোর্স 3 |
/security-review | Reviews the diff between your branch and the default branch of origin for risks such as injection, auth issues, and data exposure. It needs an origin remote. Source 3সোর্স 3 |
/verify | Builds and runs your app to confirm that a code change does what it should, without falling back to tests or type checks. Source 1সোর্স 1 |
/skills, /hooks, /plugin | List skills, show hooks, and manage plugins. Source 3সোর্স 3 |
/agents | Prints a reminder to ask Claude or to edit .claude/agents/ directly. Source 3সোর্স 3 |
A typical order: /init, then /memory, /mcp, and /permissions to set up. During a task: /plan, /context, and /compact. Before you ship: /diff, /code-review, and /security-review. Source 3সোর্স 3
সহজ English
Claude Code recognizes a command only at the start of your message. The text after the command is its arguments. Source 3সোর্স 3
A typical order: Source 3সোর্স 3
- To set up:
/initmakes a starterCLAUDE.md. Then use/memory,/mcp, and/permissions. - During a task:
/planenters plan mode,/contextshows context usage, and/compactsummarizes the conversation to free context. - Before you ship:
/diffshows what changed,/code-reviewchecks for correctness bugs, and/security-reviewreviews the diff between your branch and the default branch for risks such as injection./security-reviewneeds anoriginremote.
বাংলা ব্যাখ্যা
Command শুধু আপনার message-এর শুরুতে থাকলেই Claude Code সেটি চিনতে পারে। Command-এর পরের text হলো তার argument। Source 3সোর্স 3
একটি সাধারণ ক্রম: Source 3সোর্স 3
- Setup-এর জন্য:
/initএকটি starterCLAUDE.mdতৈরি করে। তারপর/memory,/mcpএবং/permissionsব্যবহার করুন। - Task চলার সময়:
/planplan mode-এ নিয়ে যায়,/contextcontext usage দেখায়, আর/compactconversation summarize করে context খালি করে। - Ship করার আগে:
/diffদেখায় কী বদলেছে,/code-reviewcorrectness bug খোঁজে, আর/security-reviewআপনার branch আর default branch-এর diff-এ injection, auth issue বা data exposure-এর মতো risk review করে।/security-review-এর জন্য একটিoriginremote লাগে।
Bundled Skills and Overrides
/code-review,/doctor,/batch,/debug,/loop, and/claude-apiare bundled skills that ship with Claude Code. Source 1সোর্স 1 ThedisableBundledSkillssetting turns bundled skills off. Source 1সোর্স 1/verifyis a bundled skill that builds and runs your app to confirm a change. It works with/runand/run-skill-generator. Source 1সোর্স 1- If your own skill has the same name as a built-in command, your skill replaces the command in a local terminal session. Source 1সোর্স 1 It does not replace the aliases. Source 1সোর্স 1
Run your own check before each commit
If one of your own skills is named verify or simplify, Claude Code's commit instructions tell Claude to run it. They tell Claude to run it right before each commit, except for changes to docs or tests. This needs Claude Code v2.1.286 or later. Source 1সোর্স 1 These conditions apply: Source 1সোর্স 1
- The skill is in an enterprise, personal, project, or
--add-dirlocation, or in.claude/commands/. - Claude can invoke the skill, so it does not set
disable-model-invocation: true. includeGitInstructionsis on.
সহজ English
/verify builds and runs your app to confirm that a code change does what it should. Source 1সোর্স 1
If your own skill has the same name as a built-in command, your skill replaces the command in a local terminal session. Source 1সোর্স 1
If one of your own skills is named verify or simplify, Claude Code's commit instructions tell Claude to run it right before each commit. Docs or test changes are an exception. This needs Claude Code v2.1.286 or later, and some conditions apply. Source 1সোর্স 1
বাংলা ব্যাখ্যা
/verify আপনার app build করে চালায়, যাতে নিশ্চিত হওয়া যায় যে code change ঠিক কাজ করছে। আপনি invoke করলে তবেই এটি চলে। Source 1সোর্স 1 /code-review, /doctor, /batch, /debug, /loop এবং /claude-api হলো bundled skill, যা Claude Code-এর সঙ্গেই আসে। Source 1সোর্স 1
আপনার নিজের skill-এর নাম কোনো built-in command-এর মতো হলে local terminal session-এ আপনার skill সেই command-এর জায়গা নেয়, কিন্তু তার alias-এর নয়। Source 1সোর্স 1
আপনার নিজের কোনো skill-এর নাম verify বা simplify হলে Claude Code-এর commit instruction Claude-কে প্রতিটি commit-এর ঠিক আগে সেটি চালাতে বলে, তবে docs বা test-এর change-এ নয়। এর জন্য Claude Code v2.1.286 বা পরের version লাগে, আর কিছু শর্ত পূরণ হতে হয়। Source 1সোর্স 1
Reference
Frontmatter fields
| Field | What it does |
|---|---|
name | Command name in the / menu. Defaults to the folder name. Source 1সোর্স 1 |
description | What the skill does and when to use it. Source 1সোর্স 1 |
when_to_use | Shown with description in the skill listing. The two together are cut at 1,536 characters. Source 1সোর্স 1 |
allowed-tools | Tools that need no permission prompt during the invoking turn. Source 1সোর্স 1 |
disallowed-tools | Tools removed while the skill is active. Source 1সোর্স 1 |
disable-model-invocation | true: only you can invoke the skill. Default false. Source 1সোর্স 1 |
user-invocable | false: only Claude can invoke the skill. Default true. Source 1সোর্স 1 |
arguments, argument-hint | Named positional arguments, and the autocomplete hint. Source 1সোর্স 1 |
context, agent, background | Run the skill in a forked subagent. Source 1সোর্স 1 |
model, effort | Model and effort level (low, medium, high, xhigh, max). Source 1সোর্স 1 |
hooks | Hooks that belong to the skill. Source 1সোর্স 1 |
shell | bash or powershell Source 1সোর্স 1 |
paths, metadata, license, compatibility | Other fields. See the skills docs. Source 1সোর্স 1 |
Substitutions
| Placeholder | Value |
|---|---|
$ARGUMENTS | All arguments Source 1সোর্স 1 |
$ARGUMENTS[N], $N | One argument, counted from 0 Source 1সোর্স 1 |
$name | A named argument from arguments Source 1সোর্স 1 |
The docs also list ${CLAUDE_SESSION_ID}, ${CLAUDE_EFFORT}, ${CLAUDE_SKILL_DIR}, and ${CLAUDE_PROJECT_DIR}. Source 1সোর্স 1
You can stack skills at the start of one message. Claude Code expands the first skill plus up to five more after it. Source 1সোর্স 1
সহজ English
This section is a quick list of the frontmatter fields and the placeholders. Source 1সোর্স 1
nameis the command name in the/menu. By default, it is the folder name. Source 1সোর্স 1when_to_useshows withdescriptionin the skill listing. The two together are cut at 1,536 characters. Source 1সোর্স 1modelandeffortset the model and the effort level (low,medium,high,xhigh,max). Source 1সোর্স 1$ARGUMENTSis all the arguments.$ARGUMENTS[N]or$Nis one argument, counted from 0.$nameis a named argument fromarguments. Source 1সোর্স 1
You can stack skills at the start of one message. Claude Code expands the first skill plus up to five more after it. Source 1সোর্স 1
বাংলা ব্যাখ্যা
এই অংশে frontmatter field আর placeholder-গুলোর একটি সংক্ষিপ্ত তালিকা আছে। Source 1সোর্স 1
nameহলো/menu-তে command-এর নাম। Default হিসেবে এটি folder-এর নাম। Source 1সোর্স 1when_to_useskill listing-এdescription-এর সঙ্গে দেখায়। দুটো মিলে 1,536 character-এ কেটে দেওয়া হয়। Source 1সোর্স 1disallowed-toolsskill চালু থাকার সময় tool সরিয়ে দেয়। Source 1সোর্স 1modelআরeffortmodel এবং effort level (low,medium,high,xhigh,max) ঠিক করে। Source 1সোর্স 1shellহতে পারেbashবাpowershell। Source 1সোর্স 1$ARGUMENTSমানে সব argument।$ARGUMENTS[N]বা$Nমানে একটি argument, 0 থেকে গোনা।$nameহলোargumentsথেকে একটি নামযুক্ত argument। Source 1সোর্স 1
এক message-এর শুরুতে আপনি একাধিক skill পরপর রাখতে পারেন। Claude Code প্রথম skill এবং তার পরের সর্বোচ্চ পাঁচটি skill expand করে। Source 1সোর্স 1