KS
Killer-Skills

git-workflow — Categories.community

v1.0.0
GitHub

About this Skill

Perfect for Development Agents needing standardized commit message formatting and Git workflow management. It's files put on my home directory.

cooldaemon cooldaemon
[13]
[8]
Updated: 2/24/2026

Quality Score

Top 5%
52
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add cooldaemon/dotfiles/git-workflow

Agent Capability Analysis

The git-workflow MCP Server by cooldaemon is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion.

Ideal Agent Persona

Perfect for Development Agents needing standardized commit message formatting and Git workflow management.

Core Value

Empowers agents to maintain consistent commit histories using specific types like 'feat', 'fix', and 'docs', and adhering to a strict commit message format with scope, subject, body, and footer.

Capabilities Granted for git-workflow MCP Server

Standardizing commit messages
Automating Git workflow patterns
Classifying commits by type and scope

! Prerequisites & Limits

  • Requires Git version control system access
  • Limited to specific commit message format
Project
SKILL.md
5.5 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Git Workflow Patterns

Commit Message Format

<type>(<scope>): <subject>

<body>

<footer>

Types

TypeDescription
featNew feature implementation
fixBug fixes
docsDocumentation changes only
styleCode formatting, missing semicolons, etc.
refactorCode restructuring without behavior changes
perfPerformance improvements
testTest additions or corrections
choreBuild process, auxiliary tools, dependencies

Rules

  • Subject line: Max 50 characters, imperative mood, no period
  • Body: Wrap at 72 characters, explain WHY not WHAT
  • Write in English
  • Be specific and descriptive

Examples

feat(auth): add OAuth2 integration with Google

Implemented Google OAuth2 authentication flow to allow users
to sign in with their Google accounts. This includes:
- OAuth2 configuration and middleware setup
- User profile synchronization
- Session management with JWT tokens

Closes #123
fix(api): resolve race condition in payment processing

The payment webhook handler was not properly locking the
transaction record, causing duplicate charges when webhooks
arrived simultaneously. Added database-level locking to
ensure atomic transaction updates.

Pre-commit Hook Handling

CRITICAL: NEVER use --no-verify flag

Language-specific Checks

JavaScript/TypeScript:

  • Linting: npm run lint, eslint
  • Type checking: npm run typecheck, tsc
  • Formatting: prettier --check, npm run format
  • Tests: npm test, jest, vitest

Python:

  • Linting: ruff check, flake8, pylint
  • Type checking: mypy, pyright
  • Formatting: black --check, ruff format
  • Tests: pytest, python -m unittest

Ruby:

  • Linting: rubocop
  • Tests: rspec, rake test

Go:

  • Formatting: go fmt, gofmt
  • Linting: golangci-lint run
  • Tests: go test

General:

  • See makefile-first skill for command execution policy
  • Check package.json scripts section
  • Review project documentation

Fixing Pre-commit Failures

  1. Analyze the error message
  2. Fix automatically if possible (formatting, linting)
  3. For type errors: Modify code to fix
  4. For test failures: Debug and fix
  5. Stage fixed files and retry commit

Rebase Strategy

When to Rebase

Use git pull --rebase to maintain linear history:

  • Before pushing local commits
  • When local branch is behind remote

How Rebase Works

  1. Fetches remote changes
  2. Temporarily removes your local commits
  3. Applies remote commits to your branch
  4. Re-applies your local commits on top
  5. Creates linear history without merge commits

Conflict Resolution

When conflicts occur:

  1. git status to identify conflicted files
  2. Resolve each conflict (ours/theirs/manual)
  3. Remove conflict markers (<<<<<<<, =======, >>>>>>>)
  4. git add resolved files
  5. git rebase --continue
  6. Or git rebase --abort to give up

Safety Checks

Before git operations:

  • Uncommitted changes: Stash or commit before proceeding
  • Remote tracking: Ensure branch tracks a remote
  • Network connectivity: Verify connection to remote
  • Branch protection: Check if branch has push restrictions

Error Handling Patterns

No remote tracking:

bash
1git branch --set-upstream-to=origin/branch-name

Uncommitted changes:

bash
1# Option 1: Stash changes 2git stash push -m "Temporary stash for rebase" 3# ... perform rebase ... 4git stash pop 5 6# Option 2: Commit changes first

Network issues:

  • Retry with clear error messages
  • Check remote URL with git remote -v
  • Verify credentials if authentication fails

Pull Request Workflow

  1. Analyze full commit history (not just latest commit)
  2. Use git diff [base-branch]...HEAD to see all changes
  3. Draft comprehensive PR summary
  4. Include test plan with TODOs
  5. Push with -u flag if new branch

Git Fixup Pattern

During TDD, each User Story produces a clean commit history through fixup commits:

  1. After GREEN phase: Create a semantic commit

    bash
    1git add -A && git commit -m "feat(scope): description"
  2. After REFACTOR phase: Create a fixup commit targeting the GREEN commit

    bash
    1git add -A && git commit --fixup HEAD
  3. After review fixes: Create a fixup commit targeting the relevant US commit

    bash
    1git add -A && git commit --fixup <target-sha>
  4. Before push: Autosquash all fixup commits

    bash
    1GIT_SEQUENCE_EDITOR=true git rebase --autosquash origin/<base-branch>

The result is one clean commit per US in the final history.

Interleaved Commits

Git fixup! commits match their target by commit message, not by position in the log. This means interleaved normal and fixup commits from multiple USs are correctly handled by autosquash.

Before autosquash:

feat(auth): add login flow              <- US-1 GREEN
fixup! feat(auth): add login flow       <- US-1 REFACTOR
fixup! feat(auth): add login flow       <- US-1 review fix
feat(auth): add password reset          <- US-2 GREEN
fixup! feat(auth): add password reset   <- US-2 REFACTOR

After git rebase --autosquash:

feat(auth): add login flow              <- US-1 (REFACTOR + fix absorbed)
feat(auth): add password reset          <- US-2 (REFACTOR absorbed)

Each fixup is absorbed into the commit whose message it matches, regardless of intervening commits.

Related Commands

  • /commit - Commit with semantic message (manual use)
  • /push-to-remote - Autosquash fixups, rebase, and push workflow

Related Skills

Looking for an alternative to git-workflow or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

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
Communication

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
Communication