Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    suho-han

    git-split-publish

    suho-han/git-split-publish
    3 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Safely inspect a mixed git worktree, split pending changes into task-based commits, push each commit in order, and optionally open a draft PR when explicitly requested.

    SKILL.md

    Split Publish

    Overview

    Use this skill when worktree changes are mixed and the user wants commits separated by job before publishing.

    Workflow

    1. Inspect repository state first.
    • Run git status -sb, git diff --stat, git branch --show-current, and git remote -v.
    • If push may be required, run git status --porcelain=v2 --branch.
    • If worktree is clean, stop and report there is nothing to publish.
    1. Load repository guidance before grouping.
    • Read root AGENTS.md if present.
    • Read local docs for branch/release/validation policy when relevant.
    1. Propose commit groups.
    • Inspect diffs per file with git diff -- <path> when boundaries are unclear.
    • Group by one coherent task per commit.
    • For each group, provide:
      • label
      • exact file list
      • commit message
      • push/PR intent
    • If grouping is ambiguous, ask the user.
    1. Confirm scope before staging.
    • On mixed worktree, get explicit confirmation before staging.
    • Do not default to git add -A.
    • Use explicit path staging: git add -- <path>....
    1. Commit and push group-by-group.
    • Stage only approved files.
    • Verify staged scope using git diff --cached --stat (and git diff --cached if needed).
    • Commit with terse task-level message.
    • Run minimal relevant validation before first push.
    • Push each commit in order:
      • if no upstream: git push -u origin $(git branch --show-current)
      • else: git push
    1. Open draft PR only when explicitly requested.
    • Do not open PR automatically.
    • Open only when both are true:
      • branch is not default branch
      • user explicitly asks for PR (or major-change PR)
    • Prefer repo-native tooling; fallback to gh pr create --draft.

    Guardrails

    • Do not silently include unrelated files.
    • Do not rewrite/discard user changes.
    • Do not amend/squash/reorder existing commits unless requested.
    • Stop and report concrete blocker when remote/auth is missing.

    Output

    Report:

    • current branch and upstream state
    • proposed or executed commit groups
    • created commit hashes/messages
    • push result per commit
    • PR skipped/created decision and reason
    • validation run
    • remaining blockers or assumptions

    Examples

    • "commit and push but split by job"
    • "split these changes into separate commits and publish"
    • "group pending changes by task then push"
    Recommended Servers
    GitHub
    GitHub
    Gitlab
    Gitlab
    Bitbucket
    Bitbucket
    Repository
    suho-han/git-split-publish
    Files