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_tools
Use when finding files by name, searching code content, locating patterns with regex, exploring codebase, or batch refactoring across multiple files. Conforms to docs/reference/skill-routing-value-standard.md.
advanced-workflows
Multi-tool orchestration patterns for complex Bluera Knowledge operations. Teaches progressive library exploration, adding libraries with job monitoring, handling large result sets, multi-store searches, and error recovery workflows.
Advanced Typescript Type Level
Master TypeScript type-level programming with conditional types, mapped types, template literals, and infer patterns. Use when writing advanced types, creating utility types, or solving complex type challenges.
advanced-typescript-patterns
Advanced TypeScript patterns for TMNL. Covers conditional types, mapped types, branded types, generic constraints, type inference, and utility type composition. Pure TypeScript patterns beyond Effect Schema.
advanced-types
Advanced TypeScript types including generics, conditionals, and mapped types
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 Playwright E2E Framework
Enterprise-grade Playwright test automation framework using 8-layer architecture with Page Object Model, Module Pattern, custom fixtures, API testing layer, structured logging, data generators, multi-browser support, Docker, CI/CD pipelines, and custom HTML reporting.
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-memoization-strategies
Apply principled memoization techniques to reduce re-rendering without introducing correctness bugs.
Advanced GetX Patterns
Advanced GetX features including Workers, GetxService, SmartManagement, GetConnect, GetSocket, bindings composition, and testing patterns
advanced-debugging
Advanced debugging skill for MyJKKN project. Specialized workflows for debugging Next.js 15, Supabase, React Query, TypeScript, and service layer issues. Includes automated analysis tools, common error patterns, and step-by-step troubleshooting guides for reducing debugging time. Use when investigating bugs, errors, performance issues, or unexpected behavior. (project)