agentleFS
DataArtDataArt/artisyn-log-hub/.claude/skills/git-branching/SKILL.md

git-branching

Skill12 starsChanged 7 days agoMITView on GitHub

ALWAYS use this skill if the user asks to do any modifying git operations (branch, commit, merge, etc).

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

6 rules. About 0 are common, 1 is distinctive, and 5 are 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before treating a branch request as adhoc/, check whether it is actually a task slug:

    line 18
  2. Very specific:

    If the user's wording already looks like a full task-folder name (e.g.

    line 24
  3. Very specific:

    Only use adhoc/<description-slug> once you've confirmed no matching task folder exists.

    line 26
  4. Very specific:

    Never commit directly to main.

    line 32
  5. Distinctive:

    Before creating a new branch, check current branch and status (git status, git branch) so you don't branch off unexpected local changes.

    line 33
  6. Very specific:

    Before pushing, follow the changelog skill — the docs/changelog/ entry for the change goes into the same push.

    line 35

≈ “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

Branch naming

  • feature/<task> — new functionality, tied to a task.
  • fix/<task> — bug fix, tied to a task.
  • adhoc/<description-slug> — the user asks to change something ad hoc, with no task behind it.

<task> is ALWAYS the task slug (in fact task folder name under docs/tasks/todo) from adlc-lh:tracker

<description-slug> is a short kebab-case description of the change.

Resolving whether a name is a task

Before treating a branch request as adhoc/, check whether it is actually a task slug:

  • List the task folder directly — ls docs/tasks/todo/ (and docs/tasks/done/ if relevant) — and look for an exact or prefix match against the name the user gave. Do NOT rely on a Glob substring pattern like docs/tasks/todo/*<slug>*: directory-only matches can silently return no results, which looks like "task not found" when the task folder exists.
  • If the user's wording already looks like a full task-folder name (e.g. YYYY-MM-DD-slug), check for that exact folder first before falling back to any fuzzy search.
  • Only use adhoc/<description-slug> once you've confirmed no matching task folder exists.
  • Once the task folder is found, read its requirements.md header (Type:) to pick feature/ vs fix/ — bug → fix/, anything else (feature, chore, etc.) → feature/.

Rules

  • Never commit directly to main. Always create/use a feature/fix/adhoc branch first.
  • Before creating a new branch, check current branch and status (git status, git branch) so you don't branch off unexpected local changes.
  • Before pushing, follow the changelog skill — the docs/changelog/ entry for the change goes into the same push.

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.