agentsclimarketplace

Git workflow and milestone closeout

Skill vintagedon/claude-skills-cookbook/skills/git-workflow-and-milestone-closeout

Tested recipes for Claude skills and hooks — methodology documentation, failure modes, and honest assessments. Not another awesome-list.

Install
npx -y skills add vintagedon/claude-skills-cookbook --skill git-workflow-and-milestone-closeout

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

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 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.

What its author says it does

Copied from the file, not written here

Execute the development loop from checkout through merge. Use when user says "start the task", "checkout the issue", "let's work on #N", "commit this", "create the PR", "ready for review", "merge it", or references the task cycle workflow. Handles both GitHub Projects (structured) and ad-hoc feature branches.

SKILL.md

6.8 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it

Task Cycle

The complete development loop: checkout → work → review → commit → PR → code review → fix → merge → cleanup.

Parameters

Before starting, confirm these with the user or infer from context:

ParameterOptionsDefault
GH Projects activeyes / noInfer from whether issue # exists
Code reviewerMacroscope, Gemini3, otherAsk if unknown
Bot identityGit user.name / user.emailUse repo's configured bot

The Loop

Checkout → Agent Work → Claude+Human Review → HITL Fixes → Bot Commit → PR → Code Review → Fix Loop → Merge → Cleanup → Next

Phase 1: Checkout

With GH Projects (issue exists)

gh issue develop <issue-number> --checkout

This creates and checks out a branch linked to the issue automatically.

Verify context:

gh issue view <issue-number>

Without GH Projects (ad-hoc feature)

git checkout -b feature/<descriptive-name>

Naming conventions:

  • feature/ — New functionality
  • fix/ — Bug fixes
  • docs/ — Documentation only
  • refactor/ — Code restructure

Phase 2: Work

Agent performs the implementation. This phase is outside the skill's scope—the agent follows task requirements, writes code, runs tests.

Handoff signal: Agent indicates work is complete and ready for review.


Phase 3: Review (Claude + Human)

Review the agent's work together:

  1. Functional review — Does it meet requirements?
  2. Code quality — Patterns, readability, maintainability
  3. Tests — Coverage, edge cases
  4. Documentation — Updated as needed

Identify any HITL (human-in-the-loop) fixes required.


Phase 4: HITL Fixes

Human makes direct corrections as needed. This may involve:

  • Code fixes the agent couldn't get right
  • Style adjustments
  • Integration issues
  • Judgment calls

Once clean, proceed to commit.


Phase 5: Commit

Commit Command

git add .
git commit --author="<BotName> <<bot-email>>" -m "<commit-message>"

Bot Identities

ContextNameEmail
radioastronomyioAstronomyCodingBot[email protected]
Personal repos(configure per repo)(configure per repo)

Commit Message Format

Follow Conventional Commits:

type(scope): subject

- Detail 1
- Detail 2

[Closes #N]  ← Only if GH Projects active

Types:

TypeUse
featNew feature
fixBug fix or code review feedback
docsDocumentation only
choreMaintenance, dependencies, config
refactorCode change without feature/fix

With GH Projects

Include Closes #<issue-number> in the commit body. GitHub auto-closes the issue on merge.

git commit --author="AstronomyCodingBot <[email protected]>" -m "feat(storage): implement RAID configuration

- Add ZFS pool setup
- Configure NFS shares
- Document mount points

Closes #25"

Without GH Projects

Omit the Closes line:

git commit --author="AstronomyCodingBot <[email protected]>" -m "feat(storage): implement RAID configuration

- Add ZFS pool setup
- Configure NFS shares
- Document mount points"

Phase 6: Push and PR

Push

git push origin <branch-name>

Create PR

gh pr create \
  --base main \
  --head <branch-name> \
  --title "type(scope): description" \
  --body "<PR body>" \
  --assignee <human-username>

PR body template:

## Summary
<What this PR accomplishes>

## Changes
- Change 1
- Change 2

## Testing
<How it was tested>

## Review Notes
<Anything the reviewer should know>

With GH Projects

Add labels and link to issue:

gh pr create \
  --base main \
  --head <branch-name> \
  --title "[M.T.ST] Description (#N)" \
  --body "..." \
  --assignee <human-username> \
  --label "Sub-Task,<domain-label>"

Phase 7: Code Review

The designated code reviewer analyzes the PR:

ReviewerTrigger
MacroscopeAuto-reviews on PR creation (radioastronomyio)
Gemini3 Code ReviewAuto-reviews on PR creation (personal repos)
OtherPer-repo configuration

Wait for review. Do not merge until code review completes.


Phase 8: Fix Loop

If code review requests changes:

  1. Make the fixes locally
  2. Commit (can amend or new commit):
# Option A: Amend (cleaner history)
git add .
git commit --amend --no-edit
git push --force-with-lease origin <branch-name>

# Option B: New commit (audit trail)
git add .
git commit --author="<BotName> <<bot-email>>" -m "fix: address code review feedback

- Issue 1 resolution
- Issue 2 resolution"
git push origin <branch-name>
  1. Code reviewer re-reviews automatically on new commits
  2. Repeat until approved

Phase 9: Merge

Once approved:

gh pr merge <pr-number> --squash --delete-branch

What happens:

  • PR merges to main (squashed)
  • Remote branch deleted
  • Issue auto-closes (if Closes #N was in commit)
  • GH Projects card moves to Done (if applicable)

Phase 10: Cleanup

git checkout main
git pull origin main

Local branch cleanup (if not auto-deleted):

git branch -d <branch-name>

Phase 11: Next Task

Return to Phase 1 with the next task. If using GH Projects, check tasks.md or the project board for the next item.


Quick Reference

Minimal Flow (no GH Projects)

git checkout -b feature/thing
# ... work happens ...
git add .
git commit --author="Bot <bot@email>" -m "feat: thing"
git push origin feature/thing
gh pr create --base main --head feature/thing --title "feat: thing" --assignee me
# ... code review ...
gh pr merge --squash --delete-branch
git checkout main && git pull

Structured Flow (with GH Projects)

gh issue develop 25 --checkout
# ... work happens ...
git add .
git commit --author="Bot <bot@email>" -m "feat: thing

Closes #25"
git push origin 25-thing
gh pr create --base main --head 25-thing --title "[2.1.2] Thing (#25)" --assignee me --label "Sub-Task"
# ... code review ...
gh pr merge --squash --delete-branch
git checkout main && git pull

References

What ships with it: 7 files

28.1 KB alongside SKILL.md

Keep looking

Skills are one crate of 328,083. 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.