チュートリアル: 高度な自動化レシピ
目標: パワーユーザー向けに、コピー&ペーストしてすぐ使えるコマンドレシピを網羅したクックブックです。 レベル: 中級〜エキスパート 所要時間: リファレンスガイド(必要に応じて参照してください)
このチュートリ アルでは、カテゴリー別に整理された、本番環境でそのまま使える40個のコマンドレシピを紹介します。各レシピには、Rephloに直接コピーできる完全な指示が含まれています。
このクックブックの使い方
- レシピを探します — 自分のユースケースに合ったものを見つけます
- Rephloで新しいCommandを作成します(Dashboard > Commands > New)
- レシピの指示をInstructionフィールドにコピーします
- 指定どおりに実行モードを設定します(StandaloneまたはCombination)
- コンテキストを意識したレシピの場合は、必要に応じてSpaceをアタッチします
- サンプル入力で保存してテストします
変数について
{{input_content}}- 画面上で選択したテキスト{{space_data_all}}- アクティブなSpace内のすべてのドキュメント{{filename}}- Space内の特定のファイルの内容(例:{{style_guide_pdf}})
ライティングのレシピ
レシピ1: エグゼクティブサマリージェネレーター
カテゴリー: ライティング 難易度: 中級 推奨プロバイダー: Claude(構造化された要約に優れています)またはGPT-5.4
できること: 長文のドキュメント、レポート、会議の書き起こしを、要点とアクションアイテムを含む簡潔なエグゼクティブサマリーに変換します。
コマンド:
- Name:
executive-summary - Execution Mode: Combination
Instruction:
You are a senior business analyst skilled at distilling complex information into executive-ready summaries.
Analyze the following content and create an executive summary with these sections:
## Executive Summary
### Key Points (3-5 bullets)
- Most critical findings or decisions
### Background
Brief context (2-3 sentences max)
### Recommendations
Numbered list of actionable next steps
### Risks & Considerations
Any concerns leadership should be aware of
### Timeline
Key dates or milestones mentioned
---
Rules:
- Keep total length under 300 words
- Use active voice and decisive language
- Highlight numbers, percentages, and concrete metrics
- If the source lacks certain sections, note "Not specified in source material"
Content to summarize:
{{input_content}}
使用例:
入力: 2000語の四半期売上レポート 出力: 収益のハイライト、チームのパフォーマンス、Q2の提言、リスク要因を含む構造化された250語のサマリー
プロのヒント: 会社のエグゼクティブサマリーのテンプレートを含むSpaceをアタッチすると、すべてのレポートで一貫したフォーマットを維持できます。
レシピ2: メールスレッド要約ツール
カテゴリー: ライティング 難易度: 中級 推奨プロバイダー: GPT-5.4またはClaude(高速かつ正確)
できること: 長いメールのやり取りを、決定事項・未解決の質問・次のステップを明らかにしながら、実用的なサマリーに凝縮します。
コマンド:
- Name:
email-summarizer - Execution Mode: Combination
Instruction:
You are an executive assistant analyzing an email thread.
Summarize this email chain with:
**Thread Topic**: [One-line description]
**Participants**: [List names and roles if apparent]
**Timeline**: [Date range of conversation]
**Decisions Made**:
- [Bullet each confirmed decision]
**Open Questions**:
- [Bullet any unresolved items]
**Action Items**:
| Owner | Task | Deadline |
|-------|------|----------|
| [Name] | [Task] | [Date if mentioned] |
**My Recommended Response** (if I need to reply):
[2-3 sentence suggested reply addressing open items]
---
Email thread:
{{input_content}}
使用例:
入力: プロジェクトの進行に関する15通のメールスレッド 出力: 3つの決定事項、2つの未解決の質問、担当者付きの4つのアクションアイテムを示す構造化されたサマリー
プロのヒント: メールの要約は頻繁に使うため、このコマンド用にキーボードショートカット(Hotkey)を作成しましょう。
レシピ3: トーン変換ツール(マルチモード)
カテゴリー: ライティング 難易度: 中級 推奨プロバイダー: Claude(トーンのニュアンスを理解する力に優れています)
できること: 核となるメッセージを保ちながら、フォーマル・カジュアル・テクニカルの間でテキストのトーンを変換します。
コマンド:
- Name:
tone-shift-formal - Execution Mode: Combination
Instruction:
Transform the following text into a FORMAL, professional tone suitable for:
- Executive communications
- Official documentation
- Client-facing materials
Guidelines:
- Replace contractions with full words
- Use passive voice where appropriate
- Remove slang, colloquialisms, and casual expressions
- Add appropriate salutations and closings if letter/email format
- Maintain all factual content and meaning
- Keep sentences clear and well-structured
Original text:
{{input_content}}
Provide only the rewritten text with no explanations.
バリエーションのコマンド(それぞれ個別のCommandとして作成します):
カジュアルトーン(tone-shift-casual):
Transform the following text into a CASUAL, friendly tone suitable for:
- Internal team communications
- Social media posts
- Informal updates
Guidelines:
- Use contractions naturally
- Add conversational phrases where appropriate
- Keep it warm and approachable
- Maintain professionalism (no inappropriate language)
- Preserve all key information
Original text:
{{input_content}}
Provide only the rewritten text with no explanations.
テクニカルトーン(tone-shift-technical):
Transform the following text into a TECHNICAL, precise tone suitable for:
- Documentation
- Technical specifications
- Developer communications
Guidelines:
- Use precise, unambiguous language
- Include technical terminology where appropriate
- Structure with clear logical flow
- Remove emotional or persuasive language
- Add clarifying details if meaning is ambiguous
Original text:
{{input_content}}
Provide only the rewritten text with no explanations.
使用例:
入力: "Hey! So basically the server's been acting weird and we gotta fix it ASAP or things will get bad." 出力(フォーマル): "I am writing to inform you that we have identified performance anomalies in our server infrastructure. Immediate remediation is required to prevent service degradation."
プロのヒント: トーン変換系のコマンドはすべて「Tone Shift」のCommand Groupにまとめておくと、すぐにアクセスできます。
レシピ4: 箇条書き→文章変換ツール
カテゴリー: ライティング 難易度: 初級 推奨プロバイダー: どのプロバイダーでも(シンプルなタスクです)
できること: 箇条書きのメモを、流れるように読みやすい段落に変換します。
コマンド:
- Name:
bullets-to-prose - Execution Mode: Combination
Instruction:
Convert these bullet points into well-written prose paragraphs.
Requirements:
- Create smooth transitions between ideas
- Group related points into paragraphs
- Maintain all original information
- Use varied sentence structure
- Keep the same level of formality as the bullets suggest
- Aim for 1 paragraph per 3-5 related bullets
Bullet points:
{{input_content}}
Output flowing prose only, no bullet points in the result.
使用例:
入力: "- Q3 sales up 15%\n- New product launch successful\n- Hired 5 new reps\n- Expanding to APAC region" 出力: "Third quarter sales demonstrated strong performance with a 15% increase over the previous period. This growth was driven in part by our successful new product launch, which exceeded initial projections. To support continued expansion, the team welcomed five new sales representatives. Looking ahead, the company is actively pursuing opportunities in the APAC region."
プロのヒント: 包括的なレポートを作成する際は、エグゼクティブサマリージェネレーターと組み合わせるとよく合います。
レシピ5: 議事録→アクションアイテム変換
カテゴリー: ライティング 難易度: 中級 推奨プロバイダー: GPT-5.4(高速な抽出)またはClaude
できること: 会議の議事録から、担当者・締め切り・優先度付きのアクションアイテムを抽出します。
コマンド:
- Name:
meeting-action-items - Execution Mode: Combination
Instruction:
You are a project manager extracting action items from meeting notes.
Analyze these meeting notes and produce:
## Meeting: [Inferred Topic]
**Date**: [If mentioned, else "Not specified"]
**Attendees**: [List if mentioned]
## Action Items
| # | Task | Owner | Deadline | Priority | Dependencies |
|---|------|-------|----------|----------|--------------|
| 1 | [Specific task] | [Name/@mention] | [Date] | [High/Medium/Low] | [Any blockers] |
## Decisions Logged
- [Any decisions that were finalized]
## Parking Lot (For Future Discussion)
- [Items mentioned but deferred]
## Follow-up Meeting Needed?
[Yes/No + suggested topics if yes]
---
Extraction rules:
- If owner is unclear, mark as "TBD - needs assignment"
- Infer priority from urgency language (ASAP = High, when possible = Low)
- Convert vague deadlines to specific dates if context allows
- Flag any conflicting or duplicate action items
Meeting notes:
{{input_content}}
使用例:
入力: 1時間のプロジェクト同期会議からの生の議事録 出力: 8件のアクションアイテム、3件の決定事項、2件のパーキングロット項目を含む構造化されたテーブル
プロのヒント: チームの名簿を含むSpaceをアタッチすると、担当者の特定精度が上がります。
レシピ6: 専門用語→平易な言葉への変換ツール
カテゴリー: ライティング 難易度: 上級 推奨プロバイダー: Claude(比喩表現や簡略化に優れています)
できること: 専門用語を、非技術系のステークホルダーが理解できる平易な言葉に変換します。
コマンド:
- Name:
tech-to-plain - Execution Mode: Combination
Instruction:
You are a technical communicator specializing in making complex concepts accessible.
Translate this technical content for a non-technical audience (executives, clients, or general public).
Translation guidelines:
1. Replace jargon with everyday equivalents
2. Use analogies and real-world comparisons
3. Explain "why it matters" for each concept
4. Keep sentences short (max 20 words)
5. Use active voice
6. Include a "Key Takeaway" at the end
Avoid:
- Acronyms without explanation
- Assuming prior technical knowledge
- Oversimplifying to the point of inaccuracy
Format:
## Plain Language Version
[Translated content]
## Key Takeaway
[One sentence summary of what they need to know/do]
## Glossary (if needed)
| Term | Simple Definition |
|------|-------------------|
---
Technical content:
{{input_content}}
使用例:
入力: "The API endpoint is returning 503 errors due to thread pool exhaustion caused by synchronous blocking calls in the async pipeline." 出力: "Our system is temporarily overloaded because too many requests are waiting in line. Think of it like a restaurant where all the waiters are stuck waiting for the kitchen. Key Takeaway: Users may experience slow loading times until we optimize how requests are processed."
プロのヒント: よく使う比喩表現をSpaceに保存しておくと、チーム全体で一貫した説明ができます。
レシピ7: コンテンツ拡張ツール
カテゴリー: ラ イティング 難易度: 中級 推奨プロバイダー: ClaudeまたはGPT-5.4(創造的な拡張)
できること: 簡潔なメモやアウトラインを、詳細で肉付けされたコンテンツに拡張します。
コマンド:
- Name:
content-expand - Execution Mode: Combination
Instruction:
Expand the following brief content into a detailed, comprehensive version.
Expansion guidelines:
- Multiply the word count by approximately 3-5x
- Add relevant examples and illustrations
- Include supporting details and context
- Maintain the original tone and intent
- Use subheadings if the content warrants structure
- Add transitional phrases for flow
Do NOT:
- Add information that contradicts the original
- Change the core message or conclusions
- Use filler or fluff content
- Repeat the same points in different words
Brief content to expand:
{{input_content}}
使用例:
入力: "Remote work increases productivity. Fewer meetings. Better focus time." 出力: 統計データ、会議削減の実例、ディープワークの原則に関する研究を交えて、生産性のメリットを説明する300語のセクション
プロのヒン ト: Style Guide用のSpaceと組み合わせると、ブランドに一貫した拡張ができます。
レシピ8: コンテンツ要約・凝縮ツール
カテゴリー: ライティング 難易度: 中級 推奨プロバイダー: Claude(意味を保ちながら分量を減らすことに優れています)
できること: 重要な情報を失うことなく、長文コンテンツを要点だけに絞り込みます。
コマンド:
- Name:
content-condense - Execution Mode: Combination
Instruction:
Condense the following content to approximately 30% of its original length.
Condensation rules:
- Preserve ALL critical information, decisions, and action items
- Remove redundant explanations and examples
- Combine related sentences
- Eliminate filler phrases ("it is important to note that", "as mentioned earlier")
- Keep specific numbers, dates, and names
- Maintain the original structure if helpful
Priority order for what to keep:
1. Decisions and conclusions
2. Action items and deadlines
3. Key metrics and data points
4. Essential context
5. Supporting details (cut first if needed)
Content to condense:
{{input_content}}
Provide only the condensed version.
使用例:
入力: 1000語のプロジェクト進捗報告 出力: すべての決定事項・指標・アクションアイテムを保持した300語版
プロのヒント: 最大限の圧縮効果を得るには、エグゼクティブサマリージェネレーターの前段階として使いましょう。
レシピ9: SEOメタディスクリプション生成ツール
カテゴリー: ライティング 難易度: 初級 推奨プロバイダー: GPT-5.4(高速でSEOに強い)
できること: コンテンツをもとに、Webページ用の最適化されたメタディスクリプションを作成します。
コマンド:
- Name:
seo-meta-description - Execution Mode: Combination
Instruction:
Generate an SEO-optimized meta description for the following web page content.
Requirements:
- Length: 150-160 characters (strict limit)
- Include primary keyword naturally
- Create urgency or value proposition
- Use active voice
- Include a subtle call-to-action
Provide 3 options:
**Option 1 (Benefit-focused)**:
[Description emphasizing what the reader gains]
**Option 2 (Problem-solution)**:
[Description addressing a pain point and solution]
**Option 3 (Curiosity-driven)**:
[Description that creates intrigue]
For each, show:
- Character count
- Primary keyword identified
- CTA used
---
Page content:
{{input_content}}
使用例:
入力: リモートワークの生産性向上に関するブログ記事 出力: 3つのメタディスクリプション(例: "Boost your remote work productivity with 7 proven strategies. Learn how top performers stay focused and achieve more from home. Start today.")
プロのヒント: ブランドキーワードとトーンのガイドラインを含むSpaceを作成すると、SEOの語調を一貫させられます。
レシピ10: SNSスレッド作成ツール
カテゴリー: ライティング 難易度: 上級 推奨プロバイダー: Claude(創造的で魅力的なコンテンツ)
できること: 長文コンテンツを、魅力的なSNSスレッド形式(Twitter/Xスタイル)に変換します。
コマンド:
- Name:
social-thread-creator - Execution Mode: Combination
Instruction:
Transform this content into an engaging social media thread (Twitter/X format).
Thread structure:
1. **Hook tweet**: Attention-grabbing opener (no more than 240 chars)
2. **Body tweets**: 5-10 tweets with the main content
3. **Closer**: Call-to-action or summary
Tweet rules:
- Max 280 characters each (aim for 240 for retweet room)
- Number each tweet (1/, 2/, etc.)
- Use line breaks for readability
- Include 1-2 relevant emojis per tweet (subtle, not excessive)
- End hook with "A thread:" or similar
Content guidelines:
- Start with a bold claim or question
- Use "Here's what I learned:" or "Here's the thing:" transitions
- Include specific examples or data points
- Make each tweet standalone but connected
- End with engagement prompt ("What's your experience?")
---
Source content:
{{input_content}}
Output the complete thread ready to post.
使用例:
入力: 生産性システムに関する800語の記事 出力: フック・重要な洞察・エンゲージメントを促すクロージャーを含む8ツイートのスレッド
プロのヒント: 文字数を確認するために、まずメモアプリでスレッドをテストしましょう。
コードのレシピ
レシピ11: 重要度評価付きコードレビューツール
カテゴリー: コード 難易度: 上級 推奨プロバイダー: Claude(優れたコード理解力)またはGPT-5.4
できること: カテゴリー分けされた課題と重要度評価を含む、包括的なコードレビューを実施します。
コマンド:
- Name:
code-review - Execution Mode: Combination
Instruction:
You are a senior software engineer conducting a thorough code review.
Review the following code and provide feedback in this format:
## Code Review Summary
**Language/Framework**: [Detected]
**Overall Quality**: [1-10 score]
**Review Priority**: [Critical/High/Medium/Low]
## Issues Found
### Critical (Must Fix)
| Line | Issue | Recommendation |
|------|-------|----------------|
| [#] | [Problem] | [How to fix] |
### High (Should Fix)
| Line | Issue | Recommendation |
|------|-------|----------------|
### Medium (Consider Fixing)
| Line | Issue | Recommendation |
|------|-------|----------------|
### Low (Nitpicks)
| Line | Issue | Recommendation |
|------|-------|----------------|
## Security Concerns
- [Any security issues]
## Performance Notes
- [Any performance implications]
## What's Done Well
- [Positive observations]
## Suggested Refactoring
[Improved code snippet if applicable]
---
Review criteria:
- Security vulnerabilities
- Performance issues
- Code readability and maintainability
- Error handling
- Naming conventions
- SOLID principles adherence
- Potential bugs or edge cases
Code to review:
{{input_content}}
使用例:
入力: ネストしたループとエラーハンドリングのない50行の関数 出力: 2件のクリティカルな課題(nullチェック漏れ)、3件のハイ課題(パフォーマンス)を含む詳細なレビューと、リファクタリング後のコードサンプル
プロのヒント: チームのコーディング規約を含むSpaceをアタッチすると、プロジェクト固有のレビューができ ます。
レシピ12: ユニットテスト生成ツール
カテゴリー: コード 難易度: 上級 推奨プロバイダー: ClaudeまたはGPT-5.4(テストパターンの知識に強みがあります)
できること: エッジケースを含む、対象コードの包括的なユニットテストを生成します。
コマンド:
- Name:
generate-unit-tests - Execution Mode: Combination
Instruction:
You are a QA engineer specializing in unit test creation.
Generate comprehensive unit tests for the following code.
Test requirements:
1. Use the appropriate testing framework for the detected language:
- C#: xUnit or NUnit
- JavaScript/TypeScript: Jest
- Python: pytest
- Java: JUnit 5
2. Include test categories:
- Happy path (normal operation)
- Edge cases (boundaries, empty inputs)
- Error cases (invalid inputs, exceptions)
- Null/undefined handling
3. Follow AAA pattern (Arrange, Act, Assert)
4. Use descriptive test names following:
[MethodName]_[Scenario]_[ExpectedResult]
5. Include mocking if external dependencies are detected
Output format:
```[language]
// Test file: [FileName].Tests.[ext]
[Complete test code with all test cases]
Test Coverage Summary
| Method | Happy Path | Edge Cases | Error Cases |
|---|---|---|---|
| [Name] | [count] | [count] | [count] |
Additional Test Recommendations
- [Any manual testing needed]
- [Integration test suggestions]
Code to test: {{input_content}}
**使用例**:
> 入力: `CalculateDiscount(price, customerType)`という関数
> 出力: 有効な割引・価格ゼロ・価格が負・不明な顧客タイプ・null入力をカバーする15件のユニットテスト
**プロのヒント**: 出力を最適化するために、言語ごとのバリエーション(例: `generate-tests-csharp`)を作成しましょう。
---
### レシピ13: APIドキュメント作成ツール
**カテゴリー**: コード
**難易度**: 中級
**推奨プロバイダー**: GPT-5.4またはClaude
**できること**: コードまたはエンドポイントの定義から、包括的なAPIドキュメントを生成します。
**コマンド**:
- **Name**: `api-documentation`
- **Execution Mode**: Combination
**Instruction**:
You are a technical writer creating API documentation.
Generate professional API documentation for the following code/endpoint.
Documentation format:
[Endpoint/Method Name]
Overview
[2-3 sentence description of what this API does]
Endpoint
[HTTP_METHOD] /path/to/endpoint
Authentication
[Required auth method or "None"]
Request
Headers
| Header | Type | Required | Description |
|---|
Path Parameters
| Parameter | Type | Required | Description |
|---|
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|
Request Body
{
"field": "type - description"
}
Response
Success Response (200 OK)
{
"example": "response"
}
Error Responses
| Status Code | Description | Example |
|---|---|---|
| 400 | Bad Request | {"error": "..."} |
| 401 | Unauthorized | {"error": "..."} |
| 404 | Not Found | {"error": "..."} |
Example Usage
cURL
curl -X [METHOD] '[URL]' \
-H 'Authorization: Bearer [TOKEN]' \
-H 'Content-Type: application/json' \
-d '[BODY]'
JavaScript
const response = await fetch('[URL]', { ... });
Notes
- [Any important considerations]
- [Rate limiting info if applicable]
Code/endpoint to document: {{input_content}}
**使用例**:
> 入力: ユーザー登録用のC#コントローラーアクション
> 出力: リクエスト/レスポンスのスキーマ、エラーコード、呼び出し例を含む完全なAPIドキュメント
**プロのヒント**: APIスタイルガイドのSpaceをアタッチすると、エンドポイント間でドキュメントの一貫性を保てます。
---
### レシピ14: SQLクエリ最適化ツール
**カテゴリー**: コード
**難易度**: 上級
**推奨プロバイダー**: Claude(優れた分析力)
**できること**: SQLクエリを分析し、パフォーマンス最適化を提案します。
**コマンド**:
- **Name**: `sql-optimizer`
- **Execution Mode**: Combination
**Instruction**:
You are a database performance expert analyzing SQL queries.
Analyze this SQL query and provide optimization recommendations.
Query Analysis
Original Query
[echo back the query formatted properly]
Detected Issues
| Issue | Severity | Impact | Line |
|---|---|---|---|
| [Problem] | [High/Medium/Low] | [Performance impact] | [#] |
Optimization Recommendations
- [Optimization Name]
- Problem: [What's wrong]
- Solution: [How to fix]
- Expected improvement: [Estimated gain]
Optimized Query
[Rewritten query with optimizations]
Index Recommendations
-- Recommended indexes
CREATE INDEX idx_[name] ON [table]([columns]);
Execution Plan Considerations
- [Tips for analyzing the execution plan]
Before/After Comparison
| Metric | Original (Est.) | Optimized (Est.) |
|---|---|---|
| Table scans | [#] | [#] |
| Index usage | [%] | [%] |
| Estimated rows | [#] | [#] |
Optimization checks:
- Missing indexes
- N+1 query patterns
- Unnecessary columns (SELECT *)
- Subquery vs JOIN efficiency
- Proper use of EXISTS vs IN
- Index-friendly WHERE clauses
- LIKE pattern optimization
SQL query to optimize: {{input_content}}
**使用例**:
> 入力: インデックスが張られていない列にWHERE句がある複雑なJOINクエリ
> 出力: 3件のインデックス推奨と、約70%のパフォーマンス改善見込みを含む最適化されたクエリ
**プロのヒント**: データベーススキーマをSpaceに含めておくと、テーブルを踏まえた推奨が得られます。
---
### レシピ15: 正規表現パターン生成ツール
**カテゴリー**: コード
**難易度**: 中級
**推奨プロバイダー**: どのプロバイダーでも(パターンマッチングはよく理解されている領域 です)
**できること**: 自然言語の説明から、テストケース付きの正規表現パターンを生成します。
**コマンド**:
- **Name**: `regex-generator`
- **Execution Mode**: Combination
**Instruction**:
You are a regex expert. Generate a regular expression pattern based on the description.
Regex Pattern
Description Understood
[Paraphrase what the user is looking for]
Pattern
[REGEX_PATTERN]
Pattern Breakdown
| Component | Matches | Purpose |
|---|---|---|
| [part] | [what it matches] | [why] |
Flavor Compatibility
- JavaScript: [Yes/No - modifications if needed]
- Python: [Yes/No - modifications if needed]
- .NET/C#: [Yes/No - modifications if needed]
- PCRE (PHP): [Yes/No - modifications if needed]
Test Cases
| Input | Should Match | Result |
|---|---|---|
| [test string] | Yes | [matched portion] |
| [test string] | No | [no match] |
Code Examples
JavaScript:
const regex = /[PATTERN]/g;
const matches = text.match(regex);
Python:
import re
pattern = r'[PATTERN]'
matches = re.findall(pattern, text)
C#:
var regex = new Regex(@"[PATTERN]");
var matches = regex.Matches(text);
Edge Cases to Consider
- [Potential false positives]
- [Potential false negatives]
Description: {{input_content}}
**使用例**:
> 入力: "Match email addresses but not those from gmail.com"
> 出力: 否定先読みを使った完 全な正規表現、解説、テストケース、3言語分のコードサンプル
**プロのヒント**: 本番投入前に、必ず生成されたパターンを実データでテストしましょう。
---
### レシピ16: エラーメッセージ改善ツール
**カテゴリー**: コード
**難易度**: 初級
**推奨プロバイダー**: どのプロバイダーでも
**できること**: 専門的なエラーメッセージを、ユーザーフレンドリーで対応可能な文言に書き換えます。
**コマンド**:
- **Name**: `error-message-improver`
- **Execution Mode**: Combination
**Instruction**:
You are a UX writer specializing in error messages.
Transform this technical error into a user-friendly message.
Original Error
{{input_content}}
Improved Error Messages
User-Facing Message
Title: [Short, clear title - 5 words max] Message: [Friendly explanation - 1-2 sentences] Action: [What the user should do]
Full Format
[Title]
[Message explaining what happened in plain terms]
What you can do:
- [Action 1]
- [Action 2 if applicable]
Need help? [Contact support / Error code: XXX]
Variations
Toast/Snackbar (short): [Under 60 characters with action]
Modal/Dialog (detailed): [Full explanation with steps]
Inline/Field-level: [Adjacent to the input field]
Technical Logging
// For developers (log level: ERROR)
[Original error + context for debugging]
Guidelines applied:
- Blame the system, not the user
- Avoid technical jargon
- Provide clear next steps
- Include error codes for support reference
- Use positive framing when possible
**使用例**:
> 入力: "NullReferenceException: Object reference not set to an instance of an object at UserService.GetProfile()"
> 出力: "We couldn't load your profile. Please try refreshing the page. If the problem continues, contact support with code NRE-USR-001."
**プロのヒント**: 改善したメッセージをSpaceに集めておくと、一貫性のあるエラーメッセージ集を構築できます。
---
### レシピ17: コードコメント生成ツール
**カテゴリー**: コード
**難易度**: 初級
**推奨プロバイダー**: どのプロバイダーでも
**できること**: コメントのないコードに、包括的なコメントを追加します。
**コマンド**:
- **Name**: `add-code-comments`
- **Execution Mode**: Combination
**Instruction**:
Add comprehensive comments to the following code.
Commenting guidelines:
- Add file/class header documentation
- Document all public methods with:
- Purpose description
- Parameter explanations
- Return value description
- Exception documentation (if applicable)
- Add inline comments for complex logic
- Use the appropriate comment style for the detected language:
- C#: XML documentation (///) for public members
- JavaScript/TypeScript: JSDoc format
- Python: Docstrings (Google style)
- Java: Javadoc
Do NOT:
- State the obvious ("increment i by 1")
- Over-comment simple code
- Change any code logic
Output the complete code with comments added.
Code to comment: {{input_content}}
**使用例**:
> 入力: コメントのないC#サービスクラス
> 出力: すべてのパブリックメソッドにXMLドキュメントコメントが付き、複雑なアルゴリズムにはインラインコメントが付いた同じクラス
**プロのヒント**: コードレビューの前にこれを使うと、ドキュメント基準を確実に満たせます。
---
### レシピ18: リファクタリング提案ツール
**カテゴリー**: コード
**難易度**: 上級
**推奨プロバイダー**: Claude(優れたパターン認識力)
**できること**: コードを分析し、Before/After例を添えて具体的なリファクタリングの機会を提案します。
**コマンド**:
- **Name**: `refactoring-suggestions`
- **Execution Mode**: Combination
**Instruction**:
You are a software architect specializing in code quality and refactoring.
Analyze this code and suggest refactoring opportunities.
Refactoring Analysis
Code Quality Score: [1-10]
Identified Opportunities
1. [Refactoring Name] - [Priority: High/Medium/Low]
Pattern: [e.g., Extract Method, Replace Conditional with Polymorphism] Location: Lines [X-Y] Benefit: [Why this improves the code]
Before:
[Current code snippet]
After:
[Refactored code snippet]
Steps to implement:
- [Step 1]
- [Step 2]
[Repeat for each opportunity]
SOLID Principles Assessment
| Principle | Current | After Refactoring |
|---|---|---|
| Single Responsibility | [1-5] | [1-5] |
| Open/Closed | [1-5] | [1-5] |
| Liskov Substitution | [1-5] | [1-5] |
| Interface Segregation | [1-5] | [1-5] |
| Dependency Inversion | [1-5] | [1-5] |
Design Pattern Opportunities
- [Pattern that could be applied and why]
Recommended Refactoring Order
- [Most impactful change first]
- [Second priority]
- [Third priority]
Code to analyze: {{input_content}}
**使用例**:
> 入力: 複数の責務を持つ200行のメソッド
> 出力: Extract Method、Introduce Parameter Object、Replace Conditional with Strategyを含む5件のリファクタリング提案
**プロのヒント**: アーキテクチャ決定記録(ADR)をSpaceにアタッチすると、コンテキストを踏まえた提案が得られます。
---
### レシピ19: セキュリティ脆弱性スキャナー
**カテゴリー**: コード
**難易度**: エキスパート
**推奨プロバイダー**: Claude(徹底した分析力)
**できること**: コード内の一般的なセキュリティ脆弱性をスキャンし、修正方法を提示します。
**コマンド**:
- **Name**: `security-scan`
- **Execution Mode**: Combination
**Instruction**:
You are a security engineer performing a code security audit.
Scan the following code for security vulnerabilities.
Security Audit Report
Risk Summary
| Severity | Count | Immediate Action |
|---|---|---|
| Critical | [#] | [Required/Not Required] |
| High | [#] | [Required/Not Required] |
| Medium | [#] | [Recommended] |
| Low | [#] | [Optional] |
Vulnerabilities Found
[VULN-001] [Vulnerability Name]
Severity: [Critical/High/Medium/Low] CWE: [CWE-XXX if applicable] OWASP Category: [e.g., A1:2021-Injection] Location: Line [#]
Description: [What the vulnerability is and how it could be exploited]
Vulnerable Code:
[The problematic code]
Remediation:
[Fixed code]
Additional Mitigations:
- [Defense in depth measures]
[Repeat for each vulnerability]
Security Best Practices Missing
- [Practice not implemented]
- [Practice not implemented]
Compliance Notes
- GDPR: [Relevant findings]
- PCI-DSS: [Relevant findings]
- HIPAA: [Relevant findings]
Recommended Security Libraries
| Purpose | Library | Why |
|---|---|---|
| [Purpose] | [Library name] | [Benefit] |
Checks performed:
- SQL Injection
- XSS (Cross-Site Scripting)
- CSRF vulnerabilities
- Insecure deserialization
- Hardcoded secrets/credentials
- Path traversal
- Command injection
- Insecure cryptography
- Authentication/authorization flaws
- Information disclosure
Code to scan: {{input_content}}
**使用例**:
> 入力: ユーザー入力を扱うAPIエンドポイント
> 出力: 3件の脆弱性(SQLインジェクション、入力検証の欠如、ハードコードされたAPIキー)と具体的な修正案
**プロのヒント**: 本番反映前にすべてのコードでこれを実行しましょう。必須のレビューステップにすることをおすすめします。
---
### レシピ20: パフォーマンス最適化アドバイザー
**カテゴリー**: コード
**難易度**: エキスパート
**推奨プロバイダー**: Claude(深いアルゴリズム分析力)
**できること**: パフォーマンスのボトルネックを特定し、計算量分析とともに最適化案を提案します。
**コマンド**:
- **Name**: `performance-advisor`
- **Execution Mode**: Combination
**Instruction**:
You are a performance engineer analyzing code for optimization opportunities.