move-a-file_skill

This skill moves or renames a file and automatically updates all code, docs, and config references across the project.
  • Python

65

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill synthesys-lab/assassyn --skill move-a-file

  • SKILL.md7.4 KB

Overview

This skill performs safe file moves or renames in a codebase while automatically finding and updating all references in source code, documentation, and configuration files. It validates paths, updates references with context-aware path calculations, performs a git-preserving move, and reports a clear summary of changes and any items needing manual review.

How this skill works

The agent first validates the old and new paths and ensures the new parent directory can be created without overwriting existing files. It then searches the repository for references using multiple patterns (filename, full relative path, path variants and import forms) across source, docs, config, and build files. The agent updates each reference with the correct form for its context, runs git mv to move the file, verifies the result, and produces a summary listing moved path, updated files, and outstanding uncertainties.

When to use it

  • Rename a single source file while preserving history
  • Move a documentation file and update links across docs and README
  • Refactor a module so imports and build configs stay correct
  • Relocate a single file referenced in multiple languages or config formats
  • Update file placement during reorganization without breaking CI/builds

Best practices

  • Always validate that old path exists and new path won’t overwrite existing files
  • Search with multiple patterns: exact name, full relative path, leading ./, and import variations
  • Update references using the language or file-type conventions (imports vs. root-relative links)
  • Use git mv (and mkdir -p for the new parent) to preserve history
  • Report any ambiguous references for manual review; don’t guess in uncertain cases

Example use cases

  • Rename a Python module and update from/import statements across the codebase
  • Move a Markdown doc into a nested docs folder and update README links
  • Relocate a shell script used by CI and update all source commands and Makefile entries
  • Change the path of a config file and update YAML/JSON references used by services

FAQ

Abort and notify the user; do not overwrite. Offer to choose a different destination or remove the existing file first.

How do you handle imports that require module path changes?

Translate references according to the language’s import rules (module name vs file path). If ambiguous, include the reference in the final report for manual verification.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational