rc-lessons

Solid

Deterministic loop-lessons machine — records grounded engineering lessons from verification signals (AC gaps, surviving mutants, spec deviations, gate failures) and loads the corroborated ones at plan/design time, so autonomous or repeated loops stop re-making the same mistake. All bookkeeping (IDs, distinct-feature recurrence, candidate→confirmed promotion, quarantine, prune) is owned by scripts/lessons.mjs, not prose. Use to record a lesson after a verify/review failure, or to load confirmed lessons before planning a task or roadmap phase. Do not use for user-correction trigger→action learnings (rc-memory), per-task working notes (rc-workflow-memory), or on-demand reflection on a diff.

AI & Automation 19 stars 1 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
43
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Loop Lessons The learning layer that makes RC loops *safe to repeat*. Every time verification catches a defect, the reason it slipped through is captured as a **grounded lesson**; before the next task or roadmap phase is planned, the **corroborated** lessons are loaded as guidance. A one-off is never trusted — a lesson is only promoted after it recurs across **two distinct features**, and is quarantined if it ever fails when applied. **The script owns the bookkeeping.** IDs, recurrence counting, promotion, quarantine, and pruning are mechanical and rot when done by hand, so they live in `scripts/lessons.mjs` (deterministic, dependency-free) — never re-implement them in prose or edit the store by hand. - Canonical store: `.rc/lessons.json` (machine-owned — do **not** hand-edit) - Rendered playbook: `.rc/LESSONS.md` (regenerated on every write) Invoke the script via the plugin root: ```bash node "$CLAUDE_PLUGIN_ROOT/scripts/lessons.mjs" <command> --root <project-root> [flags] ``` `--root` is the directory that contains `.rc/` (default `.`). Run `--selftest` to verify the lifecycle offline. ## When to RECORD a lesson (write) Record **only** at a verification/review boundary, and **only** with real grounding — a lesson with no `file:line` / AC id / mutant id / SPEC_DEVIATION reference is an opinion, and the script refuses it. Record when a `rc-execute-task` / `rc-final-verify` / `rc-code-review` / `rc-review-round` pass catches: | Signal | Use when | | --- | --- | | `a...

Details

Author
rodolfochicone
Repository
rodolfochicone/rc-project
Created
1 months ago
Last Updated
2 weeks ago
Language
JavaScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category