ax-agent-memory-skills
Installation
SKILL.md
AxAgent Memory And Skills Rules (@ax-llm/ax)
Use this skill when an agent needs a persistent context map, task-relevant memory retrieval, or skill guides loaded into the executor prompt on demand. For ordinary agent setup use ax-agent. For RLM runtime policy use ax-agent-rlm. For callbacks and telemetry use ax-agent-observability.
Use These Defaults
- Use a static
skillsCatalog/memoriesCatalogwhen the skill guides or memories fit in a plain array — Ax then backsdiscover({ skills })/recall(...)with a built-in deterministic local search and no host search code is needed. - Use
onSkillsSearch/onMemoriesSearchwhen retrieval needs a real backend (vector DB, BM25 service, KV). A host callback always takes precedence over the catalog's built-in search. - Use
contextMapwhen repeated runs inspect the same long external context and should accumulate a small orientation cache automatically. recall(...)is available to distiller and executor stages whenonMemoriesSearchor a non-emptymemoriesCatalogis set.discover({ skills })is available to the executor whenonSkillsSearchor a non-emptyskillsCatalogis set.- With
skillsCatalog, the executor prompt also gains a static### Available Skillsindex (id + name + description), so skill discovery is targeted instead of blind. - Both
recall(...)anddiscover({ skills })returnvoid. The loaded content appears on the next turn. - Use
onLoadedMemories/onLoadedSkillsto observe what got loaded. - Use
onUsedMemories/onUsedSkillsto track what the actor says it actually relied on. - Child agents do not inherit memory or skills search callbacks; wire them explicitly on every agent that needs the capability.