From yellow-ruvector
Agent learning patterns and quality guidelines. Use when commands or agents need to determine when and how to record learnings, apply quality gates, or retrieve past knowledge using ranked retrieval.
How this skill is triggered — by the user, by Claude, or both
Slash command
/yellow-ruvector:agent-learningThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Defines when to record learnings, quality standards for entries, and retrieval
Defines when to record learnings, quality standards for entries, and retrieval strategies. Loaded by memory-related commands and agents for consistent learning behavior.
Use when yellow-ruvector plugin commands or agents need guidance on learning triggers, quality gates, or retrieval ranking.
This skill is not user-invokable. It provides shared context for the yellow-ruvector plugin's learning workflows.
context)decision)code)Every learning entry must meet these criteria:
Context:
"Test
auth.test.ts:testTokenRefreshfailed because the mock JWT was expired. Fix: always set mock token expiry toDate.now() + 3600000instead of a hardcoded timestamp. Applied in commit abc123."
Decision:
"Batch database inserts wrapped in a transaction are 10x faster than individual inserts for the users table. Use
db.transaction(async (tx) => { ... })pattern when inserting more than 5 rows."
"Fixed a bug" — No context, no insight, no action. "Tests should pass" — Not specific, not actionable.
Use Reciprocal Rank Fusion (RRF) to combine multiple ranking signals:
final_score = sum(1 / (rank_i + 60)) for each signal i
When a recurring context pattern appears 3+ times across sessions, consider
promoting it to a reusable decision entry:
decision entry with broader contextnpx claudepluginhub kinginyellows/yellow-plugins --plugin yellow-ruvectorGuides capturing high-quality, generalizable learnings from ClosedLoop runs using decision tree, rejection criteria, and workflow to classify into CLAUDE.md or org-patterns.toon.
Captures agent mistakes, corrections, and discovered gotchas so they are not repeated. Use when: (1) a command or operation fails unexpectedly, (2) the user corrects the agent, (3) the agent discovers non-obvious behavior through debugging, (4) an API or tool behaves differently than expected, (5) a better approach is found for a recurring task. Also searches past learnings before starting tasks to avoid known pitfalls. Activate alongside the memory skill — they share sage-memory but serve different purposes (memory = codebase knowledge, self-learning = agent mistakes and gotchas). Also trigger on "sage review" or "review learnings" to curate and improve the learning database.
Logs errors, user corrections, missing features, API failures, knowledge gaps, and best practices to .learnings/ markdown files. Promotes key insights to CLAUDE.md and AGENTS.md for AI agent self-improvement.