Git workflow assistant
Skill tomas-rampas/agentic-framework/skills/git-workflow-assistant
Git branching, commit, PR, conflict-resolution, and release guidance integrated with the framework's peer-review final gate — use when planning branches, writing commit messages, preparing or opening PRs, resolving merge conflicts, cutting releases, or when the Stop gate blocks a session over unreviewed committed work.From its SKILL.md
npx -y skills add tomas-rampas/agentic-framework --skill git-workflow-assistantAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.1 KB, as published. Nobody here has run it
Git Workflow Assistant
Structured guidance for git operations in this framework: branching strategy, commit conventions, PR preparation, conflict resolution, and releases — plus how committed work interacts with the enforced peer-review final gate.
When to Use
- Choosing or applying a branching strategy
- Writing commit messages and PR descriptions
- Preparing a feature branch for review and merge
- Resolving merge conflicts or cleaning up history
- Planning a versioned release
- Responding when the peer-review Stop gate blocks the end of a session
Review Pipeline (enforced by the framework)
Committed work on a feature branch is not "done" until it has been peer reviewed. Follow this order:
- Implement and commit on a feature branch (never commit directly to main; branch first).
- Run
code-review-gatekeeper(Task tool) for quality validation and testing. - Run
peer-review-critic(Task tool,subagent_type: peer-review-critic) — the mandatory final gatekeeper. It performs an independent, diff-scoped critical review of the branch against its base. - Resolve every BLOCKER/MAJOR finding (commit the fixes, re-review), or obtain explicit user sign-off.
- Only then open the PR or declare the task done.
The Stop gate
The agentic-framework plugin's stop-peer-review-gate hook (.ps1/.sh pair, registered in hooks/hooks.json as a shell-form chain) blocks ending a session when all of these hold. On Linux/macOS the .sh runs; on Windows the .ps1 runs (either via dispatch if Git Bash is present, or directly).
- The current branch is a feature branch (not main/master, not detached HEAD).
- It has commits ahead of its base (first of
origin/main,origin/master,main,masterthat resolves). - The working tree is clean — the gate only guards committed, "done"-looking states.
- The latest
peer-review-criticrun this session did not recordVERDICT: APPROVED(the recorderhooks/record-subagent-run.ps1parses the review's verdict line into a per-session marker; a marker with no parseable verdict counts as reviewed — fail-open).
What to expect and do:
- The gate blocks a bounded number of times: once when no review ran, up to 3 blocks total while the recorded verdict is
CHANGES_REQUIRED. It is loop-safe (stop_hook_active) and fail-open — errors and non-git contexts never block. - When blocked, launch
peer-review-criticto review the branch diff against its base, resolve every BLOCKER/MAJOR finding, and re-run it until the review ends withVERDICT: APPROVED— that is what unlocks the next Stop. - Uncommitted changes do not trigger the gate; committing feature-branch work is what arms it.
- Do not work around the gate by leaving the tree dirty or committing to main — run the review, or ask the user to explicitly waive the gate.
If the gate is not firing after installing the agentic-framework plugin, verify: (1) the plugin is installed with /plugin list, (2) Claude Code has been restarted (hooks load at session start), (3) you have committed work on a non-main branch with /agentic-framework:validate-hooks showing no errors.
Branching Strategies
Trunk-based development (recommended for CI/CD): short-lived feature branches (1–3 days), merge to main via reviewed PR, feature flags for incomplete work. Best for small teams and continuous deployment.
GitHub Flow: branch from main, PR back to main, deploy from main after merge. Best for SaaS and web applications.
GitFlow (scheduled releases): develop as integration branch, release/* for release prep, hotfix/* branching from main. Best for products with versioned releases.
Whichever strategy applies, keep branches focused on one change and rebase onto the base before requesting review so the peer-review diff is clean.
Commit Message Conventions
Use Conventional Commits:
<type>(<scope>): <subject>
<body>
<footer>
Types: feat (minor bump), fix (patch bump), docs, style, refactor, perf, test, chore, ci.
Example:
fix(api): prevent SQL injection in user search endpoint
Parameterize the search query instead of string interpolation.
Added input validation for search terms.
Fixes #287
BREAKING CHANGE: search API now rejects special characters
Note breaking changes in the footer with BREAKING CHANGE: and reference issues (Closes #N, Fixes #N).
PR Workflow
Pre-PR checklist:
- Update the branch:
git fetch origin main && git rebase origin/main. - Run the full test suite locally.
- Run
code-review-gatekeeper, thenpeer-review-critic; resolve BLOCKER/MAJOR findings and commit the fixes. - Open the PR with
gh pr createusing this structure:
## Summary
Brief description of what this PR does and why.
## Changes
- Change 1: description
- Change 2: description
## Testing
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual testing completed
## Notes for Reviewers
Context that helps reviewers understand the changes.
Merge Conflict Resolution
- Understand both sides — read the conflicting changes to understand intent before resolving.
- Choose the right strategy:
theirsfor upstream dependency updates,oursfor intentional divergence, manual merge for logic conflicts. - Test after resolution — always run the test suite after resolving conflicts.
- Commit with context — explain the resolution in the merge commit message.
Useful commands:
# Update branch before PR
git fetch origin main
git rebase origin/main
# Abort a bad rebase
git rebase --abort
# Squash merge for clean history
git merge --squash feature-branch
Avoid interactive rebase (git rebase -i) in this environment — it opens an editor and is not supported. To squash history, use git merge --squash or git reset --soft <base> followed by a fresh commit.
Release Workflow
Semantic versioning: MAJOR.MINOR.PATCH — breaking changes / new backward-compatible features / backward-compatible fixes.
Release checklist:
- Create a release branch (
release/v1.2.0). - Update version numbers in config files and CHANGELOG.md.
- Run the full test suite; run the review pipeline (code-review-gatekeeper, then peer-review-critic) on the release diff.
- Tag:
git tag -a v1.2.0 -m "Release v1.2.0", thengit push origin v1.2.0. - Merge the release branch back to main (and develop, under GitFlow).
Agent Coordination
- Language experts (see the registry,
claude.json) for language-specific build/test tooling around commits. - devops-orchestrator for CI/CD pipeline integration and release automation.
- code-review-gatekeeper for the first-pass quality review before the final gate.
- peer-review-critic for the final, independent branch-vs-base review — the last step before work is declared done.