autoship · vercel-labs — скилл для Claude Code: что делает и как установить
Скилл автоматизирует цикл выпуска пакетов на базе changesets и генерирует описания релизов через нейросеть. Пригодится при частых публикациях в npm.
npx skills add vercel-labs/autoship --skill autoship -a claude-codeЧто делает autoship
Скилл запускает консольную утилиту autoship, которая клонирует репозиторий, изучает коммиты после предыдущего тега и предлагает подходящий тип версии: patch, minor или major. Модель составляет описание ченджсета, затем инструмент открывает и объединяет пулл-реквест. После этого утилита ждёт системный PR версионирования и запускает публикацию в npm.
Перед запуском обязательны два условия: активная сессия в GitHub CLI через команду gh auth login и переменная окружения AI_GATEWAY_API_KEY. Если генерация текста завершится сбоем, autoship переключится на ручной ввод описания. Настройки репозиториев инструмент сохраняет локально в файле ~/.autoship/config.json.
Какие задачи решает
- выпустить patch, minor или major версию пакета в npm
- сформировать описание изменений через ИИ по истории коммитов
- автоматизировать создание и слияние пулл-реквестов с ченджсетами
- настроить запуск релизов в CI/CD без ручных подтверждений
Примеры запросов агенту
- Выпусти патч-релиз для myproject через autoship
- Сделай ченджсет и обнови версию для myproject
- Запусти автоматический минорный релиз проекта myproject без подтверждений
Как установить autoship
1Через Skills CLI (Vercel)
npx skills add vercel-labs/autoship --skill autoship -a claude-code2Вручную: положить файлы
~/.claude/skills/autoship/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/autoship/
1Через Skills CLI (Vercel)
npx skills add vercel-labs/autoship --skill autoship -a codex2Вручную: положить файлы
.agents/skills/autoship/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add vercel-labs/autoship --skill autoship -a cursor2Вручную: положить файлы
.cursor/skills/autoship/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install vercel-labs/autoship autoship2Вручную: положить файлы
.github/skills/autoship/SKILL.md1Через Skills CLI (Vercel)
npx skills add vercel-labs/autoship --skill autoship -a gemini-cli2Командой платформы
gemini skills install https://github.com/vercel-labs/autoship --path skills/autoshipВручную: положить файлы
.devin/skills/autoship/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add vercel-labs/autoship --skill autoship -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Другие версии autoship
Похожие
Рядом в теме «DevOps и инфраструктура»
Всё по теме «DevOps и инфраструктура» →Вопросы о autoship
Как установить autoship в Claude Code?
Выполните команду npx skills add vercel-labs/autoship --skill autoship -a claude-code. Она добавит скилл в конфигурацию агента.
Что делает autoship?
Инструмент берёт на себя релизный цикл changesets: анализирует изменения в коде, создаёт PR с описанием, ожидает прохождения проверок CI и триггерит публикацию в npm.
Что нужно подготовить перед запуском релизов?
Потребуется авторизоваться в GitHub CLI с помощью команды gh auth login и задать ключ AI_GATEWAY_API_KEY. Репозиторий предварительно добавляется вызовом autoship add <name>.
Исходный текст
SKILL.md · Apache-2.0
---
name: autoship
description: CLI tool for automated changeset-based releases with AI-generated descriptions. Use when the user needs to release a package, create changesets, bump versions, or automate npm publishing workflows. Triggers include requests to "release a package", "create a changeset", "publish to npm", "bump the version", "automate releases", or any task involving version management and package publishing for repositories using the changesets workflow.
allowed-tools: Bash(autoship:*), Bash(npx autoship:*)
---
# Automated Releases with autoship
## Core Workflow
Every release follows this pattern:
1. **Configure**: `autoship add <name>` (one-time setup)
2. **Release**: `autoship <name>` (interactive) or `autoship <name> -t patch -y` (automated)
The tool handles the complete release cycle:
- Clone repository
- Analyze changes and suggest release type (patch/minor/major)
- Generate AI-powered changeset description
- Create and merge changeset PR
- Wait for and merge Version Packages PR
- Trigger npm publish
## Requirements
Before using autoship, ensure:
```bash
# GitHub CLI must be authenticated
gh auth login
# API key for AI features
export AI_GATEWAY_API_KEY="your-key"
```
## Essential Commands
```bash
# One-time setup: add a repository
autoship add myproject
# Prompts for: owner, repo name, base branch
# List configured repositories
autoship list
# Interactive release (prompts for type and message)
autoship myproject
# Automated release (no prompts)
autoship myproject -t patch -y
autoship myproject -t minor -y
autoship myproject -t major -y
# Release with custom message (skips AI generation)
autoship myproject -t patch -m "Fixed login bug" -y
```
## Command Options
```bash
autoship [repo] # Interactive repo selection if omitted
-t, --type <type> # Release type: patch, minor, major
-m, --message <message> # Custom changeset description
-y, --yes # Skip all confirmations
-h, --help # Show help
```
## Common Patterns
### Fully Automated Patch Release
```bash
autoship myproject -t patch -y
```
### AI-Assisted Interactive Release
```bash
autoship myproject
# 1. AI analyzes commits since last release
# 2. AI suggests release type (patch/minor/major)
# 3. You confirm or change the type
# 4. AI generates changeset description
# 5. You review and approve
# 6. Tool handles PR creation and merging
```
### Custom Message Release
```bash
autoship myproject -t minor -m "Added new authentication providers" -y
```
### CI/CD Integration
```bash
# In GitHub Actions or CI pipeline
export AI_GATEWAY_API_KEY="${{ secrets.AI_GATEWAY_API_KEY }}"
npx autoship myproject -t patch -y
```
## What autoship Does (10 Steps)
1. **Clone** - Clones the repository from the base branch
2. **Analyze** - Finds latest version tag, analyzes commits and diff
3. **Suggest** - AI suggests release type based on changes
4. **Generate** - AI generates changeset description
5. **Branch** - Creates release branch with changeset file
6. **PR** - Creates pull request for the changeset
7. **Wait** - Waits for CI checks to pass
8. **Merge** - Merges the changeset PR
9. **Version PR** - Waits for changesets action to create Version Packages PR
10. **Publish** - Merges Version Packages PR to trigger npm publish
## Output Format
autoship provides clear step-by-step output:
```
[1/10] Cloning repository from main...
> Repository cloned
> Package: my-package @ 1.2.3
[2/10] Creating release branch...
> Branch created: release/patch-1706123456789
[3/10] Generating changeset...
> Changeset created: fluffy-pants-dance.md
...
Release Complete!
The patch release has been published.
```
## Configuration
Config is stored at `~/.autoship/config.json`:
```json
{
"repos": {
"myproject": {
"owner": "vercel-labs",
"repo": "myproject",
"baseBranch": "main",
"cloneUrl": "https://github.com/vercel-labs/myproject.git"
}
}
}
```
## Deep-Dive Documentation
| Reference | When to Use |
|-----------|-------------|
| [references/commands.md](references/commands.md) | Full command reference with all options |
| [references/configuration.md](references/configuration.md) | Config file format and repository setup |
| [references/ci-integration.md](references/ci-integration.md) | GitHub Actions and CI/CD setup |
## Ready-to-Use Templates
| Template | Description |
|----------|-------------|
| [templates/automated-release.sh](templates/automated-release.sh) | Fully automated release script |
| [templates/setup-repo.sh](templates/setup-repo.sh) | Non-interactive repository setup |
```bash
./templates/automated-release.sh myproject patch
./templates/setup-repo.sh myproject vercel-labs myproject main
```
## Troubleshooting
### "No repositories configured"
Run `autoship add <name>` to configure a repository first.
### "Repository not found"
Check `autoship list` for available repos. The name is case-sensitive.
### CI checks failing
The tool will show which checks failed. Fix the issues in the target repository, then retry.
### AI generation failed
If AI fails, autoship falls back to manual input. Ensure `AI_GATEWAY_API_KEY` is set.
© vercel-labs · Apache-2.0 · vercel-labs/autoship