neural-train

Trains SONA and MicroLoRA neural patterns from completed task trajectories.

70.1k|8.4k|Updated Jun 2, 2025
One-click install
npx skills add https://github.com/ruvnet/claude-flow --skill neural-train
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neural-train
Source: https://github.com/ruvnet/claude-flow/tree/main/plugins/ruflo-intelligence/skills/neural-train
Command: npx skills add https://github.com/ruvnet/claude-flow --skill neural-train

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It captures what worked during successful task executions and converts those trajectories into reusable neural patterns, preventing learned knowledge from being lost between sessions.

Core Features & Use Cases

  • Trajectory-Based Training: Record task steps as trajectories, then distill them into coordination, edit, or task patterns via the DISTILL phase.
  • SONA and MicroLoRA Adaptation: Apply real-time single-domain adaptation with SONA or create per-domain MicroLoRA adapters when working across three or more domains.
  • EWC++ Consolidation: Run periodic consolidation passes that fold patterns into long-term storage without catastrophic forgetting of earlier domains.
  • Use Case: After completing ten coding tasks, run the consolidation flow to fold accumulated patterns into AgentDB long-term storage and compress them for storage efficiency.

Quick Start

Ask the agent to check neural status, train coordination patterns for 10 epochs from recent task completions, and then verify the stored patterns.

Frequently Asked Questions about neural-train

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train neural patterns from completed tasks?

Record the task as a trajectory using the trajectory-start, trajectory-step, and trajectory-end hooks, then call neural_train with a pattern type such as coordination and an epoch count. Verify the result with neural_patterns to confirm the patterns were stored.

When should I use MicroLoRA instead of SONA adaptation?

Use SONA for single-domain, real-time micro-adaptation under 0.05ms latency. Switch to MicroLoRA when you have three or more distinct domains, creating one adapter per domain so training in one domain does not overload the others.

How does the consolidation phase prevent catastrophic forgetting?

The consolidate flag triggers EWC++ on weight deltas, which protects previously learned domain weights while applying new training. Run agentdb_consolidate after roughly every ten trajectory completions to fold patterns into long-term storage.

How do I bootstrap neural patterns from scratch?

Call hooks_pretrain with a model type such as moe and an epoch count, then run hooks_build-agents with the agent types you need. Pretraining writes to the plural patterns namespace, distinct from the singular pattern ReasoningBank target.

Can I reset the intelligence state for benchmarking?

Yes, call hooks_intelligence-reset to wipe all learned intelligence state. This is intended for testing and benchmarking only, since it permanently removes stored patterns and adaptations.