skills/fresh-clone/SKILL.md
Clone the current repo into a sibling directory with a fresh Python venv
npx skillsauth add stevenmburns/dot-claude-files fresh-cloneInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a fresh clone of the current repository in a parallel directory, with its own Python virtual environment.
Determine the current repo's remote URL and current branch:
git remote get-url origin to get the remote URLgit rev-parse --abbrev-ref HEAD to get the current branchChoose the clone directory:
-cloneN suffix (e.g., my-project-clone2 → my-project, my-project → my-project)<base-name>-clone0. If that exists, try -clone1, -clone2, etc. until a free name is foundClone the repo:
git clone <remote-url> <clone-dir>cd <clone-dir>git checkout <branch> (skip if already on it)Set up the Python virtual environment:
python3.12 -m venv .venvsource .venv/bin/activatepyproject.toml exists with [project.optional-dependencies]: pip install -e '.[dev]'pyproject.toml or setup.py exists: pip install -e .requirements.txt exists: pip install -r requirements.txtPrint a summary:
source <clone-dir>/.venv/bin/activatetools
Scan open GitHub issues, flag duplicates, and summarize with suggested priorities
testing
Interactively clean up the current branch's commits (squash fixups, reword sloppy messages, reorder, drop) before merging — especially important on repos using rebase-merge where every branch commit lands on main verbatim
tools
Analyze the changes in the current PR and suggest a more accurate title if the current one no longer fits
data-ai
Merge the open PR for the current branch into main, delete the branch, and pull main