Command Palette

Search for a command to run...

Назад к скиллам
скилл № 95500

publish

Publish a draft note or post on iamsteve.me. Takes the draft from the drafts branch (Steve’s ~/Sites/iamsteve-drafts folder), flips it live, puts it on main…

БесплатноБез исполняемых скриптов
stevemckinneyот stevemckinney★ 21 звезда на GitHub

Установить publish в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Publish a draft

Drafts live on the drafts branch, which holds nothing but drafts and never merges into main: notes/<slug>.md, or posts/<NNNN>-<slug>.md with images in posts/images/. On the Mac it’s checked out at ~/Sites/iamsteve-drafts, where Steve writes in iA Writer and commits himself, as he does on his phone.

Publishing copies the draft into this checkout, flips it live, commits it on a branch of its own cut from origin/main, and squash-merges that branch’s PR. Vercel deploys main. Then the draft comes off the drafts branch.

Branches are built in temporary worktrees, so this checkout stays on its branch and anything uncommitted in it is left alone. Shell variables don’t carry between commands, so each block that uses a worktree starts by setting its path.

Below, <draft> is the draft’s path on the drafts branch, and <file> is where it goes on the site: content/notes/<slug>.md or content/blog/<NNNN>-<slug>.md.

1. Find the draft

Use the title or slug Steve gives. If he doesn’t give one, or it fits more than one draft, list them and ask which:

git fetch origin
git ls-tree -r --name-only origin/drafts -- notes posts | grep '\.md$'
git -C ~/Sites/iamsteve-drafts status --porcelain --untracked-files=all -- notes posts

The first lists the drafts on GitHub. The second lists drafts in the folder with changes Steve hasn’t committed, new ones included.

2. Make sure it’s the latest

Publish what’s on GitHub, so edits from Steve’s phone are in. First check the drafts folder hasn’t got edits that aren’t pushed. Each command prints only if it has:

git -C ~/Sites/iamsteve-drafts fetch -q origin
git -C ~/Sites/iamsteve-drafts status --porcelain --untracked-files=all -- <draft>
git -C ~/Sites/iamsteve-drafts log --oneline origin/drafts..HEAD -- <draft>

Do the same for a post’s images. If anything prints, show Steve what isn’t pushed (git -C ~/Sites/iamsteve-drafts diff origin/drafts -- <draft>, or say the draft is new) and offer to commit and push it for him: those files by name, as “Update draft:

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read
  3. 03Write
  4. 04Edit

FAQ

Что делает скилл publish?

Publish a draft note or post on iamsteve.me. Takes the draft from the drafts branch (Steve’s ~/Sites/iamsteve-drafts folder), flips it live, puts it on main through a PR of its own for Vercel to deploy, then takes it off the drafts branch. Use when Steve says publish or asks to put a draft live.

Как установить скилл publish?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл publish запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить publish с