{"id":"a0f47f8f-a293-4f8e-8d9b-c527abf52b86","shortId":"BveX2k","kind":"skill","title":"memory-entrypoint-with-index-discipline","tagline":"Keep MEMORY.md terse by capping entries, warning when caps hit, and pointing each memory to its own file.","description":"# SKILL: Memory Entrypoint With Index Discipline\n**Domain:** context-management  \n**Trigger:** Use whenever you’re writing to MEMORY.md so the index stays readable and never exceeds terminal-safe length budgets.\n**Source Pattern:** Distilled from reviewed context, compaction, and memory-governance patterns.\n\n## Core Method\nTreat MEMORY.md as an index rather than a content store: truncate entries when the line cap or byte cap is reached, issue a warning in place of the dropped detail, and point each entry to a dedicated per-topic file that holds the richer memory frontmatter. Keep the truncation routine deterministic by trimming to 200 lines, then to the last newline before 25 000 bytes, so future reads know exactly what the policy will display.\n\n## Key Rules\n- Always stop counting entries once you hit `MAX_ENTRYPOINT_LINES`; avoid writing new lines beyond the cap and instead move the extra detail into a `${ENTRYPOINT_NAME}` entry that links to another file.\n- After trimming, append a warning that mentions which limit fired (`lines`, `bytes`, or both) and hints to keep entries under ~200 characters per line.\n- Never add content directly to `MEMORY.md`; each entry should be one line in the form `- [Title](file.md) — one-line hook` referencing a dedicated memory file.\n- Keep the index a short sentinel that signals the existence and freshness of the memory; save details only in files that the agent can Read or Write when needed.\n\n## Example Application\nIf a user asks you to remember their quarterly OKR planning, add a single hook line to `MEMORY.md` that links to `okr.md` and let that file carry the context, while the entry keeps `MEMORY.md` under 200 lines so the prompt cache never truncates the index unexpectedly.\n\n## Anti-Patterns (What NOT to do)\n- Don’t append long paragraphs or copies of the memory content directly into `MEMORY.md`; doing so triggers truncation every time and loses context visibility.\n- Don’t continually extend `MEMORY.md` beyond the caps; once a limit is hit, move future info to a new file instead of letting the file grow uncontrolled.","tags":["memory","entrypoint","with","index","discipline","cskill","agents","ychampion","agent-skills","ai-agents","cli","coding-agents"],"capabilities":["skill","source-ychampion","skill-memory-entrypoint-with-index-discipline","topic-agent-skills","topic-ai-agents","topic-cli","topic-coding-agents","topic-context-engineering","topic-developer-tools","topic-mcp","topic-multi-agent","topic-terminal-ui"],"categories":["cskill-agents"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/ychampion/cskill-agents/memory-entrypoint-with-index-discipline","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add ychampion/cskill-agents","source_repo":"https://github.com/ychampion/cskill-agents","install_from":"skills.sh"}},"qualityScore":"0.467","qualityRationale":"deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 34 github stars · SKILL.md body (2,091 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T06:56:51.090Z","embedding":null,"createdAt":"2026-04-18T22:20:44.178Z","updatedAt":"2026-04-22T06:56:51.090Z","lastSeenAt":"2026-04-22T06:56:51.090Z","tsv":"'000':134 '200':125,201,297 '25':133 'add':206,273 'agent':253 'alway':148 'anoth':179 'anti':309 'anti-pattern':308 'append':183,317 'applic':261 'ask':265 'avoid':158 'beyond':162,344 'budget':55 'byte':87,135,192 'cach':302 'cap':11,15,85,88,164,346 'carri':288 'charact':202 'compact':62 'content':78,207,325 'context':33,61,290,337 'context-manag':32 'continu':341 'copi':321 'core':68 'count':150 'dedic':106,228 'detail':99,170,247 'determinist':121 'direct':208,326 'disciplin':6,30 'display':145 'distil':58 'domain':31 'drop':98 'entri':12,81,103,151,175,199,212,293 'entrypoint':3,27,156,173 'everi':333 'exact':140 'exampl':260 'exceed':50 'exist':240 'extend':342 'extra':169 'file':24,110,180,230,250,287,358,363 'file.md':221 'fire':190 'form':219 'fresh':242 'frontmatt':116 'futur':137,353 'govern':66 'grow':364 'hint':196 'hit':16,154,351 'hold':112 'hook':225,276 'index':5,29,45,74,233,306 'info':354 'instead':166,359 'issu':91 'keep':7,117,198,231,294 'key':146 'know':139 'last':130 'length':54 'let':285,361 'limit':189,349 'line':84,126,157,161,191,204,216,224,277,298 'link':177,281 'long':318 'lose':336 'manag':34 'max':155 'memori':2,20,26,65,115,229,245,324 'memory-entrypoint-with-index-disciplin':1 'memory-govern':64 'memory.md':8,42,71,210,279,295,328,343 'mention':187 'method':69 'move':167,352 'name':174 'need':259 'never':49,205,303 'new':160,357 'newlin':131 'okr':271 'okr.md':283 'one':215,223 'one-lin':222 'paragraph':319 'pattern':57,67,310 'per':108,203 'per-top':107 'place':95 'plan':272 'point':18,101 'polici':143 'prompt':301 'quarter':270 'rather':75 're':39 'reach':90 'read':138,255 'readabl':47 'referenc':226 'rememb':268 'review':60 'richer':114 'routin':120 'rule':147 'safe':53 'save':246 'sentinel':236 'short':235 'signal':238 'singl':275 'skill':25 'skill-memory-entrypoint-with-index-discipline' 'sourc':56 'source-ychampion' 'stay':46 'stop':149 'store':79 'termin':52 'terminal-saf':51 'ters':9 'time':334 'titl':220 'topic':109 'topic-agent-skills' 'topic-ai-agents' 'topic-cli' 'topic-coding-agents' 'topic-context-engineering' 'topic-developer-tools' 'topic-mcp' 'topic-multi-agent' 'topic-terminal-ui' 'treat':70 'trigger':35,331 'trim':123,182 'truncat':80,119,304,332 'uncontrol':365 'unexpect':307 'use':36 'user':264 'visibl':338 'warn':13,93,185 'whenev':37 'write':40,159,257","prices":[{"id":"ee876a65-7726-4261-b4df-ce9f849bff7b","listingId":"a0f47f8f-a293-4f8e-8d9b-c527abf52b86","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"ychampion","category":"cskill-agents","install_from":"skills.sh"},"createdAt":"2026-04-18T22:20:44.178Z"}],"sources":[{"listingId":"a0f47f8f-a293-4f8e-8d9b-c527abf52b86","source":"github","sourceId":"ychampion/cskill-agents/memory-entrypoint-with-index-discipline","sourceUrl":"https://github.com/ychampion/cskill-agents/tree/main/skills/memory-entrypoint-with-index-discipline","isPrimary":false,"firstSeenAt":"2026-04-18T22:20:44.178Z","lastSeenAt":"2026-04-22T06:56:51.090Z"}],"details":{"listingId":"a0f47f8f-a293-4f8e-8d9b-c527abf52b86","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"ychampion","slug":"memory-entrypoint-with-index-discipline","github":{"repo":"ychampion/cskill-agents","stars":34,"topics":["agent-skills","ai-agents","cli","coding-agents","context-engineering","developer-tools","mcp","multi-agent","terminal-ui"],"license":"mit","html_url":"https://github.com/ychampion/cskill-agents","pushed_at":"2026-04-04T14:13:23Z","description":"Agent skills for coding CLIs, multi-agent runtimes, context engines, MCP extensions, and terminal tooling. Instead of using claude code's source code, give your agent skills to create your own!","skill_md_sha":"84721fcd924ebbf34e1763ae97dd9b53f4d78c7b","skill_md_path":"skills/memory-entrypoint-with-index-discipline/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/ychampion/cskill-agents/tree/main/skills/memory-entrypoint-with-index-discipline"},"layout":"multi","source":"github","category":"cskill-agents","frontmatter":{"name":"memory-entrypoint-with-index-discipline","description":"Keep MEMORY.md terse by capping entries, warning when caps hit, and pointing each memory to its own file."},"skills_sh_url":"https://skills.sh/ychampion/cskill-agents/memory-entrypoint-with-index-discipline"},"updatedAt":"2026-04-22T06:56:51.090Z"}}