baum777/model-agnostic-workflow-system/safe-main-sync-ff-only
Claude Code and agent skill by baum777/model-agnostic-workflow-system
- community
Checking that the SKILL.md file is still in the repository.
Synchronize local main with origin/main using fast-forward-only logic and fail-closed divergence checks. Use when main/origin-main state must be aligned without merge or rebase side effects.
Install
npx vskill@latest install baum777/model-agnostic-workflow-system/safe-main-sync-ff-onlySKILL.md
The same SKILL.md was published earlier as baum777/model-agnostic-workflow-system/safe-main-sync-ff-only.
Safe Main Sync FF Only
Purpose
Synchronize main with origin/main only through fast-forward-safe decisions and explicit divergence handling.
Trigger
Use this skill when local main and origin/main must be synchronized and only fast-forward-safe actions are allowed.
When Not To Use
- Do not use when the user requested merge-commit or rebase workflows.
- Do not use when working branch is not intended to touch
main. - Do not use when dirty worktree changes must be preserved during branch switching.
Non-Goals
- This skill does not perform merge conflict resolution.
- This skill does not perform rebase or force push operations.
- This skill does not modify unrelated branches.
Expected Inputs
- intent to synchronize
mainandorigin/main - permission posture for read-only diagnosis vs ff-only update
- current repository context where branch switching risk matters
Workflow
- Run
git status --short --branch --untracked-files=all. - If worktree is dirty, do not switch branches and do not pull. Return
blockedor read-only diagnosis. - Run
git fetch origin main. - Read SHAs:
git rev-parse maingit rev-parse origin/main
- Evaluate ancestry:
git merge-base --is-ancestor main origin/maingit merge-base --is-ancestor origin/main main
- Decision logic:
- If
main == origin/main: no action. - If
mainis ancestor oforigin/main: updatemainonly bygit pull --ff-onlyorgit merge --ff-only origin/main. - If
origin/mainis ancestor ofmain: localmainis ahead; push may be possible after separate validation. - If neither is ancestor: diverged, return
blocked.
- Forbidden actions:
- automatic merge commits
- rebase without explicit user request
- force push
- pull without
--ff-only
Output
Return these fields:
Result(pass|blocked|partial)main SHAorigin/main SHARelation(equal|behind|ahead|diverged)Action executedNext safe step
Quality Checks
- Dirty worktree blocks branch-changing sync actions.
- Relation classification is explicit and reproducible from SHAs/ancestry.
- No merge, rebase, or force operation is used.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/safe-main-sync-ff-only/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/baum777/model-agnostic-workflow-system/safe-main-sync-ff-only)