/agentic-framework:git-workflow-assistantfrom Agentic Framework for Claude
Guides git branching, commit conventions, PR preparation, conflict resolution, and releases. Also handles framework review gates that block sessions or pushes until peer review is approved.
Ships in Agentic Framework for Claude. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Committed work on a feature branch is not "done" until it has been peer reviewed. Follow this order:
code-review-gatekeeper (Task tool) for the first-pass quality review of the committed branch.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.code-review-gatekeeper again on the final HEAD against the destination: that run records the verdict that unlocks the push/PR gate.gh pr create, or declare the task done.Any commit made after the gatekeeper review stales its push/PR-gate marker, including the peer-review-critic fix commits from step 4, because the gate matches the HEAD. Run code-review-gatekeeper last, after the final commit, before gh pr create.
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).
origin/main, origin/master, main, master that resolves).peer-review-critic run this session did not record VERDICT: APPROVED (the recorder hooks/record-subagent-run.ps1 parses the review's verdict line into a per-session marker, reading the report from the stop payload or from the sub-agent transcript's hand-back message; a marker with no parseable verdict counts as reviewed — fail-open).What to expect and do:
CHANGES_REQUIRED. It is loop-safe (stop_hook_active) and fail-open — errors and non-git contexts never block.peer-review-critic to review the branch diff against its base, resolve every BLOCKER/MAJOR finding, and re-run it until the review ends with VERDICT: APPROVED — that is what unlocks the next Stop.pretooluse-code-review-gate (.ps1/.sh pair), PreToolUse on the shell tools (Bash|PowerShell).git push [options] [<remote> [<refspec>]], gh pr create (alias gh pr new), glab mr create (alias glab mr new), optionally after one location form: cd <dir> &&, cd <dir>;, or (PowerShell) Set-Location <dir>;; the push may also be written git -C <dir> push .... Every other command that mentions one is denied, chains included, and the deny asks for it to be split into plain commands.$, backticks or the --body "$(cat <<'EOF' ...)" idiom is not a plain command and is denied. Write the body to a file and pass --body-file <path>, or use --fill. A plain push's destination is resolved the way git resolves it (explicit refspec, remote.<r>.push, push.default, upstream); a push whose destination is main or master (force included), and every PR/MR creation, is gated.code-review-gatekeeper sub-agent run that applies agentic-framework:code-review and ends with VERDICT: APPROVED. record-subagent-run stores the verdict and the review's Target: line in code-review/<session>; the gate matches it against the current HEAD and the destination base. A per-todo review of uncommitted work, a peer-review-critic approval, or a review of another base does not unlock it. The approval is bound to the reviewed range: the marker's head= must equal the current HEAD, and the Target: range (<merge-base>..<head-sha>) must end at the current HEAD and start at a merge-base that is an ancestor of the destination. A commit after the review stales the record, and so does a review that finished after a later commit. Re-run the gatekeeper after any commit, before gh pr create.git add && git commit && git push chains are denied by the gate; push as a separate command.gh api, shell-capable tools outside the matcher, forged local state (a remote-tracking ref, the marker file or the sub-agent transcript the recorder reads), hosts slower than the 8 s budget, git older than 2.31, SHA-256 repositories, a host without jq on the POSIX path, escape sequences or string building inside a command word, and a CDPATH that redirects a relative cd (decision N of the spec). The executor agents' no-push rule and the Stop gate remain the other layers.AF_CODE_REVIEW_GATE=off in the environment Claude Code was launched with. An inline assignment on the command does nothing, and the variable takes effect after a restart.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.
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.
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).
Pre-PR checklist:
git fetch origin main && git rebase origin/main.code-review-gatekeeper as a sub-agent on the branch against its base. The push/PR gate (pretooluse-code-review-gate) denies gh pr create until that review's VERDICT: APPROVED is recorded at the current HEAD. Then run peer-review-critic; resolve BLOCKER/MAJOR findings and commit the fixes. Those fix commits stale the marker, so run code-review-gatekeeper again after the last commit; it must run last before gh pr create, which runs as its own plain command.gh pr create --body-file <path>, writing the body to a file first (a multi-line --body is denied by the push/PR gate; --fill is the alternative). Use this structure for the body file:## 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.
theirs for upstream dependency updates, ours for intentional divergence, manual merge for logic conflicts.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.
Semantic versioning: MAJOR.MINOR.PATCH — breaking changes / new backward-compatible features / backward-compatible fixes.
Release checklist:
release/v1.2.0).git tag -a v1.2.0 -m "Release v1.2.0", then git push origin v1.2.0.claude.json) for language-specific build/test tooling around commits.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tomas-rampas/agentic-framework --plugin agentic-framework11 skills in this plugin
/agent-debuggerDiagnose and fix agent routing, loading, and configuration issues by inspecting agents/*.md frontmatter, the claude.json registry, hook registration, and validator output — use when an agent is "not found", tasks route to the wrong specialist, models mismatch, hooks do not fire, or validate-consistency.sh fails./agent-routing-advisorRecommends which framework agent (or multi-agent workflow) should handle a task; use when the user asks which agent to use, how to delegate a piece of work, or how to sequence agents for a multi-domain task./code-reviewReview a PR (pull request), a branch, a diff, or a set of files with a structured 3-pass method (architecture, logic, expressiveness), five questions in pass 2, a Chesterton's Fence provenance check, and ICE-prefixed findings under a summary-first report. Use when asked to review, critique, or evaluate code changes.Other plugins' skills for the same job