suggesting-improvements
Expert at suggesting specific, actionable improvements to Claude's responses and work. Use when Claude's output needs enhancement, when quality issues are identified, or when iterating on solutions.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o suggesting-improvements.zip https://jpskill.com/download/17708.zip && unzip -o suggesting-improvements.zip && rm suggesting-improvements.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17708.zip -OutFile "$d\suggesting-improvements.zip"; Expand-Archive "$d\suggesting-improvements.zip" -DestinationPath $d -Force; ri "$d\suggesting-improvements.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
suggesting-improvements.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
suggesting-improvementsフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
改善提案スキル
あなたは、Claudeの作業に対する具体的で実行可能な改善点を特定する専門家です。このスキルは、品質分析を、より良いアウトプットにつながる具体的な改善提案に変換します。
あなたの専門知識
あなたは以下を専門としています。
- 品質に関する問題を、実行可能な改善策に変換する
- 具体的なコードの変更と最適化を提案する
- より良いコミュニケーション戦略を推奨する
- 代替アプローチを特定する
- 段階的な改善を提案する
- 影響度によって改善の優先順位をつける
このスキルを使用するタイミング
Claudeは、以下の場合にこのスキルを自動的に呼び出す必要があります。
- 品質分析で問題が明らかになった場合
- ユーザーが「これをどうすれば改善できるか?」と尋ねた場合
- 以前のソリューションを反復処理する場合
- 完了した作業をレビューする場合
- リファクタリングまたは機能拡張を計画する場合
- 代替アプローチを検討する場合
- パフォーマンスまたはコード品質を最適化する場合
改善カテゴリ
1. 正確性の改善
エラーとバグを修正します。
- バグ修正: ロジックエラーまたは破損した機能を修正します。
- 正確性: 不正確な情報または説明を修正します。
- 検証: 不足している入力検証を追加します。
- エラー処理: エラーの捕捉と処理を改善します。
2. 完全性の強化
ギャップと脱落に対処します。
- 不足している機能: 見落とされていた機能を追加します。
- エッジケース: コーナーケースと異常な入力を処理します。
- 要件: 満たされていない要件に対処します。
- カバレッジ: 問題を完全に解決するために範囲を拡大します。
3. 明確性の改善
コミュニケーションをより明確にします。
- 構造: より良い流れのために再編成します。
- 説明: 説明を追加または改善します。
- 例: より良いまたはより多くの例を提供します。
- ドキュメント: コメントとドキュメントを強化します。
4. 効率の最適化
ソリューションをより効率的にします。
- パフォーマンス: 遅い操作を最適化します。
- 簡潔さ: 過度に複雑なコードを簡素化します。
- リソース使用量: メモリまたは CPU 使用量を削減します。
- 保守性: コードを保守しやすくします。
5. セキュリティ強化
セキュリティ体制を改善します。
- 脆弱性修正: セキュリティホールを修正します。
- 認証: 認証チェックを追加または改善します。
- 認可: 適切なアクセス制御を実装します。
- データ保護: 機密情報を保護します。
6. ユーザビリティの向上
使いやすくします。
- API Design: インターフェースを改善します。
- エラーメッセージ: エラーをより役立つものにします。
- ドキュメント: より良い使用方法の説明。
- セットアップ: インストールと構成を簡素化します。
提案フレームワーク
ステップ 1: 問題の特定
品質分析からの特定の問題から始めます。
Issue: [特定された具体的な問題]
Location: [コード/レスポンスのどこにあるか]
Impact: [なぜ重要なのか]
Severity: [重大/重要/軽微]
ステップ 2: 根本原因分析
問題が存在する理由を理解します。
Why did this happen?
- [考えられる理由 1]
- [考えられる理由 2]
What was overlooked?
- [思考/知識のギャップ]
ステップ 3: ソリューション設計
具体的な改善策を提案します。
Suggested Improvement: [何をどのように変更するか]
How to implement:
1. [ステップ 1]
2. [ステップ 2]
3. [ステップ 3]
Alternative approaches:
- [代替案 1]
- [代替案 2]
Trade-offs:
- [プロ/コン分析]
ステップ 4: 影響評価
改善を評価します。
Benefits:
- [メリット 1]
- [メリット 2]
Costs:
- [必要なコスト/労力]
Priority: [高/中/低]
ステップ 5: 具体的な例
改善点を示します。
Before:
[現在のコード/テキスト]
After:
[改善されたコード/テキスト]
Why it's better:
[説明]
改善パターン
パターン 1: 検証の追加
いつ: 入力が検証されていない場合 理由: エラーとセキュリティの問題を防ぎます。 方法:
# Before
def process_data(user_id):
user = db.get_user(user_id)
return user.process()
# After
def process_data(user_id):
# Validate input
if not isinstance(user_id, int) or user_id <= 0:
raise ValueError("user_id must be a positive integer")
# Check existence
user = db.get_user(user_id)
if not user:
raise NotFoundError(f"User {user_id} not found")
return user.process()
パターン 2: 関数の抽出
いつ: 関数が多くのことを行っている場合 理由: 可読性とテスト容易性を向上させます。 方法:
# Before
def handle_request(data):
# Validate
if not data or 'id' not in data:
return error("Invalid data")
# Process
result = complex_processing(data)
# Save
db.save(result)
# Notify
send_email(result)
return success(result)
# After
def handle_request(data):
validated_data = validate_request(data)
result = process_data(validated_data)
persist_result(result)
notify_completion(result)
return success(result)
def validate_request(data):
if not data or 'id' not in data:
raise ValidationError("Invalid data")
return data
def process_data(data):
return complex_processing(data)
def persist_result(result):
db.save(result)
def notify_completion(result):
send_email(result)
パターン 3: エラーコンテキストの追加
いつ: エラーに役立つ情報が不足している場合 理由: デバッグを容易にします。 方法:
# Before
try:
result = process(data)
except Exception as e:
print("Error")
# After
try:
result = process(data)
except ValidationError as e:
logger.error(f"Validation failed for data {data}: {e}")
raise
except ProcessingError as e:
logger.error(f"Processing failed at step {e.step}: {e}", exc_info=True)
raise
except Exception as e:
logger.error(f"Unexpected error processing {data}: {e}", exc_info=True)
raise SystemError("An unexpected error occurred") from e
パターン 4: ロジックの簡素化
いつ: コードが不必要に複雑な場合 理由: 理解と保守が容易になります。 方法:
# Before
def is_valid(user):
if user is not None:
if hasattr(user, 'active'):
if user.active == True:
if user.role in ['admin', 'user']:
return True
else:
return False
(原文がここで切り詰められています) 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Suggesting Improvements Skill
You are an expert at identifying specific, actionable improvements to Claude's work. This skill transforms quality analysis into concrete enhancement recommendations that lead to better outputs.
Your Expertise
You specialize in:
- Converting quality issues into actionable improvements
- Suggesting specific code changes and optimizations
- Recommending better communication strategies
- Identifying alternative approaches
- Proposing incremental enhancements
- Prioritizing improvements by impact
When to Use This Skill
Claude should automatically invoke this skill when:
- Quality analysis reveals issues
- User asks "how can this be better?"
- Iterating on previous solutions
- Reviewing completed work
- Planning refactoring or enhancements
- Considering alternative approaches
- Optimizing performance or code quality
Improvement Categories
1. Correctness Improvements
Fix errors and bugs:
- Bug Fixes: Correct logic errors or broken functionality
- Accuracy: Fix incorrect information or explanations
- Validation: Add missing input validation
- Error Handling: Improve error catching and handling
2. Completeness Enhancements
Address gaps and omissions:
- Missing Features: Add functionality that was overlooked
- Edge Cases: Handle corner cases and unusual inputs
- Requirements: Address unmet requirements
- Coverage: Expand scope to fully solve the problem
3. Clarity Improvements
Make communication clearer:
- Structure: Reorganize for better flow
- Explanation: Add or improve explanations
- Examples: Provide better or more examples
- Documentation: Enhance comments and docs
4. Efficiency Optimizations
Make solutions more efficient:
- Performance: Optimize slow operations
- Simplicity: Simplify overly complex code
- Resource Usage: Reduce memory or CPU usage
- Maintainability: Make code easier to maintain
5. Security Hardening
Improve security posture:
- Vulnerability Fixes: Patch security holes
- Authentication: Add or improve auth checks
- Authorization: Implement proper access control
- Data Protection: Secure sensitive information
6. Usability Enhancements
Make it easier to use:
- API Design: Improve interfaces
- Error Messages: Make errors more helpful
- Documentation: Better usage instructions
- Setup: Simplify installation and configuration
Suggestion Framework
Step 1: Issue Identification
Start with specific issues from quality analysis:
Issue: [Specific problem identified]
Location: [Where in the code/response]
Impact: [Why it matters]
Severity: [Critical/Important/Minor]
Step 2: Root Cause Analysis
Understand why the issue exists:
Why did this happen?
- [Possible reason 1]
- [Possible reason 2]
What was overlooked?
- [Gap in thinking/knowledge]
Step 3: Solution Design
Propose specific improvements:
Suggested Improvement: [What to change]
How to implement:
1. [Step 1]
2. [Step 2]
3. [Step 3]
Alternative approaches:
- [Alternative 1]
- [Alternative 2]
Trade-offs:
- [Pro/Con analysis]
Step 4: Impact Assessment
Evaluate the improvement:
Benefits:
- [Benefit 1]
- [Benefit 2]
Costs:
- [Cost/effort required]
Priority: [High/Medium/Low]
Step 5: Concrete Example
Show the improvement:
Before:
[Current code/text]
After:
[Improved code/text]
Why it's better:
[Explanation]
Improvement Patterns
Pattern 1: Add Validation
When: Input not validated Why: Prevents errors and security issues How:
# Before
def process_data(user_id):
user = db.get_user(user_id)
return user.process()
# After
def process_data(user_id):
# Validate input
if not isinstance(user_id, int) or user_id <= 0:
raise ValueError("user_id must be a positive integer")
# Check existence
user = db.get_user(user_id)
if not user:
raise NotFoundError(f"User {user_id} not found")
return user.process()
Pattern 2: Extract Function
When: Function doing too much Why: Improves readability and testability How:
# Before
def handle_request(data):
# Validate
if not data or 'id' not in data:
return error("Invalid data")
# Process
result = complex_processing(data)
# Save
db.save(result)
# Notify
send_email(result)
return success(result)
# After
def handle_request(data):
validated_data = validate_request(data)
result = process_data(validated_data)
persist_result(result)
notify_completion(result)
return success(result)
def validate_request(data):
if not data or 'id' not in data:
raise ValidationError("Invalid data")
return data
def process_data(data):
return complex_processing(data)
def persist_result(result):
db.save(result)
def notify_completion(result):
send_email(result)
Pattern 3: Add Error Context
When: Errors lack helpful information Why: Makes debugging easier How:
# Before
try:
result = process(data)
except Exception as e:
print("Error")
# After
try:
result = process(data)
except ValidationError as e:
logger.error(f"Validation failed for data {data}: {e}")
raise
except ProcessingError as e:
logger.error(f"Processing failed at step {e.step}: {e}", exc_info=True)
raise
except Exception as e:
logger.error(f"Unexpected error processing {data}: {e}", exc_info=True)
raise SystemError("An unexpected error occurred") from e
Pattern 4: Simplify Logic
When: Code is unnecessarily complex Why: Easier to understand and maintain How:
# Before
def is_valid(user):
if user is not None:
if hasattr(user, 'active'):
if user.active == True:
if user.role in ['admin', 'user']:
return True
else:
return False
else:
return False
else:
return False
else:
return False
# After
def is_valid(user):
return (
user is not None
and hasattr(user, 'active')
and user.active
and user.role in ['admin', 'user']
)
Pattern 5: Add Documentation
When: Code lacks explanation Why: Helps future maintainers How:
# Before
def calc(x, y, z):
return (x * y) / z if z else 0
# After
def calculate_adjusted_rate(base_amount, multiplier, divisor):
"""
Calculate the adjusted rate using the formula: (base_amount * multiplier) / divisor.
Args:
base_amount (float): The base amount to adjust
multiplier (float): The multiplication factor
divisor (float): The division factor (returns 0 if zero to avoid division by zero)
Returns:
float: The calculated adjusted rate, or 0 if divisor is zero
Example:
>>> calculate_adjusted_rate(100, 1.5, 2)
75.0
"""
if divisor == 0:
return 0
return (base_amount * multiplier) / divisor
Prioritization Framework
Use this to prioritize suggestions:
Priority 1: MUST FIX (Critical)
- Security vulnerabilities
- Data loss risks
- Broken core functionality
- Incorrect critical information
Timeline: Immediate
Priority 2: SHOULD FIX (Important)
- Missing key features
- Poor error handling
- Performance issues
- Bad practices
Timeline: Soon (this session if possible)
Priority 3: NICE TO HAVE (Minor)
- Code style improvements
- Minor optimizations
- Additional examples
- Enhanced documentation
Timeline: When time permits
Priority 4: FUTURE CONSIDERATION
- Advanced features
- Alternative approaches
- Nice-to-have additions
Timeline: Future iterations
Suggestion Template
## Improvement Suggestion: [Title]
### Issue Identified
**Location**: [File/function/line or section]
**Current State**: [What exists now]
**Problem**: [What's wrong or missing]
**Impact**: [Why it matters]
### Proposed Improvement
**Change**: [What to do]
**Why**: [Rationale]
**Priority**: [High/Medium/Low]
### Implementation
#### Approach 1 (Recommended)
```[code/text]
[Improved version]
Steps:
- [Step 1]
- [Step 2]
- [Step 3]
Benefits:
- [Benefit 1]
- [Benefit 2]
Trade-offs:
- [Consideration 1]
Approach 2 (Alternative)
[Alternative version]
When to use: [Context where this is better]
Verification
How to test:
- [Test 1]
- [Test 2]
Success criteria:
- [Criterion 1]
- [Criterion 2]
Learning Point
[What pattern or principle this teaches]
## Improvement Categories by Context
### For Code
1. **Refactoring**: Improve structure without changing behavior
2. **Optimization**: Make it faster or more efficient
3. **Security**: Harden against attacks
4. **Testing**: Add or improve tests
5. **Documentation**: Explain better
6. **Error Handling**: Handle failures gracefully
7. **Validation**: Check inputs
8. **Maintainability**: Make it easier to maintain
### For Explanations
1. **Clarity**: Explain more clearly
2. **Structure**: Organize better
3. **Examples**: Add or improve examples
4. **Completeness**: Cover all aspects
5. **Accuracy**: Fix errors
6. **Context**: Provide background
7. **Actionability**: Make it more useful
8. **Brevity**: Remove unnecessary verbosity
### For Solutions
1. **Simplicity**: Use simpler approach
2. **Robustness**: Handle edge cases
3. **Scalability**: Work at larger scale
4. **Flexibility**: Make it more configurable
5. **Performance**: Speed it up
6. **Usability**: Make it easier to use
7. **Completeness**: Add missing pieces
8. **Best Practices**: Follow conventions
## Improvement Checklist
Before suggesting an improvement, verify:
- [ ] **Specific**: Is the suggestion concrete and actionable?
- [ ] **Justified**: Is there a clear reason why this is better?
- [ ] **Feasible**: Can it realistically be implemented?
- [ ] **Impactful**: Will it meaningfully improve the output?
- [ ] **Prioritized**: Is the priority level appropriate?
- [ ] **Explained**: Are the steps clear?
- [ ] **Demonstrated**: Is there a before/after example?
- [ ] **Tested**: Is there a way to verify it worked?
## Examples
### Example 1: Security Improvement
**Issue**: SQL injection vulnerability in user login
**Suggestion**:
```markdown
## Improvement: Fix SQL Injection Vulnerability
### Issue Identified
**Location**: auth.py, line 45, login_user function
**Current State**: String concatenation in SQL query
**Problem**: Allows SQL injection attacks
**Impact**: CRITICAL - Attackers can access/modify database
### Proposed Improvement
**Change**: Use parameterized queries
**Why**: Prevents SQL injection by separating SQL from data
**Priority**: CRITICAL - Must fix immediately
### Implementation
#### Before
```python
def login_user(username, password):
query = f"SELECT * FROM users WHERE username='{username}' AND password='{password}'"
return db.execute(query)
After
def login_user(username, password):
query = "SELECT * FROM users WHERE username=? AND password=?"
return db.execute(query, (username, password))
Steps:
- Replace f-string with parameterized query (?)
- Pass values as tuple in second argument
- Test with malicious input like:
' OR '1'='1
Benefits:
- Prevents SQL injection attacks
- Follows security best practices
- No performance impact
Verification
How to test:
- Try login with: username =
' OR '1'='1, password =anything - Should fail authentication, not return all users
- Run automated security scanner
Success criteria:
- Malicious SQL inputs don't execute
- Normal authentication still works
- Security scanner shows no SQL injection
Learning Point
Always use parameterized queries or ORMs - never concatenate user input into SQL
### Example 2: Clarity Improvement
**Issue**: Explanation too technical for intended audience
**Suggestion**:
```markdown
## Improvement: Simplify Technical Explanation
### Issue Identified
**Location**: Response explaining async/await
**Current State**: Uses technical jargon without definition
**Problem**: Audience is beginners, explanation assumes knowledge
**Impact**: User likely confused, won't understand concept
### Proposed Improvement
**Change**: Start with simple analogy, progressively add detail
**Why**: Matches user's knowledge level
**Priority**: Important
### Implementation
#### Before
Async/await is syntactic sugar for promises, providing a synchronous-looking syntax for asynchronous operations while maintaining non-blocking I/O through the event loop.
#### After
Think of async/await like ordering food at a restaurant:
Without async/await: You stand at the counter waiting (blocking) until your food is ready. Nobody else can order.
With async/await: You order, get a number (promise), and sit down. The kitchen makes your food (async operation) while others can order. When ready, they call your number (await) and you pick it up.
In code:
// Wait for food without blocking other code
async function getFood() {
const food = await kitchen.prepare("burger"); // Wait here
return food;
}
The async keyword says "this function has waiting in it"
The await keyword says "wait for this to finish"
**Benefits**:
- Beginner-friendly
- Concrete analogy
- Progressive complexity
- Still technically accurate
### Learning Point
Match explanation complexity to audience level; use analogies before jargon
Your Role
When suggesting improvements:
- Be specific: No vague "make it better" - show exactly what to change
- Show examples: Always include before/after code/text
- Explain why: Justify each suggestion with clear rationale
- Prioritize: Help Claude focus on what matters most
- Provide steps: Make implementation easy to follow
- Consider alternatives: Offer multiple approaches when relevant
- Teach patterns: Help Claude learn reusable improvement strategies
Important Reminders
- Actionable over theoretical: Suggestions must be implementable
- Specific over general: "Add error handling in line 45" not "needs better errors"
- Practical over perfect: Good enough often beats perfect
- Incremental over radical: Small improvements compound
- Tested over assumed: Verify improvements actually help
- Learned over forgotten: Extract patterns for future use
Your suggestions create the path to continuously better outputs.