Skip to main content
claude-skills This skill should be used when creating Claude Code skills with Claude-specific features like allowed-tools, context modes (fork/inherit), argument-hint, or model overrides. Triggers on "Claude skill", "allowed-tools", "context fork", "skill arguments".
الانتقال إلى التثبيت سوق المهارات اكتشف واستكشف مهارات الذكاء الاصطناعي التي بناها المجتمع.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
نسخ Promptعرض تفاصيل Prompt يتجاوز الأمر المباشر Prompt المخصّص للمراجعة. افحص المصدر قبل تشغيله.
npx skills add https://github.com/outfitter-dev/agents --skill claude-skillsيبقى الأمر في سطر واحد. مرّر أفقيًا لمراجعته كاملًا قبل النسخ.
تفضّل نسخة محلية؟ نزّل الملفات المتاحة حاليًا لدى SkillsMP.
تحميل Zip جاري التحميل... المهن ذات الصلة SOC
استنادا إلى تصنيف SOC المهني
name claude-skills description This skill should be used when creating Claude Code skills with Claude-specific features like allowed-tools, context modes (fork/inherit), argument-hint, or model overrides. Triggers on "Claude skill", "allowed-tools", "context fork", "skill arguments". metadata {"version":"1.0.0","related-skills":["skills-dev","claude-plugins","claude-commands","claude-hooks"]} allowed-tools Read Write Edit Grep Glob Bash TaskCreate TaskUpdate TaskList TaskGet
Claude Code Skills
Steps
Load the outfitter:skills-dev skill
Consider the Claude Code-specific features that extend the base specification within this skill
Frontmatter Extensions
Claude Code extends the base Agent Skills frontmatter:
Field Type Description allowed-toolsstring Space-separated tools that run without permission prompts user-invocableboolean Default true. Set false to prevent /skill-name access disable-model-invocationboolean Prevents auto-activation; requires manual Skill tool invocation
contextstring inherit (default) or fork for isolated subagent execution
agentstring Agent for context: fork (e.g., Explore, outfitter:analyst)
modelstring Override model: haiku, sonnet, or opus
hooksobject Lifecycle hooks: on-activate, on-complete
argument-hintstring Hint shown after /skill-name (e.g., [file path])
Example ---
name: code-review
version: 1.0 .0
description: Reviews code for bugs, security, and best practices. Use when reviewing PRs, auditing code, or before merging.
allowed-tools: Read Grep Glob Bash(git diff *)
argument-hint: [file or directory ]
model: sonnet
---
Tool Restrictions Use allowed-tools to specify which tools run without permission prompts.
Syntax
allowed-tools: Read Grep Glob
allowed-tools: Read Write Bash(git *) Bash(npm run *)
allowed-tools: Read mcp__linear__create_issue mcp__memory__store
Bash Pattern Syntax Pattern Meaning Example Bash(git *)All git commands git status, git commitBash(git add:*)Specific subcommand git add ., git add file.tsBash(npm run *:*)Nested patterns npm run test:unit
Common Patterns
allowed-tools: Read Grep Glob
allowed-tools: Read Edit Write
allowed-tools: Read Write Bash(git *)
allowed-tools: Read Write Bash(bun test:*) Bash(npm test:*)
allowed-tools: Read Edit Write Bash(git *) Bash(bun *) Bash(npm *)
Tool Names (Case-Sensitive) Tool Purpose ReadRead files WriteWrite new files EditEdit existing files GrepSearch file contents GlobFind files by pattern BashExecute bash commands WebFetchFetch web content WebSearchSearch the web
User Invocable Skills Skills are callable as /skill-name by default. Use user-invocable: false for auto-activate-only skills.
---
name: code-review
description: Reviews code for bugs and best practices...
argument-hint: [file or PR number ]
---
Users invoke with /code-review src/auth.ts or wait for auto-activation.
Disabling Slash Command Access ---
name: internal-validator
description: Validates internal state when specific patterns are detected...
user-invocable: false
---
Arguments The argument-hint field provides context in the command picker:
argument-hint: [error message or bug description ]
Arguments available via $ARGUMENTS in skill body.
String Substitutions Pattern Replaced With $ARGUMENTSUser input after /skill-name ${CLAUDE_SESSION_ID}Current session identifier ${CLAUDE_PLUGIN_ROOT}Path to the plugin root directory
Example # Debug Skill
Investigating: $ARGUMENTS
Session: ${CLAUDE_SESSION_ ID}
Use the debugging script:
${CLAUDE_PLUGIN_ ROOT}/scripts/debug-helper.ts
Dynamic Context Injection Use backtick-command syntax to inject dynamic content:
## Current Git Status
`git status`
## Recent Changes
`git log --oneline -5`
Commands execute when Claude loads the skill; output replaces the syntax.
Use cases : Current branch state, environment info, dynamic config, recent history.
Context Modes The context field controls execution environment.
inherit (default) Skill runs in main conversation context with access to history and prior tool results.
fork Skill runs in isolated subagent context. Useful for:
Preventing context pollution
Parallel execution
Specialized processing that shouldn't affect main conversation
context: fork
agent: outfitter:analyst
model: haiku
When context: fork, specify:
agent: Which agent handles the fork
model: Override model for forked context
In Steps sections : Use "delegate by loading" language for delegated skills (they run agents, not load instructions):
3. Delegate by loading the `outfitter:security-audit` skill for vulnerability scan
Testing
Loaded skill: skill-name from path — Skill discovered
Error loading skill: reason — Loading failed
Considering skill: skill-name — Activation evaluated
Skill allowed-tools: [list] — Tool restrictions applied
Testing Process
Verify loading : claude --debug and check for load messages
Test discovery : Ask something that should trigger the skill
Verify tool restrictions : Confirm permitted tools run without prompts
Test with real data : Run actual workflows
Force Skill Reload Skills are cached per session. To reload after changes:
Troubleshooting
Skill Not Loading
ls ~/.claude/skills/my-skill/SKILL.md
ls .claude/skills/my-skill/SKILL.md
ls <plugin-path>/skills/my-skill/SKILL.md
Validate YAML frontmatter:
Skill Not Activating Improve description specificity:
description: Helps with files
description: Parse and validate JSON files including schema validation. Use when working with JSON data, .json files, or configuration files.
Add trigger keywords users naturally say: file types (.pdf, .json), actions (parse, validate), domains (API, database).
Tool Permission Errors Tool names are case-sensitive:
allowed-tools: Read Grep Glob
allowed-tools: read grep glob
Bash patterns need wildcards:
allowed-tools: Bash(git *)
allowed-tools: Bash(git)
MCP tools use double underscores:
allowed-tools: mcp__memory__store
allowed-tools: mcp_memory_store
Integration Patterns
With Commands Skills activate automatically when commands need their expertise:
Command (.claude/commands/analyze-pdf.md):
---
description: Analyze PDF file
---
Analyze this PDF file: $ARGUMENTS
Use the PDF processing skill for extraction and analysis.
With Hooks Hooks can suggest skill usage:
{
"hooks" : {
"PostToolUse" : [
{
"matcher" : "Write(*.ts)|Edit(*.ts)" ,
"hooks" : [ { "type" : "command" , "command" : "echo 'Consider typescript-linter skill'" } ]
}
]
}
}
Using Skill Tool Load skills programmatically:
Use the Skill tool to invoke the pdf-processor skill
Useful for forcing activation, chaining skills, loading for agents.
Master-Clone Architecture For orchestrating specialized work with context isolation:
Master Agent : Coordinates, maintains conversation context, delegates specialized tasks
Clone Agents : Isolated context, loads specific skill, returns focused output
User request
|
Master agent decides: needs security analysis
|
Launch clone agent with security-audit skill
|
Clone returns findings (only findings in main context)
|
Master synthesizes and continues
Implementation ---
name: security-audit
context: fork
agent: outfitter:reviewer
model: sonnet
---
{
"description" : "Security audit of auth module" ,
"prompt" : "Review src/auth/ for vulnerabilities using security-audit skill" ,
"subagent_type" : "outfitter:reviewer" ,
"run_in_background" : true
}
References