Execute explicitly requested version-control mutations safely, including staging, commits, branches, merges, rebases, conflict resolution, undo operations, and pull-request preparation. Always use before force push, reset, clean, history rewrite, or deletion. Do not trigger for read-only status, diff, log, blame, or show requests that must leave repository state unchanged.
Ships in senior-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Treat version-control state as user data. Mutate only the parts required by the requested git workflow.
--force-with-lease over an authorized force push and revert over resetting shared history.reflog, a backup branch, stash, or patch before destructive recovery, but do not create or apply them without authority.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/senior-agent-skills:git-hygienefrom senior-agent-skills
senior-agent-skills@adityaarakeri is listed by adityaarakeri/astack — review the source before installing
npx claudepluginhub adityaarakeri/astack --plugin senior-agent-skills10 skills in this plugin
/dead-code-auditThoroughly find dead, unused, and unreachable code in a repository and produce a confidence-ranked report. Use this skill whenever the user asks to find dead code, unused variables, unused functions or classes, unreachable code, orphaned files, unused exports, unused dependencies, stale CI files, orphaned config files, or temp/junk files, or wants to "clean up" or "slim down" a codebase. Also trigger on phrases like "what can I safely delete", "audit this repo", "find code nobody calls", or "our repo has gotten bloated". Works on repos of any size: it measures the repo first and automatically switches between a full one-pass scan, a tool-driven scan, or a chunked module-by-module strategy for very large codebases. Never delete code with this skill unless the user explicitly confirms deletions./debug-protocolDiagnose bugs, failing tests, crashes, regressions, flaky behavior, and performance failures when the cause is unknown. Use for stack traces, wrong output, intermittent failures, environment mismatches, or repeated unsuccessful fixes. Do not use when the root cause is already established and the task is to implement the known fix; hand that work to tdd-loop./evaluate-ai-changesEvaluate changes to prompts, model or provider versions, RAG retrieval and ranking, tool schemas, agent policies, structured outputs, safety filters, and model routing. Use when AI-system quality, safety, latency, or cost may change. Do not use for ordinary deterministic code changes; use tdd-loop for those and combine both skills when an AI change also modifies deterministic adapters./plan-firstProduce and maintain an implementation plan for risky, ambiguous, irreversible, or coordinated changes, and whenever the user asks for a plan or approach. Trigger on public contracts, schemas, auth, payments, migrations, build or deployment systems, and material design choices. Do not use for low-risk mechanical work with an obvious established implementation./repo-reconMap an unfamiliar repository, service, or module before non-trivial work. Use when entering a codebase not explored in the current session, onboarding, tracing an unknown flow, or recovering from a wrong structural assumption. Do not use for a scoped, obvious change when the relevant files, commands, and conventions are already known./safe-refactorChange internal code structure while preserving observable behavior through small verified steps. Use for renames, extractions, moves, decomposition, and duplication removal when behavior must remain stable. Do not use for bug fixes, public contract changes, dependency or framework migrations, schema migrations, or other work expected to change compatibility or runtime behavior.