智能体工作流

git-shortcuts

timschoch/skilly

Translates shorthand git/GitHub workflow commands into the correct sequence of actions. ALWAYS trigger when the user's message contains a "--" prefixed shorthand like: "--c", "--p", "--cp", "--pr", "--prm", "--cppr", "--cpprm", "--ff", "--release", "--pub", "--close" — with or without a trailing "?". The "--" prefix is required — do NOT trigger on bare letters like "c" or "pr" appearing in normal sentences. NEVER invoke this skill autonomously — it MUST always be user-invoked via an explicit "--" shorthand in their message.

  • 696 次安装
  • 1 星标
  • 收录于

安装命令

npx skills add https://github.com/timschoch/skilly --skill git-shortcuts

SKILL.md

Git Shortcuts

SAFEGUARD: This skill must NEVER be invoked autonomously by the assistant. It is exclusively user-invoked — only run when the user explicitly types a -- prefixed shorthand (e.g. --cp, --cppr) in their message. The assistant must never decide on its own to call this skill.

Map each letter to an action and execute them in sequence.

Branch model

Trunk-based: ticket → main, or ticket → epic/<name> → main when a feature spans several tickets. Merging into the trunk ships nothing — --release does that.

First, check the repo has migrated. A repo that still has a staging branch runs the old one-directional model and none of the rules below apply to it:

git ls-remote --exit-code --heads origin staging > /dev/null 2>&1 && echo LEGACY

LEGACY → tell the user, then read LEGACY-STAGING.md next to this file and follow it instead. Never silently target the trunk in such a repo.

Base branch: never hardcode it. Prefer the repo's own helper when it has one: