К основному содержанию
скилл CX Codex

release-kotlin-library — скилл для Claude Code: как установить

Автоматизирует подготовку, проверку и публикацию релизов библиотек на Kotlin. Помогает сверить список изменений, обновить снимки Metalava API и безопасно запустить публикацию.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add chrisbanes/skills --skill release-kotlin-library -a claude-code
Открыть на GitHub

Что делает release-kotlin-library

Скилл выстраивает строгий процесс релиза Kotlin-библиотек. Он проверяет текущее состояние ветки в Git, прогоняет тесты через gradle-run с ключом --no-scan и сопоставляет снимки Metalava api/api.txt. Чейнджлог оформляется по чётким правилам: промежуточные пререлизы упаковываются в блок <details>, а для стабильной версии формируется отдельная сводка. Публикация не начнётся без прямого подтверждения от пользователя, даже если запуск был запрошен изначально.

Внутри заложено жёсткое требование: проект обязан использовать плагин com.vanniktech.maven.publish. Если плагин не подключён, скилл не станет настраивать публикацию сам и просто остановит работу. Это спасает сборочные скрипты Gradle от самодеятельности агента. Для локального деплоя переменные окружения берутся из файла ~/.env напрямую как данные, без выполнения через командную оболочку, а для тегов в CI используются настроенные секреты репозитория.

После деплоя скилл проверяет наличие готовых артефактов по указанным координатам и сверяет удалённый тег с коммитом релиза. Только после подтверждения он поднимает версию до следующей стадии разработки.

Какие задачи решает

  • проверить готовность Kotlin-библиотеки к релизу
  • синхронизировать снимки Metalava API перед публикацией
  • собрать финальный чейнджлог со сводкой пререлизов
  • проконтролировать публикацию артефактов локально или через CI

Примеры запросов агенту

  • Проверь готовность репозитория к релизу новой версии библиотеки
  • Подготовь релиз библиотеки, обнови чейнджлог и снимки API
  • Опубликуй подготовленный релиз Kotlin-библиотеки после проверки

Как установить release-kotlin-library

1Через Skills CLI (Vercel)

npx skills add chrisbanes/skills --skill release-kotlin-library -a claude-code

2Вручную: положить файлы

~/.claude/skills/release-kotlin-library/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/release-kotlin-library/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о release-kotlin-library

Как установить release-kotlin-library в Claude Code?

Выполните в терминале команду npx skills add chrisbanes/skills --skill release-kotlin-library -a claude-code.

Что делает скилл release-kotlin-library?

Он проводит аудит репозитория, обновляет файлы версий, проверяет снимки API Metalava, готовит релизный коммит и отправляет артефакты в репозиторий после подтверждения.

Какой плагин сборки требуется для работы скилла?

Проект должен напрямую или через convention-плагин применять gradle-maven-publish-plugin (com.vanniktech.maven.publish). Если плагина нет в конфигурации Gradle, скилл сразу прекратит работу и не станет вносить правки.

Исходный текст

SKILL.md · Apache-2.0
---
name: release-kotlin-library
description: Use when preparing, publishing, or checking readiness for a Kotlin library release, including verifying its gradle-maven-publish-plugin prerequisite, reconciling changelogs and API snapshots, and checking publication.
---

# Release Kotlin library

## Core principle

Publish the prepared, validated, user-approved release commit and call the release complete
only after verifying its artifacts and Git state.

## Prerequisite

This skill relies on `gradle-maven-publish-plugin` (`com.vanniktech.maven.publish`)
for library publication, whether run locally or through tag-triggered CI.
API snapshot support assumes Metalava-generated `api/api.txt` files; disable
snapshots when the repository does not maintain them.

## Procedure

1. Establish scope and inspect repository instructions, Git state, release
   history, version properties, publishing configuration and required checks.
   If the user limits review to supplied state, run no commands and mark
   unsupplied state unknown. Confirm, from build files or supplied repository facts, that published
   modules apply `com.vanniktech.maven.publish` directly or via a convention
   plugin; declaration alone is insufficient. If absent
   or unverified, report it and stop before release mutations; do not install
   or migrate publishing plugins.
   Distinguish readiness review, preparation and explicit release authorization;
   select the matching finish path before proceeding.
   For recovery or recovery review, select and read the
   [recovery answer form](references/recovery-output.md) before analysis. For
   changelog-related review, also read [the changelog procedure](references/changelog.md).
   For preparation or changelog-only work, read the
   [preparation answer form](references/preparation-output.md) completely, in
   its own call, before analysis.
   Keep reviews read-only, including credentials. Follow the existing local or
   CI publishing mechanism; do not migrate it. Read the
   [helper contract](references/helper.md) before configuring the bundled script.
   Stop before mutation on unsupported layouts or ambiguous destinations.
2. Before preparation, read [the changelog procedure](references/changelog.md)
   completely; resolve baseline, version and coverage ambiguity. Do not guess
   or create a changelog.
3. Identify repository release checks, including tests and Metalava API
   generation and compatibility checks where configured. Confirm that API files
   are current before snapshotting; the helper copies them without running
   Metalava. Do not treat other API dump formats as Metalava snapshots.
   Require passing evidence for the release code; a green
   parent commit is insufficient after relevant changes. For Gradle execution,
   use [gradle-run](../gradle-run/SKILL.md), with `--no-scan` unless a scan is
   explicitly authorized. Fix failed checks within authorized scope; otherwise
   stop with the failing gate and next action.
4. Configure and preflight the helper with explicit versions, paths, heading
   style, API snapshot applicability, branch, remote, tag and command arguments.
   Keep configuration and evidence outside tracked release files. Check the
   index, snapshot collisions and local/remote destinations before writes. Load
   `~/.env` for local publication as data, never by shell sourcing or printing it.
   Preserve explicit process environment values. Missing required credentials
   block local publication; do not request or log their values. For tag-triggered
   CI, use existing Git authentication and CI-managed publishing secrets without
   loading or requiring local dotenv values.
5. Prepare the release: update the version, finalize the changelog heading and
   applicable published-module API snapshots, run configured checks, and commit
   only release files. When finalizing a stable release entry, draft the stable
   summary from every surviving coverage-ledger row in final-behavior wording
   before grouping that cycle's original prerelease entries beneath it in a
   `<details>` block with
   `<summary>Prerelease history</summary>`. Move the original prerelease entries
   as one block without reordering them. Preserve their headings, anchors,
   dates and text, with blank lines around the enclosed Markdown. Leave older
   stable releases outside the block. If the renderer lacks collapsible HTML,
   retain expanded entries. Before handing off, recheck the actual stable
   summary against every surviving ledger row and the grouped history against
   the source order. Inspect the resulting commit. Bind validation to
   this state and invalidate it if relevant code changes. The helper must not
   publish during preparation.
6. Present the prepared release for explicit user approval before publication:
   release version and tag, finalized changelog (or its absence), next development
   version, release commit, artifact coordinates and destination, publishing
   mechanism, and validation results. Provide the actual notes or a directly
   reviewable diff, not just a claim that they are ready. Explain that this
   approval gate is required by this skill and wait for the user's decision;
   a general request to release does not approve unseen release details.
   Reuse approval already given for this exact prepared release. If the code,
   versions, notes or publishing scope change, prepare and validate the revised
   release and obtain approval again. Preparation-only and readiness requests
   stop at their requested scope without soliciting publication approval.
7. Once the prepared release is approved and all gates pass, publish from that
   commit via the repository's selected mechanism. Local publication and
   tag-triggered CI are alternatives; do not run both. Do not publish artifacts,
   push a release tag or trigger publishing CI before approval.
8. Verify all expected artifact coordinates and versions at the configured
   destination, along with CI completion when applicable. Verify the remote tag
   resolves to the prepared commit. A successful command or tag alone is not
   artifact evidence. Only then advance, commit, push and verify the agreed
   next development version. Create and read back a GitHub Release only when
   repository conventions call for it, using the finalized release notes.
9. On partial or uncertain success, stop dependent mutations and report verified,
   failed and unknown stages without secrets. Inspect live artifact, workflow,
   tag and branch state before recovery; never blindly repeat publication,
   overwrite remote tags, delete published artifacts or claim rollback. Resume
   only a proven remaining action within existing authorization.

## Finish paths

- **Preparation, including changelog-only:** Fill the selected preparation
  answer form. Show actual reviewable notes or diff, remaining checks, and the
  explicit later publication-approval gate; do not request approval now.
- **Recovery/recovery review:** Fill the selected recovery answer form as
  numbered sections; check every applicable disposition before replying.
- **Completed release:** Report release version, commit/tag, validation,
  artifact readback, next development commit, and conditional GitHub Release
  URL. Claim completion only when every applicable check passes.

For a readiness review or blocker, state that narrower outcome and remaining
gate. Do not expose credential contents or raw sensitive command output.

© chrisbanes · Apache-2.0 · chrisbanes/skills

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

Всё по теме «DevOps и инфраструктура» →
kotlin-tooling-native-build-performance JetBrains Разбирает, почему iOS-сборка в Kotlin Multiplatform идёт медленно, и предлагает безопасные правки с замером до и после. CX Codex +1 943установок kotlin-tooling-gradle-to-kotlin-toolchain-project github:@singleton11 Пошагово переводит проект с Gradle на Kotlin Toolchain: переносит зависимости, заменяет плагины и правит CI. Пригодится при полной миграции репозитория без изменения бизнес-логики. CX Codex +1 426установок kotlin-mcp-server-generator официальный github Скилл создаёт Kotlin-проект MCP-сервера с Gradle, официальным SDK и базовыми инструментами. Пригодится, когда нужен готовый каркас нового сервера. 8 700установок kotlin-patterns affaan-m Скилл задаёт правила идиоматичного Kotlin для ИИ-агентов. Пригодится при ревью кода, настройке корутин и избавлении от лишних проверок на null. CX Codex +1 4 800установок apollo-kotlin apollographql Скилл ведёт агента по настройке Apollo Kotlin в Gradle-проекте: схема, кодогенерация, ApolloClient с авторизацией и кэшем, запросы и подписки. CX Codex +1 1 700установок kotlin-multiplatform vitorpamplona Скилл подсказывает агенту, в какой модуль и source set положить код в Amethyst, и не даёт сломать сборку на гейте чистоты KMP. CX Codex +1 1 600установок

Из того же набора17

kotlin-control-flow Скилл для ИИ-агента, который пишет и правит ветвления Kotlin: when, guard-условия, исчерпывающие проверки sealed-типов, smart casts. CX Codex +1 1 100установок compose-component-design Скилл для проектирования и ревью переиспользуемых компонентов Jetpack Compose: слоты, модификаторы, размещение корневого layout. CX Codex +1 1 000установок kotlin-api-design Помогает решить, кому принадлежит функция, где ставить extension, а где хватит value class. Пригодится при проектировании публичного API на Kotlin и в KMP. CX Codex +1 949установок gradle-run Скилл гоняет сборки Gradle через обёртку с компактным выводом и ведёт журнал запусков, чтобы агент не заливал контекст полным логом. CX Codex +1 768установок run-github-project Ведёт работу по колонкам GitHub Project: разбирает Todo, берёт задачи в Ready to implement и доводит до Done. CX Codex +1 643установок implement-with-subagents Координирует выполнение графа задач соло-агентом или пулом субагентов с изолированными коммитами и обязательным независимым ревью. CX Codex +1 582установок grounded-writing Скилл убирает выдуманные факты, рекламный тон и лишние детали реализации из публичной документации и технических отчётов. CX Codex +1 448установок android-benchmark-comparison Скилл задаёт протокол для экспериментов с бенчмарками на физических Android-устройствах. Пригодится, когда нужно выбрать конфигурацию по умолчанию или разобрать спорные замеры. CX Codex +1 329установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой