Git workflow

From hua-bang/pulse-agent · View interactive version

Git workflow is an AI agent skill from the GitHub repository hua-bang/pulse-agent. Standard git workflow for handling changes on the current branch - add, commit, push, then auto-run MR generation when needed

How to use this skill

Skill file

Git Workflow Skill

This skill provides a streamlined git workflow for handling changes on the current branch without creating a new branch.

Workflow Steps

1. Check current status

git status

Review the branch state and identify:

2. Stage changes

git add -A

Default behavior:

Important:

3. Commit changes

git commit -m "<type>: <short description>"

Recommended commit message format:

<type>: <short description>

- <detail 1>
- <detail 2>

Common types:

4. Push to remote

git push

5. Auto-run `mr-generator`

After a successful git push, if the current branch is not master or main and there is no existing open PR for this branch, run the mr-generator skill by default.

Suggested message:

No open PR found for this branch. Running mr-generator by default.

6. If `mr-generator` does not create MR automatically

If mr-generator is in preview mode or unable to create, show the generated title/description and stop.

Quick Flow

# End-to-end quick run
git status
git add -A
git commit -m "Describe your changes"
git push
# Then run mr-generator if needed

Selective Flows

Stage only specific paths

git add src/ docs/
git commit -m "feat: update core feature and docs"
git push

Split into multiple commits

git add src/app.ts
git commit -m "feat: add new feature"
git add tests/
git commit -m "test: add corresponding tests"
git push

Validation Checklist

After each run, verify:

  1. git status - working tree is clean
  2. git log --oneline -3 - latest commits look correct
  3. git branch - current branch is expected
  4. After successful git push, confirm whether MR creation flow (mr-generator) is needed
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.