Skip to content
Back to skills

Memory

ASecurity

Verifies, compresses and completes the CLAUDE.md memory of directories. User-only.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 7, 2026
ai-agentsbashnode

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add p2p2sp/p2p2.claude --skill memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/p2p2sp-memory/badge)](https://www.skillsdirectory.com/skills/p2p2sp-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: memory
description: Verifies, compresses and completes the CLAUDE.md memory of directories. User-only.
argument-hint: "[update|rewrite] [directory...]"
allowed-tools: Agent, AskUserQuestion, Bash(${CLAUDE_SKILL_DIR}/scripts/memory.sh:*)
user-invocable: true
disable-model-invocation: true
---

# memory

One `viber:memory-editor` per target directory, the script around them. Never read a brief, a note, a node or anything an agent wrote: act on script lines and return lines only. Arguments: $ARGUMENTS

`<memory>` is `"${CLAUDE_SKILL_DIR}/scripts/memory.sh"`, `<id>` the manifest's `<session-id>`. Run each call as one Bash line, every path double-quoted. Exit 2: show its `error:` line and stop.

## Arguments

- `update` or `rewrite` is the mode. Every other word is a target directory.

## Ask

Ask only for a missing argument, before Prepare, never otherwise:

1. No mode: one `AskUserQuestion`, options `update` and `rewrite`.
2. No directory: one `AskUserQuestion`, multiSelect, options `.` (the working directory) and up to 3 of its directories; a typed answer names directories separated by spaces.

Never ask for approval before writing, nor for confirmation of `rewrite`: everything it deletes is in HEAD.

## Prepare

Run `<memory> prepare <id> <mode> "<dir>"...`, the mode and each directory taken from the arguments or the answers. Each chosen option and each typed directory is one `"<dir>"`.

- Any `REFUSED: <path>` line: show every such line to the user and stop. Dispatch nothing.
- Else one `BRIEF: <path>` line per target, plus one for the root when it is missing.

## Edit

Dispatch one `viber:memory-editor` per `BRIEF:` line, the root one included, all in one message, prompt `brief: <path>`. Each returns `STATUS: DONE`.

## Check

Once every agent has returned, run `<memory> check <id>`, until it prints `DONE`:

- Per `BACK: <brief> | <violation>...` line, dispatch `viber:memory-editor` with prompt `brief: <brief>` and one `back: <violation>` line per violation, all in one message. Each returns `STATUS: DONE`.
- Then run `<memory> check <id>` again. The script prints one target's `BACK:` once only and reports what stays over budget: never send an agent back on your own, never restore or delete.

## Report

Run `<memory> report <id>` and print its output unchanged. It is the last script call. The result stays in the work tree: never stage, commit or offer a commit.

Files in this skill

  • SKILL.md12.4 KB
  • scripts/memory-map.sh20.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.