neural-train
できること
このスキルは、うまくいったタスクからエージェントの学習パターンを訓練し、それを長期記憶にまとめます。自分のAIヘルパーが、自分の成功した作業から改善していくことを望む人向けです。
使う場面
- ✓成功したタスクが終わり、うまくいった点を記録したいとき。
- ✓十分な数のタスクが完了し、教訓をまとめるべきとき。
- ✓独自の学習アダプターを持つ新しい領域を訓練したいとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/neural-train/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“直前に終えたタスクから学んで、次に似た作業をエージェントがより上手に行えるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、タスクのトラジェクトリーを記録し、成功か失敗かを印付けしてから、教訓を抽出します。その教訓を統合し、結果をもとにパターンモデルを訓練することもできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Neural Training
Train and consolidate neural patterns. Implements the DISTILL and CONSOLIDATE phases of the 4-step intelligence pipeline.
When to use
- After completing a successful task — capture what worked.
- After accumulating ≥10 task completions — run consolidation to fold patterns into long-term storage.
- When training a new domain — create a MicroLoRA adapter for it.
Standard flow (DISTILL)
- Check current neural status —
mcp__plugin_ruflo-core_ruflo__neural_status. - Start a trajectory —
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-startwith the task context. - Record steps — for each significant action,
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-step. - End trajectory —
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_trajectory-endwith{ trajectoryId, success: true|false, feedback? }(the tool takes a booleansuccess, not a verdict string). - Learn from the trajectory —
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_learn(optionally{ trajectoryIds: [...] }). It runs a distill + EWC++ consolidation cycle;consolidatedefaults to true. - Train patterns —
mcp__plugin_ruflo-core_ruflo__neural_trainwith{ modelType: "classifier", data: [{ "text": "<what the task was>", "label": "<outcome or lesson>" }] }(modelTypeis required:moe|transformer|classifier|embedding). It only learns from thedatayou pass: it does not read trajectories, SONA or the ReasoningBank, and withoutdatait answerssuccess: false, status: "empty"(ruflo 3.56.9 and earlier reportedstatus: "ready"withpatternsStored: 0). The CLI form isneural train --pattern coordination --epochs 10. - Store patterns —
mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-store. - Verify —
mcp__plugin_ruflo-core_ruflo__neural_patternswith{ action: "list" }lists only whatneural_trainstored. What steps 2-5 and 7 learned (trajectories, SONA, ReasoningBank,hooks_intelligence_pattern-store) is a separate store: check it withmcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-searchorhooks_intelligence_stats, notneural_patternsorneural_predict.neural_predictreturns a match only above a cosine-similarity floor (default 0.5,minSimilarityto change it) and an emptypredictionslist otherwise.
SONA adaptation (single-domain, <0.05ms)
For real-time micro-adaptation:
# ruvllm_sona_create returns { sonaId }; pass it to ruvllm_sona_adapt with a 0..1 quality signal
npx @claude-flow/cli@latest mcp exec -t ruvllm_sona_create -p '{"hiddenDim": 256}'
npx @claude-flow/cli@latest mcp exec -t ruvllm_sona_adapt -p '{"sonaId": "<id from create>", "quality": 0.9}'
MicroLoRA adaptation (multi-domain)
When you have ≥3 distinct domains, create a MicroLoRA adapter per domain rather than overloading SONA:
# Create the adapter: returns { loraId }. inputDim and outputDim are required
npx @claude-flow/cli@latest mcp exec -t ruvllm_microlora_create -p '{"inputDim": 384, "outputDim": 384, "rank": 4}'
# Adapt with a 0..1 quality signal (loraId and quality are required)
npx @claude-flow/cli@latest mcp exec -t ruvllm_microlora_adapt -p '{"loraId": "<id from create>", "quality": 0.9}'
ruvllm_microlora_adapt has no consolidate option. EWC++ consolidation is a separate call: hooks_intelligence_learn (runs a distill + EWC++ cycle, consolidate defaults to true) or agentdb_consolidate, below.
CONSOLIDATE phase (separate from training)
After every ~10 trajectory completions, run a full consolidation pass:
npx @claude-flow/cli@latest mcp exec -t agentdb_consolidate
npx @claude-flow/cli@latest mcp exec -t neural_compress # storage efficiency
This folds patterns into long-term storage under EWC++ semantics.
Bootstrapping from scratch
If the system has no learned patterns yet:
# hooks_pretrain analyses the repository: { path, depth: shallow|medium|deep, skipCache }
npx @claude-flow/cli@latest mcp exec -t hooks_pretrain -p '{"path": ".", "depth": "medium"}'
# hooks_build-agents generates agent configs: { focus: v3-implementation|security|performance|all, outputDir, format: yaml|json, persist }
npx @claude-flow/cli@latest mcp exec -t hooks_build-agents -p '{"focus": "all"}'
hooks_pretrain writes to the patterns (plural) namespace — distinct from the pattern (singular) ReasoningBank target. See ruflo-agentdb ADR-0001 for the n
よくある質問
いつ統合すべきですか?
ソースは、10件以上のタスクを完了した後に統合を実行するよう提案しています。
訓練項目はどのような形ですか?
各項目は、タスクのテキストによる説明と、その結果または教訓のラベルを持ちます。
訓練の状況を確認できますか?
はい。状態のステップで、ニューラルパターンの現在の状態が示されます。
詳細
作者による元の説明
Train SONA + MicroLoRA neural patterns from successful task completions; runs the DISTILL + CONSOLIDATE phases of the 4-step pipeline
repo: ruvnet/ruflo
人気
- GitHubのスター
- 81k
- ランキング
- #1631
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。