[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADQP9ADN9ZQPNS6DZ6G2FZ":3,"skill-same:01M7ADQP9ADN9ZQPNS6DZ6G2FZ":65},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7ADQP9ADN9ZQPNS6DZ6G2FZ","memory-management",null,"Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-management\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: memory-management\ndescription: Use when deciding whether to persist knowledge in cross-session agent memory (MEMORY.md, auto-memory), when auto-memory seems stale or preferences leak across tasks, or capturing session outputs worth remembering (answered questions, business rules, conventions, failed approaches). Scope: memory hygiene only — improving skills\u002Frules\u002Fhooks belongs to `self-improvement`.\ntriggers: [user, model]\n---\n\n# Memory Management\n\nCross-session memory is a **contract with the user**, not a black box. Naive\naccumulation degrades reliability; managed memory helps. Default: **explicit\nuser-authored preferences** (`.devin\u002Fglobal_rules.md`, skills, repo docs),\nnot auto-saved memory.\n\n## Stateless vs managed vs naive\n\n| Mode | When | Evidence |\n|---|---|---|\n| **Stateless** | Default for coding agents. Preferences live in rules\u002Fskills\u002Fdocs the user controls. | Most predictable; no drift or contamination. |\n| **Managed memory** (selective add+delete) | Long-horizon tasks where recalling past executions genuinely helps. User reviews and prunes. | +10% absolute vs naive (arXiv:2505.16067); MemGPT (arXiv:2310.08560). |\n| **Naive auto-memory** (append-only) | Never. | 16-20pp reliability loss (arXiv:2605.07313); temporal contamination (arXiv:2605.17830); reasoning drift (arXiv:2607.02374). |\n\n## Hygiene rules\n\n1. **Prefer explicit** — user-authored preferences over agent-auto-saved memory.\n2. **Never naive growth** — managed memory must have selective add AND delete.\n3. **Audit periodically** — review auto-memory for stale\u002Flarge\u002Fdrifting entries; prune aggressively.\n4. **Isolate preferences by task** — global injection of all preferences into every session causes contamination.\n5. **Don't trust auto-inferred preferences** — preference following is \u003C10% at 10 turns zero-shot (arXiv:2502.09597). Write them down.\n6. **Memory is a contract** — user must be able to view, modify, delete anything saved (arXiv:2404.15269).\n\nAnti-patterns: append-only MEMORY.md; auto-saving every preference; \"delete\nall memory\" (managed memory helps); opaque memory.\n\n## Capturing project memory\n\nWhen the session produces knowledge worth keeping — answered questions,\nbusiness rules, project conventions, failed approaches, reusable solutions,\ndecisions:\n\n1. **Notice** — spot something future sessions will need.\n2. **Propose** — `ask_user_question` showing the note text and path. Wait for approval.\n3. **Write** — on approval, save a Markdown note under `.devin\u002Fmemory\u002F`.\n4. **Link** — update `.devin\u002Fmemory\u002FMOC.md` and the daily logbook entry.\n5. **Retrieve** — `python scripts\u002Fquery-memory.py \"\u003Cquery>\"` (in this skill's\n   `scripts\u002F`) or `\u002Fresearch` scoped to `.devin\u002Fmemory\u002F`.\n\n### Paths\n\n| What | Path | Pattern |\n|---|---|---|\n| Answered question \u002F business rule | `.devin\u002Fmemory\u002Fnotes\u002FYYYY\u002FMM\u002F` | `\u003Ctopic>.md` |\n| Daily session log | `.devin\u002Fmemory\u002Flogbook\u002FYYYY\u002FMM\u002F` | `YYYY-MM-DD.md` |\n| Decisions \u002F ADRs | `.devin\u002Fmemory\u002Fdecisions\u002F` | `ADR-NNN-\u003Cslug>.md` |\n| Index | `.devin\u002Fmemory\u002FMOC.md` | `MOC.md` |\n\nNote format: see `templates\u002Fnote.md`. Required frontmatter: `title`, `date`,\n`session`, `category`, `tags`, `status`, `cues:` (path\u002Fsymbol\u002Fkeyword\ntriggers).\n\n### Capture rules\n\n1. **No capture without approval** — always confirm via `ask_user_question`.\n2. **Plain text** — Markdown + frontmatter + grep; no vector DB.\n3. **One fact per note**; cite sources (`source: path:line` or `session:`).\n4. **Write cues, not just facts** — `cues:` tells future agents when to recall.\n5. **Prune stale notes** on each capture (`status: archived` or delete).\n6. **No secrets** in notes (Rules 19, 24).\n\n### Post-implementation capture\n\nAfter a feature\u002Ffix lands and before `clear`\u002F`compact`: capture intent (why),\nstate (what + deviations), lessons (worked\u002Ffailed) — then ask approval.\n\n## Evidence\n\n| Claim | Source |\n|---|---|\n| Naive growth −16-20pp reliability | arXiv:2605.07313 |\n| Contamination rises with exposure | arXiv:2605.17830 |\n| Selective add+delete +10% vs naive | arXiv:2505.16067 |\n| Reasoning drift despite fluent answers | arXiv:2607.02374 |\n| Preference following \u003C10% @10 turns | arXiv:2502.09597 |\n| Managed memory > fixed context | arXiv:2310.08560 (MemGPT), arXiv:2410.10813 |\n| Excessive retrieval harms agentic tasks | arXiv:2608.15008 |\n","# Memory Management\n\nCross-session memory is a **contract with the user**, not a black box. Naive\naccumulation degrades reliability; managed memory helps. Default: **explicit\nuser-authored preferences** (`.devin\u002Fglobal_rules.md`, skills, repo docs),\nnot auto-saved memory.\n\n## Stateless vs managed vs naive\n\n| Mode | When | Evidence |\n|---|---|---|\n| **Stateless** | Default for coding agents. Preferences live in rules\u002Fskills\u002Fdocs the user controls. | Most predictable; no drift or contamination. |\n| **Managed memory** (selective add+delete) | Long-horizon tasks where recalling past executions genuinely helps. User reviews and prunes. | +10% absolute vs naive (arXiv:2505.16067); MemGPT (arXiv:2310.08560). |\n| **Naive auto-memory** (append-only) | Never. | 16-20pp reliability loss (arXiv:2605.07313); temporal contamination (arXiv:2605.17830); reasoning drift (arXiv:2607.02374). |\n\n## Hygiene rules\n\n1. **Prefer explicit** — user-authored preferences over agent-auto-saved memory.\n2. **Never naive growth** — managed memory must have selective add AND delete.\n3. **Audit periodically** — review auto-memory for stale\u002Flarge\u002Fdrifting entries; prune aggressively.\n4. **Isolate preferences by task** — global injection of all preferences into every session causes contamination.\n5. **Don't trust auto-inferred preferences** — preference following is \u003C10% at 10 turns zero-shot (arXiv:2502.09597). Write them down.\n6. **Memory is a contract** — user must be able to view, modify, delete anything saved (arXiv:2404.15269).\n\nAnti-patterns: append-only MEMORY.md; auto-saving every preference; \"delete\nall memory\" (managed memory helps); opaque memory.\n\n## Capturing project memory\n\nWhen the session produces knowledge worth keeping — answered questions,\nbusiness rules, project conventions, failed approaches, reusable solutions,\ndecisions:\n\n1. **Notice** — spot something future sessions will need.\n2. **Propose** — `ask_user_question` showing the note text and path. Wait for approval.\n3. **Write** — on approval, save a Markdown note under `.devin\u002Fmemory\u002F`.\n4. **Link** — update `.devin\u002Fmemory\u002FMOC.md` and the daily logbook entry.\n5. **Retrieve** — `python scripts\u002Fquery-memory.py \"\u003Cquery>\"` (in this skill's\n   `scripts\u002F`) or `\u002Fresearch` scoped to `.devin\u002Fmemory\u002F`.\n\n### Paths\n\n| What | Path | Pattern |\n|---|---|---|\n| Answered question \u002F business rule | `.devin\u002Fmemory\u002Fnotes\u002FYYYY\u002FMM\u002F` | `\u003Ctopic>.md` |\n| Daily session log | `.devin\u002Fmemory\u002Flogbook\u002FYYYY\u002FMM\u002F` | `YYYY-MM-DD.md` |\n| Decisions \u002F ADRs | `.devin\u002Fmemory\u002Fdecisions\u002F` | `ADR-NNN-\u003Cslug>.md` |\n| Index | `.devin\u002Fmemory\u002FMOC.md` | `MOC.md` |\n\nNote format: see `templates\u002Fnote.md`. Required frontmatter: `title`, `date`,\n`session`, `category`, `tags`, `status`, `cues:` (path\u002Fsymbol\u002Fkeyword\ntriggers).\n\n### Capture rules\n\n1. **No capture without approval** — always confirm via `ask_user_question`.\n2. **Plain text** — Markdown + frontmatter + grep; no vector DB.\n3. **One fact per note**; cite sources (`source: path:line` or `session:`).\n4. **Write cues, not just facts** — `cues:` tells future agents when to recall.\n5. **Prune stale notes** on each capture (`status: archived` or delete).\n6. **No secrets** in notes (Rules 19, 24).\n\n### Post-implementation capture\n\nAfter a feature\u002Ffix lands and before `clear`\u002F`compact`: capture intent (why),\nstate (what + deviations), lessons (worked\u002Ffailed) — then ask approval.\n\n## Evidence\n\n| Claim | Source |\n|---|---|\n| Naive growth −16-20pp reliability | arXiv:2605.07313 |\n| Contamination rises with exposure | arXiv:2605.17830 |\n| Selective add+delete +10% vs naive | arXiv:2505.16067 |\n| Reasoning drift despite fluent answers | arXiv:2607.02374 |\n| Preference following \u003C10% @10 turns | arXiv:2502.09597 |\n| Managed memory > fixed context | arXiv:2310.08560 (MemGPT), arXiv:2410.10813 |\n| Excessive retrieval harms agentic tasks | arXiv:2608.15008 |\n",{},"main","02b95ddb62959a00b3c31442c2046aca0d19563c","skills\u002Fmemory-management",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill memory-management",{"tool":37,"command":38},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill memory-management",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill memory-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-management\u002FSKILL.md",true,[45,51,55,59],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"scripts\u002Faudit-memory.py","SCRIPT","脚本",2035,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-management\u002Fscripts\u002Faudit-memory.py",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fcapture-memory.py",4842,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-management\u002Fscripts\u002Fcapture-memory.py",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"scripts\u002Fquery-memory.py",2223,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-management\u002Fscripts\u002Fquery-memory.py",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"templates\u002Fnote.md","REFERENCE","参考文档",1437,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-management\u002Ftemplates\u002Fnote.md",[66,73,80,87,94,101],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":102,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]