ablevarghese/ios-claude-toolkit/heimdall-git
Claude Code and agent skill by ablevarghese/ios-claude-toolkit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Done for now, wrap up, end of session, save progress, save my work, upload, publish, commit, push, sync. Git operations with conventional commits, safe push, and branch management. Trigger on: committing, pushing, branching, merge conflicts, tagging releases, 'upload changes', 'ship it', 'let me save this', or any signal the user is finished working and wants to preserve their changes. Also handles branch creation, conflict resolution, and trunk-based workflow. Enforces branch verification before every operation.
Install
npx vskill@latest install ablevarghese/ios-claude-toolkit/heimdall-gitSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ablevarghese/ios-claude-toolkit/heimdall-git.
HEIMDALL — Git Operations & Version Control
Git workflow skill covering conventional commits, safe push, branch management, conflict resolution, and release tagging. Every git operation begins with branch verification.
Iron Law: "Verify branch before EVERY git operation. No exception."
Phase Gate: PRE-OPERATION (Before EVERY Git Command)
Cannot execute ANY git command until:
- [ ]
git branch --show-current— verified you're on the correct branch - [ ]
git status— reviewed for unexpected changes
This gate applies to EVERY git operation, EVERY time. Not just the first one. Branch switches happen silently (stash pop, rebase, checkout). Always verify.
If on wrong branch: git checkout <correct-branch> FIRST. Never rename branches as a workaround.
Pre-Operation Safety Protocol
Every git operation — commit, push, merge, rebase, cherry-pick, tag — must start with this protocol. No shortcuts.
Why this protocol: Agents, parallel sessions, stash operations, and cherry-picks can silently change the current branch. Committing to the wrong branch causes hours of cleanup. This 4-step check takes 2 seconds and prevents those hours.
SOP-1: Smart Commit
Full Commit Workflow
Commit Message Generation Algorithm
Commit Message Examples
| Diff Shows | Commit Message | |
|---|---|---|
| New async method in TransferService + tests | feat(transfers): add recipient validation | |
| Fixed nil crash in UserViewModel | fix(profile): handle missing user gracefully | |
| Moved validation from VM to Service | refactor(auth): extract validation to service layer | |
| Added test for edge case | test(payments): cover zero-amount transfer rejection | |
| Updated dependency versions | chore(deps): update Supabase SDK to 2.5.0 | |
| Improved query performance | perf(transfers): batch recipient lookups | |
| Fixed token refresh race condition | security(auth): serialize token refresh requests |
Phase Gate: PRE-COMMIT
Cannot `git commit` until:
- [ ]
git diff --cached --statreviewed — you know what you're committing - [ ] No
.env, credential, or secret files staged - [ ] Commit message follows conventional format:
type(scope): description - [ ] Staged files are specific (not
git add -Aorgit add .)
Proof: List the files being committed and the commit message before executing.
Multi-Line Commit Messages (When Needed)
Use HEREDOC syntax for commits that need a body:
SOP-2: Safe Push
Never Force Push to Protected Branches
SOP-3: Branch Management
Creating Feature Branches
Branch Naming Convention
| Prefix | Purpose | Example | |
|---|---|---|---|
feature/ | New feature | feature/scheduled-transfers | |
fix/ | Bug fix | fix/transfer-amount-rounding | |
refactor/ | Code restructure | refactor/di-container-simplification | |
chore/ | Maintenance task | chore/update-dependencies | |
release/ | Release preparation | release/1.2.0 | |
hotfix/ | Emergency production fix | hotfix/auth-token-refresh |
Merging Feature Branches
SOP-4: Conflict Resolution
Conflict Resolution Decision Tree
Conflict Resolution Workflow
Post-Resolution Verification
After resolving conflicts:
- Build the project — it must compile
- Run tests — all must pass
- Review the resolution diff — ensure no accidental deletions
- Check for leftover conflict markers:
grep -r "<<<<<<" Sources/
SOP-5: Bulk Commit (20+ Changed Files)
When staging 20+ files, the standard "stage specific files" approach needs structure:
Step 1: Categorize changes
Step 2: Consider splitting into logical commits If changes span multiple concerns, split into separate commits:
Step 3: If single commit is appropriate For bulk changes that are genuinely one concern (e.g., rename, formatting):
Decision tree: Split or single?
- Different concerns (feature + tests + migration)? → Split into logical commits
- Same concern (bulk rename, formatting, dependency update)? → Single commit is fine
- Unsure? → Split. Atomic commits are easier to revert, bisect, and review.
Conventional Commit Types
| Type | When to Use | Example | |
|---|---|---|---|
feat | New feature or capability | feat(auth): add biometric login | |
fix | Bug fix | fix(transfer): correct amount rounding | |
docs | Documentation only | docs(readme): update setup instructions | |
test | Test additions or fixes | test(payment): add edge case coverage | |
refactor | Code restructure, no behavior change | refactor(di): simplify container registration | |
perf | Performance improvement | perf(list): implement lazy loading | |
chore | Maintenance, dependency updates | chore(deps): update Stripe SDK to 3.0 | |
ci | CI/CD configuration | ci(fastlane): add test lane | |
build | Build system changes | build(spm): add new package dependency | |
style | Code style/formatting only | style: apply swiftformat rules | |
security | Security fix or improvement | security(auth): patch token refresh vulnerability |
Branch Strategy (Trunk-Based Development)
This is the start of the file. Read the full SKILL.md on GitHub.
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/heimdall-git/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/ablevarghese/ios-claude-toolkit/heimdall-git)