Analyze session learnings and propose new rules/skills
Analyzes session learnings to detect patterns and propose new rules or skills.
/plugin marketplace add lerianstudio/ring/plugin install ring-default@ring[--approve <id>] [--reject <id>] [--list]Analyze accumulated session learnings to detect recurring patterns and propose new rules, skills, or hooks. Requires user approval before creating any permanent artifacts.
/compound-learnings [options]
| Option | Description |
|---|---|
| (none) | Analyze learnings and generate new proposals |
--list | List pending proposals without analyzing |
--approve <id> | Approve a specific proposal (e.g., --approve proposal-1) |
--reject <id> | Reject a specific proposal with optional reason |
--history | Show history of approved/rejected proposals |
/compound-learnings
Analyzes all session learnings, detects patterns appearing 3+ times, and presents proposals.
/compound-learnings --list
Shows proposals waiting for approval without re-analyzing.
/compound-learnings --approve proposal-1
Creates the rule/skill from the approved proposal.
/compound-learnings --reject proposal-2 "Too project-specific"
Marks proposal as rejected with reason.
/compound-learnings --history
Shows all past approvals and rejections.
The command follows this workflow:
.ring/cache/learnings/*.md files## Compound Learnings Analysis
**Sessions Analyzed:** 12
**Patterns Detected:** 8
**Qualifying (3+ sessions):** 3
---
### Proposal 1: Always use explicit file paths
**Signal:** 5 sessions (abc, def, ghi, jkl, mno)
**Category:** Rule
**Sources:** patterns, what_worked
**Preview:**
# Always use explicit file paths
## Pattern
Never use relative paths like "./file" - always use absolute paths.
...
**Action Required:** Type `approve`, `reject`, or `modify`
---
| Command/Skill | Relationship |
|---|---|
compound-learnings skill | Underlying skill with full process details |
handoff-tracking | Provides source data (what_worked, what_failed) |
artifact-query | Search past handoffs for context |
No .ring/cache/learnings/*.md files exist. Complete some sessions with outcome tracking enabled.
Fewer than 3 learning files. Continue working - patterns emerge after multiple sessions.
Check .ring/generated/rules/ and .ring/generated/skills/ in your project, or default/rules/ and default/skills/ in the plugin - a similar rule or skill may already exist.
The proposal ID doesn't exist in pending.json. Run /compound-learnings --list to see current proposals.