git-safe-workflow

Manage git commits and pushes with non-destructive checks and safety prompts.

131|13|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/regenrek/agent-skills --skill git-safe-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-safe-workflow
Source: https://github.com/regenrek/agent-skills/tree/main/skills/git-safe-workflow
Command: npx skills add https://github.com/regenrek/agent-skills --skill git-safe-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safely manage git commits and pushes with guardrails to prevent destructive or risky operations.

Core Features & Use Cases

  • Non-destructive checks before staging or committing to verify the current state.
  • Worktree safety guidance to avoid conflicts when multiple worktrees are in use.
  • Explicit prompts for risky actions and a checkpoint-commit workflow to improve traceability.

Quick Start

Guide me to perform a safe checkpoint commit in the current repository and explain any risks.

Frequently Asked Questions about git-safe-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent risky git pushes when working in local development?

You can prevent risky git pushes by applying guardrails that enforce non-destructive staging and branch safety checks. This workflow verifies the repository state and uses explicit prompts before executing commands, ensuring local development commits remain safe.

What's the best way to manage git commits across multiple worktrees without conflicts?

Managing git commits across multiple worktrees requires worktree safety guidance to avoid conflicts. The workflow performs non-destructive checks before staging to verify the current state, ensuring commits in one worktree do not negatively impact others.

How does a checkpoint commit workflow improve traceability in git?

A checkpoint commit workflow improves traceability by structuring commits into safe, verifiable stages. It performs non-destructive checks before staging and commits, creating a clear history of safe state changes throughout the development process.

Can I use risky git commands if I need to force a push or reset?

You can execute risky git commands, but the workflow avoids them unless explicitly requested. It uses explicit user prompts for risky actions, ensuring destructive operations like force pushes are only performed with deliberate confirmation.

How do I guide a safe checkpoint commit in my current repository?

To guide a safe checkpoint commit, the workflow runs non-destructive checks to verify the repository state, stages changes safely, and explains any risks before committing. This structured approach prevents risky pushes and maintains branch safety.