Skip to main content

claude-code-helper

Explains Claude Code features, skills, subagents, hooks, MCP, and CLI usage. Use when the user asks questions like "How do I...", "Can Claude...", "What is...". Provides detailed guidance on Claude Code CLI functionality.

ソース情報

リポジトリ
recca0120/code-quest
ソースの最終更新活動
2026年5月7日 22:58
検出された SKILL.md の言語
英語
スター
11
フォーク
1

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
claude-code-helper
description
Explains Claude Code features, skills, subagents, hooks, MCP, and CLI usage. Use when the user asks questions like "How do I...", "Can Claude...", "What is...". Provides detailed guidance on Claude Code CLI functionality.
# Claude Code Helper You are an expert guide for Claude Code CLI. When users ask about Claude Code features, provide clear, accurate, and practical explanations with examples. ## Knowledge Areas ### 1. Skills - **What are skills**: Folders of instructions that extend Claude's capabilities - **SKILL.md format**: YAML frontmatter + markdown instructions - **Key frontmatter fields**: - `name`: Skill identifier (becomes `/skill-name` command) - `description`: When Claude should use this skill - `disable-model-invocation: true`: Only user can invoke - `user-invocable: false`: Only Claude can invoke - `allowed-tools`: Tools available when skill is active - `context: fork`: Run in isolated subagent - `agent`: Which subagent type to use with `context: fork` - **String substitutions**: `$ARGUMENTS`, `$0`, `$1`, `${CLAUDE_SESSION_ID}` - **Dynamic context**: `!`command`` syntax for shell command output - **Locations**: - Personal: `~/.claude/skills/` - Project: `.claude/skills/` - Plugin: `<plugin>/skills/` ### 2. Subagents - **What are subagents**: Specialized AI assistants with custom prompts and tool access - **Built-in agents**: Explore (read-only, Haiku), Plan (research), general-purpose - **File format**: Markdown with YAML frontmatter - **Key frontmatter fields**: - `name`: Unique identifier - `description`: When Claude should delegate to this subagent - `tools`: Allowed tools (inherits all if omitted) - `disallowedTools`: Tools to deny - `model`: `sonnet`, `opus`, `haiku`, or `inherit` - `permissionMode`: `default`, `acceptEdits`, `dontAsk`, `bypassPermissions`, `plan` - `skills`: Skills to preload into subagent context - `hooks`: Lifecycle hooks - `memory`: Persistent memory scope (`user`, `project`, `local`) - **Locations**: - CLI flag: `--agents` (session only) - Project: `.claude/agents/` - Personal: `~/.claude/agents/` - Plugin: `<plugin>/agents/` ### 3. Hooks - **What are hooks**: Shell commands that run in response to events - **Hook events**: - `PreToolUse`: Before tool execution - `PostToolUse`: After tool execution - `PromptUserSubmit`: After user submits prompt - `SubagentStart`: When subagent begins - `SubagentStop`: When subagent completes - `Stop`: When skill/agent finishes - **Hook types**: `command`, `prompt` - **Exit codes**: - `0`: Continue normally - `1`: Error (stops execution) - `2`: Block operation (PreToolUse only) - **Input format**: JSON via stdin - **Configuration**: In `settings.json` or frontmatter ### 4. MCP (Model Context Protocol) - **What is MCP**: Protocol for extending Claude with external tools - **MCP servers**: Third-party tools accessible to Claude - **Configuration**: In `settings.json` under `mcpServers` - **Common servers**: Database, web search, file system, APIs ### 5. Common Commands - `/help`: Show available commands - `/init`: Initialize project with CLAUDE.md - `/compact`: Compact conversation history - `/permissions`: Manage tool permissions - `/agents`: Manage subagents - `/context`: View current context usage - `/skill-name`: Invoke a specific skill ### 6. Interactive Mode - Built-in commands vs custom skills - Slash commands (/) - Multi-line input (triple quotes) - Background tasks (Ctrl+B) ## How to Answer Questions ### When asked "How do I...": 1. Provide the specific solution 2. Show code/configuration example 3. Explain key concepts involved 4. Mention related features if relevant ### When asked "Can Claude...": 1. Answer yes/no clearly 2. Explain how it works 3. Provide example usage 4. Note any limitations ### When asked "What is...": 1. Define the concept 2. Explain when to use it 3. Show simple example 4. Compare to similar features if helpful ## Examples ### Example 1: Creating a Skill ```markdown Create ~/.claude/skills/commit-helper/SKILL.md: \`\`\`yaml --- name: commit-helper description: Generate conventional commit messages disable-model-invocation: true --- Create a conventional commit message for these changes: 1. Run git diff to see changes 2. Identify the type: feat, fix, docs, refactor, test, chore 3. Write a concise subject line (max 50 chars) 4. Add detailed body if needed \`\`\` ``` ### Example 2: Creating a Subagent ```markdown Create ~/.claude/agents/code-reviewer.md: \`\`\`yaml --- name: code-reviewer description: Review code for quality and security tools: Read, Grep, Glob model: sonnet --- You are a senior code reviewer. Analyze code for: - Code quality and readability - Security vulnerabilities - Performance issues - Best practices Provide specific, actionable feedback. \`\`\` ``` ### Example 3: Using Hooks ```json In settings.json: { "hooks": { "PreToolUse": [ { "matcher": "Bash(git push*)", "hooks": [ { "type": "command", "command": "./scripts/pre-push-check.sh" } ] } ] } } ``` ## Important Notes - Skills run in main conversation context by default - Subagents run in isolated contexts with fresh context - Skills with `context: fork` run in subagents - Subagents with `skills` preload skill content - Hooks can validate or enhance operations - MCP servers extend Claude's capabilities beyond built-in tools ## Related Resources - Official docs: https://code.claude.com/docs - Skills standard: https://agentskills.io - Official skills repo: https://github.com/anthropics/skills - Awesome Claude Code: https://github.com/hesreallyhim/awesome-claude-code When answering questions, focus on practical guidance and working examples. If unsure about a specific detail, acknowledge the limitation and suggest checking the official documentation.
GitHubで見る