advanced-git
Advanced Git - interactive rebase, cherry-pick, bisect, reflog, and power user operations
Best use case
advanced-git is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Advanced Git - interactive rebase, cherry-pick, bisect, reflog, and power user operations
Teams using advanced-git should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/advanced-git/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How advanced-git Compares
| Feature / Agent | advanced-git | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Advanced Git - interactive rebase, cherry-pick, bisect, reflog, and power user operations
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Advanced Git Skill
> **Production-Grade Development Skill** | Version 2.0.0
**Power user Git operations and debugging.**
## Skill Contract
### Input Schema
```yaml
input:
type: object
properties:
operation:
type: string
enum: [reflog, bisect, cherry-pick, rebase-interactive, stash, worktree]
target:
type: string
description: Commit hash, branch, or range
options:
type: object
properties:
dry_run:
type: boolean
default: true # Safe default
confirm_destructive:
type: boolean
default: false
```
### Output Schema
```yaml
output:
type: object
required: [result, success, risk_level]
properties:
result:
type: string
success:
type: boolean
risk_level:
type: string
enum: [low, medium, high, critical]
rollback_command:
type: string
```
## Error Handling
### Retry Logic
```yaml
retry_config:
max_attempts: 2
backoff_ms: [1000, 2000]
retryable:
- timeout
non_retryable:
- conflict
- invalid_reference
```
### Safety Checks
```yaml
pre_operation_checks:
- verify_clean_working_tree
- verify_not_on_shared_branch
- create_backup_ref
```
---
## Recovery Operations
### Reflog: Your Safety Net
```bash
git reflog
# abc1234 HEAD@{0}: commit: Add feature
# def5678 HEAD@{1}: rebase: finished
# Recover "lost" commit
git branch recovery-branch abc1234
```
## Interactive Rebase
```bash
git rebase -i HEAD~5
# Commands:
# pick - keep commit
# reword - edit message
# squash - merge with previous
# drop - remove commit
```
## Cherry-Pick
```bash
git cherry-pick abc1234 # Single commit
git cherry-pick abc1234^..def5678 # Range
git cherry-pick --abort # On conflict
```
## Git Bisect
```bash
git bisect start
git bisect bad
git bisect good abc1234
# Test and mark good/bad until found
git bisect reset
```
## Stash Operations
```bash
git stash push -m "WIP feature"
git stash list
git stash apply stash@{0}
git stash pop
```
---
## Troubleshooting Guide
### Debug Checklist
```
□ 1. Current HEAD? → git rev-parse HEAD
□ 2. Reflog available? → git reflog
□ 3. Operation in progress? → ls .git/
```
### Common Issues
| Error | Cause | Solution |
|-------|-------|----------|
| "could not apply" | Cherry-pick conflict | Resolve and continue |
| "refusing to rebase" | Uncommitted changes | Stash first |
---
## Command Risk Matrix
| Command | Risk Level |
|---------|------------|
| `git reflog` | LOW |
| `git stash` | LOW |
| `git cherry-pick` | MEDIUM |
| `git rebase -i` | HIGH |
| `git filter-repo` | CRITICAL |
---
## Observability
```yaml
logging:
level: DEBUG
events:
- operation_started
- backup_created
- conflict_detected
metrics:
- rebase_success_rate
- recovery_operations
```
---
*"With great power comes great responsibility - and the ability to undo mistakes."*Related Skills
advanced-skill-creator
Meta-skill that generates domain-specific skills using advanced reasoning techniques. PROACTIVELY activate for: (1) Create/build/make skills, (2) Generate expert panels for any domain, (3) Design evaluation frameworks, (4) Create research workflows, (5) Structure complex multi-step processes, (6) Instantiate templates with parameters. Triggers: "create a skill for", "build evaluation for", "design workflow for", "generate expert panel for", "how should I approach [complex task]", "create skill", "new skill for", "skill template", "generate skill"
advanced-rendering
Master high-performance rendering for large datasets with Datashader. Use this skill when working with datasets exceeding 100M+ points, optimizing visualization performance, or implementing efficient rendering strategies with rasterization and colormapping techniques.
Advanced React Clean Integration
Integrate React with clean architecture without framework leakage using hooks as adapters and presenters. Use when connecting React to domain logic, designing hook-based DI, or isolating UI from business rules.
Advanced RE Analysis
Specialized reverse engineering analysis workflows for binary analysis, pattern recognition, and vulnerability assessment
advanced-patterns
Advanced T-SQL patterns and techniques for SQL Server. Use this skill when: (1) User needs help with CTEs or recursive queries, (2) User asks about APPLY operator, (3) User wants MERGE or OUTPUT clause help, (4) User works with temporal tables, (5) User needs In-Memory OLTP guidance, (6) User asks about advanced grouping (ROLLUP, CUBE, GROUPING SETS).
advanced-oscal-validator
Perform comprehensive OSCAL validation using community-inspired patterns including JSON schema validation, business rule validation, cross-reference checking, and best practices from IBM Trestle, oscal-pydantic, and Lula. Use for thorough document quality assurance.
Advanced Modular Library Design
Design modular libraries with clear package boundaries, feature-first organization, and clean API surfaces. Use when structuring monorepos, defining module boundaries, or designing library APIs.
advanced-memory-skill-creator
Use when planning, scaffolding, validating, or packaging Claude skills inside Advanced Memory MCP.
advanced-memoization-strategies
Apply principled memoization techniques to reduce re-rendering without introducing correctness bugs.
advanced-math-trading/robustness-risk
Tail risk, EVT, regularization, validation guardrails, and common pitfalls.
advanced-math-trading/portfolio-factors
Factor modeling and portfolio construction (Markowitz, Black-Litterman, constraints, turnover).
advanced-math-trading/foundations-core
Probability, moments/tails, Bayes, and statistical learning foundations for systematic trading.