AgentDB Learning Plugins
Skill này làm gì
Skill này chỉ cách tạo và huấn luyện plugin học cho AgentDB, dùng chín phương pháp học tăng cường. Skill dành cho lập trình viên xây dựng agent biết học từ kết quả đã qua.
Khi nào nên dùng
- ✓Khi bạn muốn một agent cải thiện lựa chọn của nó theo thời gian dựa trên kết quả trước đó.
- ✓Khi bạn cần so sánh các phương pháp học tăng cường như Q-Learning hoặc Actor-Critic cho một agent.
- ✓Khi bạn muốn bắt đầu một plugin học từ một mẫu sẵn có thay vì viết từ đầu.
Liên kết skill
https://github.com/ruvnet/RuView/blob/main/.claude/skills/agentdb-learning/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
“Tạo một plugin học cho bot hỗ trợ khách hàng của tôi, để nó chọn câu trả lời tốt hơn dựa trên những gì đã hiệu quả trước đây.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill dùng một trình hướng dẫn thiết lập hoặc một mẫu sẵn có để tạo plugin, rồi huấn luyện nó trên các kinh nghiệm trước đây. Plugin đã huấn luyện sau đó có thể hướng dẫn các quyết định tương lai của agent.
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.
AgentDB Learning Plugins
What This Skill Does
Provides access to 9 reinforcement learning algorithms via AgentDB's plugin system. Create, train, and deploy learning plugins for autonomous agents that improve through experience. Includes offline RL (Decision Transformer), value-based learning (Q-Learning), policy gradients (Actor-Critic), and advanced techniques.
Performance: Train models 10-100x faster with WASM-accelerated neural inference.
Prerequisites
- Node.js 18+
- AgentDB v1.0.7+ (via agentic-flow)
- Basic understanding of reinforcement learning (recommended)
Quick Start with CLI
Create Learning Plugin
# Interactive wizard
npx agentdb@latest create-plugin
# Use specific template
npx agentdb@latest create-plugin -t decision-transformer -n my-agent
# Preview without creating
npx agentdb@latest create-plugin -t q-learning --dry-run
# Custom output directory
npx agentdb@latest create-plugin -t actor-critic -o ./plugins
List Available Templates
# Show all plugin templates
npx agentdb@latest list-templates
# Available templates:
# - decision-transformer (sequence modeling RL - recommended)
# - q-learning (value-based learning)
# - sarsa (on-policy TD learning)
# - actor-critic (policy gradient with baseline)
# - curiosity-driven (exploration-based)
Manage Plugins
# List installed plugins
npx agentdb@latest list-plugins
# Get plugin information
npx agentdb@latest plugin-info my-agent
# Shows: algorithm, configuration, training status
Quick Start with API
import { createAgentDBAdapter } from 'agentic-flow/reasoningbank';
// Initialize with learning enabled
const adapter = await createAgentDBAdapter({
dbPath: '.agentdb/learning.db',
enableLearning: true, // Enable learning plugins
enableReasoning: true,
cacheSize: 1000,
});
// Store training experience
await adapter.insertPattern({
id: '',
type: 'experience',
domain: 'game-playing',
pattern_data: JSON.stringify({
embedding: await computeEmbedding('state-action-reward'),
pattern: {
state: [0.1, 0.2, 0.3],
action: 2,
reward: 1.0,
next_state: [0.15, 0.25, 0.35],
done: false
}
}),
confidence: 0.9,
usage_count: 1,
success_count: 1,
created_at: Date.now(),
last_used: Date.now(),
});
// Train learning model
const metrics = await adapter.train({
epochs: 50,
batchSize: 32,
});
console.log('Training Loss:', metrics.loss);
console.log('Duration:', metrics.duration, 'ms');
Available Learning Algorithms (9 Total)
1. Decision Transformer (Recommended)
Type: Offline Reinforcement Learning Best For: Learning from logged experiences, imitation learning Strengths: No online interaction needed, stable training
npx agentdb@latest create-plugin -t decision-transformer -n dt-agent
Use Cases:
- Learn from historical data
- Imitation learning from expert demonstrations
- Safe learning without environment interaction
- Sequence modeling tasks
Configuration:
{
"algorithm": "decision-transformer",
"model_size": "base",
"context_length": 20,
"embed_dim": 128,
"n_heads": 8,
"n_layers": 6
}
2. Q-Learning
Type: Value-Based RL (Off-Policy) Best For: Discrete action spaces, sample efficiency Strengths: Proven, simple, works well for small/medium problems
npx agentdb@latest create-plugin -t q-learning -n q-agent
Use Cases:
- Grid worlds, board games
- Navigation tasks
- Resource allocation
- Discrete decision-making
Configuration:
{
"algorithm": "q-learning",
"learning_rate": 0.001,
"gamma": 0.99,
"epsilon": 0.1,
"epsilon_decay": 0.995
}
3. SARSA
Type: Value-Based RL (On-Policy) Best For: Safe exploration, risk-sensitive tasks Strengths: More conservative than Q-Learning, better for safety
npx agentdb@latest create-plugin -t sarsa -n sarsa-agent
Use Cases:
- Safety-critical applications
- Risk-sensitive decision-making
- Online learning with exploration
Configuration:
{
"algorithm": "sarsa",
"learning_rate": 0.001,
"gamma": 0.99,
"epsilon": 0.1
}
4. Actor-Critic
Type: Policy Gradient with Value Baseline Best For: Continuous actions, variance reduction Strengths: Stable, works for continuous/discrete actions
npx agentdb@latest create-plugin -t actor-critic -n ac-agent
Use Cases:
Câu hỏi thường gặp
Có những phương pháp học nào?
Skill liệt kê các mẫu như Decision Transformer, Q-Learning, SARSA, Actor-Critic và khám phá do tò mò thúc đẩy.
Tôi có cần biết học tăng cường không?
Nên biết. Skill được viết cho người đã hiểu những điều cơ bản.
Tôi cần cài gì trước?
Node.js 18 trở lên và AgentDB phiên bản 1.0.7 trở lên.
Chi tiết
Mô tả gốc của tác giả
Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer, Q-Learning, SARSA, Actor-Critic, and more. Use when building self-learning agents, implementing RL, or optimizing agent behavior through experience.
repo: ruvnet/RuView
Độ phổ biến
- Sao GitHub
- 102k
- Vị trí xếp hạng
- #824
- 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 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.
AgentDB Vector Search
102kCho phép agent của bạn tìm tài liệu theo ý nghĩa thay vì từ khóa chính xác, phù hợp cho hỏi đáp và cơ sở tri thức.
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.