git-path-run

git-path-run is a skill for Claude Code, Codex from Xakki/ai-agents-skills. It costs 50 tokens per session (439 once invoked), scanned A, original, MIT.

A guide for moving or removing files and directories in a Git repository while preserving local work and Git's record of tracked changes.

In plain words
What is it for?
It helps inspect the source and destination, use Git-aware moves or removals for tracked paths, handle untracked paths, and leave committing as a separate step.
Why use it?
It reduces the risk of overwriting an existing destination, mishandling untracked files, or changing the wrong files when paths are moved or removed.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the ai-agents-skills plugin — 65 skills, 3 agents, 6 hooks shipped together

Good fit It helps inspect the source and destination, use Git-aware moves or removals for tracked paths, handle untracked paths, and leave committing as a separate step.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xakki/ai-agents-skills/git-path-run
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Xakki/ai-agents-skills --skill git-path-run
Clone the repo
git clone --depth 1 https://github.com/Xakki/ai-agents-skills

Made for: Claude Code, Codex.

Or install ai-agents-skills, the plugin that ships this one along with the rest of its 65 skills, 3 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-path-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/xakki/ai-agents-skills/git-path-run/github.svg)](https://agentmods.dev/skills/xakki/ai-agents-skills/git-path-run)
Your own site
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/git-path-run"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/git-path-run/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-path-run

Your own site · 80×15
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/git-path-run"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/git-path-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 439 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00439
Opus 5.5 $0.00020 $0.00176
Sonnet 5.5 $0.00010 $0.00088
Haiku 4.5 $0.00005 $0.00044

Measured 27d ago against content hash 295b1416e1a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-path-run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (git-path-run.sh, test/test_git_move.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/git-path-run/SKILL.md · 23 lines

What it actually says

Git-aware moves and removal

Use for an authorized path move or removal when tracked and untracked work may coexist. Inspect the actual source, destination, repository status and ownership first. Git infers renames by comparing content; a plain filesystem move does not inherently destroy history, but it leaves staging to a separate operation. This helper uses git mv or git rm for tracked paths and filesystem operations for untracked paths, so tracked operations change the index. It does not commit.

Resolve the plugin root through the current runtime's supported interface:

"$PLUGIN_ROOT"/skills/git-path-run/git-path-run.sh <source> <destination>
"$PLUGIN_ROOT"/skills/git-path-run/git-path-run.sh --rm <explicit-file>
"$PLUGIN_ROOT"/skills/git-path-run/git-path-run.sh --rm --recursive <untracked-directory>

Examples of moves include .agents/kanban/grooming/card.md to .agents/kanban/todo/card.md when the board's own lifecycle rules authorize the transition. Prefer the board's canonical lifecycle helper when it maintains status, approval gates or allocation state.

The helper refuses an existing destination, overlapping removal paths, the current directory or an ancestor, and a tracked directory containing untracked, ignored or empty entries. Deleting an untracked directory requires the explicit --recursive flag. It validates every requested removal before starting; native Git safety checks still apply. These checks do not make a multi-path operation atomic or protect against concurrent writers. The implementation currently requires GNU realpath and mv; macOS/BSD compatibility is unverified. Do not use it to delete anything without the user's applicable authorization, and do not bypass hooks or Git safety checks.

Afterward verify actual filesystem paths, staged and unstaged changes, and preserved unrelated work. Follow git-repo-run for any separately authorized commit.

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 23 lines · 50 tokens per session scan A 295b1416e1a8

Subscribe to this mod's changes

git-path-run is a skill published in the GitHub repository Xakki/ai-agents-skills (6 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 439 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

git-path-run compared with skills from other repositories

git-path-run next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-path-runXakki/ai-agents-skillsSkill67d agoMITA50Claude Code, Codex
upgrading-core-dependenciesJetBrains/thinkrailSkill8.5ktodayApache-2.0A59Claude Code, Codex
reviewing-a-prJetBrains/thinkrailSkill8.5ktodayApache-2.0A56Claude Code, Codex
revdiffumputun/revdiffSkill9742d agoMITA254Claude Code
strict-tdda5c-ai/babysitterSkill1.9k29d agoMITA34Claude Code
github-synca5c-ai/babysitterSkill1.9k29d agoMITA0Claude Code, Codex
worktree-isolationa5c-ai/babysitterSkill1.9k29d agoMITA0Claude Code, Codex