mcpField
R
reasoning

reasoning

github.com/alicoder001エージェントワークフロー49 回インストール
リポジトリ

reasoning について

複雑な問題を段階的に解き、最終確認を行うためのエージェント向け推論スキルです。検証方法とよくある推論ミスも示します。

主な機能

  1. 01問題を段階的に分解
  2. 02自己確認チェックリスト
  3. 03複数の検証方法
  4. 04よくある推論ミスの提示

活用シーン

  1. 01複雑なタスクの解決手順を計画
  2. 02アルゴリズムやコードの論理を確認
  3. 03回答の見落としや境界条件を点検

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/alicoder001/agent-skills --skill reasoning

インストール後、Claude Code で/reasoningを入力して読み込まれたか確認します。

同梱ファイルagents/openai.yaml

詳細

推論パターン

正確な問題解決のための体系的な思考。

指示

1. Chain-of-Thought(CoT)

複雑な問題を明示的な推論ステップに分解します。

PROBLEM → ANALYZE → DECOMPOSE → SOLVE STEPS → VERIFY → SYNTHESIZE
## Thinking Process

1. **Understand**: What is being asked?
2. **Identify**: What information do I have?
3. **Plan**: What steps will solve this?
4. **Execute**: Work through each step
5. **Verify**: Is the solution correct?
2. 自己反省プロトコル

出力を確定する前に、必ず次のことを行います。

## Reflection Checklist

- [ ] Does this answer the actual question?
- [ ] Are there any logical errors?
- [ ] Did I miss edge cases?
- [ ] Is this the simplest solution?
- [ ] Would a senior developer approve this?
3. 問題の分解
// ❌ Bad: Trying to solve everything at once
function solveComplexProblem() {
  // 500 lines of tangled logic
}

// ✅ Good: Decomposed into clear steps
function solveComplexProblem() {
  const parsed = parseInput();
  const validated = validateData(parsed);
  const processed = processData(validated);
  return formatOutput(processed);
}
4. 検証戦略
戦略使用する場面
トレースアルゴリズムのロジック
エッジケース入力の検証
型チェックTypeScript コード
ユニットテスト重要な関数
ドライラン複雑なフロー
5. エラー検出
## Common Reasoning Errors

1. **Assumption Error**: Assuming facts not stated
2. **Logic Gap**: Missing intermediate steps
3. **Scope Creep**: Solving wrong problem
4. **Premature Optimization**: Overcomplicating
5. **Confirmation Bias**: Ignoring alternatives
6. 推論テンプレート

複雑なタスクでは、次のテンプレートを使用します。

## Task: [Description]

### Understanding
- Goal: [What we need to achieve]
- Constraints: [Limitations]
- Inputs: [Available data]

### Approach
1. Step 1: [Description]
2. Step 2: [Description]
3. Step 3: [Description]

### Execution
[Work through each step]

### Verification
- [ ] Goal achieved
- [ ] Constraints satisfied
- [ ] No side effects

### Reflection
- What worked: [...]
- What could improve: [...]

参考資料

コメント