Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

skill-changelog

БесплатноЗапускает вложенные скриптыНе проверен

Write or backfill a skill's own CHANGELOG.md from its git history when metadata.version is bumped. Use after any skill version bump or on /skill-changelog…

luongnv89от luongnv89★ 976 звёзд на GitHub

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

Skill Changelog

Record what changed in a skill each time its version goes up, from that skill's own git diff, in a CHANGELOG.md inside the skill folder so the history travels with every copy. Writes files; never commits.

When to Use

  • Automatic mode: a skill's metadata.version was just bumped in this conversation, e.g. by a skill create or update run.
  • On request: /skill-changelog [<skill-dir>...] [--backfill], or a request to write or backfill a skill's changelog.

Do not use for: a project's release notes or top-level CHANGELOG.md, commit or PR messages, or summarising what an upstream skill update changed before installing it.

Terms: bump = a metadata.version change; range = the skill folder's changes since the previous version (base..end); entry = one ## [X.Y.Z] - YYYY-MM-DD block.

Prerequisites

  1. Run git --version && python3 --version. If either fails, stop and report the missing tool.
  2. Set SV=<this-skill-dir>/scripts/skill_versions.py (absolute path). Run it with a subcommand (state, history, check); do not read it. It prints JSON; its git commands run from any directory.

Repo Sync Before Edits (mandatory)

In automatic mode, skip it: the calling run already synced and its bump must not be stashed. On request, run it once per repository before the first write:

(R="$(git -C "<skill-dir>" rev-parse --show-toplevel)" && branch="$(git -C "$R" rev-parse --abbrev-ref HEAD)" || exit 1
if git -C "$R" ls-remote --exit-code --heads origin "$branch" >/dev/null 2>&1; then
  dirty=0
  if [ -n "$(git -C "$R" status --porcelain --untracked-files=no)" ]; then git -C "$R" stash push -m "pre-skill-changelog" && dirty=1; fi
  git -C "$R" pull --rebase origin "$branch" || { echo "Rebase failed: run git -C $R rebase --abort, then ask the user"; exit 1; }
  if [ "$dirty" -eq 1 ]; then git -C "$R" stash pop || { echo "Stash pop failed: see git -C $R stash list"; exit 1; }; fi
else
  echo "No origin or no remote branch '$branch': sync skipped."
fi)

If the block exits 1, stop and ask the user. Never resolve a conflict yourself.

Workflow

Step 1: Select the skills

  1. If the user named skill folders, use those.
  2. In automatic mode, use the folders whose version was bumped in this conversation.
  3. Otherwise, from the repo root, list git ls-files --others --exclude-standard -- '*SKILL.md' and, if HEAD exists, git diff --name-only HEAD -- '*SKILL.md'. Keep each folder whose state prints "uncommitted_bump": true.
  4. Still empty: ask the user for the folder; do not guess.

Process each selected skill through Steps 2–6.

Step 2: Read the version state

Run python3 "$SV" state <skill-dir>. Apply the first row that matches:

Condition Result
The command exits 1 blocked: quote the script's error line.
has_frontmatter is false or version is null blocked: "SKILL.md has no metadata.version".
valid_semver is false blocked: "version <v> is not MAJOR.MINOR.PATCH".
shallow is true blocked: "shallow clone; run git fetch --unshallow".
Полный SKILL.md на GitHub

Установить skill-changelog в Claude Code и Claude Desktop

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

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

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

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

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

Bash
Read
Write
Edit
Grep
Glob

Вложенные файлы

CHANGELOG.mddocs/README.mdevals/evals.jsonreferences/backfill.mdreferences/edge-cases.mdreferences/entry-format.mdscripts/skill_versions.py

FAQ

Что делает скилл skill-changelog?

Write or backfill a skill's own CHANGELOG.md from its git history when metadata.version is bumped. Use after any skill version bump or on /skill-changelog. Don't use for project release notes, commit messages, or upstream update summaries.

Как установить скилл skill-changelog?

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

Скилл skill-changelog запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить skill-changelog с