git-workflow — community git-workflow, community-patterns, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Version Control Agents requiring seamless Git workflow integration and automation. A repo for patterns created by the communtiy

jkomoros jkomoros
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The git-workflow skill by jkomoros is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for Version Control Agents requiring seamless Git workflow integration and automation.

Core Value

Empowers agents to manage Git repositories using commands like git add, git commit, and git push, facilitating efficient collaboration and version control through protocols like HTTPS and SSH, and handling file formats such as .tsx.

Capabilities Granted for git-workflow

Automating commit messages with descriptive updates
Generating pull requests for community-driven projects
Syncing local repositories with upstream changes using git fetch and git pull

! Prerequisites & Limits

  • Requires Git installation and configuration
  • Needs repository access permissions
  • Manual intervention required for creating pull requests
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

git-workflow

Install git-workflow, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Git Workflow

Committing Work

bash
1cd ~/Code/community-patterns 2 3git add patterns/$GITHUB_USER/pattern.tsx 4git commit -m "Add pattern: description" 5git push origin main

Getting Updates (Already done in Step 1)

bash
1git fetch upstream 2git pull --rebase upstream main 3git push origin main

Sharing Work Upstream (Creating Pull Requests)

IMPORTANT: Wait for user to tell you to create a PR. Don't push or create PRs automatically.

Before creating any PR, you MUST update from main and rebase your branch:

Step 0: Update and Rebase Before Creating PR

Use cached repository type from workspace config:

bash
1# Read IS_FORK from .claude-workspace (set during Step 2) 2IS_FORK=$(grep "^is_fork=" .claude-workspace | cut -d= -f2) 3 4# Determine which remote to use 5if [ "$IS_FORK" = "true" ]; then 6 echo "Working on fork - will fetch from upstream" 7 MAIN_REMOTE="upstream" 8else 9 echo "Working on main repo - will fetch from origin" 10 MAIN_REMOTE="origin" 11fi

Then fetch latest main and rebase your branch:

bash
1# Fetch latest main 2git fetch $MAIN_REMOTE 3 4# Rebase current branch on top of main 5git rebase $MAIN_REMOTE/main 6 7# If rebase succeeds, push (force-with-lease if on feature branch) 8if [ "$(git branch --show-current)" != "main" ]; then 9 git push origin $(git branch --show-current) --force-with-lease 10else 11 git push origin main 12fi

If rebase has conflicts:

  1. Show conflict files: git status
  2. Help resolve conflicts
  3. Continue: git rebase --continue
  4. Then push

Why this matters:

  • Ensures your PR is based on the latest main
  • Avoids merge conflicts during PR review
  • Makes PR review easier

If User Has Their Own Fork (Most Common)

When user wants to contribute patterns from their fork to upstream:

Step 1: Ensure changes are committed and pushed to their fork

bash
1cd ~/Code/community-patterns 2git status # Verify all changes are committed 3git push origin main

Step 2: Update and rebase (see Step 0 above)

Step 3: Create pull request to upstream

bash
1gh pr create \ 2 --repo jkomoros/community-patterns \ 3 --title "Add: pattern name" \ 4 --body "$(cat <<'EOF' 5## Summary 6- Brief description of the pattern 7- Key features 8- Use cases 9 10## Testing 11- [x] Pattern compiles without errors 12- [x] Tested in browser at http://localhost:8000 13- [x] All features working as expected 14 15🤖 Generated with [Claude Code](https://claude.com/claude-code) 16EOF 17)"

If Working Directly on jkomoros/community-patterns

CRITICAL: When working directly on the upstream repository, you MUST use branches and PRs. Direct pushes to main are NOT allowed.

Step 1: Create feature branch

bash
1cd ~/Code/community-patterns 2git checkout -b username/feature-name

Step 2: Commit and push branch

bash
1git add patterns/$GITHUB_USER/ 2git commit -m "Add: pattern name" 3git push origin username/feature-name

Step 3: Update and rebase (see Step 0 above)

Step 4: Create pull request

bash
1gh pr create \ 2 --title "Add: pattern name" \ 3 --body "$(cat <<'EOF' 4## Summary 5- Brief description 6 7## Testing 8- [x] Tested and working 9 10🤖 Generated with [Claude Code](https://claude.com/claude-code) 11EOF 12)"

Step 5: Merge with rebase (when approved)

bash
1gh pr merge PR_NUMBER --rebase --delete-branch

Important Notes

  • Always wait for user permission before creating PRs
  • All PRs are merged with --rebase (NOT --squash or --merge)
  • This preserves individual commit history
  • Commit frequently locally, but only create PR when user asks
  • PRs will be reviewed before merging to upstream
  • After merge, everyone gets your patterns automatically on next update

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is git-workflow?

Ideal for Version Control Agents requiring seamless Git workflow integration and automation. A repo for patterns created by the communtiy

How do I install git-workflow?

Run the command: npx killer-skills add jkomoros/community-patterns/git-workflow. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for git-workflow?

Key use cases include: Automating commit messages with descriptive updates, Generating pull requests for community-driven projects, Syncing local repositories with upstream changes using git fetch and git pull.

Which IDEs are compatible with git-workflow?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for git-workflow?

Requires Git installation and configuration. Needs repository access permissions. Manual intervention required for creating pull requests.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add jkomoros/community-patterns/git-workflow. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use git-workflow immediately in the current project.

Related Skills

Looking for an alternative to git-workflow or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI