baum777/model-agnostic-workflow-system/safe-main-sync-ff-only

Claude Code and agent skill by baum777/model-agnostic-workflow-system

Trust tier 3
  • community
Source check pending

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-only

SKILL.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 main and origin/main
  • permission posture for read-only diagnosis vs ff-only update
  • current repository context where branch switching risk matters

Workflow

  1. Run git status --short --branch --untracked-files=all.
  2. If worktree is dirty, do not switch branches and do not pull. Return blocked or read-only diagnosis.
  3. Run git fetch origin main.
  4. Read SHAs:
  • git rev-parse main
  • git rev-parse origin/main
  1. Evaluate ancestry:
  • git merge-base --is-ancestor main origin/main
  • git merge-base --is-ancestor origin/main main
  1. Decision logic:
  • If main == origin/main: no action.
  • If main is ancestor of origin/main: update main only by git pull --ff-only or git merge --ff-only origin/main.
  • If origin/main is ancestor of main: local main is ahead; push may be possible after separate validation.
  • If neither is ancestor: diverged, return blocked.
  1. 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 SHA
  • origin/main SHA
  • Relation (equal | behind | ahead | diverged)
  • Action executed
  • Next 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/baum777/model-agnostic-workflow-system/safe-main-sync-ff-only/badge)](https://verified-skill.com/skills/baum777/model-agnostic-workflow-system/safe-main-sync-ff-only)

Something wrong with this skill or its page? Tell us.