Git workflow and version control best practices. Atomic commits, conventional messages, branch strategies, merge protocols. Triggers: commit, branch, merge, rebase, git, push, pull, PR, version control.
From kernelnpx claudepluginhub ariaxhan/kernel-claude --plugin kernelThis skill is limited to using the following tools:
reference/git-research.mdEnables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
<core_principles>
<branch_strategy>
Profile-gated workflow: local: direct to main OK, branches optional github: feature branches for tier 2+, PRs optional github-oss: feature branches always, PRs REQUIRED before merge github-production: feature branches always, PRs REQUIRED, review REQUIRED </branch_strategy>
<commit_messages> Good:
Bad:
<anti_patterns>
<agentic_git_discipline> Agentic workflows introduce new git failure modes. Mitigate them:
Pre-task snapshot: Before any agent starts work, record the HEAD commit SHA in AgentDB. If the task needs rollback, you know exactly where to return.
# Record before agent work
git rev-parse HEAD # save this to AgentDB
# Rollback if needed
git reset --hard <saved-sha>
Dirty-state check: If git status shows uncommitted changes at task start, stop.
Prior agent left state. Commit, stash, or discard before proceeding — never silently overwrite.
Branch-per-agent for tier 2+: Each agent working on distinct features gets its own branch. Merging branches (not rebasing) preserves intent and makes conflicts explicit.
Squash before merge: Agent commits tend to be fine-grained and mechanical. Squash to one meaningful commit per feature before merging to main. Message should describe the feature, not the implementation steps.
No force-push to shared branches: An agent force-pushing destroys another agent's
or human's commits silently. Use --force-with-lease only, never bare --force.
</agentic_git_discipline>
<diff_sizing> Diff size is the single biggest lever for AI code review quality:
Rule: if a diff exceeds 500 lines, split the PR before requesting AI review.
AI review before human review: Run AI review (~90 seconds) before requesting human review. Developer fixes cheap issues first, humans see a cleaner diff and focus on intent and design. Sequence: AI review → fix → human review. Not parallel. </diff_sizing>
</skill>