Expert knowledge of Claude Code SDK, API, tools (Read, Write, Edit, Bash, Grep, Glob), agent tools (Task, Skill, SlashCommand), plugin hooks, MCP integration, and Claude Code extension development. Activates for claude sdk, claude api, claude tools, Read tool, Write tool, Edit tool, Task tool, Skill tool, claude hooks, MCP, claude code api.
Provides expert knowledge of Claude Code SDK, API, tools (Read/Write/Edit/Bash/Grep/Glob), agent tools, plugin hooks, and MCP integration for extension development. Activates when users mention "claude sdk", "claude api", "claude tools", specific tool names, "claude hooks", "MCP", or "claude code api".
/plugin marketplace add anton-abyzov/specweave/plugin install anton-abyzov-specweave-plugin-dev-plugins-specweave-plugin-dev@anton-abyzov/specweaveThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Expert knowledge of Claude Code SDK, tools, and extension development.
File Operations:
// Read files
Read({ file_path: '/absolute/path/file.ts' });
// Write files (creates new or overwrites)
Write({
file_path: '/absolute/path/file.ts',
content: 'export const hello = () => "world";'
});
// Edit files (precise replacements)
Edit({
file_path: '/absolute/path/file.ts',
old_string: 'const x = 1;',
new_string: 'const x = 2;'
});
Search:
// Find files by pattern
Glob({ pattern: '**/*.ts' });
// Search file contents
Grep({
pattern: 'TODO',
output_mode: 'files_with_matches'
});
// Search with context
Grep({
pattern: 'function.*export',
output_mode: 'content',
'-C': 3, // 3 lines before/after
'-n': true // Line numbers
});
Execution:
// Run commands
Bash({
command: 'npm test',
description: 'Run test suite'
});
// Background processes
Bash({
command: 'npm run dev',
run_in_background: true
});
Sub-agents:
// Invoke specialized sub-agent
Task({
subagent_type: 'plugin:agent-folder:agent-name',
prompt: 'Analyze this architecture'
});
Skills:
// Activate skill explicitly
Skill({ skill: 'skill-name' });
// Or let auto-activation handle it
Commands:
// Execute slash command
SlashCommand({ command: '/plugin:command arg1 arg2' });
Available Hook Events:
type HookEvent =
| 'PostToolUse' // After tool executes
| 'PreToolUse' // Before tool executes
| 'PermissionRequest' // User permission dialog
| 'Notification' // System notification
| 'UserPromptSubmit' // After user submits prompt
| 'Stop' // Conversation stopped
| 'SubagentStop' // Sub-agent stopped
| 'PreCompact' // Before context compaction
| 'SessionStart' // Session started
| 'SessionEnd'; // Session ended
Hook Configuration:
{
"hooks": {
"PostToolUse": [
{
"matcher": "TodoWrite",
"hooks": [{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-task.sh",
"timeout": 10
}]
}
]
}
}
Code-First Preferred: Anthropic research shows code execution achieves 98% token reduction vs MCP. Use MCP only for: quick debugging, Claude Desktop integration, or tools with no code equivalent. For automation, CI/CD, and production - write code instead.
MCP Server Integration (when needed):
// Connect to MCP server
const mcp = await connectMCP({
name: 'filesystem',
transport: 'stdio',
command: 'node',
args: ['mcp-server-filesystem.js']
});
// Use MCP tools
mcp.call('read_file', { path: '/path/to/file' });
Tool Usage:
Performance:
Security:
Build powerful Claude Code extensions!
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.