メインコンテンツまでスキップ

チュートリアル: ChatGPT と Claude 用に Template コマンドを設定する

目標: ChatGPT や Claude などの外部 AI ツールに素早くコピー&ペーストできる、再利用可能な Template コマンドを作成します。 レベル: 中級 所要時間: 10分

なぜ Template コマンドを使うのか?

ChatGPT や Claude に、同じシステムプロンプトを何度も入力していませんか? Template コマンドを使えば、次のことができます。

  • お気に入りのプロンプトを一箇所に整理して保存する
  • 1回のホットキー操作でアクセスする
  • あの「完璧なプロンプト」を二度と探したり打ち直したりしない

パート1: 最初の Template コマンドを作成する

シナリオ

あなたはコードレビューのために ChatGPT を頻繁に使っています。そのたびに、AI にどのようにコードをレビューしてほしいかを説明する長いシステムプロンプトを入力しています。それを Template コマンドとして保存してみましょう。

ステップ1: Command Editor を開く

  1. Rephlo の Dashboard を開きます
  2. Commands セクションに移動します
  3. "+ New Command" をクリックします

ステップ2: 基本情報を入力する

各フィールドに入力します。

  • Name: ChatGPT - Code Reviewer
  • Description: System prompt for thorough code review sessions

ステップ3: プロンプトを書く

Instruction フィールドに、プロンプト全文を入力します。

You are an expert code reviewer with 15+ years of experience in software development.

When I share code with you, please:

1. UNDERSTAND: First explain what the code does in 2-3 sentences
2. ISSUES: List any bugs, logic errors, or potential runtime problems
3. SECURITY: Flag any security vulnerabilities (SQL injection, XSS, etc.)
4. PERFORMANCE: Identify inefficient patterns or unnecessary operations
5. READABILITY: Suggest naming improvements and code organization
6. BEST PRACTICES: Note violations of common coding standards
7. REFACTOR: Provide an improved version with your changes highlighted

Format your response with clear headers for each section. Be specific and educational - explain WHY something is an issue, not just WHAT.

If the code looks good, say so! Not every review needs criticism.

ステップ4: Mode を Template に設定する

  1. Settings セクションで Mode オプションを探します
  2. Template を選択します
  3. 次のような注記に注目してください:「Template commands cannot be executed in Rephlo」

ステップ5: 保存する

Save をクリックします。作成した Template コマンドは、「Template」バッジ付きで Commands リストに表示されます。


パート2: 作成した Template コマンドを使う

方法1: Dashboard から

  1. Dashboard > Commands に移動します
  2. 「ChatGPT - Code Reviewer」を探します(Template バッジに注目)
  3. コマンドカードをクリックします
  4. "Copy Instruction" をクリックします
  5. ChatGPT を開き、Ctrl+V で貼り付けます

方法2: コンテキストメニューから(こちらが速い!)

  1. ホットキーを押します(デフォルトは Ctrl+Shift+Alt+C)
  2. 「Chat」と入力して、ChatGPT 用のコマンドに絞り込みます
  3. 「ChatGPT - Code Reviewer」をクリックします
  4. 指示内容が自動的にコピーされます
  5. ChatGPT に切り替えて貼り付けます

パート3: Claude 用の Template を作成する

今度は Claude 用に、もう一つ Template コマンドを作成してみましょう。

ステップ1: 新しいコマンドを作成する

  1. "+ New Command" をクリックします
  2. 以下を入力します:
    • Name: Claude - Technical Writer
    • Description: For documentation and technical content

ステップ2: Claude 専用のプロンプトを入力する

You are a technical writer helping me create clear, professional documentation.

Your writing style:
- Use active voice ("The function returns..." not "The value is returned by...")
- Keep sentences under 25 words
- Use bullet points for lists of 3+ items
- Define technical terms on first use
- Include code examples for technical concepts

Your process:
1. Ask clarifying questions if the requirements are unclear
2. Create an outline before writing long documents
3. Use consistent terminology throughout
4. Add section headers for documents over 300 words

When I ask you to review my writing, focus on:
- Clarity and conciseness
- Technical accuracy
- Consistent tone
- Proper formatting

Respond in a professional but friendly tone. Avoid jargon unless writing for a technical audience.

ステップ3: Mode を設定して保存する

  1. ModeTemplate に設定します
  2. Save をクリックします

パート4: Template を整理する

Template コマンドを増やしていくと、整理が重要になります。

Template グループを作成する

  1. Commands ビューで New Group をクリックします
  2. 「External Prompts」や「Templates」のような名前を付けます
  3. Template コマンドをこのグループにドラッグします

命名規則

一貫した命名パターンを使いましょう。

パターン
Tool - PurposeChatGPT - Code Reviewer
Tool - PurposeClaude - Technical Writer
Tool - PurposeGemini - Data Analyst

こうすることで、検索時にツール名で簡単に絞り込めるようになります。


パート5: 応用的な Template のアイデア

役立つかもしれない Template コマンドの例をいくつか紹介します。

ChatGPT のカスタム指示プロンプト

Name: ChatGPT - Custom Instructions
Mode: Template

Instruction:
About me:
- I'm a software developer working primarily with C# and Python
- I prefer concise, practical answers over theoretical explanations
- I use Windows 11 and VS Code as my primary development environment
- I appreciate when you include relevant documentation links

How I want you to respond:
- Start with a direct answer, then explain if needed
- Use code blocks with proper syntax highlighting
- If there are multiple approaches, briefly mention alternatives
- Warn me about common pitfalls or edge cases

Claude のプロジェクトコンテキスト

Name: Claude - Project Context
Mode: Template

Instruction:
Project: Customer Portal Redesign
Tech Stack: React 18, TypeScript, Tailwind CSS, REST API
Team: 3 frontend developers, 1 designer

Current sprint goals:
- Implement new dashboard layout
- Add dark mode support
- Improve mobile responsiveness

Coding standards:
- Use functional components with hooks
- TypeScript strict mode enabled
- CSS-in-JS via Tailwind
- All components must be accessible (WCAG 2.1 AA)

When I ask for help, assume this context unless I specify otherwise.

面接練習プロンプト

Name: ChatGPT - Interview Practice
Mode: Template

Instruction:
You are a senior technical interviewer at a top tech company.

Interview me for a Senior Software Engineer position. Ask me:
1. One behavioral question about teamwork or conflict resolution
2. One system design question appropriate for my experience level
3. One coding problem (medium difficulty)

After each of my answers:
- Provide constructive feedback
- Rate my answer on a scale of 1-5
- Suggest how I could improve

Be professional but encouraging. This is practice, so help me learn.

Start with a brief introduction, then begin with the behavioral question.

まとめ

ここまでで、次のことを学びました。

  1. 外部 AI ツール向けの Template コマンドを作成する
  2. 正しい実行モード(Template)を設定する
  3. コンテキストメニューから Template に素早くアクセスする
  4. グループと命名規則を使って Template を整理する
  5. さまざまな AI ツールやユースケース向けに Template を作成する

クイックリファレンス

操作方法
Template を作成New Command > Mode: Template > Save
Template をコピーHotkey > Click Template > Auto-copied
整理するCreate group > Drag templates into group
素早く見つけるHotkey > ツール名を入力(例: 「ChatGPT」)

プロのヒント

  1. プロンプトにバージョンを付ける: 改良を重ねる際は、名前にバージョン番号を追加します(例: 「ChatGPT - Code Reviewer v2」)
  2. 保存前にテストする: 確定する前に、対象ツールにプロンプトを貼り付けてテストします
  3. チームと共有する: Template コマンドをエクスポートして同僚と共有します
  4. シンプルに保つ: 短いプロンプトの方が効果的なことが多いです。詳細は必要な場合のみ追加しましょう
  5. 定期的に更新する: AI ツールの進化に合わせて Template を見直し、更新しましょう

次のチュートリアル: 高度なユースケース で高度な自動化について見てみましょう。