agentleFS
XakkiXakki/ai-agents-skills/skills/git-path-run/SKILL.md

git-path-run

Skill6 starsChanged 3 months agoMITView on GitHub

Move or remove project paths while preserving Git history and local work, via the git-aware helper. Use for authorized file or directory relocation where tracked and untracked work coexist. RU: перенос файлов, переместить, удалить путь.

The file

Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.