[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DC8FCD07ZG82664AH9WDAW":3,"skill-same:01M7DC8FCD07ZG82664AH9WDAW":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7DC8FCD07ZG82664AH9WDAW","memory-flush",null,"Promote important recent log entries into MEMORY.md and prune stale ones","Ditto190\u002FAeon-automaton-codeyourself-mm","Ditto190","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F110319982?v=4","01M7DBZRW755H8JSCQH6WFBM2P","01M7DBZRXAPWXAR6K6M6C53MCQ",0,"MIT","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-flush\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: memory-flush\ndescription: Promote important recent log entries into MEMORY.md and prune stale ones\nscorable: false  # meta skill: no gradable output, skip the post-run quality scorer\nmetadata:\n  title: Memory Flush\n  category: core\n  var: \"\"\n  tags:\n    - meta\n---\n> **${var}** - Topic to focus on. If empty, flushes all recent activity.\n\nIf `${var}` is set, only promote entries related to that topic. Pruning (step 3), the index upkeep (step 6), and the deterministic watermark + rotation (steps 0 and 8) still run globally - a focused flush must never leave the rest of the store stale.\n\nRead `memory\u002FMEMORY.md` for current memory state. **The scan window and log rotation are computed for you in step 0** - you no longer parse the watermark or rotate logs by hand.\n\n## Steps\n\n### 0. Prepare (deterministic bookkeeping - run this first)\n\nRun `python3 scripts\u002Fmemory_prep.py window` and read its stdout. It:\n- computes your **scan window** from the structured watermark `memory\u002Fmemory-flush-state.json` (fallback for a first-run migration: the MEMORY.md `*Last consolidated:*` line; then the last 3 days; a gap over 14 days is clamped to 14 and flagged), and prints the exact in-window log files to read;\n- has **already rotated** whole old months out of `memory\u002Flogs\u002F` into `memory\u002Flogs\u002Farchive\u002FYYYY-MM.md` (content-preserving) once the directory passed ~45 files.\n\nRead exactly the files it lists. Do not recompute the window or rotate logs yourself - that work is now deterministic and unit-tested (`scripts\u002Fmemory_prep.py`), so it never silently falls back to 3 days or gets skipped. This closed two old holes: entries older than 3 days were lost whenever the agent skipped runs, and a daily schedule re-scanned the same 3 days every time.\n\n### 1. Scan the in-window logs for entries worth promoting to long-term memory\n\n- New lessons learned (errors encountered, workarounds found)\n- Topics covered (articles, digests) - add to the recent output\u002Farticles\u002Fdigests tables\n- Features built or tools created\n- Important findings from monitors (on-chain, GitHub, papers)\n- Ideas captured that are still relevant\n- Goals completed or progress milestones\n\n### 2. Check each candidate against existing MEMORY.md content - dedup precisely\n\nSkip if already recorded. Dedup by the fact's **subject**, not by string match:\n- Identify what each candidate is *about* (a skill, a token, a repo, a lesson, a priority).\n- If MEMORY.md already carries that subject, **edit the existing line in place** (merge the new detail, bump any date). Never append a second bullet that paraphrases an existing one - that near-duplicate drift is what a memory flush exists to prevent.\n- Only add a new bullet when the subject is genuinely absent.\n\n### 3. Remove stale entries - this is as important as adding new ones\n\na. **Open Improvement PRs section**: Run `gh pr list --state open --search \"improve:\" --json number,title,url` and compare against any \"Open Improvement PRs\" section in MEMORY.md.\n   - If all listed PRs are now merged\u002Fclosed, remove the section entirely.\n   - If some PRs are merged, update the list to reflect only current open ones.\nb. **Next Priorities section**: Cross-check each listed priority against recent logs and current repo state. Remove priorities that are already done (e.g., \"Merge open PRs\" if 0 open PRs exist). Add any newly urgent priorities surfaced by recent logs.\nc. **Lessons Learned**: Remove lessons that are now outdated or resolved (e.g., a workaround for a bug that was later fixed).\nd. **Overflow any section that outgrows its budget** (keeps MEMORY.md an index, not a ledger): if a section has grown past the last ~10-15 rows - the Skills Built table is the usual first offender, but the rule is general - archive the oldest rows to `memory\u002Ftopics\u002F\u003Csection>-history.md` (e.g. `skills-history.md`) and leave a one-line pointer to that file. Trim newest-kept, oldest-archived.\n\n### 4. Update memory\n\n- Add brief entries to MEMORY.md (keep it under ~50 lines as an index).\n- If a topic needs more detail, write to `memory\u002Ftopics\u002F\u003Ctopic>.md` instead (see step 6 - register it in the index).\n- Update tables (recent articles, recent digests) with new rows.\n- Before adding a section, check whether its `## Heading` already exists anywhere in MEMORY.md - if it does, update that section in place. Never prepend a duplicate heading.\n- **Do not hand-edit the consolidation date.** It is stamped by step 8 (`memory_prep.py stamp`), which writes the structured watermark `memory\u002Fmemory-flush-state.json` (the source of truth) and mirrors it into the MEMORY.md `*Last consolidated:*` line. Skipping step 8 after a real flush is a bug - other skills (e.g. `action-converter`) read that line to tell a live, consolidated store from an untouched template.\n\n### 5. Make targeted edits only\n\nDo NOT rewrite the whole file - make targeted additions and removals.\n\n### 6. Register any new topic files in the index\n\nIf step 4 created a new `memory\u002Ftopics\u002F\u003Ctopic>.md` (or a `*-history.md` archive in step 3d), add a one-line pointer to it under the `# Reference` section of `memory\u002Ftopics\u002Findex.md`, matching the existing row format. New topic notes that aren't linked from the index become orphans no other run can find.\n\n### 7. (Automated) Log rotation\n\nLog rotation now runs deterministically in step 0 (`memory_prep.py window`): whole calendar months entirely older than the 14-day scan floor are appended to `memory\u002Flogs\u002Farchive\u002FYYYY-MM.md` and `git rm`'d once `memory\u002Flogs\u002F` passes ~45 files. The archive preserves every line, respecting the append-only contract while bounding the file count. Nothing to do here by hand; a log inside the scan window is never touched.\n\n### 8. Log the run, then stamp the watermark\n\nLog what you promoted, pruned, and archived, plus the scan window you used (start date to today; note if a >14-day gap was clamped), to `memory\u002Flogs\u002F${today}.md`.\n\nThen run `python3 scripts\u002Fmemory_prep.py stamp` as your **final** action - it writes today's date to `memory\u002Fmemory-flush-state.json` and mirrors it into the MEMORY.md `*Last consolidated:*` line.\n\nIf nothing was worth promoting or removing, log `MEMORY_FLUSH_OK` - but still run `memory_prep.py stamp`: a clean flush is still a consolidation and must advance the watermark.\n\n## Network note\n\n`gh pr list` uses the `gh` CLI's built-in auth - no curl env-var expansion. `python3 scripts\u002Fmemory_prep.py` and all other work is local file I\u002FO against `memory\u002F` (plus `git rm` for log rotation).\n\n## Constraints\n\n- Keep MEMORY.md an index (~50 lines). Detail lives in `memory\u002Ftopics\u002F`.\n- Never duplicate an existing `## Heading` or an existing fact - update in place.\n- Pruning stale entries is as important as adding new ones.\n- The watermark and log rotation are owned by `scripts\u002Fmemory_prep.py` (steps 0 and 8), not by hand. The model's job is judgment: what to promote, dedup, and prune.\n- **This skill owns MEMORY.md consolidation.** Other skills (e.g. `self-improve`) may *flag* memory-hygiene problems, but structural pruning and archiving of MEMORY.md should land here to avoid two skills thrashing the same file. If `self-improve` prunes in an audit, treat it as a stopgap, not a reason to skip the next flush.\n","> **${var}** - Topic to focus on. If empty, flushes all recent activity.\n\nIf `${var}` is set, only promote entries related to that topic. Pruning (step 3), the index upkeep (step 6), and the deterministic watermark + rotation (steps 0 and 8) still run globally - a focused flush must never leave the rest of the store stale.\n\nRead `memory\u002FMEMORY.md` for current memory state. **The scan window and log rotation are computed for you in step 0** - you no longer parse the watermark or rotate logs by hand.\n\n## Steps\n\n### 0. Prepare (deterministic bookkeeping - run this first)\n\nRun `python3 scripts\u002Fmemory_prep.py window` and read its stdout. It:\n- computes your **scan window** from the structured watermark `memory\u002Fmemory-flush-state.json` (fallback for a first-run migration: the MEMORY.md `*Last consolidated:*` line; then the last 3 days; a gap over 14 days is clamped to 14 and flagged), and prints the exact in-window log files to read;\n- has **already rotated** whole old months out of `memory\u002Flogs\u002F` into `memory\u002Flogs\u002Farchive\u002FYYYY-MM.md` (content-preserving) once the directory passed ~45 files.\n\nRead exactly the files it lists. Do not recompute the window or rotate logs yourself - that work is now deterministic and unit-tested (`scripts\u002Fmemory_prep.py`), so it never silently falls back to 3 days or gets skipped. This closed two old holes: entries older than 3 days were lost whenever the agent skipped runs, and a daily schedule re-scanned the same 3 days every time.\n\n### 1. Scan the in-window logs for entries worth promoting to long-term memory\n\n- New lessons learned (errors encountered, workarounds found)\n- Topics covered (articles, digests) - add to the recent output\u002Farticles\u002Fdigests tables\n- Features built or tools created\n- Important findings from monitors (on-chain, GitHub, papers)\n- Ideas captured that are still relevant\n- Goals completed or progress milestones\n\n### 2. Check each candidate against existing MEMORY.md content - dedup precisely\n\nSkip if already recorded. Dedup by the fact's **subject**, not by string match:\n- Identify what each candidate is *about* (a skill, a token, a repo, a lesson, a priority).\n- If MEMORY.md already carries that subject, **edit the existing line in place** (merge the new detail, bump any date). Never append a second bullet that paraphrases an existing one - that near-duplicate drift is what a memory flush exists to prevent.\n- Only add a new bullet when the subject is genuinely absent.\n\n### 3. Remove stale entries - this is as important as adding new ones\n\na. **Open Improvement PRs section**: Run `gh pr list --state open --search \"improve:\" --json number,title,url` and compare against any \"Open Improvement PRs\" section in MEMORY.md.\n   - If all listed PRs are now merged\u002Fclosed, remove the section entirely.\n   - If some PRs are merged, update the list to reflect only current open ones.\nb. **Next Priorities section**: Cross-check each listed priority against recent logs and current repo state. Remove priorities that are already done (e.g., \"Merge open PRs\" if 0 open PRs exist). Add any newly urgent priorities surfaced by recent logs.\nc. **Lessons Learned**: Remove lessons that are now outdated or resolved (e.g., a workaround for a bug that was later fixed).\nd. **Overflow any section that outgrows its budget** (keeps MEMORY.md an index, not a ledger): if a section has grown past the last ~10-15 rows - the Skills Built table is the usual first offender, but the rule is general - archive the oldest rows to `memory\u002Ftopics\u002F\u003Csection>-history.md` (e.g. `skills-history.md`) and leave a one-line pointer to that file. Trim newest-kept, oldest-archived.\n\n### 4. Update memory\n\n- Add brief entries to MEMORY.md (keep it under ~50 lines as an index).\n- If a topic needs more detail, write to `memory\u002Ftopics\u002F\u003Ctopic>.md` instead (see step 6 - register it in the index).\n- Update tables (recent articles, recent digests) with new rows.\n- Before adding a section, check whether its `## Heading` already exists anywhere in MEMORY.md - if it does, update that section in place. Never prepend a duplicate heading.\n- **Do not hand-edit the consolidation date.** It is stamped by step 8 (`memory_prep.py stamp`), which writes the structured watermark `memory\u002Fmemory-flush-state.json` (the source of truth) and mirrors it into the MEMORY.md `*Last consolidated:*` line. Skipping step 8 after a real flush is a bug - other skills (e.g. `action-converter`) read that line to tell a live, consolidated store from an untouched template.\n\n### 5. Make targeted edits only\n\nDo NOT rewrite the whole file - make targeted additions and removals.\n\n### 6. Register any new topic files in the index\n\nIf step 4 created a new `memory\u002Ftopics\u002F\u003Ctopic>.md` (or a `*-history.md` archive in step 3d), add a one-line pointer to it under the `# Reference` section of `memory\u002Ftopics\u002Findex.md`, matching the existing row format. New topic notes that aren't linked from the index become orphans no other run can find.\n\n### 7. (Automated) Log rotation\n\nLog rotation now runs deterministically in step 0 (`memory_prep.py window`): whole calendar months entirely older than the 14-day scan floor are appended to `memory\u002Flogs\u002Farchive\u002FYYYY-MM.md` and `git rm`'d once `memory\u002Flogs\u002F` passes ~45 files. The archive preserves every line, respecting the append-only contract while bounding the file count. Nothing to do here by hand; a log inside the scan window is never touched.\n\n### 8. Log the run, then stamp the watermark\n\nLog what you promoted, pruned, and archived, plus the scan window you used (start date to today; note if a >14-day gap was clamped), to `memory\u002Flogs\u002F${today}.md`.\n\nThen run `python3 scripts\u002Fmemory_prep.py stamp` as your **final** action - it writes today's date to `memory\u002Fmemory-flush-state.json` and mirrors it into the MEMORY.md `*Last consolidated:*` line.\n\nIf nothing was worth promoting or removing, log `MEMORY_FLUSH_OK` - but still run `memory_prep.py stamp`: a clean flush is still a consolidation and must advance the watermark.\n\n## Network note\n\n`gh pr list` uses the `gh` CLI's built-in auth - no curl env-var expansion. `python3 scripts\u002Fmemory_prep.py` and all other work is local file I\u002FO against `memory\u002F` (plus `git rm` for log rotation).\n\n## Constraints\n\n- Keep MEMORY.md an index (~50 lines). Detail lives in `memory\u002Ftopics\u002F`.\n- Never duplicate an existing `## Heading` or an existing fact - update in place.\n- Pruning stale entries is as important as adding new ones.\n- The watermark and log rotation are owned by `scripts\u002Fmemory_prep.py` (steps 0 and 8), not by hand. The model's job is judgment: what to promote, dedup, and prune.\n- **This skill owns MEMORY.md consolidation.** Other skills (e.g. `self-improve`) may *flag* memory-hygiene problems, but structural pruning and archiving of MEMORY.md should land here to avoid two skills thrashing the same file. If `self-improve` prunes in an audit, treat it as a stopgap, not a reason to skip the next flush.\n",{"name":5,"metadata":23,"scorable":19,"description":7},{"var":24,"tags":25,"title":27,"category":28},"",[26],"meta","Memory Flush","core","main","d272e2d5dc4795e777d85c731669e1978c0d7595","skills\u002Fmemory-flush","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm","https:\u002F\u002Fgithub.com\u002FDitto190","2026-11-13 06:13:51",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Ditto190\u002FAeon-automaton-codeyourself-mm --skill memory-flush",{"tool":41,"command":42},"bunx","bunx skills add Ditto190\u002FAeon-automaton-codeyourself-mm --skill memory-flush",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Ditto190\u002FAeon-automaton-codeyourself-mm --skill memory-flush","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fmemory-flush\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M7DCG5X4KFH7AB8485P75B8F","you-web-search","Web search using You.com Search API with high-quality, cited results and optional real-time web crawling","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fyou-web-search\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7DCFZSBXYJ5YD2RW2EYYBTR","write-tweet","Multi-format tweet studio - standalone drafts (10 across 5 size tiers), a 5-10 tweet thread, or 10 remixes of past tweets, selected via ${var}","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tweet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7DCFWHQ8A71VR7QR9HGWXFP","weekly-aeoncard","Build a weekly token-consumption recap image from memory\u002Ftoken-usage.csv - this week + all-time totals, top skills, rendered as a shareable SVG card.","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-aeoncard\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7DCFHZQJMV0VBJY9HPPG74R","vuln-tracker","One lifecycle poll over everything vuln-scanner produces - PR and advisory status, PVR triage transitions, and pending-disclosure aging, with a stars-secured impact headline and one action queue.","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-tracker\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7DCF5RBH2H7S5H6Y7PSJRRD","vuln-scanner","Audit trending repos for real security vulnerabilities and disclose responsibly - scan and route findings (PVR \u002F dependency PR), re-submit queued advisories, and send armed email disclosures","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-scanner\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7DCF140AXQARZJ5WNSB8BCA","video-script","Turn a repo, product page, or update into a recording-ready video script in a receipts-first format - verifies every claim against live sources, then writes timestamped VO + on-screen direction with a plain-language glossary, assets checklist, anti-tells, and a verify-before-recording list","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-script\u002FSKILL.md",[],[]]