gitrules

Enforces Git safety rules for reverting changes and rewriting history.

5|1|Updated May 31, 2026
One-click install
npx skills add https://github.com/waynesutton/teleprompter --skill gitrules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitrules
Source: https://github.com/waynesutton/teleprompter/tree/main/.cursor/skills/gitrules
Command: npx skills add https://github.com/waynesutton/teleprompter --skill gitrules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Critical Git safety rules help prevent destructive operations by guiding safe workflows during commits, reverts, and history edits. Use these rules to avoid accidental data loss and ensure traceable changes across development tasks.

Core Features & Use Cases

  • Enforce a checklist before executing high-risk commands (e.g., git reset --hard, git checkout --).
  • Promote manual undo practices and careful review of changes before commits or merges.
  • Provide safe-guarded workflows for reverting changes with explicit user confirmation.

Quick Start

Review the Git safety rules before performing destructive operations to prevent data loss.

Frequently Asked Questions about gitrules

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

FAQPage Schema
How do I prevent accidental data loss when running git reset --hard?

To prevent accidental data loss with git reset --hard, apply Git safety rules that enforce verification prompts and require manual undo steps before executing destructive operations. This ensures changes are carefully reviewed and traceable.

What is the safest workflow for reverting changes in a team version control environment?

The safest workflow for reverting changes in version control uses explicit user confirmation prompts and manual undo practices. This safeguarded approach prevents accidental work loss and ensures traceable changes across team workflows.

How do I safely rewrite Git history without losing commits?

To safely rewrite Git history without losing commits, enforce a checklist before executing high-risk commands. This requires explicit prohibitions on risky operations and promotes careful review of changes before modifying shared history.

Can I undo a git checkout that discarded my uncommitted work?

While Git safety rules cannot recover already discarded uncommitted work from a git checkout, they prevent future incidents by enforcing verification prompts and manual undo steps before allowing destructive commands to execute.

Do I need any special Git hooks to enforce these version control safety rules?

No special Git hooks are required. The Git safety rules function as a guiding checklist to prevent destructive operations, applying safe-guarded workflows and explicit prohibitions directly within your standard version control process.

What are the limitations of using manual checklists for Git risk management?

Manual checklists for Git risk management rely on user adherence to explicit prohibitions and verification prompts before high-risk commands. They prevent accidental data loss but require careful manual review during individual and team workflows.