No slash command · from cc-tools
Copy the invoking agent's own .claude/agent-memory/<plugin>-<agent>/ entry files that outlive this run into the session's per-branch agent-memory inbox under the scratchpad, so a curator can transfer the durable ones into the repo's own documentation. Takes no arguments and commits nothing.
Ships in cc-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running the /cc-tools:agent-memory-inbox-capture skill. Move
the calling agent's own memory entries that outlive this run out of its
throwaway worktree and into the session's inbox, where the curator can
reach them.
You are the only stage that still has the run in context — what the
task was, what was tried, which observations were about this branch and
which about the repo. Every later stage reads an entry file stripped of
all of it, and resolves the resulting ambiguity by publishing, which is
how something that was true inside one worktree for an hour reaches
CLAUDE.md. So the session-scope filter in step 3 is yours and nobody
else's.
Do not rewrite an entry, and do not touch any other agent's subdirectory.
Read skills/lib/agent-memory-inbox.md for the inbox path, its
<plugin>-<agent>/ layout, and how the branch and the scratchpad are
resolved. That contract is the only statement of the path; this skill
does not restate it.
/cc-tools:agent-memory-inbox-capture
No arguments. Everything the skill needs — the calling agent's memory directory, the current branch, and the session scratchpad — comes from the invoking agent's own context and working tree.
Resolve the branch, before any end-of-run detach:
git branch --show-current
An empty result means HEAD is detached and the branch is unrecoverable. Report that and stop; capture nothing rather than writing to a wrongly-named inbox.
Find the entries. The calling agent's own memory directory is
.claude/agent-memory/<plugin>-<agent>/ relative to its cwd, where
<plugin>-<agent> is its own name — sdlc-issue-developer, say.
Take that name from your own identity, never by looking at what the
tree happens to hold, and sweep that one directory:
find .claude/agent-memory/<plugin>-<agent> -type f -name '*.md'
A sibling directory belongs to another agent and is never read. In
a repo that gitignores .claude/agent-memory/ a fresh worktree has
none; in a repo that commits the tree the worktree carries every
agent's committed entries, and copying those would file another
run's lessons under this run's capture.
If the directory is absent, or holds no file other than a
MEMORY.md, report that nothing was captured and stop. That is a
valid outcome: it means the run learned nothing worth recording.
Ask of each entry whether it survives the run. Would this mean anything to a reader who was not here — someone with the repo in front of them and no knowledge of this task, this branch, or this worktree? Answer it from the run itself, which is the context only you have; you are not grading whether the entry is worth publishing, which is the curator's call on the entries that reach it.
An entry that fails is dropped, which means not copying it and nothing more. Nothing is deleted: the agent's own files stay where they are and die with the worktree.
Copy each surviving entry file into the same-named
<plugin>-<agent>/ subdirectory of this branch's inbox, creating
the directories as needed. Copy the file's bytes unchanged, under
its own name.
MEMORY.md is skipped. It is an index for a tree nothing
reads back, and the inbox keeps no index of its own.issue-fixer
round — write the same subdirectory, and the later run saw more.Commit nothing. This skill never runs git add, git commit,
or git push, and it never writes inside the repository.
One block:
## Agent memory captured
Inbox: <inbox path for this branch>
Entries: <N>
- <plugin>-<agent>/<file>
Dropped (session-scoped) (<N>):
- <plugin>-<agent>/<file> — <what about it was local to this run>
Name every drop: it is the one record anyone gets of an entry no later stage will ever see. Report that nothing was captured when no entry survived, or when there was none to begin with.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thevoskamps/claude-plugins-marketplace --plugin cc-tools8 skills in this plugin
/agent-memory-cleanupCurate a repo's .claude/agent-memory/ in one acting pass. Grades every entry persist / scrub / transfer, deletes what the code or the repo's documentation already says, moves durable lore into that documentation as present-tense constraints, and repairs the MEMORY.md indexes and wikilinks. Takes an optional PR number; with none, curates the current working tree./agent-memory-inbox-cleanupCurate the session's per-branch agent-memory inbox in one acting pass. Grades every captured entry transfer-or-delete, writes the durable ones into the repo's own documentation as present-tense constraints, commits and pushes them on the given branch, and empties the inbox. Takes the branch name./Other plugins' skills for the same job