harness/claude/skills/git-workflow/SKILL.md
This skill should be used when asked about branching, committing, PRs, or the end-to-end Git development flow. Covers available commands (/smart-commit, /pr, /fix), branch naming conventions, and when to use each tool.
npx skillsauth add popoffvg/dotfiles git-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Command | When to use |
| --------------------------| -----------------------------------------------------------------------------------------------------------|
| /smart-commit | You have changes ready to commit — analyzes diff, proposes logical split, asks for approval, then commits |
| /pr | Branch is ready to merge — creates a GitHub PR with purpose + changes + tests description |
| /fix | You made a code change and want to fixup into the best existing local commit |
| commit-commands:commit | Quick single commit, no split needed |
1. Create branch
git checkout -b <type>/<short-description>
2. Make changes
... code, tests ...
3. Commit
/smart-commit ← propose split, approve, commit
4. More changes? Repeat step 3.
5. Open PR
/pr ← push + create PR with structured description
feat/<short-description> new feature
fix/<short-description> bug fix
refactor/<description> refactoring
chore/<description> maintenance, deps, config
Examples: feat/k8s-health-check, fix/auth-token-expiry, chore/update-deps
| Type | Use for |
|------|---------|
| feat | New feature or functionality |
| fix | Bug fix |
| test | Adding or updating tests |
| doc | Documentation (README, comments) |
| refactor | Code restructuring without behavior change |
| chore | Dependencies, config, build, CI |
| perf | Performance improvements |
| style | Formatting, linting (no logic change) |
git add . or git add -A — always add specific files--no-verify)Hook fails on commit → fix the issue, re-stage, create a NEW commit (not amend). Max 2 retries, then abort and report.
PR already exists → gh pr list to check, then gh pr edit to update instead of creating a new one.
Branch is stale → git fetch && git status to check, then rebase: git rebase origin/main.
Eval checklist:
Test inputs:
Can change: command descriptions, flow documentation, branch naming examples, when-to-use guidance Cannot change: command names (/smart-commit, /pr, /fix), branch naming convention Min sessions before eval: 5 Runs per experiment: 3
testing
Use when the user asks to create test sets, enumerate scenarios, generate edge cases, or draft a coverage matrix before implementation.
testing
Use when the user asks to review, audit, score, or validate test sets for missed cases before execution or merge.
tools
Test harness plugins in isolation using tmux panes. Runs MCP servers, unit tests, typecheck, and Claude plugin loading. Use when user says "test plugin", "check plugin", "run plugin tests", "validate plugin", or names a specific plugin to test.
development
Guide for designing integration and e2e tests using BDD (Behavior-Driven Development) methodology with Cucumber-style Given/When/Then scenarios. Use when writing or reviewing tests for any service, API, or component. Language-agnostic — covers scenario structure, step notation, assertion principles, async patterns, and common anti-patterns.