git-hygiene

Block destructive Git operations and verify CORTEX DB state before executing commands.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/DaBigHomie/ugwtf --skill git-hygiene-dabighomie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-hygiene
Source: https://github.com/DaBigHomie/ugwtf/tree/main/.claude/skills/git-hygiene
Command: npx skills add https://github.com/DaBigHomie/ugwtf --skill git-hygiene-dabighomie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures Git operations are safe, non-destructive, and verifies the integrity of the Git state and pipeline.

Core Features & Use Cases

  • Prevent Destructive Operations: Blocks destructive Git operations like git reset --hard and git push --force.
  • State Verification: Checks the CORTEX DB state and ensures pipeline integrity before Git operations.
  • Worktree Isolation: Audits linked sibling worktrees to prevent parallel task conflicts.
  • Dry-Run Integration: Performs dry-runs before PR merges to ensure compatibility.

Quick Start

Run the git-hygiene Skill to verify the Git state and ensure safety before merging or performing destructive operations.

Frequently Asked Questions about git-hygiene

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

FAQPage Schema
How do I prevent destructive git operations like force push and hard reset in complex workflows?

Preventing destructive git operations involves blocking commands like git reset --hard and git push --force. This Skill enforces non-destructive workflows by verifying state integrity and checking pipelines before executing git commands.

How do I verify git state and pipeline integrity before merging a PR?

Verifying git state before a merge requires checking the CORTEX DB state and performing dry-runs. This process validates pipeline integrity and ensures compatibility before executing the final merge operations.

What is worktree isolation and how does it prevent parallel task conflicts in git?

Worktree isolation prevents parallel task conflicts by auditing linked sibling worktrees. This mechanism ensures that concurrent operations in complex git workflows do not interfere with each other or compromise pipeline integrity.

Can I use automated state verification for git repositories with strict hygiene requirements?

Yes, automated state verification supports git repositories with strict hygiene requirements. It validates the CORTEX DB state and checks pipeline integrity, making it suitable for complex workflows involving multiple worktrees.

What is the best way to audit linked sibling worktrees during git pipeline operations?

The best way to audit linked sibling worktrees is through worktree isolation checks. This process verifies pipeline integrity and state, preventing parallel task conflicts before executing any git commands.