agentsclimarketplace

Memory entrypoint with index discipline

Skill vishuwa2004/cskill-agents/agents/codex/skills/memory-entrypoint-with-index-discipline

Build curated agent skills for coding CLIs, terminal tools, context engines, remote bridges, and multi-agent runtimes

Install
npx -y skills add vishuwa2004/cskill-agents --skill memory-entrypoint-with-index-discipline

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Keep MEMORY.md terse by capping entries, warning when caps hit, and pointing each memory to its own file.

SKILL.md

2.3 KB, as published. Nobody here has run it

SKILL: Memory Entrypoint With Index Discipline

Domain: context-management
Trigger: Use whenever you’re writing to MEMORY.md so the index stays readable and never exceeds terminal-safe length budgets. Source Pattern: Distilled from reviewed context, compaction, and memory-governance patterns.

Core Method

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

Key Rules

  • 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.
  • After trimming, append a warning that mentions which limit fired (lines, bytes, or both) and hints to keep entries under ~200 characters per line.
  • 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.
  • 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.

Example Application

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

Anti-Patterns (What NOT to do)

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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.