一键导入
promote
Move personal auto-memory or local-only files into workspace-context. Use when you've discovered something valuable that the team should know.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Move personal auto-memory or local-only files into workspace-context. Use when you've discovered something valuable that the team should know.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Finalize a work session — rebase, synthesize release notes from spec/plan/session tracker/commits, create PRs with unified presentation. Handles all project repos and workspace repo. Use when work on a session is done.
Workspace maintenance — audit integrity, clean up stale context, suggest merges. Run periodically or before /release.
Suspend current work — updates session tracker, captures state to the tracker body, pushes all repos, creates draft PRs. Use when stepping away from work that isn't finished.
First-time workspace initialization. Clones repos, installs template components, extracts team knowledge from documentation sources and Claude chat history, activates rules, configures user identity. Run once after scaffolding with --init.
Prepend a new CHANGELOG.md entry per project repo by synthesizing unreleased branch notes. Deletes consumed branch notes and synthesizes workspace-context into canonical (locked) entries. Use at release time.
Apply a staged template update to an initialized workspace. The CLI stages a payload in .workspace-update/; this skill processes it. Runs maintenance audit before and after.
| name | promote |
| description | Move personal auto-memory or local-only files into workspace-context. Use when you've discovered something valuable that the team should know. |
Promote personal knowledge into workspace-context. Assess all candidates, recommend actions, let the user decide with coded references.
This skill can promote from three sources:
~/.claude/projects/*/memory/workspace-context/team-member/{user}/local-only-*.md (and any other local-only-*.md under workspace-context/).claude/rules/local-only-*.mdStep 1: List all candidates
Show ALL candidates from all sources in a single coded table. The user should see everything at once to make informed decisions.
| Code | File | Assessment | Recommendation |
|------|-------------------------------|-----------------------------------------|-------------------|
| AM1 | feedback_no_injection_rev... | Redundant — coherent-revisions rule | Drop from memory |
| AM2 | project_create_claude_work... | Stale — references deleted spec | Drop or update |
| AM3 | feedback_subagent_perms... | Personal setup quirk | Keep as memory |
| LOC1 | local-only-naming-ideas.md | Team should see naming options | Promote to alice/ |
| LOC2 | local-only-release-checkli... | Personal task tracker | Keep local |
| LOR1 | local-only-dogfood-sync.md | Dogfood-specific, not for template | Keep local |
For each candidate, assess:
Step 2: User decides
The user responds using codes:
Step 3: Execute decisions
For each promote action:
workspace-context/shared/), user-scoped (default, workspace-context/team-member/{user}/), or locked (workspace-context/shared/locked/)?"capture-context.mjs --update to write to the destination with the right frontmatter:
cat {source-file} | node .claude/scripts/capture-context.mjs \
--type {braindump|handoff|research} \
--topic {kebab-name} \
--scope {team-member|shared} \
[--user {workspace.user}] \
--update
When promoting to locked, write directly to workspace-context/shared/locked/{bare-name}.md instead — locked files use bare names (location signals the type) and don't take a prefix. Strip the braindump_/handoff_/research_ prefix when locking.type: promoted in the destination frontmatter (the helper writes the standard fields; edit type afterward, or have the body's frontmatter override).local-only- original.git commit -m "promote: {name}"For each drop action:
~/.claude/projects/*/memory/, local-only from workspace)For each keep action:
Step 4: Report
"Promoted {N} files. Dropped {M} files. {K} files unchanged."
Auto-memory files are terse notes written for Claude's internal use. When promoting to workspace-context, rewrite into proper format with: