neural-train
What it does
This skill trains the agent's learning patterns from tasks that went well and combines them into long-term memory. It is for people who want their AI helpers to improve from their own successful work.
When to use it
- βWhen you finish a successful task and want to capture what worked.
- βWhen you have completed enough tasks that the lessons should be combined.
- βWhen you want to train a new area with its own learning adapter.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/neural-train/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βLearn from the task I just finished so the agent handles similar work better next time.β
5 new skills a week. 1 minute to read.
How it works
The skill records a trajectory of the task, marks it as a success or failure, then distils the lessons. It consolidates them and can train a pattern model on the result.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
When should I consolidate?
The source suggests running consolidation after at least ten completed tasks.
What does a training item look like?
Each item has a text description of the task and a label for its outcome or lesson.
Can I check the training status?
Yes. A status step shows the current state of the neural patterns.
Details
Original description by the author
Train SONA + MicroLoRA neural patterns from successful task completions; runs the DISTILL + CONSOLIDATE phases of the 4-step pipeline
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1631
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.