Command Palette

Search for a command to run...

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

stackit

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

Manage stacked Git branches with Stackit. Use when creating/managing stacked branches, submitting PRs for branch stacks, navigating branch trees, rebasing…

getstackitот getstackit★ 32 звезды на GitHub16 установок в других каталогах

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

Stackit - Stacked Branch Management

You are an expert at using Stackit to manage stacked Git branches. Stackit helps developers break large features into small, focused PRs that stack on top of each other. Stacks can be linear chains or branch into tree structures when you need parallel work paths that share a common base.

Why Stack Your Changes?

Small PRs get reviewed faster. PRs under 400 lines get reviewed in hours, not days. Stacking lets you ship big features as small, focused PRs.

Each branch = one reviewable unit. Stack related changes so reviewers can approve phases independently. The refactor can land while tests are still in review.

Easy to revert. If one phase causes issues, revert just that PR without affecting the rest of the feature.

Clear history. Your git log tells the story of how a feature evolved, not a jumbled mess of "fix typo" commits.

When to Stack (Decision Framework)

Stack when ANY of these apply:

  • Change has 2+ distinct logical phases
  • Total diff would exceed ~400 lines
  • Different reviewers needed for different parts
  • You want early feedback on foundational work
  • Changes touch unrelated subsystems

Single commit/PR is fine when:

  • Small, focused change (<200 lines)
  • Single logical unit
  • Trivial fix that doesn't benefit from splitting

Default to stacking. When in doubt, create a new stacked branch. It's easy to fold branches together later; splitting is harder.

Before Any Operation

Always run stackit tree --no-interactive first to understand:

  • Current branch position in the stack
  • Parent/child relationships
  • Which branches need attention

CRITICAL: Non-Interactive Mode When calling stackit commands, ALWAYS include the --no-interactive flag. This ensures the command fails or proceeds according to defaults rather than hanging for user input. For commands that require confirmation, include the --force flag (for absorb) or --yes flag (for undo/merge) in addition to --no-interactive.

Check for project conventions:

  • Read README.md and CONTRIBUTING.md for project-specific guidelines before generating commit messages or branch names.
  • Follow documented commit message formats, PR templates, and workflows.
  • Respect any branching or testing requirements specified.

Quick Health Check

Run at session start to proactively identify issues:

stackit state --json

This single call returns a complete JSON snapshot:

  • current_branch / trunk, and working_tree (staged/unstaged/untracked/clean)
  • operation: any in-progress rebase/merge with conflicted_files
  • stack.branches: array of branch status (current, parent/children, PR/CI status, needs_restack/is_locked/is_frozen/scope)
  • stack.summary: counts for total branches, approved branches, and branches in review

When to mention health issues proactively: If the health check reveals issues, inform the user:

I notice your stack has some health issues:
- feature-api has failing CI
- feature-models is ready to merge (approved, CI passing)

Would you like me to help address any of these?

Alternative: Use the analyze script for detailed output:

bash ~/.claude/skills/stackit/scripts/analyze_stack.sh

Note: All stackit commands below should be called with stackit ... --no-interactive.

Core Workflows

Creating a New Branch

Key difference from git: Unlike git where you create a branch first then commit, stackit creates the branch and commits in one step. This allows automatic branch name generation from the commit message.

  1. Stage changes: git add <files> or use --all flag
  2. Generate commit message after checking README.md / CONTRIBUTING.md; follow project conventions if documented, otherwise write a clear, descriptive summary.
  3. Create branch with commit (branch name auto-generated from message, respects branch.pattern config):
    # Preferred: pipe format (handles multi-line messages and special characters)
    echo "feat: add user authentication" | stackit create -F - --no-interactive
    
    # With explicit branch name
    echo "feat: add user authentication" | stackit create -F - my-branch --no-interactive
    
    # Stage all changes and create in one command
    echo "feat: add user authentication" | stackit create -F - --all --no-interactive
    
  4. If currently on trunk (e.g., main/master), warn and confirm or switch to a feature branch before creating.
  5. Show stack: stackit tree --no-interactive

Adding More Commits to a Branch

A stacked branch can have multiple commits. You don't need to create a new branch for every commit:

  • Add another commit: Make changes, stage them, then use git commit as normal
  • Amend the current commit: stackit modify (like git commit --amend)
  • Absorb changes into the right commits: Stage fixes across multiple commits, then stackit absorb automatically amends each change to the correct commit
Полный SKILL.md на GitHub

Установить stackit в Claude Code и Claude Desktop

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

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

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

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

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

Bash(stackit:*)
Bash(git:*)
Bash(~/.claude/skills/stackit/scripts/*:*)
Read
Grep
Glob

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

agents/openai.yamlcommands/branch.mdcommands/navigation.mdcommands/recovery.mdcommands/stack.mdreference.mdscripts/analyze_stack.shworkflows/absorb-conflict.mdworkflows/conflict-resolution.mdworkflows/fix-absorb.mdworkflows/stack-fold.md

FAQ

Что делает скилл stackit?

Manage stacked Git branches with Stackit. Use when creating/managing stacked branches, submitting PRs for branch stacks, navigating branch trees, rebasing stacks, syncing with main/trunk, troubleshooting stack issues, absorbing changes, resolving rebase conflicts, or any workflow involving dependent Git branches. Keywords stackit, stacked changes, stacked PRs, branch stack, restack, absorb, git stack.

Как установить скилл stackit?

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

Скилл stackit запускает скрипты?

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

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

Сравнить stackit с