/pipecrew:memory-syncfrom pipecrew
Manages GitHub-backed shared memory for a workspace with subcommands: status, pull, sync, enable. Useful for manual control over team memory syncs without running a full pipeline.
Ships in pipecrew. 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.
/pipecrew:memory-sync status [--workspace=<slug>] [--json]
/pipecrew:memory-sync pull [--workspace=<slug>]
/pipecrew:memory-sync sync [--workspace=<slug>] [--message="<msg>"] [--sync-mode=commit|pr|hybrid]
/pipecrew:memory-sync enable [--workspace=<slug>] [--remote=<url>] [--sync-mode=commit|pr|hybrid]
The first positional token is the subcommand (defaults to status if omitted). Everything operates on the workspace's memory repo at {workspace_root}/{slug}/ — the shared, team tier (context/, agents/, history/, config.portable.json). Per-repo docs (CLAUDE.md, agent-context/) live in the code repos' own git and are NOT touched here.
| Subcommand | What it does | Mutates? |
|---|---|---|
status (default) | Freshness (last change + who), behind/ahead of origin, unpushed commits, dirty tree, sync mode | no |
pull | fetch + pull --rebase to the team's latest; refuses over a dirty tree | local only (fast-forwards) |
sync | redact → regenerate config.portable.json → commit → rebase → publish per sync_mode; retries a previously-failed push | yes |
enable | Turn memory on for an existing workspace: bootstrap the private repo (or attach a remote), set config.workspace.memory, do the first sync | yes |
node {plugin_dir}/scripts/sync-memory.js. The script is the engine — do not reimplement redaction, rebase, or PR routing here.visibility: private). If a user passes a remote that resolves to a public repo, STOP and ask — never push.status and pull are warn-only; a fetch failure reports "remote not reachable" and uses the local copy. Match the script's behavior — do not treat an offline machine as an error.sync/enable path runs through sync-memory.js, which redacts before committing. Do not bypass it with a raw git commit.status / pull / sync / enable. If absent, default to status.node {plugin_dir}/scripts/workspace-registry.js --resolve --json (add --workspace=<slug> if given) → {slug, path, root}. Set {slug} = .slug and {workspace_root} = .root. If it exits 3, it lists candidates: one → use it, many → ask which slug, none → tell the user to run /discover or /join.node {plugin_dir}/scripts/validate-config.js {workspace_root}/{slug}/config.json. Halt on errors.config.workspace.memory. For status / pull / sync: if memory is absent or enabled:false, tell the user it's off and point them at enable (don't error). For enable: proceed even when off — that's the point.status (read-only)node {plugin_dir}/scripts/sync-memory.js status {workspace_root}/{slug}
Relay the one-line result. If --json was passed, add --json and surface the structured fields (the reporter / site-view can consume this). Interpret for the user when useful:
behind origin → suggest /pipecrew:memory-sync pull.unpushed local commits → suggest /pipecrew:memory-sync sync (a prior push likely failed).not bootstrapped → suggest /pipecrew:memory-sync enable.status or sync shows no domain.id in config.json, mention the back-fill command: node {plugin_dir}/scripts/mint-domain-id.js --config={workspace_root}/{slug}/config.json (add --prefix=<label> if the team wants a short cosmetic label baked into the id, e.g. --prefix=payments → domain_payments_<ULID>; omit for a plain domain_<ULID>; the label is frozen at mint and never changes).pull (get the team's latest)node {plugin_dir}/scripts/sync-memory.js pull {workspace_root}/{slug}
Relay the freshness line. If the tree is dirty the script skips the pull (it won't clobber local edits) and says so — tell the user to sync their pending changes first, then pull.
sync (publish pending changes / retry a failed push)Use this when status shows unpushed commits or a dirty tree (e.g. an earlier automatic sync committed locally but the push failed offline), or when the user hand-edited a durable doc and wants it shared.
node {plugin_dir}/scripts/sync-memory.js {workspace_root}/{slug} \
--message "{message}" --checkpoint=manual \
[--sync-mode={mode if --sync-mode passed}]
--message to "memory-sync: manual update" if the user didn't supply one.--checkpoint=manual labels any PR branch (memory/manual-<sha>).sync_mode + what changed; relay whether it pushed to main or opened a PR. If it reports a gh pr create failure, the branch is still pushed — tell the user to open the PR manually (give them the branch name).enable (turn memory on for an existing workspace)This is the standalone path so the user does not have to re-run /discover just to switch memory on. Mirrors /discover Phase D Step 8 bootstrap.
{workspace_root}/{slug}/config.json:
"workspace": { "memory": {
"enabled": true,
"remote": "<--remote=… if given, else filled in after gh repo create>",
"visibility": "private",
"sync_mode": "<--sync-mode=… else 'hybrid'>" // hybrid is the shared-team default
}}
{workspace_root}/{slug}/ is not yet a git repo):
cd {workspace_root}/{slug}
git init -q && git branch -M main
cp {plugin_dir}/templates/workspace-memory.gitignore .gitignore
--remote=<url> given → git remote add origin <url>.gh repo create {config.workspace.memory.repo_name || "{slug}-memory"} --private --source=. --remote=origin, then write the resulting URL back into config.workspace.memory.remote.node {plugin_dir}/scripts/sync-memory.js {workspace_root}/{slug} \
--message "memory-sync: enable + first sync ({slug})" --checkpoint=enable
The first commit creates main, so it's a direct push regardless of sync_mode. Relay the result; on push failure, the commit is local — surface the warning and the fix (auth / create the remote), don't fail.One concise line per the subcommand outcome. For enable, also tell the user the feature is now on and that future /discover / /learn / /context-refresh / /deliver runs will pull at pre-flight and sync at their checkpoints automatically.
/discover, /learn, /context-refresh, and /deliver already pull at pre-flight and sync at their checkpoints. This skill does not replace that — it's for the off-cycle cases: checking health, pulling on demand, retrying a failed push, and enabling memory after onboarding.config.workspace.memory.sync_mode): commit (push to main), pr (always a memory/* PR), hybrid (PR for platform.md/ADR changes, commit for bookkeeping).pr / hybrid). ADR, Established Pattern and gap-class numbers are reserved against open memory PRs by node {plugin_dir}/scripts/memory-numbers.js {workspace_root}/{slug} (shows main, each open PR's claims, and the next free numbers; --check exits 3 on a collision). When the user asks about pending memory PRs, run it and relay the result. Advise:
merge=union) or "keep both sides" on history/learn-log.md or adrs/INDEX.md, because it interleaves or drops lines. Use merge commits so the original PRs close as merged.main (gh pr edit <n> --base main) before merging its base PR. gh pr merge --delete-branch on the base closes the stacked PR instead of retargeting it./memory? Claude Code ships a built-in /memory command for editing CLAUDE.md files. This skill is namespaced pipecrew:memory-sync to stay unambiguous.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
23 skills in this plugin
/assessStandalone cross-repo assessment. Checks a feature branch across all repos for cross-repo integration: wire-shape agreement, requirement enforcement symmetry, event/infra wiring. Use for verifying manually-implemented features or pre-merge validation./brainstormBrainstorm what to build (or how to build it) — one skill, two perspectives. PRODUCT perspective dispatches the product-brainstormer: `greenfield` (no onboarded workspace → a PROJECT_BRIEF, same path as /discover --greenfield) or `feature` (an onboarded workspace exists → a ranked FEATURE_BRIEF for the product-owner). TECHNICAL perspective (`--technical`) dispatches the solution-architect in MODE: brainstorm to diverge into 2–3 technical approaches with pros/cons and a recommendation. Auto-detects perspective and mode from the request; asks when it's unclear which. Standalone — dispatches the agent and presents the result./npx claudepluginhub pipecrew-ai/pipecrew --plugin pipecrewOther plugins' skills for the same job