joelbrilliant/agentic-delivery-skills/dirty-worktree-discipline

Claude Code and agent skill by joelbrilliant/agentic-delivery-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Keeps agent work safe in messy repositories. Use when git status is dirty, unrelated files exist, generated artefacts are present, multiple agents share a repo, or you must commit only the intended slice without damaging someone else's work.

Install

npx vskill@latest install joelbrilliant/agentic-delivery-skills/dirty-worktree-discipline

SKILL.md

The same SKILL.md was published earlier as joelbrilliant/agentic-delivery-skills/dirty-worktree-discipline.

Dirty Worktree Discipline

Overview

Use this skill before editing, staging, committing, or reverting in a repository that already has unrelated changes.

A dirty worktree is not an excuse to stop. It is a reason to be precise.

When to Use

  • git status is not clean.
  • Generated files are present.
  • Multiple agents or humans are working in the same repo.
  • You need to commit only your slice.
  • You are tempted to run broad cleanup or reset commands.
  • A deploy or review requires exact source state.

Preflight

Capture:

bash
git status --short --branch
git rev-parse --show-toplevel
git diff --name-only
git diff --cached --name-only

Classify files:

  • yours;
  • pre-existing unrelated;
  • generated artefacts;
  • unknown and risky;
  • ignored/cache/temp.

Rules

  1. Never run broad reset/clean by default. No git reset --hard, no git clean -fd, no mass restore without explicit scope.
  2. Stage by path. Use git add path1 path2, not git add ..
  3. Inspect staged diff. Run git diff --cached --stat and git diff --cached --name-only before commit.
  4. Preserve unrelated work. Do not format, revert, or move files outside your slice.
  5. Generated artefacts need intent. If build output is required for deploy, say so. Otherwise leave it uncommitted.
  6. Dirty state is part of evidence. Report what remains dirty and why.

Commit Protocol

Before commit:

text
Intended files:
Staged files:
Excluded dirty files:
Validation run:

After commit:

text
Commit SHA:
Files committed:
Repo still dirty: yes/no
Unrelated dirty state preserved:

Safe Commands

Good:

bash
git add specific/file another/file
git diff --cached --name-only
git restore -- specific/generated-file

Risky, use only with explicit approval:

bash
git add .
git reset --hard
git clean -fd
git checkout .

Anti-patterns

  • "Workspace was messy so I committed everything."
  • "I cleaned generated files and accidentally deleted someone else's artefacts."
  • "I deployed from a dirty tree but did not report it."
  • "I used broad restore because the diff was noisy."

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/joelbrilliant/agentic-delivery-skills/dirty-worktree-discipline/badge)](https://verified-skill.com/skills/joelbrilliant/agentic-delivery-skills/dirty-worktree-discipline)

Something wrong with this skill or its page? Tell us.