<< All versions
Skill v1.0.0
currentAutomated scan100/100microck/ordinary-claude-skills/reasoningbank-intelligence
──Details
PublishedOctober 12, 2026 at 10:52 PM
Content Hashsha256:b62b18984d12dd91...
Git SHA1056d293d41a
──Files
Files (1 file, 4.7 KB)
SKILL.md4.7 KBactive
SKILL.md · 203 lines · 4.7 KB
version: "1.0.0" name: "ReasoningBank Intelligence" description: "Implement adaptive learning with ReasoningBank for pattern recognition, strategy optimization, and continuous improvement. Use when building self-learning agents, optimizing workflows, or implementing meta-cognitive systems."
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 ReasoningBankconst rb = new ReasoningBank({persist: true,learningRate: 0.1,adapter: 'agentdb' // Use AgentDB for storage});// Record task outcomeawait 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 strategyconst strategy = await rb.recommendStrategy('code_review', {language: 'typescript',complexity: 'high'});
Core Features
1. Pattern Recognition
typescript
// Learn patterns from dataawait rb.learnPattern({pattern: 'api_errors_increase_after_deploy',triggers: ['deployment', 'traffic_spike'],actions: ['rollback', 'scale_up'],confidence: 0.85});// Match patternsconst matches = await rb.matchPatterns(currentSituation);
2. Strategy Optimization
typescript
// Compare strategiesconst comparison = await rb.compareStrategies('bug_fixing', ['tdd_approach','debug_first','reproduce_then_fix']);// Get best strategyconst best = comparison.strategies[0];console.log(`Best: ${best.name} (score: ${best.score})`);
3. Continuous Learning
typescript
// Enable auto-learning from all tasksawait rb.enableAutoLearning({threshold: 0.7, // Only learn from high-confidence outcomesupdateFrequency: 100 // Update models every 100 experiences});
Advanced Usage
Meta-Learning
typescript
// Learn about learningawait 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 anotherawait rb.transferKnowledge({from: 'code_review_javascript',to: 'code_review_typescript',similarity: 0.8});
Adaptive Agents
typescript
// Create self-improving agentclass AdaptiveAgent {async execute(task: Task) {// Get optimal strategyconst strategy = await rb.recommendStrategy(task.type, task.context);// Execute with strategyconst result = await this.executeWithStrategy(task, strategy);// Learn from outcomeawait rb.recordExperience({task: task.type,approach: strategy.name,outcome: result,context: task.context});return result;}}
Integration with AgentDB
typescript
// Persist ReasoningBank dataawait rb.configure({storage: {type: 'agentdb',options: {database: './reasoning-bank.db',enableVectorSearch: true}}});// Query learned patternsconst patterns = await rb.query({category: 'optimization',minConfidence: 0.8,timeRange: { last: '30d' }});
Performance Metrics
typescript
// Track learning effectivenessconst metrics = await rb.getMetrics();console.log(`Total Experiences: ${metrics.totalExperiences}Patterns Learned: ${metrics.patternsLearned}Strategy Success Rate: ${metrics.strategySuccessRate}Improvement Over Time: ${metrics.improvement}`);
Best Practices
- Record consistently: Log all task outcomes, not just successes
- Provide context: Rich context improves pattern matching
- Set thresholds: Filter low-confidence learnings
- Review periodically: Audit learned patterns for quality
- Use vector search: Enable semantic pattern matching
Troubleshooting
Issue: Poor recommendations
Solution: Ensure sufficient training data (100+ experiences per task type)
Issue: Slow pattern matching
Solution: Enable vector indexing in AgentDB
Issue: Memory growing large
Solution: Set TTL for old experiences or enable pruning
Learn More
- ReasoningBank Guide: agentic-flow/src/reasoningbank/README.md
- AgentDB Integration: packages/agentdb/docs/reasoningbank.md
- Pattern Learning: docs/reasoning/patterns.md