agentleFS
flc1125flc1125/skills/skills/memory-init/SKILL.md

memory-init

Skill38 starsChanged 3 months agoMITView on GitHub

Scaffold a project-local memory directory and AGENTS.md guidance for reusable agent knowledge. Use when a user wants to initialize `.agents/memories/` or another project memory path so future agents can read and maintain durable project context.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to initialize durable project knowledge, not to store one-off task notes.

    line 15
  2. Very specific:

    Use .agents/memories/ unless the user specifies another memory directory.

    line 21
  3. Very specific:

    read index.md before non-trivial work.

    line 66
  4. Distinctive:

    update memories when the user requests memory maintenance or when the current task explicitly includes maintaining reusable project …

    line 68
  5. Distinctive:

    avoid one-off task notes, temporary debugging details, secrets, credentials, and conversation-specific context.

    line 70
  6. Very specific:

    keep index.md aligned when memory files are added, removed, renamed, or materially changed.

    line 71
  7. Very specific:

    If an existing managed block is present, update it instead of appending a duplicate.

    line 73
  8. Distinctive:

    Treat memory as durable project knowledge.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Memory Init

Scaffold lightweight, project-local memory files that future agents can read and maintain.

Use this skill to initialize durable project knowledge, not to store one-off task notes. The default target is .agents/memories/, with AGENTS.md guidance for Codex-oriented future use.

Workflow

  1. Confirm the target project root.
  2. Inspect whether the target memory directory and agent instruction file already exist.
  3. Use .agents/memories/ unless the user specifies another memory directory.
  4. Run scripts/init_project_memory.py.
  5. Review the generated or changed files.
  6. Report the memory directory and whether the agent instruction file was created or updated.

Command

From any location:

python3 <skill-dir>/scripts/init_project_memory.py /path/to/project

With a custom memory directory:

python3 <skill-dir>/scripts/init_project_memory.py /path/to/project --memory-dir docs/agent-memory

To create memory files without touching the agent instruction file:

python3 <skill-dir>/scripts/init_project_memory.py /path/to/project --skip-agent

With an alternate agent instruction file:

python3 <skill-dir>/scripts/init_project_memory.py /path/to/project --agent-file CLAUDE.md

Generated Files

The scaffold creates missing files only. Existing memory files are preserved.

  • README.md: explains the memory system, what belongs there, and what must not be stored.
  • index.md: routes future agents to the relevant memory files.
  • project.md: stores stable project conventions and durable context.
  • workflows.md: stores repeatable commands, release steps, CI workflows, and maintenance procedures.
  • lessons.md: stores reusable lessons, pitfalls, and verified fixes.

AGENTS.md Guidance

By default, the script creates or updates AGENTS.md in the project root. It inserts a concise ## Project Memory section that tells future agents to:

  • read index.md before non-trivial work;
  • open only task-relevant memory files;
  • update memories when the user requests memory maintenance or when the current task explicitly includes maintaining reusable project knowledge;
  • recommend a memory update instead of editing memory files when memory maintenance is outside the current task scope;
  • avoid one-off task notes, temporary debugging details, secrets, credentials, and conversation-specific context;
  • keep index.md aligned when memory files are added, removed, renamed, or materially changed.

If an existing managed block is present, update it instead of appending a duplicate. If only an unmarked ## Project Memory / ## Project Memories section exists, preserve the user-authored section and append a managed block.

Memory Standard

Treat memory as durable project knowledge. Add or update entries when the user asks for memory maintenance or the task explicitly includes maintaining reusable project context.

Good memory candidates:

  • stable repository conventions;
  • commands or workflows that were verified locally;
  • recurring environment constraints;
  • cross-task architectural or maintenance decisions;
  • reusable debugging lessons.

Do not store:

  • secrets, credentials, tokens, or private keys;
  • raw conversation logs;
  • single-task progress notes;
  • speculative conclusions that have not been verified;
  • noisy command output that is not reusable.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.