/egc:autonomous-lesson-learning runs instead · from egc
Orchestrates an autonomous loop that recalls stored lessons before each iteration, saves new lessons on failures and wins, and reinforces known lessons to avoid repeating mistakes. Works with egc-memory MCP tools.
This skill never runs in Claude Code
It ships in egc at skills/, but /egc:autonomous-lesson-learning (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Run an autonomous work loop that gets smarter every iteration. This skill is pure orchestration: it combines the loop patterns from continuous-agent-loop / autonomous-loops with the lesson_recall, lesson_save, and lesson_reinforce tools from the egc-memory MCP server. It does not reimplement loops and it does not add a new lesson store.
Works in any harness that has the egc-memory MCP server registered (all EGC Tier 1/2/3 targets). Nothing here is platform-specific: the loop is plain instruction-following and the memory calls are standard MCP tool calls.
continuous-agent-loop pattern (Sequential Pipeline, Continuous PR Loop) where you also want cross-session learningUse a plain loop (/loop-start, continuous-agent-loop) instead when the task is one-off, trivial, or exploratory throwaway work where lessons would be noise.
+--------------------------------------------------------+
| AUTONOMOUS LESSON LEARNING ITERATION |
| |
| 1. RECALL lesson_recall({ query }) for the current |
| step BEFORE acting |
| 2. APPLY adjust the plan using recalled lessons; |
| lesson_reinforce({ id }) each lesson that |
| proved relevant |
| 3. ACT execute one loop iteration (implement, |
| test, fix) per continuous-agent-loop |
| 4. RECORD |
| - failure -> known lesson matches? |
| yes -> lesson_reinforce({ id }) |
| no -> lesson_save({ content, context }) |
| - new pattern that worked well? |
| -> lesson_save with prescriptive wording |
| 5. CHECK stop condition met? done : goto 1 |
+--------------------------------------------------------+
At the start of every iteration, query stored lessons for the area you are about to touch:
lesson_recall({ query: "flaky playwright timeout", limit: 5 })
lesson_recall searches content, context, and tags, and returns lessons ranked by confidence (default floor 0.2). Read the results and adjust the plan before executing. Skipping this step defeats the purpose of the skill.
When a recalled lesson applies to the current iteration, or a mistake it describes recurs, reinforce it by the id field returned from lesson_recall:
lesson_reinforce({ id: "<lesson id from lesson_recall>" })
Reinforcement raises confidence by 0.15 (capped at 1.0) and un-archives decayed lessons. Never save a duplicate lesson for a pattern that already exists: recall first, reinforce on match, save only on miss.
When an action fails during the loop (a command errors, a test breaks, a fix has to be redone), record what went wrong and why, with a context that says where it applies:
lesson_save({
content: "npm test hangs when the dashboard watcher is left running; kill the watcher before the suite.",
context: "test runs in the EGC dashboard package",
tags: "testing,watcher"
})
Both content and context are required. Keep lessons atomic: one failure mode, one lesson. initial_confidence defaults to 0.7 and only needs overriding for tentative observations.
When a new approach works well, save it in positive, prescriptive form so the next loop starts from it:
lesson_save({
content: "Always regenerate the skill index (scripts/build-skill-index.js) before running the docs tests when a skill was added.",
context: "adding or renaming skills in the EGC repo",
tags: "workflow,skills"
})
Inherit the safety rules from continuous-agent-loop: every loop needs an explicit stop condition (max iterations, completion signal, green test suite) and quality gates between iterations. If the same lesson gets reinforced on three consecutive iterations without progress, stop the loop and escalate: that is the "repeated retries with same root cause" failure mode.
Task: "fix every failing test in the suite, autonomously".
lesson_recall({ query: "failing tests <project name>" }) -> a lesson says the fixture DB must be reset between runs (confidence 0.85).lesson_reinforce({ id }).lesson_save({ content: "Snapshot tests in pkg X break when locale helpers change; run pkg X snapshots after touching i18n.", context: "test fixing in project Y" }).| System | Mechanism | Speed | Use for |
|---|---|---|---|
| autonomous-lesson-learning | explicit MCP calls inside an active loop | immediate, per-iteration | mistakes and wins observed while working |
| continuous-learning-v2 | passive hook observation, background instinct clustering | slow, cross-session | broad behavioral patterns you did not notice yourself |
| continuous-agent-loop | loop architecture, gates, recovery | n/a | the loop mechanics themselves |
autonomous-lesson-learning and continuous-learning-v2 coexist: this skill is the fast, deliberate path (the AI knows it just failed and writes it down); v2 is the slow, passive path (hooks notice patterns the AI missed). Neither replaces the other, and both read from independent stores.
egc-memory MCP server registered (egc doctor to verify)continuous-agent-loop with an explicit stop conditionWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fmarzochi/egc --plugin egc232 skills in this plugin
/accessibilityDesign, implement, and audit inclusive digital products using WCAG 2.2 Level AA standards. Use this skill to generate semantic ARIA for Web and accessibility traits for Web and Native platforms (iOS/Android)./agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature./agent-evalHead-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics/agent-harness-constructionDesign and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates./agentic-engineeringOperate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing./agentic-osBuild persistent multi-agent operating systems on your AI coding tool. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases.Other plugins' skills for the same job