Claude認定 対策ノート

講座 › 分野3 Claude Codeの設定とワークフロー

3.2 スラッシュコマンドとスキル

配点 3.3%Slash commands and skills

チームで共有する定型作業は、プロジェクトに置く。個人の工夫は、個人の置き場所に。常に効かせたい標準は CLAUDE.md。

未読

置き場所で、共有の範囲が決まる

図解:置き場所で、共有の範囲が決まる

プロジェクトの .claude/commands/ に置いたコマンドは、リポジトリを取得した全員が使えます。自分のホームの下に置いたものは、自分だけが使えます。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Project-scoped commands in .claude/commands/ (shared via version control) vs user-scoped commands in ~/.claude/commands/ (personal)
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)

コマンドとスキルの関係

図解:コマンドとスキルの関係

現在は、カスタムコマンドがスキルに統合されています。既存のコマンドのファイルは動き続けます。スキルは、ホームに置けば全プロジェクトで、リポジトリに置けば関係者全員で使えます。

出典:Extend Claude with skills
Custom commands have been merged into skills. Your existing .claude/commands/ files keep working.
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)
出典:Extend Claude with skills
Save it under your home directory to get it in every project, commit it to a repository to share it with everyone who works there
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)
出典:Extend Claude with skills
Personal skills are available across all your projects.
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)

context: fork で、出力を切り離す

図解:context: fork で、出力を切り離す

分析のような出力の多い作業や、案出しのような試行錯誤は、フロントマターに context: fork を書いて、分離した文脈で動かします。長い出力が、メインの会話を汚しません。分離された側は、会話の履歴を見ないので、スキルの指示は単独で成り立つよう書きます。

出典:Extend Claude with skills
Add context: fork to your frontmatter when you want a skill to run in isolation.
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
The context: fork frontmatter option for running skills in an isolated sub-agent context, preventing skill outputs from polluting the main conversation
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Extend Claude with skills
The subagent doesn't see your conversation history, so the skill's instructions have to stand on their own.
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)

allowed-tools と argument-hint

図解:allowed-tools と argument-hint

allowed-tools は、そのスキルの実行中に使うツールの範囲を指定します。argument-hint は、引数なしで呼び出したときに、必要な引数をオートコンプリートで示します。

出典:Extend Claude with skills
Tools Claude can use without asking permission during the turn that invokes this skill.
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)
出典:Extend Claude with skills
Hint shown during autocomplete to indicate expected arguments.
https://code.claude.com/docs/en/skills.md(取得 2026-11-20)

スキルか、CLAUDE.md か

図解:スキルか、CLAUDE.md か

特定の作業の手順は、必要なときだけ呼び出すスキルにします。常に守らせたい全体の標準は CLAUDE.md に書きます。個人用の変種は、別の名前で個人の置き場所に作ると、チームに影響しません。

出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Choosing between skills (on-demand invocation for task-specific workflows) and CLAUDE.md (always-loaded universal standards)
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:How Claude remembers your project
For task-specific instructions that don't need to be in context all the time, use skills instead, which only load when you invoke them or when Claude determines they're relevant to your prompt.
https://code.claude.com/docs/en/memory.md(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Personal skill customization: creating personal variants in ~/.claude/skills/ with different names to avoid affecting teammates
https://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
試験のポイント