ReasoningBank Intelligence
Skill này làm gì
Skill này giúp AI học từ các kết quả trước đây, nhận ra các mẫu lặp lại và điều chỉnh chiến lược theo thời gian. Skill dành cho lập trình viên xây dựng agent cần tự cải thiện mà không phải chỉnh tay.
Khi nào nên dùng
- ✓Khi bạn muốn agent chọn chiến lược tốt hơn dựa trên kết quả trước đây.
- ✓Khi bạn cần phát hiện các mẫu lặp lại trong cách workflow thành công hoặc thất bại.
- ✓Khi bạn đang xây dựng một agent cần tiếp tục cải thiện qua nhiều tác vụ.
Liên kết skill
https://github.com/ruvnet/RuView/blob/main/.claude/skills/reasoningbank-intelligence/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Theo dõi kết quả của từng lần review code và giúp agent chọn chiến lược review tốt hơn theo thời gian.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill ghi lại kết quả của từng tác vụ cùng bối cảnh của nó, rồi tìm các mẫu xuyên suốt các bản ghi đó. Nó dùng các mẫu để gợi ý một chiến lược khi một tác vụ tương tự xuất hiện lần nữa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 v3.0.0-alpha.1+
- AgentDB v3.0.0-alpha.10+ (for persistence)
- Node.js 18+
Quick Start
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
// 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
// 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
// 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
// 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
// Apply knowledge from one domain to another
await rb.transferKnowledge({
from: 'code_review_javascript',
to: 'code_review_typescript',
similarity: 0.8
});
Adaptive Agents
// 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
// 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
// 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}
`);
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/re
Câu hỏi thường gặp
Nó lưu những gì đã học ở đâu?
Trong AgentDB, khi tính năng lưu trữ bền vững được bật.
Cần cài gì?
agentic-flow phiên bản 3.0.0-alpha.1 trở lên, AgentDB phiên bản 3.0.0-alpha.10 trở lên và Node.js 18 trở lên.
Nó chọn chiến lược như thế nào?
Nó gợi ý chiến lược dựa trên kết quả trước đây, chứ không dựa trên một quy tắc cố định.
Chi tiết
Mô tả gốc của tác giả
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.
repo: ruvnet/RuView
Độ phổ biến
- Sao GitHub
- 102k
- Vị trí xếp hạng
- #837
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
AgentDB Advanced Features
102kGiới thiệu cho agent của bạn các tính năng nâng cao của AgentDB, như đồng bộ cơ sở dữ liệu giữa nhiều máy và kết hợp tìm kiếm vector với bộ lọc metadata.
AgentDB Learning Plugins
102kCho phép agent của bạn xây dựng và huấn luyện plugin học cho AgentDB, dùng các phương pháp học tăng cường để cải thiện từ kinh nghiệm trước đó.
AgentDB Memory Patterns
102kCho phép agent của bạn ghi nhớ các cuộc trò chuyện và ngữ cảnh qua nhiều phiên, dùng AgentDB làm kho bộ nhớ lâu dài.
AgentDB Performance Optimization
102kChỉ cho agent của bạn cách tăng tốc tìm kiếm AgentDB và giảm dung lượng bộ nhớ, bằng nén, chỉ mục tìm kiếm nhanh và bộ nhớ đệm.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.