agentsclimarketplace

Git branch

Skill puku0x/agent-skills-test/.github/skills/git-branch

Create Git branches with automatic type detection and project-specific naming conventions. Use when asked to "create a branch", "make a new branch", "create branch for changes", or when ready to organize code changes into a new branch. Supports feat, fix, docs, refactor, test, build, ci, chore, revert, and perf branch types with automatic type selection based on changed file patterns.From its SKILL.md

Install
npx -y skills add puku0x/agent-skills-test --skill git-branch

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 3 commands, including `git diff --staged` and 2 more.

SKILL.md

2.7 KB, 556 tokens by cl100k_base, as published. Nobody here has run it

Git Branch Skill

This skill guides the creation of Git branches with project-specific naming conventions.

When to Use

Use this skill when:

  • You have made changes to the codebase and need to create a new branch for those changes.
  • You want to ensure that the branch name follows the project's naming conventions.

Instructions

Step 1: Check staged changes

Use the following command to view staged changes:

git diff --staged

Important If there are staged changes, proceed to the next step.

If there are no staged changes, check unstaged changes with:

git diff --name-only

Step 2: Determine branch type and description

The format for branch names is:

<type>-<description>
  • If there are only staged changes, base the branch name on the staged changes.
  • If there are only unstaged changes, base the branch name on the unstaged changes.
  • If there are both staged and unstaged changes, base the branch name on the staged changes.

type is determined based on the patterns of the changed files:

  • feat-: New features or changes to existing features
  • fix-: Bug fixes
  • refactor-: Refactoring (changes that do not add features or fix bugs)
  • test-: Adding or modifying tests (e.g., changes to *.spec.* or *.spec.*.snap files)
  • docs-: Documentation-only changes (e.g., changes to *.md files)
  • ci-: CI-related changes (e.g., changes to files in .github/workflows/* or .github/actions/*)
  • chore-: Other changes (e.g., changes to *.json, configuration files like *.config.js, .gitignore, etc.)
  • revert-: Reverting previous commits
  • build-: Changes related to the build system or external dependencies
  • perf-: Performance improvements

description should concisely describe the changes made, using hyphens to separate words.

Step 3: Create the branch

Use git switch -c to create and switch to the new branch.

Example:

git switch -c feat-user-authentication

[!NOTE]

When the name of the branch already exists, append a unique suffix to the branch name to avoid conflicts. For example, if feat-user-authentication already exists, create feat-user-authentication-1, feat-user-authentication-2, etc.

References

What ships with it: 1 file

1.1 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.