git-workflow-helper
Skill95 starsChanged 36 days agoApache-2.0View on GitHub
Automates git workflow tasks including status checks, branch creation, file staging, conventional commit message generation, and pull request creation with gh CLI. Use this skill when you need to commit changes, create PRs, check git status, create branches, push code, or generate commit messages. Ensures proper git workflow and commit standards.
- Reads credentials
- Commits and pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- Sherryffk/git-workflow-helpertheir own version, first seen Aug 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- davidanthonyn/claude-skills★ 0same name
- Sherryffk/git-workflow-helper★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ~aod-blueprintSkill
- ~aod-bugfixSkill
- ~aod-buildSkill
- ~aod-defineSkill
- ~aod-deliverSkill
- ~aod-discoverSkill
- aod-foundationSkill
- ~aod-kickstartSkill
- aod-lensSkill
- aod-orchestrateSkill
- ~aod-planSkill
- ~aod-project-planSkill
- ~aod-runSkill
- ~aod-scoreSkill
- ~aod-specSkill
- aod-stackSkill
- ~aod-statusSkill
- code-execution-helperSkill
- kb-createSkill
- kb-querySkill
- root-cause-analyzerSkill
- securitySkill
- tachi-control-analysisSkill
- tachi-infographicsSkill
- tachi-orchestrationSkill
- tachi-report-assemblySkill
- tachi-risk-scoringSkill
- tachi-sharedSkill
- tachi-threat-reportingSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
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
- Distinctive: line 16
Always start with status to understand current state:
- Distinctive: line 55
Create feature branch following naming conventions:
- Distinctive: line 97
Follow conventional commit format:
- Distinctive: line 172
Use gh CLI to create PR. Open as draft during plan/build stages.
- Distinctive: line 210
If no draft PR exists (e.g., ad-hoc branches), create a regular PR directly
- Distinctive: line 219
Run git status - 3 modified files
- Distinctive: line 255
Check git status - on feature branch
- Distinctive: line 256
Verify commits pushed to origin
- Distinctive: line 258
Create PR using gh CLI
- Distinctive: line 285
Check current branch - on main
- Distinctive: line 286
Ensure working directory clean
- Distinctive: line 325
Check for secrets: before committing
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Git Workflow Helper Skill
Purpose
Automates common git workflow tasks while enforcing best practices and commit standards. Implements FR-008 from the feature specification. Follows constitutional requirement for feature branching and proper git workflow.
How It Works
Step 1: Git Status Check
Always start with status to understand current state:
# Check git status
git status
# Check branch name
git branch --show-current
# Check for uncommitted changes
git diff --stat
git diff --cached --stat
# Check unpushed commits
git log @{u}.. --onelineReport:
📊 Git Status
Branch: feature/new-feature
Tracking: origin/feature/new-feature
Changes:
Modified: 3 files
Staged: 1 file
Untracked: 2 files
Unpushed commits: 2
Files:
M src/api/users.ts
M tests/users.test.ts
?? docs/API.mdStep 2: Branch Creation
Create feature branch following naming conventions:
# Feature branch
git checkout -b feature/feature-name
# Bug fix branch
git checkout -b fix/bug-description
# Documentation branch
git checkout -b docs/topic
# Test branch
git checkout -b test/test-description
# Refactor branch
git checkout -b refactor/refactor-descriptionStep 3: Stage Files
Intelligently stage relevant files:
# Stage specific files
git add src/api/users.ts src/models/user.ts
# Stage all in directory
git add src/
# Check what will be committed
git diff --cachedAvoid staging:
- Build artifacts (dist/, build/)
- Dependencies (node_modules/)
- Secrets (.env, credentials.json)
- Temporary files (*.tmp, *.log)
Step 4: Generate Conventional Commit Message
Follow conventional commit format:
Format: <type>(<scope>): <description>
Types:
feat: New featurefix: Bug fixdocs: Documentation onlystyle: Formatting changesrefactor: Code restructuringtest: Adding/updating testschore: Build process or auxiliary tools
Example Generation:
Analyze staged changes:
git diff --cached --name-only
# Output:
# src/api/users.ts
# src/models/user.ts
# tests/users.test.tsAnalyze diff content:
git diff --cached src/api/users.ts
# Detect: New endpoint addedGenerated message:
feat(api): Add user profile update endpoint
Implements user profile update functionality with validation
and authentication checks. Includes tests for success and error cases.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>Step 5: Create Commit
# Create commit with generated message
git commit -m "$(cat <<'EOF'
feat(api): Add user profile update endpoint
Implements user profile update functionality with validation
and authentication checks. Includes tests for success and error cases.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
# Verify commit
git log -1 --format="%h %s"Step 6: Push Changes
# Push to remote (creates branch if needed)
git push -u origin feature/new-feature
# Verify push
git log @{u}.. --oneline
# (should be empty - all commits pushed)Step 7: Create Pull Request
Use gh CLI to create PR. Open as draft during plan/build stages; mark ready at delivery.
# Generate PR description from commits
PR_TITLE="feat(api): User Profile Management"
PR_BODY=$(git log origin/main..HEAD --format="- %s")
# Create draft PR (default — used at plan stage)
gh pr create --draft \
--title "$PR_TITLE" \
--body "$(cat <<EOF
## Summary
${PR_BODY}
## Changes
- Added user profile update endpoint
- Implemented validation and auth checks
- Added comprehensive tests
## Testing
- Unit tests: ✓ Pass
- Integration tests: ✓ Pass
- Manual testing: ✓ Completed
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
# Mark PR ready for review (used at deliver stage)
gh pr ready
# Get PR URL
gh pr view --webDraft vs Ready:
/aod.planopens a draft PR at branch creation for early visibility/aod.delivermarks the PR ready viagh pr readywhen work is complete- If no draft PR exists (e.g., ad-hoc branches), create a regular PR directly
Examples
Example 1: Commit Changes
User Query: "Commit my changes"
Skill Actions:
- Run
git status- 3 modified files - Analyze changes - new feature added
- Stage relevant files
- Generate conventional commit message
- Create commit
- Verify commit created
Result:
✅ Changes Committed
Branch: feature/user-profiles
Commit: a3f2c1d
Message:
feat(api): Add user profile endpoints
Implements GET and PUT endpoints for user profile management
with validation and authentication.
🤖 Generated with Claude Code
Staged files:
src/api/users.ts
src/models/user.ts
tests/users.test.ts
Next steps:
git push -u origin feature/user-profilesExample 2: Create Pull Request
User Query: "Create a pull request"
Skill Actions:
- Check git status - on feature branch
- Verify commits pushed to origin
- Generate PR title and description from commits
- Create PR using gh CLI
- Get PR URL
Result:
✅ Pull Request Created
PR #42: feat(api): User Profile Management
URL: https://github.com/user/repo/pull/42
Summary:
- feat(api): Add user profile endpoints
- test(api): Add profile endpoint tests
- docs(api): Document profile API
Branch: feature/user-profiles → main
Status: Ready for review
The PR has been created successfully. Share the URL with your team!Example 3: Branch Creation
User Query: "Create a branch for the new notification system"
Skill Actions:
- Check current branch - on main
- Ensure working directory clean
- Create feature branch
- Verify branch created
Result:
✅ Branch Created
Branch: feature/notification-system
Base: main (a3f2c1d)
You're now on the new branch and ready to start work!
Workflow:
1. Make your changes
2. Commit with: "commit my changes"
3. Push with: git push -u origin feature/notification-system
4. Create PR with: "create PR"Integration
Uses
- Bash: Execute git and gh CLI commands
- Read: Analyze changed files for commit message generation
- Grep: Pattern match for commit types and scopes
- TodoWrite: Track PR creation and review tasks
Updates
- Git repository (commits, branches, pushes)
- GitHub (pull requests via gh CLI)
Safety Features
- Never force push to main/master without explicit confirmation
- Warn on destructive operations (reset --hard, push --force)
- Verify before push - show what will be pushed
- Check for secrets before committing
Commit Message Generation Logic
# Analyze file types
MODIFIED_FILES=$(git diff --cached --name-only)
# Detect scope
if [[ $MODIFIED_FILES == *"src/api"* ]]; then
SCOPE="api"
elif [[ $MODIFIED_FILES == *"tests/"* ]]; then
SCOPE="test"
elif [[ $MODIFIED_FILES == *"docs/"* ]]; then
SCOPE="docs"
fi
# Detect type
if grep -q "new.*function\|new.*class" <(git diff --cached); then
TYPE="feat"
elif grep -q "fix\|bug" <(git diff --cached); then
TYPE="fix"
elif [[ $MODIFIED_FILES == *".md" ]]; then
TYPE="docs"
fi
# Generate message
COMMIT_MSG="${TYPE}(${SCOPE}): ${DESCRIPTION}"Constitutional Compliance
- Git Workflow: Enforces feature branching and proper workflow (Principle V)
- Commit Standards: Conventional commits for clarity
- Never Skip Hooks: Respects pre-commit hooks and validation
- No Force Push: Prevents destructive operations on shared branches
- Safety First: Warns before potentially dangerous git operations
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
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.

