Install git-cliff utility

VerifiedCaution

Checks for git-cliff and downloads the platform-appropriate version into ./tools/git-cliff.

Sby Skills Guide Bot
DevOpsBeginner
8/18/2026
Claude Code
#git-cliff#changelog#tool-install#onscript#github-releases

Recommended for

Automated summary

Checks whether the git-cliff utility is available and, if not, downloads the release matching the current OS and architecture and unpacks it into ./tools/git-cliff.

Strengths

  • Idempotent: detects an existing install (local copy or PATH) and reports its version without re-downloading
  • Project-local install that needs no admin rights and leaves the system untouched
  • Automatic OS/architecture detection, matching the release asset by target-triplet suffix so .sha512 and .sig files are skipped
  • A --force flag to reinstall and upgrade to the latest release

Limitations

  • Requires network access to GitHub and can fail on anonymous API rate limits (403) or behind a corporate proxy
  • Assumes an OneScript runtime and a platform for which a prebuilt release asset exists
  • Only installs the tool: generating the changelog itself belongs to the changelog-generate skill
When to use it

Use it when changelog-generate reports that git-cliff is missing, when setting up a new machine or CI runner, or when the user explicitly asks to install or update git-cliff.

When not to use it

Do not use it to produce a changelog, nor in an environment without GitHub access where the binary must be placed manually.

Security analysis

Caution
Quality score84/100

The intent is clearly benign and narrowly scoped: fetch the git-cliff release archive for the current platform, unpack it into `./tools/git-cliff` inside the project, and never touch the system, PATH or admin rights — which is a genuinely lower-risk install pattern than `.deb`/`.rpm`. Nevertheless it is a network-and-execute skill: it pulls an unpinned binary from the internet and runs it with no integrity check, and the script that does the work is not included for review. That places it in "caution" (powerful tools used for a legitimate purpose) rather than "safe" or "risky"; there is no obfuscation, exfiltration, destructive command or safety-disabling content.

Findings
  • •Downloads a prebuilt third-party binary from GitHub releases and then makes it executable and runs it (`chmod +x`, `git-cliff --version`) without verifying a checksum or signature — even though the release publishes `.sha512` and `.sig` assets the doc explicitly mentions.
  • •Always resolves and installs the *latest* release; no version pinning, so the artifact executed varies between runs and cannot be reproduced or frozen in CI (supply-chain / drift risk).
  • •Requires outbound network access to `api.github.com` and `github.com`; the only mitigation for API rate limiting / proxies is advisory text, and there is no authenticated or mirror fallback.
  • •The referenced implementation file `scripts/git-cliff-install.os` is not part of this submission, so the actual download, extraction, URL construction and error-handling logic cannot be audited from the SKILL.md alone.
  • •The doc states no confirmation prompt is needed ("Спрашивать ничего не нужно"), only an advisory warning before a network fetch + binary execution.
How this analysis is made

Examples

Install on a new machine
git-cliff isn't found — please install it for this project so I can generate a changelog.
Force an update
Update git-cliff to the latest release in ./tools/git-cliff, even if an older version is already there.
Run the slash command
/git-cliff-install

name: git-cliff-install description: Проверяет наличие утилиты git-cliff и при необходимости скачивает подходящую под текущую платформу версию в ./tools/git-cliff. Нужна навыку changelog-generate.

Навык: Установка утилиты git-cliff (git-cliff-install)

Назначение

Скрипт scripts/git-cliff-install.os обеспечивает наличие утилиты git-cliff — генератора журнала изменений из истории коммитов, необходимого навыку changelog-generate. Скрипт проверяет, установлена ли утилита, и при её отсутствии скачивает последний релиз проекта orhun/git-cliff, подходящий под текущую ОС и архитектуру, и распаковывает его в ./tools/git-cliff.

Особенность семейства: это один из навыков проекта, обращающихся в интернет за сторонним бинарником (наряду с sqlcmd-install и bsl-ls-install). Берётся архив, а не системный пакет .deb / .rpm: распаковка не требует прав администратора и не меняет систему за пределами каталога проекта.

Когда применять

  • Навык changelog-generate сообщил, что утилита git-cliff не найдена.
  • Первичная настройка окружения на новой машине или CI-раннере.
  • Пользователь просит установить или обновить git-cliff.
  • Вызвана команда /git-cliff-install.

НЕ применять для генерации журнала изменений — это навык changelog-generate. Этот навык только устанавливает инструмент.

Обязательный диалог перед запуском скрипта

Параметры не требуются: платформа и версия релиза определяются автоматически. Спрашивать ничего не нужно. Стоит предупредить пользователя, что операция обращается в сеть (GitHub) и скачивает несколько мегабайт.

Запуск

Из корня репозитория (предпочтительно через PowerShell — корректная кириллица в выводе):

oscript .claude/skills/git-cliff-install/scripts/git-cliff-install.os

Необязательный аргумент:

  • --force — переустановить, даже если git-cliff уже найден (например, чтобы обновиться до свежего релиза).

Что делает скрипт (по шагам)

  1. Определяет корень репозитория (git rev-parse --show-toplevel).
  2. Ищет git-cliff: сначала локальную копию ./tools/git-cliff/git-cliff(.exe), затем утилиту в PATH. Если найдена и не указан --force — сообщает версию и завершается с кодом 0 (навык идемпотентен).
  3. Определяет ОС и архитектуру и выбирает платформенный триплет: x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu, aarch64-apple-darwin и т. п.
  4. Запрашивает последний релиз через GitHub API и находит ссылку на нужный ассет.
  5. Скачивает архив во временный каталог и распаковывает в ./tools/git-cliff (ZIP — штатными средствами OneScript, .tar.gz — утилитой tar, затем chmod +x).
  6. Проверяет работоспособность: запускает git-cliff --version и печатает версию.

Почему ассет ищется по триплету, а не по точному имени

Имена ассетов git-cliff содержат номер версии (git-cliff-2.13.1-x86_64-pc-windows-msvc.zip), поэтому предсказать имя файла заранее нельзя. Скрипт ищет ассет, имя которого заканчивается на <триплет><расширение>.

Проверка именно окончания принципиальна: рядом с каждым архивом в релизе лежат файлы .tar.gz.sha512 и .tar.gz.sig с тем же триплетом в имени — поиск по вхождению подстроки выбрал бы файл подписи вместо архива.

Для платформ, где в релизе несколько вариантов, выбор зафиксирован: Windows — msvc (не gnu), Linux — gnu (не musl).

Интерпретация результатов

  • Exit code 0 — git-cliff доступен (был установлен ранее либо установлен сейчас). Сообщить пользователю расположение и версию; можно переходить к changelog-generate.
  • Exit code 1, ошибка сети / GitHub API — показать сообщение скрипта. Типичные причины: нет доступа в интернет, корпоративный прокси, код 403 из-за исчерпанного лимита анонимных запросов к GitHub API. Предложить повторить позже либо скачать релиз вручную и положить исполняемый файл в ./tools/git-cliff.
  • Exit code 1, платформа не определена — сборки для текущей ОС или архитектуры нет в релизе; предложить ручную установку.
  • Exit code 1, ассет не найден в релизе — изменился состав релиза git-cliff; проверить список файлов на странице релизов и при необходимости скорректировать скрипт.
  • Exit code 1, утилита не запускается после распаковки — проверить права на файл и совместимость сборки с платформой.

Ограничения

  • Требует доступа в интернет к api.github.com и github.com.
  • Ставит утилиту ТОЛЬКО в каталог проекта (./tools/git-cliff), не в систему и не в PATH; каталог добавлен в .gitignore и не коммитится.
  • Всегда ставит последний релиз — закрепление конкретной версии не предусмотрено.
  • Для Linux/macOS требуется tar в PATH (входит в состав этих ОС).
  • Не генерирует журнал изменений и не читает cliff.toml — это забота навыка changelog-generate.

Состояние проверки

Проверено на живом окружении 05.08.2026 (Windows, x86_64): установка end-to-end (git-cliff 2.13.1), повторный запуск (идемпотентность, код 0), отбор ассета среди файлов .sha512 и .sig.

Не проверялось: установка на Linux и macOS (ветка tar -xzf с --strip-components=1), поведение при исчерпанном лимите GitHub API.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/install-git-cliff-utility-msy76ar2' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/install-git-cliff-utility-msy76ar2/download' --output '.skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md.part' && mv '.skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md.part' '.skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md' && test -s '.skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/git-cliff-install' && cp -R '.skill-downloads/install-git-cliff-utility-msy76ar2' '.claude/skills/git-cliff-install'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/install-git-cliff-utility-msy76ar2'

openskills read 'install-git-cliff-utility-msy76ar2'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/install-git-cliff-utility-msy76ar2/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills