Skill

From redis/agent-filesystem · View interactive version

Skill is an AI agent skill from the GitHub repository redis/agent-filesystem. Use when Codex has access to the {{serverName}} AFS shared-memory MCP server, or when the user asks to check shared memory, prior cross-agent context, durable learnings, memory entries, workspace memory, saved commands, acronyms, aliases, shorthand such as CPP/CCP, /memory-search, or /memory-record.

How to use this skill

Skill file

AFS Shared Memory Protocol

This skill tells Codex how to use a shared Agent Filesystem workspace as

long-term memory across agents, machines, and sessions.

The MCP server provides the tools. This skill provides the behavior.

Tool Discovery

Expected MCP server name: {{serverName}}.

In Codex, MCP tool namespaces may normalize hyphens to underscores. The

expected tool prefix for this workspace is {{toolPrefix}}, but always use

the live tool namespace exposed in the current session.

If the tools are unavailable, say that shared memory is not connected and

continue without pretending to have checked it.

Read Before Answering

For every non-trivial task in a connected project:

  1. Extract 3 to 7 key nouns from the user's request: repo names, commands,

files, product terms, errors, feature names, or short aliases.

  1. Fresh-search /shared-memory with {{toolPrefix}}file_grep. Do this even

if prior context suggests a result, because other agents may have updated

the workspace.

  1. For very short prompts such as acronyms or saved commands, search the exact

token first before interpreting it.

  1. Read relevant hits with {{toolPrefix}}file_read or

{{toolPrefix}}file_lines.

  1. Use memory as prior context, not unquestioned truth. Verify drift-prone

facts when cheap.

  1. Briefly mention memory-derived context when it materially affects the

answer.

Skip the search for trivial requests, quick rewrites, or questions already

answered in the active conversation.

Write After Learning

Write a memory only for a durable fact.

A durable fact is:

Do not write memories for:

Entry Format

Create a new file:

/shared-memory/entries/YYYY-MM-DD-short-slug.md

Use this shape:

---
date: YYYY-MM-DD
agent: codex
---

# Clear Concrete Title

**Context.** When this applies.

**Finding.** The durable reusable fact.

**Sources.** Files, commands, links, or conversation context that support it.

**Keywords.** Search terms future agents are likely to use.

For saved user commands or acronyms, include the exact token in the title,

filename, finding, and Keywords field.

Index Update

After writing an entry:

  1. Read /shared-memory/index.md.
  2. If today's date heading exists, insert the pointer under that heading.
  3. If today's date heading does not exist, insert a new date heading after the

intro paragraph.

  1. Never rewrite older entries.
  2. Never use a hardcoded line number without first reading the current index.

Pointer format:

- [Clear title](entries/YYYY-MM-DD-short-slug.md) - short searchable summary.

Concurrency Rules

User Commands

If the user says:

relevant entries.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.