agentleFS
ForeverAProgrammerForeverAProgrammer/claude-devflow/skills/create-branch/SKILL.md

create-branch

Skill0 starsChanged 9 months agoMITView on GitHub

Create and checkout a git branch named to match the current uncommitted changes.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create and checkout a git branch named to match the current uncommitted changes.

    line 6
  2. Distinctive:

    Run git diff --staged --stat to check for staged changes.

    line 9
  3. Distinctive:

    If there are staged files, run git diff --staged to see what will be in the branch.

    line 10
  4. Distinctive:

    If nothing is staged, run git diff HEAD --stat and git status --short to see all uncommitted changes.

    line 11
  5. Distinctive:

    If there are no staged or uncommitted changes at all, tell the user and stop.

    line 12
  6. Very specific:

    Use feature/ for new functionality

    line 14
  7. Very specific:

    Use fix/ for bug fixes or error corrections

    line 15
  8. Very specific:

    Use chore/ for tooling, config, dependencies, or non-functional changes

    line 16
  9. Very specific:

    Use docs/ for documentation-only changes

    line 17
  10. Very specific:

    Use refactor/ for restructuring without behaviour change

    line 18
  11. Very specific:

    Use ci/ for CI/CD pipeline, workflow, or build configuration changes

    line 19
  12. Very specific:

    Run git checkout -b <type>/<slug> to create and switch to the branch.

    line 21

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Create and checkout a git branch named to match the current uncommitted changes.

Steps:

  1. Run git diff --staged --stat to check for staged changes.
    • If there are staged files, run git diff --staged to see what will be in the branch.
    • If nothing is staged, run git diff HEAD --stat and git status --short to see all uncommitted changes.
    • If there are no staged or uncommitted changes at all, tell the user and stop.
  2. Infer the branch type and a short slug from the changes:
    • Use feature/ for new functionality
    • Use fix/ for bug fixes or error corrections
    • Use chore/ for tooling, config, dependencies, or non-functional changes
    • Use docs/ for documentation-only changes
    • Use refactor/ for restructuring without behaviour change
    • Use ci/ for CI/CD pipeline, workflow, or build configuration changes
  3. Derive a short, lowercase, hyphen-separated slug (2-5 words) that describes what the changes do — not what files changed. Examples: feature/rate-limit-login, fix/null-pointer-checkout, docs/add-contributing-guide.
  4. Run git checkout -b <type>/<slug> to create and switch to the branch.
  5. Tell the user the branch name and confirm they are now on it.

$ARGUMENTS

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.