agentleFS
exasol-labsexasol-labs/speq-skill/.claude/skills/speq-git-operations/SKILL.md

speq-git-operations

Skill56 starsChanged 14 days agoMITView on GitHub

The git and gh operations, safety rules, and PR-title and version-bump rules for /speq-plan-pr, /speq-implement-pr, and /speq-patch-pr.

  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Write commit messages as Conventional Commits.

    line 10
  2. Distinctive:

    Never merge a PR. Never force-push.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Git Operations

Rules

  • Write commit messages as Conventional Commits. The type spec marks spec changes.
  • Stage only the paths you name. Touch only the refs and PRs you name.
  • A no-op (nothing to commit, PR already exists, already ready) is not an error. Report it and continue.
  • Report a not-found or ambiguous target. Do not guess.
  • Never merge a PR. Never force-push. Never rewrite history.

PR Title and Version Bump

PR title from <plan-name>: <type>(<scope>): <slug>.

  • type: add/change → feat, remove → chore, refactor → refactor, fix → fix, chore for an unparseable name.
  • scope: the token after the verb. Without one, emit <type>: <slug>.
  • slug: the plan name with hyphens turned into spaces.

Example: add-plan-export → feat(plan): add plan export.

Version bump: major for a breaking change (a ! type or a BREAKING CHANGE in the plan's Impact), minor for feat, patch otherwise.

Operations

OperationWhat it does
create-branchFetch, then create branch off base (default origin/<default-branch>) and check it out
checkoutA PR number or URL → gh pr checkout. A local or remote branch → check it out. Otherwise not-found. Creates nothing. Report the branch and its PR, if any
commitStage paths, commit with message
pushPush the current branch, with -u origin <branch> on first push
create-prgh pr create with title, body, and --draft when asked. If a PR exists for the branch, return it unchanged
ready-prgh pr ready when the PR is a draft
comment-prgh pr comment with body
read-commentsAll three PR comment kinds posted at or after since: conversation comments and review summaries (gh pr view --json comments,reviews) and inline comments (gh api repos/{owner}/{repo}/pulls/<n>/comments, with path and line)
ship-draftcommit → push → create-pr (draft)
ship-readycommit → push → create-pr (draft) → ready-pr

A composite operation stops at the first failing step and reports which steps completed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.