Files
affaan-m--everything-claude…/docs/ja-JP/commands/evolve.md
T
wehub-resource-sync d48cda4081
CI / Test (ubuntu-latest, Node 18.x, bun) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, npm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, pnpm) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 18.x, yarn) (push) Failing after 15m1s
CI / Test (ubuntu-latest, Node 20.x, bun) (push) Failing after 17m13s
CI / Test (ubuntu-latest, Node 20.x, npm) (push) Failing after 18m42s
CI / Test (ubuntu-latest, Node 20.x, pnpm) (push) Failing after 15m0s
CI / Test (ubuntu-latest, Node 20.x, yarn) (push) Failing after 49m44s
CI / Test (ubuntu-latest, Node 22.x, bun) (push) Failing after 51m55s
CI / Test (ubuntu-latest, Node 22.x, pnpm) (push) Failing after 21m57s
CI / Test (ubuntu-latest, Node 22.x, npm) (push) Failing after 37m39s
CI / Test (ubuntu-latest, Node 22.x, yarn) (push) Failing after 34m7s
CI / Validate Components (push) Failing after 37m15s
CI / Python Tests (push) Failing after 10m1s
CI / Security Scan (push) Failing after 10m1s
CI / Lint (push) Failing after 17m12s
CI / Coverage (push) Failing after 20m19s
CI / Test (macos-latest, Node 18.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 18.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 20.x, yarn) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, bun) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (macos-latest, Node 22.x, yarn) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, npm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, pnpm) (push) Has been cancelled
CI / Test (windows-latest, Node 22.x, yarn) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:55 +08:00

6.1 KiB

name, description, command
name description command
evolve 関連するinstinctsをスキル、コマンド、またはエージェントにクラスター化 true

Evolveコマンド

実装

プラグインルートパスを使用してinstinct CLIを実行:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" evolve [--generate]

またはCLAUDE_PLUGIN_ROOTが設定されていない場合(手動インストール):

python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py evolve [--generate]

instinctsを分析し、関連するものを上位レベルの構造にクラスター化します:

  • Commands: instinctsがユーザーが呼び出すアクションを記述する場合
  • Skills: instinctsが自動トリガーされる動作を記述する場合
  • Agents: instinctsが複雑な複数ステップのプロセスを記述する場合

使用方法

/evolve                    # すべてのinstinctsを分析して進化を提案
/evolve --domain testing   # testingドメインのinstinctsのみを進化
/evolve --dry-run          # 作成せずに作成される内容を表示
/evolve --threshold 5      # クラスター化に5以上の関連instinctsが必要

進化ルール

→ Command(ユーザー呼び出し)

instinctsがユーザーが明示的に要求するアクションを記述する場合:

  • 「ユーザーが...を求めるとき」に関する複数のinstincts
  • 「新しいXを作成するとき」のようなトリガーを持つinstincts
  • 繰り返し可能なシーケンスに従うinstincts

例:

  • new-table-step1: "データベーステーブルを追加するとき、マイグレーションを作成"
  • new-table-step2: "データベーステーブルを追加するとき、スキーマを更新"
  • new-table-step3: "データベーステーブルを追加するとき、型を再生成"

→ 作成: /new-tableコマンド

→ Skill(自動トリガー)

instinctsが自動的に発生すべき動作を記述する場合:

  • パターンマッチングトリガー
  • エラーハンドリング応答
  • コードスタイルの強制

例:

  • prefer-functional: "関数を書くとき、関数型スタイルを優先"
  • use-immutable: "状態を変更するとき、イミュータブルパターンを使用"
  • avoid-classes: "モジュールを設計するとき、クラスベースの設計を避ける"

→ 作成: functional-patternsスキル

→ Agent(深さ/分離が必要)

instinctsが分離の恩恵を受ける複雑な複数ステップのプロセスを記述する場合:

  • デバッグワークフロー
  • リファクタリングシーケンス
  • リサーチタスク

例:

  • debug-step1: "デバッグするとき、まずログを確認"
  • debug-step2: "デバッグするとき、失敗しているコンポーネントを分離"
  • debug-step3: "デバッグするとき、最小限の再現を作成"
  • debug-step4: "デバッグするとき、テストで修正を検証"

→ 作成: debuggerエージェント

実行内容

  1. ~/.claude/homunculus/instincts/からすべてのinstinctsを読み取る
  2. instinctsを以下でグループ化:
    • ドメインの類似性
    • トリガーパターンの重複
    • アクションシーケンスの関係
  3. 3以上の関連instinctsの各クラスターに対して:
    • 進化タイプを決定(command/skill/agent)
    • 適切なファイルを生成
    • ~/.claude/homunculus/evolved/{commands,skills,agents}/に保存
  4. 進化した構造をソースinstinctsにリンク

出力フォーマット

 進化分析
==================

進化の準備ができた3つのクラスターを発見:

## クラスター1: データベースマイグレーションワークフロー
Instincts: new-table-migration, update-schema, regenerate-types
タイプ: Command
信頼度: 85%(12件の観測に基づく)

作成: /new-tableコマンド
ファイル:
  - ~/.claude/homunculus/evolved/commands/new-table.md

## クラスター2: 関数型コードスタイル
Instincts: prefer-functional, use-immutable, avoid-classes, pure-functions
タイプ: Skill
信頼度: 78%(8件の観測に基づく)

作成: functional-patternsスキル
ファイル:
  - ~/.claude/homunculus/evolved/skills/functional-patterns.md

## クラスター3: デバッグプロセス
Instincts: debug-check-logs, debug-isolate, debug-reproduce, debug-verify
タイプ: Agent
信頼度: 72%(6件の観測に基づく)

作成: debuggerエージェント
ファイル:
  - ~/.claude/homunculus/evolved/agents/debugger.md

---
これらのファイルを作成するには`/evolve --execute`を実行してください。

フラグ

  • --execute: 実際に進化した構造を作成(デフォルトはプレビュー)
  • --dry-run: 作成せずにプレビュー
  • --domain <name>: 指定したドメインのinstinctsのみを進化
  • --threshold <n>: クラスターを形成するために必要な最小instincts数(デフォルト: 3)
  • --type <command|skill|agent>: 指定したタイプのみを作成

生成されるファイルフォーマット

Command

---
name: new-table
description: マイグレーション、スキーマ更新、型生成で新しいデータベーステーブルを作成
command: /new-table
evolved_from:
  - new-table-migration
  - update-schema
  - regenerate-types
---

# New Tableコマンド

[クラスター化されたinstinctsに基づいて生成されたコンテンツ]

## ステップ
1. ...
2. ...

Skill

---
name: functional-patterns
description: 関数型プログラミングパターンを強制
evolved_from:
  - prefer-functional
  - use-immutable
  - avoid-classes
---

# Functional Patternsスキル

[クラスター化されたinstinctsに基づいて生成されたコンテンツ]

Agent

---
name: debugger
description: 体系的なデバッグエージェント
model: sonnet
evolved_from:
  - debug-check-logs
  - debug-isolate
  - debug-reproduce
---

# Debuggerエージェント

[クラスター化されたinstinctsに基づいて生成されたコンテンツ]