/collab-tools:promote-draftfrom collab-tools
Moves a draft from /tmp/collab-tools/ to a permanent location, optionally stripping -draft/-date suffix. Companion to temp-draft skill.
Ships in collab-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.
Companion to temp-draft skill. Once a draft in /tmp/collab-tools/ is ready to live somewhere permanent — a blog post directory, a project doc, an email file, a code snippet in a repo — this skill moves it out of the staging dir, optionally renames off the "drafty" filename, and surfaces the right next step (typically git add).
The default source location is /tmp/collab-tools/ (where temp-draft writes). The user can also pass an explicit source path from anywhere in the filesystem — useful for drafts that started somewhere else or were created in a prior session.
The same content-stays-in-the-file philosophy applies: the file is the deliverable, chat stays lean. Do not paste the draft contents during this skill.
Use this skill when:
/promote-draft directly.Don't use this skill for:
Bash with mv.Decide in this order:
Argument is an explicit path — use it. The source can be anywhere in the filesystem when the user names it directly. Don't restrict to /tmp/collab-tools/ in this case.
The current conversation created a temp-draft — use that path. Look back through this session's tool calls for a Write to a /tmp/collab-tools/* path or an eval "${EDITOR:-vi}" '/tmp/collab-tools/...' invocation; that's almost certainly the file.
Otherwise, list candidates from the temp-draft staging directory and ask the user which to promote:
ls -lt /tmp/collab-tools/ 2>/dev/null | head -10
Show the candidates and ask. Don't guess if more than one is plausible. If the directory is empty or doesn't exist, tell the user there's nothing to promote and stop — don't go fishing through other /tmp paths uninvited.
Verify the source exists before doing anything else: test -f "<source>" || ... and stop with a clear error if it doesn't.
Parse $ARGUMENTS for a destination. Common shapes:
/temp-draft promote ~/blog/posts/ — destination is a directory; keep the filename (after rename, see step 3)./temp-draft promote ~/blog/posts/my-new-post.md — destination is a full path; use as-is.If the destination directory doesn't exist, ask before creating it (mkdir -p). Don't silently materialize new directory trees.
Temp-draft filenames follow <slug>-YYYY-MM-DD.<ext>. That -YYYY-MM-DD suffix is useful for triage in /tmp but usually doesn't belong in the permanent name.
If the basename contains any of these patterns, propose a cleaner name:
-draft anywhere in the slug → remove.-YYYY-MM-DD at the end of the stem → remove (the file's mtime / git history will preserve the date).temp, wip, scratch in the slug → ask whether to drop.Show the user the proposed before / after and confirm. Example:
Rename
cold-email-to-acme-draft-2026-05-28.md→cold-email-to-acme.md? (Y/n)
If the user is silent on this and the destination already specifies a full filename, use the user's chosen filename — don't override.
mv "<source>" "<final-destination>"
If the destination resolves to the same path as the source for whatever reason, stop — there's nothing to do.
After the move:
git -C "<dest-dir>" rev-parse --show-toplevel 2>/dev/null to detect whether the destination is inside a git repo.git add "<final-destination>" as the next step. Do not stage or commit automatically — committing is the user's decision.One short sentence either way. Don't paste the draft's contents.
Good:
Moved
/tmp/collab-tools/cold-email-to-acme-2026-05-28.md→~/work/emails/cold-email-to-acme.md. It's in a git repo —git add ~/work/emails/cold-email-to-acme.mdwhen you're ready.
Bad:
Here's the final draft now living at ~/work/emails/cold-email-to-acme.md:
Subject: ... ... 200 lines pasted into chat ...
/tmp count as drafts.mv handles it. If it fails, fall back to cp && rm and report what happened.What SKILL.md sets; muted values are Claude Code's defaults
Use when the user invokes /promote-draft, or when they say the temp-draft is ready, ask to 'move the draft to <path>', 'promote this draft', 'land the draft', or otherwise indicate that a draft should now live somewhere permanent. Do NOT use for arbitrary file moves — this is specifically the companion to the temp-draft skill. The default source location is /tmp/collab-tools/, but the user may name any source path explicitly.
Three short reads, in order
npx claudepluginhub jtsternberg/claude-plugins --plugin collab-tools3 skills in this plugin
/diff-viewGenerate a self-contained HTML code diff (2-way side-by-side or 3-way) from files, pasted code, or git refs — word-level highlights, optional PNG screenshots for a PR or Slack./temp-draftDraft in a /tmp file opened in the user's $EDITOR instead of pasting into chat; Slack-message drafts use Slack-flavored markup so they paste cleanly.Other plugins' skills for the same job