/collab-tools:temp-draftfrom collab-tools
Opens long-form drafts in a /tmp file using the user's $EDITOR instead of pasting content into chat. Useful for collaborative editing, Slack drafts, and content without a permanent home.
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.
Read when SKILL.md points to them.
The user prefers to collaborate on long-form drafts in their own text editor rather than read them inline in chat. This skill exists to break the default habit of pasting drafted content directly into responses — which is hard to edit, hard to save, eats context, and loses formatting / syntax highlighting.
Use this skill when:
/temp-draft directly.Don't use this skill for:
Edit / Write against the real file.src/, a section in README.md). The temp file is for drafts without a permanent home yet.When in doubt, ask the user once whether they want the draft in chat or in /tmp. Guessing wrong wastes a turn either way.
Pick a descriptive filename. Format: /tmp/collab-tools/<short-slug>-<YYYY-MM-DD>.<ext>.
/tmp/collab-tools/ so the companion promote-draft skill can find them. Create the directory if it doesn't exist: mkdir -p /tmp/collab-tools.<short-slug> is 3-5 kebab-case words describing the draft. Match the content, not generic ("blog-post-fence-fences", not "draft").<ext> matches the content type: .md for prose, plans, notes, structured docs; .txt for plain unformatted text; .html, .py, .ts, etc. for code./tmp/collab-tools/cold-email-to-acme-2026-05-28.md/tmp/collab-tools/refactor-plan-auth-module-2026-05-28.md/tmp/collab-tools/talk-outline-react-conf-2026-05-28.mdWrite the draft to that file using the Write tool. The file is the deliverable.
Open it in the user's editor with this exact form:
eval "${OPEN_IN_EDITOR_COMMAND:-${EDITOR:-vi}}" '/tmp/collab-tools/your-file.md' &
disown 2>/dev/null || true
OPEN_IN_EDITOR_COMMAND takes precedence over $EDITOR. Set it when your $EDITOR is a blocking/--wait command (e.g. code --wait, used by git) that misbehaves when launched here. A backgrounded --wait editor leaves a live process waiting for the file to close, which shows up as a duplicate "ghost" app instance in the macOS app switcher. Setting export OPEN_IN_EDITOR_COMMAND=code (no --wait) opens the file in the existing window and returns immediately — no ghost. Falls back to $EDITOR, then vi, when unset.eval form is what makes multi-word editor settings work — values like code --wait, cursor --wait, or subl -n -w need shell-level word splitting. Single-quote the path so spaces and special characters are safe.& + disown launch the editor non-blocking. Don't wait for the editor to close — a --wait flag (if present) still makes that editor window stay open until the user is done, but the shell returns immediately. The actual turn boundary is the user's next chat message ("good to go", "tweak section 2", "I changed X") — not the editor exit.Briefly tell the user where it landed. One short sentence with the path. Do NOT paste the draft content into the chat — the entire point is that the chat stays clean and the work lives in the editor.
When the draft is a Slack message (the user says "draft a Slack message/reply/post", mentions a channel or thread, or the destination is clearly Slack), do NOT write standard markdown — Slack's paste-and-convert (cmd+shift+f) only understands a subset, and everything outside it survives as literal artifacts.
Read references/slack-formatting.md before writing the draft — it has the full markdown → Slack conversion table and structure guidance.
Use the .txt extension for Slack drafts — a .md file makes editors copy rich text (rendered markdown styling), which corrupts the paste and breaks cmd+shift+f. Mention in your one-line confirmation that it's formatted for Slack paste.
Good:
Drafted to
/tmp/collab-tools/blog-post-fence-fences-2026-05-28.mdand opened in your editor.
Bad:
Here's the draft:
Don't Tear Down the Fence
... 600 lines of pasted markdown ...
Pasting long drafts into the chat:
A file in /tmp/collab-tools/ opened in the user's editor keeps chat lean, gives the user real editing power, and lets both sides refer back to "the draft" by path across many turns. The shared directory also gives the companion promote-draft skill a known place to look when moving a finished draft to its permanent home.
After the draft is in /tmp, the user may iterate on it — asking for changes, additions, sections to rewrite. Edit the file with the Edit tool and tell the user briefly what changed. Still don't paste the contents.
If the draft is ready to live somewhere permanent (a blog post directory, a project doc, an email client), that's a separate operation — surface the file path and let the user decide where it goes, or ask if they want it moved.
What SKILL.md sets; muted values are Claude Code's defaults
Use when the user invokes /temp-draft, or when they explicitly ask to draft in their editor / in a temp file / collaboratively in editor. Do NOT use for routine writing, short replies, or edits to existing project files — most content belongs in chat or in its real home.
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./promote-draftMove a draft out of /tmp/collab-tools/ into its real home, optionally dropping the -draft/-date suffix. Companion to temp-draft; not for arbitrary file moves.Other plugins' skills for the same job