[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7593V67X4HD2J6D3G048EM5":3,"skill-same:01M7593V67X4HD2J6D3G048EM5":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7593V67X4HD2J6D3G048EM5","lesson-aware-agent",null,"Universal lesson-aware injection pattern. Makes every agent action memory-aware: search lessons before acting, save lessons after fixing. Works across all skills, not just change-test-loop.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Flesson-aware-agent\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: lesson-aware-agent\nversion: 1.0.0\ncategory: software-development\ndescription: \"Universal lesson-aware injection pattern. Makes every agent action memory-aware: search lessons before acting, save lessons after fixing. Works across all skills, not just change-test-loop.\"\nauthor: Steadfaste Fleet\nlicense: MIT\nplatforms: [linux, macos, windows]\nmetadata:\n  hermes:\n    tags: [memory, lessons, compounding, agent-pattern, universal]\n    related_skills: [change-test-loop, save-lesson, offline-knowledge, agent-contract]\n---\n\n# Lesson-Aware Agent — Memory That Compounds\n\n## The Core Insight\n\n**The most expensive fix is the one you've already made.** Lesson-aware agents prevent re-discovery by searching personal memory before every non-trivial action. Every fix compounds — 10 lessons saves an hour, 100 lessons saves a day, 1,000 lessons transforms how you develop.\n\n## Universal Protocol\n\nThis skill defines **one pattern that applies everywhere** — not just change-test-loop, but PR review, debugging, refactoring, even answering questions:\n\n### Before Every Action\n\n```python\n# Step 0: Is this a non-trivial action that might have a known solution?\n# If yes → search lessons\nif is_non_trivial(problem):\n    result = json.loads(terminal(\n        \"offline_knowledge lesson search \" + shlex.quote(problem) + \" --limit 3\"\n    )[\"output\"])\n    \n    if result.get(\"count\", 0) > 0:\n        lesson = result[\"results\"][0]\n        # Apply known fix\n        # INCREMENT success_count: terminal(\"bash ~\u002F.hermes\u002Fscripts\u002Flesson-hit.sh --search '\" + lesson[\"title\"] + \"'\")\n        # Rebuild index: terminal(\"offline_knowledge lesson index\")\n        # Report time saved\n```\n\n### After Every Fix\n\n```python\n# Was this non-trivial? Would I want to remember this?\nif should_save(problem, solution):\n    terminal(f\"\"\"offline_knowledge lesson create \\\\\n      --title {shlex.quote(title)} \\\\\n      --problem {shlex.quote(problem)} \\\\\n      --cause {shlex.quote(cause)} \\\\\n      --solution {shlex.quote(solution)} \\\\\n      --language {lang} \\\\\n      --tags {\" \".join([\"tag\"] if tag else [])}\"\"\")\n    terminal(\"offline_knowledge lesson index\")\n```\n\n## When to Load This Skill\n\nLoad `lesson-aware-agent` whenever you begin a session that involves:\n\n- **Any code change** (bug fix, feature, refactor)\n- **Debugging** (error investigation, root cause analysis)\n- **PR review** (check if similar issues have been fixed before)\n- **Answering a technical question** (check lessons for relevant experience)\n- **Starting a new project** (check lessons for domain-specific pitfalls)\n\n**Combined with change-test-loop:** The `change-test-loop` skill v2.0+ already includes this pattern natively (LEARN → RED → GREEN → REFACTOR). Load both for full coverage.\n\n**Combined with save-lesson:** The `save-lesson` skill covers the manual save workflow. This skill adds the universal \"check before, save after\" around everything.\n\n**Combined with agent-contract:** Add these rules to your agent-contract for always-on enforcement:\n\n```yaml\n# In agent-contract or AGENTS.md:\nrules:\n  - \"Before debugging any error: search the lesson database first\"\n  - \"After fixing any non-trivial bug: save as a lesson\"\n  - \"Report lesson matches and time saved in session summary\"\n```\n\n## The Compound Score\n\nTrack the compounding effect to see tangible value:\n\n| Metric | Formula | Today (example) |\n|--------|---------|-----------------|\n| **Lessons saved** | total_lessons | 134 |\n| **Times applied** | sum(success_count) | 187 |\n| **Time saved (est.)** | times_applied × 15min | 46.75 hours |\n| **Coverage** | lessons per language\u002Fframework | 12 languages |\n| **Hit rate** | LEARN matches \u002F total actions | ~40% |\n\n## Integration Points\n\n### With root-cause-debugging\n\nBefore any debugging session:\n1. **LEARN** — search lessons for the error message\n2. If found → apply fix, skip debug\n3. If not → debug as normal, save as lesson\n\n### With pr-review\n\nDuring code review:\n1. Check if any proposed fix pattern has a matching lesson\n2. Reference the lesson in review comments\n3. If review discovers a fix pattern, save as lesson\n\n### With agent-flow (workflow router)\n\nWhen the router classifies an incoming request:\n1. If the request mentions an error or bug → search lessons before routing\n2. If a lesson matches → short-circuit to direct fix\n\n## Dependencies\n\n- `offline-knowledge` (provides the lesson search\u002Findex\u002Fcreate CLI)\n- `nomic-embed-text:v1.5` (Ollama model for semantic embeddings)\n- `save-lesson` (manual save workflow, already integrated)\n\n## Design Principles\n\n1. **Zero friction** — lesson search should take \u003C1 second and never block progress\n2. **Always relevant** — only surface lessons with similarity ≥ 0.55; lower = noise\n3. **Compound by default** — every fix automatically feeds back into the system\n4. **Measurable** — track hit rates, time saved, coverage expansion\n5. **Transparent** — user sees \"Applied known fix from lesson 'X' (saved 20min)\" so they know the system is working\n","# Lesson-Aware Agent — Memory That Compounds\n\n## The Core Insight\n\n**The most expensive fix is the one you've already made.** Lesson-aware agents prevent re-discovery by searching personal memory before every non-trivial action. Every fix compounds — 10 lessons saves an hour, 100 lessons saves a day, 1,000 lessons transforms how you develop.\n\n## Universal Protocol\n\nThis skill defines **one pattern that applies everywhere** — not just change-test-loop, but PR review, debugging, refactoring, even answering questions:\n\n### Before Every Action\n\n```python\n# Step 0: Is this a non-trivial action that might have a known solution?\n# If yes → search lessons\nif is_non_trivial(problem):\n    result = json.loads(terminal(\n        \"offline_knowledge lesson search \" + shlex.quote(problem) + \" --limit 3\"\n    )[\"output\"])\n    \n    if result.get(\"count\", 0) > 0:\n        lesson = result[\"results\"][0]\n        # Apply known fix\n        # INCREMENT success_count: terminal(\"bash ~\u002F.hermes\u002Fscripts\u002Flesson-hit.sh --search '\" + lesson[\"title\"] + \"'\")\n        # Rebuild index: terminal(\"offline_knowledge lesson index\")\n        # Report time saved\n```\n\n### After Every Fix\n\n```python\n# Was this non-trivial? Would I want to remember this?\nif should_save(problem, solution):\n    terminal(f\"\"\"offline_knowledge lesson create \\\\\n      --title {shlex.quote(title)} \\\\\n      --problem {shlex.quote(problem)} \\\\\n      --cause {shlex.quote(cause)} \\\\\n      --solution {shlex.quote(solution)} \\\\\n      --language {lang} \\\\\n      --tags {\" \".join([\"tag\"] if tag else [])}\"\"\")\n    terminal(\"offline_knowledge lesson index\")\n```\n\n## When to Load This Skill\n\nLoad `lesson-aware-agent` whenever you begin a session that involves:\n\n- **Any code change** (bug fix, feature, refactor)\n- **Debugging** (error investigation, root cause analysis)\n- **PR review** (check if similar issues have been fixed before)\n- **Answering a technical question** (check lessons for relevant experience)\n- **Starting a new project** (check lessons for domain-specific pitfalls)\n\n**Combined with change-test-loop:** The `change-test-loop` skill v2.0+ already includes this pattern natively (LEARN → RED → GREEN → REFACTOR). Load both for full coverage.\n\n**Combined with save-lesson:** The `save-lesson` skill covers the manual save workflow. This skill adds the universal \"check before, save after\" around everything.\n\n**Combined with agent-contract:** Add these rules to your agent-contract for always-on enforcement:\n\n```yaml\n# In agent-contract or AGENTS.md:\nrules:\n  - \"Before debugging any error: search the lesson database first\"\n  - \"After fixing any non-trivial bug: save as a lesson\"\n  - \"Report lesson matches and time saved in session summary\"\n```\n\n## The Compound Score\n\nTrack the compounding effect to see tangible value:\n\n| Metric | Formula | Today (example) |\n|--------|---------|-----------------|\n| **Lessons saved** | total_lessons | 134 |\n| **Times applied** | sum(success_count) | 187 |\n| **Time saved (est.)** | times_applied × 15min | 46.75 hours |\n| **Coverage** | lessons per language\u002Fframework | 12 languages |\n| **Hit rate** | LEARN matches \u002F total actions | ~40% |\n\n## Integration Points\n\n### With root-cause-debugging\n\nBefore any debugging session:\n1. **LEARN** — search lessons for the error message\n2. If found → apply fix, skip debug\n3. If not → debug as normal, save as lesson\n\n### With pr-review\n\nDuring code review:\n1. Check if any proposed fix pattern has a matching lesson\n2. Reference the lesson in review comments\n3. If review discovers a fix pattern, save as lesson\n\n### With agent-flow (workflow router)\n\nWhen the router classifies an incoming request:\n1. If the request mentions an error or bug → search lessons before routing\n2. If a lesson matches → short-circuit to direct fix\n\n## Dependencies\n\n- `offline-knowledge` (provides the lesson search\u002Findex\u002Fcreate CLI)\n- `nomic-embed-text:v1.5` (Ollama model for semantic embeddings)\n- `save-lesson` (manual save workflow, already integrated)\n\n## Design Principles\n\n1. **Zero friction** — lesson search should take \u003C1 second and never block progress\n2. **Always relevant** — only surface lessons with similarity ≥ 0.55; lower = noise\n3. **Compound by default** — every fix automatically feeds back into the system\n4. **Measurable** — track hit rates, time saved, coverage expansion\n5. **Transparent** — user sees \"Applied known fix from lesson 'X' (saved 20min)\" so they know the system is working\n",{"name":5,"author":24,"license":15,"version":25,"category":26,"metadata":27,"platforms":40,"description":7},"Steadfaste Fleet","1.0.0","software-development",{"hermes":28},{"tags":29,"related_skills":35},[30,31,32,33,34],"memory","lessons","compounding","agent-pattern","universal",[36,37,38,39],"change-test-loop","save-lesson","offline-knowledge","agent-contract",[41,42,43],"linux","macos","windows","main","2e6aa8d15ab0a366c90be54f61bf9c6e97015e83","skills\u002Fsoftware-development\u002Flesson-aware-agent",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill lesson-aware-agent",{"tool":59,"command":60},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill lesson-aware-agent",{"tool":62,"command":63},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill lesson-aware-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Flesson-aware-agent\u002FSKILL.md",true,[],[68,76,83,90,97,104],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":75},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":75},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":75},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":75},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":75},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]