git-writer

Remove tracked Git files with status checks and safety prompts.

6|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/pwv-vc/agentcribs-community --skill git-writer-pwv-vc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-writer
Source: https://github.com/pwv-vc/agentcribs-community/tree/main/resources/tearsheets/arsenal/dot-claude/skills/git-writer
Command: npx skills add https://github.com/pwv-vc/agentcribs-community --skill git-writer-pwv-vc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safe workflow for git write operations that prevents accidental loss of uncommitted work by validating state and using safe commands like git rm with guardrails.

Core Features & Use Cases

  • State validation before destructive actions: checks git status and file tracking to ensure safe removals.
  • Atomic, auditable deletions: uses git rm to remove tracked files and stage changes; supports --cached when needed.
  • Guided workflows and safety prompts: prompts user for confirmation when changes could impact uncommitted work; no destructive commands without explicit consent.

Quick Start

Check the current status, verify the file is tracked, and run git rm with the appropriate flags.

Frequently Asked Questions about git-writer

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

FAQPage Schema
How do I safely remove tracked files from a git repository without losing uncommitted work?

To safely remove tracked files without losing uncommitted work, validate the git status and verify file tracking before running git rm with guardrails and explicit confirmation prompts.

What is the safest git workflow for deleting files that are already tracked?

A safe git workflow for deleting tracked files enforces state validation, tracking verification, and non-destructive removal steps using git rm, staging changes atomically while prompting for user consent.

Can I untrack files in git without permanently deleting them from my working directory?

You can untrack files without permanent deletion by running git rm with the --cached flag, which removes the file from version control while preserving your local working directory copy.

Does git rm check my repository status before executing destructive file removal?

Yes, git rm operations check your repository status before executing, enforcing state validation and tracking verification to ensure no destructive commands run without explicit consent.

What is the best way to prevent accidental data loss when running git write operations?

The best way to prevent accidental data loss during git write operations is using an auditable workflow with guardrails that validates state and prompts for confirmation before any destructive action.

When should I avoid using git rm to delete files from version control?

You should avoid using git rm when uncommitted work is present without first validating git status, as skipping safety checks and tracking verification risks irreversible data loss.