baum777/model-agnostic-workflow-system/safe-main-push-release
Claude Code and agent skill by baum777/model-agnostic-workflow-system
- community
Checking that the SKILL.md file is still in the repository.
Gate direct pushes to main with explicit authorization, clean-tree checks, linear ancestry validation, and non-force push-only execution. Use when a direct main release push is explicitly requested.
Install
npx vskill@latest install baum777/model-agnostic-workflow-system/safe-main-push-releaseSKILL.md
The same SKILL.md was published earlier as baum777/model-agnostic-workflow-system/safe-main-push-release.
Safe Main Push Release
Purpose
Allow direct main release push only under explicit authorization, linear history checks, and fail-closed safety gates.
Trigger
Use this skill when the user explicitly authorizes a direct push from local main to origin/main.
When Not To Use
- Do not use when main push authorization is not explicit.
- Do not use when current branch is not
main. - Do not use when worktree is dirty.
Non-Goals
- This skill does not resolve divergence with merge/rebase.
- This skill does not use force push.
- This skill does not alter branch strategy or release policy outside the requested push.
Expected Inputs
- explicit authorization for direct
mainpush - required validation expectations before release push
- confirmation that
mainis the intended source branch
Workflow
- Require explicit user intent to push on
main. - Run
git status --short --branch --untracked-files=all. - Run
git branch --show-current; requiremain. - Run
git fetch origin main. - Inspect commit ranges:
git log --oneline origin/main..maingit log --oneline main..origin/main
- Check linear ancestry:
git merge-base --is-ancestor origin/main main
- Decision logic:
- If
origin/main..mainis empty: nothing to push. - If
origin/mainis ancestor ofmain: local commits are linear ahead; run required validations for release scope; push allowed. - If ancestry check fails: return
blocked. - If remote has commits missing locally (
main..origin/mainnon-empty): ff-only sync first orblocked.
- Push only with:
git push origin main
- Forbidden actions:
- force push
- rebase
- merge commits
Output
Return these fields:
Result(pass|blocked|partial)Commit rangeValidationsPush targetFinal main SHAFinal origin/main SHANext safe step
Quality Checks
- Authorization, branch, cleanliness, and ancestry preconditions are all explicit.
- Divergence is fail-closed (
blocked). - Push command is exactly
git push origin main.
Security
- Security scanPassed, 95 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-push-release/SKILL.md
Popularity
- 7-day trend score
- 5
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-push-release)