agentleFS
c-b-g-mc-b-g-m/claude-code-quickstart/skills/git-ops/SKILL.md

git-ops

Skill1 starsChanged 10 months agoMITView on GitHub

Comprehensive git workflow including worktree isolation, branching, and branch finalization.

  • Installs packages
  • Commits and pushes

2 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

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this when starting new features or executing implementation plans.

    line 9
  2. Very specific:

    Check .worktrees/ (preferred) or worktrees/.

    line 12
  3. Distinctive:

    If neither exists, check CLAUDE.md for a preference or ask the user.

    line 13
  4. Very specific:

    MUST verify the worktree directory is ignored in .gitignore.

    line 15
  5. Very specific:

    Run project setup (e.g., npm install, pip install).

    line 18
  6. Distinctive:

    Run tests to ensure the workspace starts in a clean state (Green).

    line 20
  7. Very specific:

    Use atomic commits: [Action] [Scope]: [Specific change].

    line 23
  8. Distinctive:

    Use this when implementation is complete and all tests pass.

    line 27
  9. Distinctive:

    Verify Tests: Run the full test suite one last time.

    line 29
  10. Distinctive:

    Cleanup: Only remove the worktree for options 1, 2, and 4 (if PR is pushed and worktree no longer needed).

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Unified Git Operations

Phase 1: Isolation (Worktrees)

Use this when starting new features or executing implementation plans.

  1. Directory Selection:
    • Check .worktrees/ (preferred) or worktrees/.
    • If neither exists, check CLAUDE.md for a preference or ask the user.
  2. Safety Verification:
    • MUST verify the worktree directory is ignored in .gitignore. If not, add it and commit the change immediately.
  3. Creation:
    • git worktree add <path> -b <branch-name>
    • Run project setup (e.g., npm install, pip install).
  4. Baseline Verification:
    • Run tests to ensure the workspace starts in a clean state (Green).

Phase 2: Implementation & Commits

  • Use atomic commits: [Action] [Scope]: [Specific change].
  • One logical change per commit.

Phase 3: Finalization

Use this when implementation is complete and all tests pass.

  1. Verify Tests: Run the full test suite one last time.
  2. Present Options:
    • 1. Merge locally: Checkout base, pull, merge, verify, delete feature branch, remove worktree.
    • 2. Create PR: Push branch, run gh pr create with summary and test plan.
    • 3. Keep as-is: Preserves branch and worktree for later.
    • 4. Discard: Require explicit "discard" confirmation before deleting branch and worktree.
  3. Cleanup: Only remove the worktree for options 1, 2, and 4 (if PR is pushed and worktree no longer needed).

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.