agentleFS
89jobrien89jobrien/godmode/skills/session-wrap-commit-push/SKILL.md

session-wrap-commit-push

Skill1 starsChanged 56 days agoMITView on GitHub

Use when ending a coding session and you want to capture handoff state, commit all current changes, and push the branch. Symptoms - you finished a work slice, updated HANDOFF state, and want one repeatable closeout flow instead of running handoff, commit, and git push separately.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this at the end of a focused work session after implementation and verification are already done.

    line 10
  2. Distinctive:

    Keep it to one line and under 72 characters

    line 44

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

Session Wrap Commit Push

When to Use

Use this at the end of a focused work session after implementation and verification are already done. It captures the durable session state first, then creates a commit from the current diff, then pushes the current branch.

Commands

# 1. Refresh the repo handoff state before committing
handoff-detect
sed -n '1,220p' "$(handoff-detect)"
sed -n '1,220p' "$(handoff-detect | sed 's/\.yaml$/.state.yaml/')"

# 2. Verify you are on the expected branch
git branch --show-current
# If the output is 'main', STOP — do not commit to main directly.

# 3. Stage everything for the closeout commit
git add -A

# 4. Inspect the staged change for commit message generation
git diff --cached --stat
git diff --cached

# 5. Non-blocking secret scan on the staged diff
git diff --cached | redact --level minimal --audit

# 6. Commit with a generated conventional message
git commit -m "<type: short description>"

# 7. Push the current branch to its configured upstream
git push

Commit Message Rules

  • Format: <type>: <short description>
  • Keep it to one line and under 72 characters
  • Prefer:
    • feat: for new behavior
    • fix: for bug fixes
    • docs: for handoff-only updates
    • refactor: for internal restructuring
    • chore: for maintenance changes

Common Failures

SymptomFix
handoff-detect exits 2Create or migrate the repo handoff first with the handoff workflow
redact reports findingsReview the staged diff, but do not block automatically unless the content is actually sensitive
nothing to commitStop after the diff check; there is no closeout commit to create
1Password: agent returned an error during commitUnlock 1Password and retry git commit
git push says no upstream configuredRun git push -u <remote> <branch> once, then reuse plain git push
push rejected because remote movedPull/rebase explicitly before retrying; do not force-push by default

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.