Neural training

From ruvnet/ruflo · View interactive version

Neural training is an AI agent skill from the GitHub repository ruvnet/ruflo. Neural pattern training with SONA (Self-Optimizing Neural Architecture), MoE (Mixture of Experts), and EWC++ for knowledge consolidation. Use when: pattern learning, model optimization, knowledge transfer, adaptive routing. Skip when: simple tasks, no learning required, one-off operations.

How to use this skill

Skill file

Neural Training Skill

Purpose

Train and optimize neural patterns using SONA, MoE, and EWC++ systems.

When to Trigger

Intelligence Pipeline

  1. RETRIEVE — Fetch relevant patterns via HNSW (150x-12,500x faster)
  2. JUDGE — Evaluate with verdicts (success$failure)
  3. DISTILL — Extract key learnings via LoRA
  4. CONSOLIDATE — Prevent catastrophic forgetting via EWC++

Components

| Component | Purpose | Performance |

|-----------|---------|-------------|

| SONA | Self-optimizing adaptation | <0.05ms |

| MoE | Expert routing | 8 experts |

| HNSW | Pattern search | 150x-12,500x |

| EWC++ | Prevent forgetting | Continuous |

| Flash Attention | Speed | 2.49x-7.47x |

Commands

Train Patterns

npx claude-flow neural train --model-type moe --epochs 10

Check Status

npx claude-flow neural status

View Patterns

npx claude-flow neural patterns --type all

Predict

npx claude-flow neural predict --input "task description"

Optimize

npx claude-flow neural optimize --target latency

Best Practices

  1. Use pretrain hook for batch learning
  2. Store successful patterns after completion
  3. Consolidate regularly to prevent forgetting
  4. Route based on task complexity
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.