Skip to content
Back to skills

Safe Git Workflow

ASecurity

Perform Git operations while preserving user work and avoiding accidental publication or history loss. Use for branch, staging, commit, rebase, merge, or push tasks.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 19, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add voyager67/Agent-Workbench --skill safe-git-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Safe Git Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Safe Git Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/voyager67-safe-git-workflow/badge)](https://www.skillsdirectory.com/skills/voyager67-safe-git-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: safe-git-workflow
description: Perform Git operations while preserving user work and avoiding accidental publication or history loss. Use for branch, staging, commit, rebase, merge, or push tasks.
---

# Safe Git Workflow

1. Inspect `git status`, branch, upstream, remotes, staged and unstaged diffs, and untracked files before acting.
2. Read project instructions and identify the intended base/target branch.
3. Stage explicit paths where practical; inspect the staged diff before committing.
4. Preserve unrelated changes. Never use destructive cleanup commands as a shortcut.
5. Before rebase, reset, force-push, branch deletion, or history rewrite, explain the effect and obtain explicit authorization if not already granted.
6. Before push or opening a PR, confirm the target repository, branch, visibility, and intended content.
7. After the operation, inspect status, commit contents, and remote state if a network action occurred.

Do not commit secrets, local configuration, generated clutter, or personal files. Never claim a push or merge succeeded without observing the host result. When a conflict occurs, resolve only the intended files and rerun relevant checks.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.