adyba/pi-safe-workflow/git-advanced
Claude Code and agent skill by adyba/pi-safe-workflow
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Advanced git operations including rebase, bisect, cherry-pick, and conflict resolution. Use when rebasing feature branches, debugging with bisect, cherry-picking commits between branches, resolving complex merge conflicts, or recovering from git mistakes. Do NOT use for routine commits or simple pushes.
Install
npx vskill@latest install adyba/pi-safe-workflow/git-advancedSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as adyba/pi-safe-workflow/git-advanced.
Git Advanced Skill
TEMPLATE: This skill uses{{PLACEHOLDER}}tokens. Replace with your project values before use.
Purpose
Provide guidance for advanced git operations with safety considerations. This project uses a rebase-first workflow with linear history -- understand these patterns to avoid breaking the codebase.
When This Skill Applies
- Rebasing feature branches onto dev
- Using git bisect to find bugs
- Cherry-picking commits between branches
- Resolving complex merge conflicts
- Recovering from git mistakes
Stop-the-Line Conditions
FORBIDDEN Operations
SAFE Operations
Rebase Workflow (Standard)
Before Creating PR
During PR Review (After Feedback)
Git Bisect (Finding Bugs)
When to Use
Use bisect when you know a bug was introduced at some point but do not know which commit.
Bisect Workflow
Automated Bisect
Cherry-Pick (Selective Commits)
When to Use
- Backporting a fix to an older branch
- Pulling a specific commit from one branch to another
- Selective feature extraction
Cherry-Pick Workflow
Cherry-Pick Multiple Commits
Conflict Resolution
Common Conflict Scenarios
| Scenario | Resolution Strategy | |
|---|---|---|
| Same line edited | Choose one version or combine | |
| File deleted vs modified | Decide: keep modified or delete | |
| Rename conflicts | Decide which name to use | |
| Binary file conflicts | Choose one version explicitly |
Conflict Resolution Steps
Conflict Prevention
Recovery Commands
Abort Operations
Undo Last Commit
Recover Lost Commits
Safety Guidelines
When to Ask Before Force Push
ALWAYS ask first if:
- You have pushed commits that others might have pulled
- You are working on a shared branch
- You are not 100% sure what will happen
- The branch has been open for > 1 week
Safe Force Push Pattern
Pre-Push Checklist
- [ ]
{{CI_VALIDATE_COMMAND}}passes - [ ] On correct branch (not protected branch)
- [ ] Commits have proper message format
- [ ] No sensitive data in commits
Related Skills
- safe-workflow: Complete workflow patterns
- release-patterns: PR and merge patterns
- CONTRIBUTING.md: Branch naming and commit format
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-advanced/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adyba/pi-safe-workflow/git-advanced)