git-advanced-workflows

git-advanced-workflows is a skill for Claude Code from rjmurillo/ai-agents. It costs 82 tokens per session (2,677 once invoked), scanned A, original, MIT.

A guide to advanced Git operations, where Git is the tool used to track code changes and collaborate on branches. It covers changing commit history, moving commits, finding the change that introduced a bug, using worktrees, and recovering lost commits.

In plain words
What is it for?
Use it for rebasing, cherry-picking, Git bisect, worktrees, and reflog-based recovery.
Why use it?
Complex branch histories and repository mistakes can be difficult to fix safely. This provides workflows for investigating, reorganising, and recovering Git work.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the project-toolkit plugin — 114 skills, 25 commands, 33 agents, 5 hooks shipped together

Good fit Use it for rebasing, cherry-picking, Git bisect, worktrees, and reflog-based recovery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjmurillo/ai-agents/git-advanced-workflows
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rjmurillo/ai-agents --skill git-advanced-workflows
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 114 skills, 25 commands, 33 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-advanced-workflows

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/git-advanced-workflows/github.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/git-advanced-workflows)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/git-advanced-workflows"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/git-advanced-workflows/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-advanced-workflows

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/git-advanced-workflows"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/git-advanced-workflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 40
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 127
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.02677
Opus 5.5 $0.00033 $0.01071
Sonnet 5.5 $0.00016 $0.00535
Haiku 4.5 $0.00008 $0.00268

Measured 14d ago against content hash 4dc115a325dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-advanced-workflows scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/git-advanced-workflows/SKILL.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Advanced Workflows

Advanced Git techniques for clean history, effective collaboration, and confident recovery.

Triggers

Trigger Phrase Operation
rebase my branch Interactive or standard rebase guidance
cherry-pick a commit Cherry-pick with conflict resolution
find the breaking commit Git bisect workflow
recover lost commits Reflog exploration and recovery
use git worktrees Worktree setup, management, and live-versus-abandoned triage

Process

Phase 1: Assess the Situation

  1. Identify which workflow applies (rebase, cherry-pick, bisect, worktree, recovery)
  2. Check current branch state: git status, git log --oneline -10
  3. Create a safety branch before any destructive operation: git branch backup-<timestamp>
    • macOS/Linux (bash/zsh): git branch backup-$(date +%s)
    • Windows PowerShell: git branch backup-$(Get-Date -UFormat %s)

Phase 2: Execute the Workflow

Rebase: Clean Up Feature Branch Before PR
git checkout feature/user-auth
# Record the remote tip BEFORE rewriting. A later fetch moves the tracking
# ref, so reading it at push time would let the lease overwrite new commits.
git fetch origin
EXPECTED_REMOTE_SHA=$(git rev-parse origin/feature/user-auth)
git rebase -i main
# Squash "fix typo" commits, reword messages, reorder logically
git push --force-with-lease="refs/heads/feature/user-auth:$EXPECTED_REMOTE_SHA" \
  origin HEAD:refs/heads/feature/user-auth

Rebase operations: pick (keep), reword (change message), edit (amend content), squash (combine keeping message), fixup (combine discarding message), drop (remove).

Autosquash pattern:

git commit --fixup HEAD        # Mark as fixup for previous commit
git rebase -i --autosquash main  # Auto-marks fixup commits

Split a commit:

git rebase -i HEAD~3          # Mark commit with 'edit'
git reset HEAD^               # Reset commit, keep changes in working tree (unstaged)
git add file1.py && git commit -m "feat: add validation"
git add file2.py && git commit -m "feat: add error handling"
git rebase --continue

Read the full file on GitHub · 233 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +5 lines 4dc115a325dd
  2. 15d ago Changed · +26 lines 243b1356020f
  3. 18d ago Changed · +6 lines 901bf34b053b
  4. 21d ago Changed · +13 lines · +7 tokens per session 6fb60b3a3159
  5. 1mo ago First seen · 183 lines · 75 tokens per session scan A f47de2380592

Subscribe to this mod's changes

git-advanced-workflows is a skill published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It adds 82 tokens to every session and 2,677 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

review-this-branch

Run the nohuman review gate (fresh-session adversarial reviewer + tamper guard) over the current branch or a GitHub pull request, with no server, no database, and no onboarding, and relay the pass/fail checklist.

no-human-ai/no_human · 53 tokens

respond-to-pr-comments

Respond to pull request review comments on GitHub or Azure DevOps Services. Reads review threads, validates each, proposes fixes or explanations, applies changes with user confirmation, and updates thread status via the platform's API. Use when the user wants to address PR feedback or resolve review threads.

microsoft/PromptKit · 62 tokens

ai-pr

The pull-request loop, opened from the local main with no worktree: cut the pull-request branch from the local main, push it, open the pull request against main with a body assembled from the merge commits the branch carries, watch CI and the review comments, fix only what is obvious in bounded iterations, then merge…

arcasilesgroup/ai-engineering · 174 tokens

install-gemini-code-review-action

Installs, configures, or upgrades Dazbo's PR code review & issue triage GitHub Action (gemini-review-action) in a target repository. Use when the user wants to set up, configure, or update automated AI code reviews, issue triaging, or Gemini model workflows for their GitHub repository.

derailed-dash/dazbo-agent-skills · 73 tokens

gh-address-comments

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

rojim666/SztuCode · 39 tokens

review-remote

Review open PR/MR and publish findings.

juliusz-cwiakalski/agentic-delivery-os · 13 tokens