Install
openclaw skills install learning-coordinatorCoordinates learning signals, pattern promotion, and stage management for self-improving memory. Monitors corrections and preferences to identify emerging patterns and manage learning stages. Integrates with Memory Sync Enhanced star architecture via adapter.
openclaw skills install learning-coordinatorconfidence = (repetition_count * 0.4) + (effectiveness_score * 0.4) + (time_factor * 0.2)
learning_speed = (help_ratio * 0.6) + (effectiveness_trend * 0.4)
The plugin provides a LearningCoordinator class that:
The plugin does not store its own data; it relies on existing adapters (correction‑logger, preference‑tracker) and the learning‑rules file (learning.md).
clawhub install learning-coordinator
Or manually copy the plugin directory to your workspace skills folder.
Default configuration loads the learning rules file and references other adapters:
learning_rules_file: ~/self-improving/learning.md
correction_adapter: "correction_logger"
preference_adapter: "preference_tracker"
auto_create: true
from learning_coordinator import LearningCoordinator
coordinator = LearningCoordinator(config=None)
# Get learning statistics
stats = coordinator.get_learning_stats()
# Check emerging patterns
emerging = coordinator.get_emerging_patterns(threshold=2)
# Promote a pattern (after user confirmation)
result = coordinator.promote_pattern(correction_ids=[1, 2, 3], new_status="confirmed")
# Get stage counts
stage_counts = coordinator.get_stage_counts()
# Health check
health = coordinator.health_check()
The plugin includes a LearningCoordinatorAdapter that conforms to the star‑architecture MemoryAdapter base class, providing:
health_check() – reports availability of required adapters and rule fileget_stats() – returns learning statistics (stage counts, promotion rates, etc.)search(query, limit=10) – searches across learning rules and pattern descriptionssync() – ensures coordinator state is in sync (no‑op for this plugin)get_learning_stats(), get_emerging_patterns(), promote_pattern() – convenience methodsOnce installed and its adapter is registered in the star‑architecture registry, other plugins can query learning coordination via the adapter factory:
from integration.adapter_factory import AdapterFactory
factory = AdapterFactory()
coordinator_adapter = factory.get_adapter("learning_coordinator")
if coordinator_adapter:
stats = coordinator_adapter.get_learning_stats()
emerging = coordinator_adapter.get_emerging_patterns(threshold=2)
The plugin reads the learning.md file (see SIPA skill) to obtain:
The file is treated as read‑only; modifications must be made manually.
Missing adapters – If correction‑logger or preference‑tracker adapters are unavailable, the coordinator will operate with limited functionality.
Rule file not found – If learning.md does not exist, the plugin will create a minimal version based on the SIPA skill's default content.
Permission errors – Ensure the process has read access to the learning rules file.
| 错误码 | 描述 | 解决方案 |
|---|---|---|
| E001 | 未知错误 | 检查日志,联系开发者 |
| E002 | 配置错误 | 验证配置文件格式 |
| E003 | 依赖缺失 | 安装所需依赖包 |