
Reasoningbank Intelligence
Give agents persistent adaptive learning—recording outcomes, recognizing patterns, and recommending strategies via ReasoningBank and AgentDB.
Overview
ReasoningBank Intelligence is an agent skill most often used in Build (also Operate iterate, Ship review) that implements adaptive learning with ReasoningBank for pattern recognition and strategy optimization.
Install
npx skills add https://github.com/ruvnet/ruflo --skill reasoningbank-intelligenceWhat is this skill?
- Initializes ReasoningBank with persistence, learning rate, and AgentDB adapter
- Records task experiences with success metrics and contextual features for later retrieval
- Recommends strategies conditioned on task type and context such as language and complexity
- Supports pattern learning (e.g. operational signals like API errors after deploy)
- Requires agentic-flow v1.5.11+ and AgentDB v1.0.4+ per SKILL.md prerequisites
- Prerequisites specify agentic-flow v1.5.11+ and AgentDB v1.0.4+
- Example experience metrics include bugs_found, time_taken, and false_positives fields
Adoption & trust: 628 installs on skills.sh; 58.5k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
Your agents repeat the same mistakes because they do not persist outcomes or pick strategies from prior successful runs.
Who is it for?
Indie builders shipping agentic-flow agents who want durable learning loops with AgentDB-backed ReasoningBank.
Skip if: Simple chat wrappers with no custom agent code, or teams unwilling to run AgentDB and Node 18+ dependencies.
When should I use this skill?
Use when building self-learning agents, optimizing workflows, or implementing meta-cognitive systems with ReasoningBank.
What do I get? / Deliverables
Agents record experiences to ReasoningBank, learn patterns over time, and surface context-aware strategy recommendations for recurring task types.
- ReasoningBank initialization with persist and adapter configuration
- Experience recording and strategy recommendation calls integrated into agent code
- Documented patterns and metrics schema for continuous improvement loops
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Primary shelf is Build agent-tooling because implementation starts with integrating ReasoningBank APIs into agent code and persistence. Agent-tooling captures meta-cognitive learning layers (recordExperience, recommendStrategy, learnPattern) rather than a single app feature.
Where it fits
Wire ReasoningBank recordExperience and recommendStrategy into a TypeScript review agent during initial implementation.
Compare static_analysis_first versus other review approaches using stored bug counts and false-positive metrics.
Learn deploy-correlated API error patterns and adjust rollout checklists from accumulated experiences.
How it compares
Skill package for in-agent memory and strategy selection—not a standalone analytics dashboard or generic RAG ingestion pipeline.
Common Questions / FAQ
Who is reasoningbank intelligence for?
Developers building self-learning agents on agentic-flow who need pattern recognition and strategy recommendations backed by persisted experiences.
When should I use reasoningbank intelligence?
In Build when integrating ReasoningBank; in Ship review when optimizing code-review or QA approaches from metrics; in Operate iterate when learning from post-deploy or recurring failure patterns.
Is reasoningbank intelligence safe to install?
It guides code that writes to databases and agent memory stores; review the Security Audits panel on this Prism page and validate AgentDB credentials and data retention before production.
SKILL.md
READMESKILL.md - Reasoningbank Intelligence
# ReasoningBank Intelligence ## What This Skill Does Implements ReasoningBank's adaptive learning system for AI agents to learn from experience, recognize patterns, and optimize strategies over time. Enables meta-cognitive capabilities and continuous improvement. ## Prerequisites - agentic-flow v1.5.11+ - AgentDB v1.0.4+ (for persistence) - Node.js 18+ ## Quick Start ```typescript import { ReasoningBank } from 'agentic-flow$reasoningbank'; // Initialize ReasoningBank const rb = new ReasoningBank({ persist: true, learningRate: 0.1, adapter: 'agentdb' // Use AgentDB for storage }); // Record task outcome await rb.recordExperience({ task: 'code_review', approach: 'static_analysis_first', outcome: { success: true, metrics: { bugs_found: 5, time_taken: 120, false_positives: 1 } }, context: { language: 'typescript', complexity: 'medium' } }); // Get optimal strategy const strategy = await rb.recommendStrategy('code_review', { language: 'typescript', complexity: 'high' }); ``` ## Core Features ### 1. Pattern Recognition ```typescript // Learn patterns from data await rb.learnPattern({ pattern: 'api_errors_increase_after_deploy', triggers: ['deployment', 'traffic_spike'], actions: ['rollback', 'scale_up'], confidence: 0.85 }); // Match patterns const matches = await rb.matchPatterns(currentSituation); ``` ### 2. Strategy Optimization ```typescript // Compare strategies const comparison = await rb.compareStrategies('bug_fixing', [ 'tdd_approach', 'debug_first', 'reproduce_then_fix' ]); // Get best strategy const best = comparison.strategies[0]; console.log(`Best: ${best.name} (score: ${best.score})`); ``` ### 3. Continuous Learning ```typescript // Enable auto-learning from all tasks await rb.enableAutoLearning({ threshold: 0.7, // Only learn from high-confidence outcomes updateFrequency: 100 // Update models every 100 experiences }); ``` ## Advanced Usage ### Meta-Learning ```typescript // Learn about learning await rb.metaLearn({ observation: 'parallel_execution_faster_for_independent_tasks', confidence: 0.95, applicability: { task_types: ['batch_processing', 'data_transformation'], conditions: ['tasks_independent', 'io_bound'] } }); ``` ### Transfer Learning ```typescript // Apply knowledge from one domain to another await rb.transferKnowledge({ from: 'code_review_javascript', to: 'code_review_typescript', similarity: 0.8 }); ``` ### Adaptive Agents ```typescript // Create self-improving agent class AdaptiveAgent { async execute(task: Task) { // Get optimal strategy const strategy = await rb.recommendStrategy(task.type, task.context); // Execute with strategy const result = await this.executeWithStrategy(task, strategy); // Learn from outcome await rb.recordExperience({ task: task.type, approach: strategy.name, outcome: result, context: task.context }); return result; } } ``` ## Integration with AgentDB ```typescript // Persist ReasoningBank data await rb.configure({ storage: { type: 'agentdb', options: { database: '.$reasoning-bank.db', enableVectorSearch: true } } }); // Query learned patterns const patterns = await rb.query({ category: 'optimization', minConfidence: 0.8, timeRange: { last: '30d' } }); ``` ## Performance Metrics ```typescript // Track learning effectiveness const metrics = await rb.getMetrics(); console.log(` Total Experiences: ${metrics.totalExperiences} Patterns Learned: ${metrics.patternsLearned} Strategy Success Rate: ${metrics.strategySuccessRate} Improvement Over Time: ${metrics.improvement} `);