memory-index-folding
Skill3 starsChanged 8 days agoApache-2.0View on GitHub
当记忆索引 MEMORY.md 快写满要瘦身折节、余量不足 3,000 字符、开窗提示索引有行被截、看到的末行与文件真实末行对不上、二级入口也快满,或有提醒喊索引超限时使用。凡遇到这些情况,先读本 skill 再动手:备份后先演练再折,整节原样挪进二级入口,条目一条不丢,别去删条目。
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude-session-observabilitySkill
- closeout-report-draftingSkill
- context-guard-hooksSkill
- contract-and-test-infraSkill
- doc-pointer-checkSkill
- engineering-pitfalls-checklistSkill
- first-window-requirementsSkill
- frontend-integration-preflightSkill
- hive-dispatchSkill
- legacy-project-onboardingSkill
- memory-writingSkill
- merge-and-deploySkill
- open-source-preflightSkill
- pointer-handoffSkill
- repo-scale-reportingSkill
- shared-checkout-safetySkill
- short-book-draftingSkill
- subtraction-reviewSkill
- ticket-desk-usageSkill
- top-audit-dispatchSkill
- verify-agent-claimsSkill
- window-handoff-draftingSkill
- zero-window-taskbook-draftingSkill
The file
Files
这个 skill 是干什么的(人话)
这个 skill 要配合 md-workflow 全套用,它帮你在记忆索引快写满时,把一整节原样挪进单独的分册,原处只留一行入口。索引有长度上限,超出的末尾几行会被悄悄截掉,而被截的往往正是最新写下的规矩。照它折,条目一条不丢,折前折后能逐条对上;不折,新开的窗少读了规矩也不自知。
分类
分类:需要 md-workflow 全套
用前填这几个名字
本 skill 不需要填名字。
什么时候用
- 往记忆索引加了行,量出余量不足 3,000 字符(即超过 21,000 字符)。
- 开窗加载时提示索引有行被截掉,或自己上下文里的索引末行与文件真实末行对不上。
- 折出来的二级入口自己也接近上限。
- 自动提醒按字节喊「索引超限」:先按正确量法复量,真超了才用本 skill 折,别照提醒去删条目。
步骤
- 读本目录
references/memory-index-folding.md照做。 - 只是要写一条新记忆、或给索引加一行,不用本 skill,改用 memory-writing(记忆写入与索引)。
规则真源是 desk/memory/规范.md 的 §4、§5 和 desk/memory/fold_index.py 的文件头说明;本目录只排顺序、不抄原文,两处对不上以原件为准。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

