Agent Skillsaaronjmars/aeon › Memory Flush

Memory Flush

GitHub

扫描近期日志,将重要条目(如经验教训、完成目标)提炼至MEMORY.md作为索引,同时清理过时内容以保持文件精简。支持按主题筛选,确保记忆系统长期有效且结构清晰。

skills/memory-flush/SKILL.md aaronjmars/aeon

Trigger Scenarios

用户要求刷新或整理记忆 需要总结近期工作进展 维护 MEMORY.md 的准确性与简洁性

Install

npx skills add aaronjmars/aeon --skill Memory Flush -g -y
More Options

Use without installing

npx skills use aaronjmars/aeon@Memory Flush

指定 Agent (Claude Code)

npx skills add aaronjmars/aeon --skill Memory Flush -a claude-code -g -y

安装 repo 全部 skill

npx skills add aaronjmars/aeon --all -g -y

预览 repo 内 skill

npx skills add aaronjmars/aeon --list

SKILL.md

Frontmatter
{
    "var": "",
    "name": "Memory Flush",
    "tags": [
        "meta"
    ],
    "type": "Skill",
    "category": "meta",
    "description": "Promote important recent log entries into MEMORY.md and prune stale ones"
}

${var} — Topic to focus on. If empty, flushes all recent activity.

If ${var} is set, only flush entries related to that topic.

Read memory/MEMORY.md for current memory state. Read the last 3 days of memory/logs/ for recent activity.

Steps

1. Scan recent logs for entries worth promoting to long-term memory

  • New lessons learned (errors encountered, workarounds found)
  • Topics covered (articles, digests) — add to the recent output/articles/digests tables
  • Features built or tools created
  • Important findings from monitors (on-chain, GitHub, papers)
  • Ideas captured that are still relevant
  • Goals completed or progress milestones

2. Check each candidate against existing MEMORY.md content

Skip if already recorded.

3. Remove stale entries — this is as important as adding new ones

a. 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.

  • If all listed PRs are now merged/closed, remove the section entirely.
  • If some PRs are merged, update the list to reflect only current open ones. b. 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. c. Lessons Learned: Remove lessons that are now outdated or resolved (e.g., a workaround for a bug that was later fixed). d. Skills Built table: If the table has grown beyond the last 10–15 entries, archive the oldest rows to memory/topics/skills-history.md to keep MEMORY.md under ~50 lines.

4. Update memory

  • Add brief entries to MEMORY.md (keep it under ~50 lines as an index).
  • If a topic needs more detail, write to memory/topics/<topic>.md instead.
  • Update tables (recent articles, recent digests) with new rows.
  • 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.

5. Make targeted edits only

Do NOT rewrite the whole file — make targeted additions and removals.

6. Log to memory/logs/${today}.md

Log what you promoted or removed.

If nothing worth promoting or removing, log MEMORY_FLUSH_OK and end.

Sandbox note

gh pr list uses the gh CLI's built-in auth — no curl env-var expansion. All other work is local file I/O against memory/.

Constraints

  • Keep MEMORY.md an index (~50 lines). Detail lives in memory/topics/.
  • Never duplicate an existing ## Heading — update in place.
  • Pruning stale entries is as important as adding new ones.

Version History

  • fb16753 Current 2026-07-05 12:06

Same Skill Collection

skills/action-converter/SKILL.md
skills/article/SKILL.md
skills/auto-merge/SKILL.md
skills/auto-workflow/SKILL.md
skills/autoresearch/SKILL.md
skills/bd-radar/SKILL.md
skills/changelog/SKILL.md
skills/code-health/SKILL.md
skills/cost-report/SKILL.md
skills/create-skill/SKILL.md
skills/ctrl/SKILL.md
skills/defi-overview/SKILL.md
skills/deploy-prototype/SKILL.md
skills/digest/SKILL.md
skills/distribute-tokens/SKILL.md
skills/ecosystem-pulse/SKILL.md
skills/fear-divergence/SKILL.md
skills/feature/SKILL.md
skills/fetch-tweets/SKILL.md
skills/fleet-control/SKILL.md
skills/fork-fleet/SKILL.md
skills/github-monitor/SKILL.md
skills/github-trending/SKILL.md
skills/heartbeat/SKILL.md
skills/idea-forge/SKILL.md
skills/idea-pipeline/SKILL.md
skills/inbox-triage/SKILL.md
skills/install-skill/SKILL.md
skills/investigation-report/SKILL.md
skills/issue-triage/SKILL.md
skills/last30/SKILL.md
skills/mention-radar/SKILL.md
skills/monitor-polymarket/SKILL.md
skills/narrative-convergence/SKILL.md
skills/narrative-tracker/SKILL.md
skills/okf-export/SKILL.md
skills/okf-ingest/SKILL.md
skills/onchain-monitor/SKILL.md
skills/operator-scorecard/SKILL.md
skills/picks-tracker/SKILL.md
skills/pm-manipulation/SKILL.md
skills/pm-pulse/SKILL.md
skills/pr-review/SKILL.md
skills/pr-triage/SKILL.md
skills/price-alert/SKILL.md
skills/reply-maker/SKILL.md
skills/repo-scanner/SKILL.md
skills/schedule-ads/SKILL.md
skills/search-skill/SKILL.md
skills/self-improve/SKILL.md
skills/send-email/SKILL.md
skills/skill-health/SKILL.md
skills/skill-repair/SKILL.md
skills/soul-builder/SKILL.md
skills/spawn-instance/SKILL.md
skills/strategy-builder/SKILL.md
skills/token-movers/SKILL.md
skills/token-pick/SKILL.md
skills/treasury-info/SKILL.md
skills/tx-explain/SKILL.md
skills/unlock-monitor/SKILL.md
skills/verdikta-hunter/SKILL.md
skills/vuln-scanner/SKILL.md
skills/vuln-tracker/SKILL.md
skills/workflow-audit/SKILL.md
skills/write-tweet/SKILL.md
skills/x402-monitor/SKILL.md
skills/base-mcp/SKILL.md
skills/star-milestone/SKILL.md

Metadata

Files
0
Version
fb16753
Hash
6cd88d2d
Indexed
2026-07-05 12:06

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-13 14:08
浙ICP备14020137号-1 $Carte des visiteurs$