/ccxp-skills:memory-to-skill [dry-run]from ccxp-skills
Use when the user explicitly asks to review the current clone's auto-memory, prune stale entries, or turn recurring memories into a durable skill/doc/hook change
Ships in ccxp-skills. 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.
Read when SKILL.md points to them; scripts run unread.
<skills-root>= this skill's "Base directory" minus its last component; substitute the literal path (skill-conventions§9).
Review the CURRENT clone's Claude Code auto-memory files, delete what's
stale, and codify what's proven durable into its permanent home — a skill's
SKILL.md, dev/guidelines.md, DEPENDENCIES.md/gotchas.md, or a
hard-gate hook. When a recurring memory doesn't map to any existing
skill or doc, file a task to design a NEW skill for it instead of forcing
a bad fit or dropping it.
This is /retro Phase 1b's memory-review logic, extracted so it can run
on demand from a single clone without the rest of the weekly retro. See
Cross-references for how the two relate.
dry-run — optional. Report findings (stale candidates, consolidation
targets, new-skill candidates) without deleting memory files or filing
tasks. Default (no argument): apply the changes.
Current clone only. No sweep across other checkouts of the same repo
(/retro Phase 1b does that separately, with its own stale-directory
detection). If more than one clone of a repo has accumulated memory, run
this skill again from each clone.
bash <skills-root>/memory-to-skill/scripts/find-memory-dir.sh
Prints the absolute path to ~/.claude/projects/<encoded-cwd>/memory, or
exits 1 if this clone has never accumulated memory — in that case, report
"no memory to review" and stop.
Read that directory's MEMORY.md for the index, then read each linked
.md file in full. Memory types: user (role/preferences), feedback
(corrections and validated approaches), project (decisions, constraints,
context), reference (pointers to external systems).
dry-run gate applies to every action step below (3, 4, 5): decide and
record what you WOULD do; only actually delete a file, edit a doc, or run
/new-task/_taskid/new.sh when NOT in dry-run mode. This gate is
checked at the point of each action, not deferred to step 6's report.
For each entry, decide:
dry-run, record it as "would remove" and move
on; otherwise delete the memory file (send it to the Trash with
agent-pairing/scripts/trash.sh; the plugin's rm-guard hook blocks plain rm)
and remove its MEMORY.md entry now — don't defer to step 4.feedback or project memory that's proven
useful across sessions should be promoted to a permanent home instead
of living only in auto-memory:
dev/guidelines.mdSKILL.md in this
plugin source (<name>/SKILL.md).claude/skills/<name>/SKILL.md instead of the
global oneDEPENDENCIES.md or workflow comments
in that repogotchas.mdfeedback memory that got violated again despite already
being recorded → prose alone isn't working; escalate to a hard gate
(a PreToolUse/PostToolUse hook, or a wrapper/validation script)
instead of just rewording the memoryIf a memory describes a recurring need — the same workaround, the same
manual step, the same judgment call — and none of step 3's targets
actually fit it (it isn't a tweak to an existing skill's behavior, a
process rule, or a diagnostic pattern; it's a capability that doesn't
exist yet): in dry-run, record it as a "would file" new-skill candidate
and move on. Otherwise, file a task to design a new skill for it:
/new-task "Design /<candidate-name>: <one-line gloss of the recurring need, sourced from the memory>"
Let /new-task gather the rest through its normal back-and-forth — don't
fabricate the task's Problem/estimation from the memory alone. Reference
the source memory's content in the task's Problem bullets so the design
work has the original evidence, then delete the memory (its job — get
this codified — is now tracked as a task, so keeping the memory too
would duplicate it).
In dry-run, record each codify-able item as a "would consolidate"
candidate (with its target file) and stop — do not file a task or edit
any file. Otherwise: for each codify-able item from step 3 that isn't a
trivial one-line edit you're making directly, file a task (bash ../_taskid/new.sh --check ./dev + the task template), tagged Category: process and Source: memory-to-skill YYYY-MM-DD. For a small, obvious
edit (e.g. one bullet added to dev/guidelines.md), just make the edit
directly instead of filing a task to describe making it — use judgment
the way /retro Phase 1b does.
Summarize:
In dry-run mode, report the same shape but with "would remove" / "would
consolidate" / "would file" — make no file changes and file no tasks.
/retro Phase 1b — the multi-clone version of this same review, run
weekly as part of the full retrospective. /retro Phase 1b may in
future call this skill directly (per-clone) and layer its own
cross-clone sweep + stale-directory detection on top, instead of
duplicating the assess/codify logic — noted here as a follow-up, not
implemented as part of this task./new-task — files both the new-skill-design tasks (step 4) and the
consolidation tasks (step 5)dev/guidelines.md, gotchas.md, DEPENDENCIES.md — common
consolidation targetsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub synx-data-labs/ccxp-skills --plugin ccxp-skills57 skills in this plugin
/1password-env-setupUse when the user explicitly asks to bootstrap or refresh a repo's 1Password-backed .env — installs the refresh-env helper, generates a hash-checking .envrc, and materializes .env from .env.tpl via op inject/address-prUse when the user explicitly asks to address, verify, or merge a specific open PR (CI, Claude Code review, test plan, tiered merge)/agent-pairingUse when the user explicitly asks to toggle the ccxp-agent main-session agent on/off for this Claude Code profile or check its status