stack-ship
БесплатноБез исполняемых скриптовНе проверенEvaluate shippable stacks, review their changes, check for merge conflicts, and produce a smart ship plan. Uses parallel multi-agent review and conflict…
от getstackit★ 32 звезды на GitHubОб этом скилле
/stack-ship
Smart ship planning: discover shippable stacks → parallel code review → conflict detection → prioritized merge plan → optional execution.
Mental Model
Merging many PRs blindly causes conflict pain and wastes CI minutes. This skill works smarter:
- Discover —
stackit merge status --json --allsurfaces every stack with CI/approval state - Review — Parallel agents review each shippable stack's diff for correctness, risks, and red flags
- Conflict check —
stackit merge ship --dry-run --stacks ...tests whether stacks can merge together atomically - Plan — Synthesize into: ship these together, hold these (minor concerns), fix these (blocking issues)
- Execute — Run the merge command after user approval
Execution
Step 1: Launch the Ship Workflow
Use the Workflow tool with the script below. Pass no args.
export const meta = {
name: 'stack-ship',
description: 'Discover, review, and plan shipping for stacks',
phases: [
{ title: 'Discover', detail: 'Get shippability status of all stacks' },
{ title: 'Review', detail: 'Review each shippable stack in parallel' },
{ title: 'Conflict Check', detail: 'Test merge compatibility between stacks' },
{ title: 'Plan', detail: 'Synthesize findings into a ship plan' },
],
}
const STACK_SCHEMA = {
type: 'object',
properties: {
stacks: {
type: 'array',
items: {
type: 'object',
properties: {
root_branch: { type: 'string' },
all_branches: { type: 'array', items: { type: 'string' } },
pr_count: { type: 'number' },
scope: { type: 'string' },
status: { type: 'string' },
author: { type: 'string' },
pr_title: { type: 'string' },
approval_ok: { type: 'boolean' },
github_ci_ok: { type: 'boolean' },
blocking_prs: { type: 'array', items: { type: 'object' } },
},
required: ['root_branch', 'all_branches', 'status'],
},
},
shippable_count: { type: 'number' },
pending_count: { type: 'number' },
blocked_count: { type: 'number' },
incomplete_count: { type: 'number' },
},
required: ['stacks', 'shippable_count', 'pending_count', 'blocked_count', 'incomplete_count'],
}
const REVIEW_SCHEMA = {
type: 'object',
properties: {
root_branch: { type: 'string' },
verdict: { type: 'string', enum: ['ship', 'hold', 'fix'] },
confidence: { type: 'string', enum: ['high', 'medium', 'low'] },
summary: { type: 'string' },
risks: { type: 'array', items: { type: 'string' } },
blocking_issues: { type: 'array', items: { type: 'string' } },
},
required: ['root_branch', 'verdict', 'confidence', 'summary', 'risks', 'blocking_issues'],
}
const CONFLICT_SCHEMA = {
type: 'object',
properties: {
all_compatible: { type: 'boolean' },
working_stacks: { type: 'array', items: { type: 'string' } },
conflicting_stacks: { type: 'array', items: { type: 'string' } },
notes: { type: 'string' },
},
required: ['all_compatible', 'working_stacks', 'conflicting_stacks'],
}
const PLAN_SCHEMA = {
type: 'object',
properties: {
ship_groups: {
type: 'array',
description: 'Ordered groups of stacks to ship. Each group can be merged atomically.',
items: {
type: 'object',
properties: {
stacks: { type: 'array', items: { type: 'string' }, description: 'Root branches in this group' },
strategy: { type: 'string', enum: ['ship', 'drain', 'next'], description: 'ship=atomic consolidation (3+ branches), drain=sequential bottom-up, next=fire-and-forget lowest' },
command: { type: 'string', description: 'Exact stackit command to run' },
reasoning: { type: 'string' },
},
required: ['stacks', 'strategy', 'command', 'reasoning'],
},
},
hold: {
type: 'array',
items: {
type: 'object',
properties: {
root_branch: { type: 'string' },
reason: { type: 'string' },
},
required: ['root_branch', 'reason'],
},
},
fix: {
type: 'array',
items: {
type: 'object',
properties: {
root_branch: { type: 'string' },
issues: { type: 'array', items: { type: 'string' } },
},
required: ['root_branch', 'issues'],
},
},
summary: { type: 'string' },
},
required: ['ship_groups', 'hold', 'fix', 'summary'],
}
// Phase 1: Discover
phase('Discover')
const status = await agent(
`Run: stackit merge status --json --all
Return the JSON output as a structured object. If the command fails or produces no output, return {"stacks":[],"shippable_count":0,"pending_count":0,"blocked_count":0,"incomplete_count":0}.`,
{ label: 'discover:status', schema: STACK_SCHEMA }
)
const shippable = status.stacks.filter(s => s.status === 'shippable')
const nonShippable = status.stacks.filter(s => s.status !==
Установить stack-ship в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(stackit:*)Bash(git:*)Bash(gh:*)ReadWorkflowAskUserQuestionFAQ
Что делает скилл stack-ship?
Evaluate shippable stacks, review their changes, check for merge conflicts, and produce a smart ship plan. Uses parallel multi-agent review and conflict analysis to determine what to ship, in what groupings, and what to hold. Keywords ship, merge, plan, stacks, PRs, conflicts.
Как установить скилл stack-ship?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stack-ship запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic