Dev repo bigbang move

From Takazudo/claude-resources · View interactive version

Dev repo bigbang move is an AI agent skill from the GitHub repository Takazudo/claude-resources. Move a repository to a new remote without history, purging private info. Use for 'bigbang move', 'repo move', or 'move repo'.

How to use this skill

Skill file

Big-Bang Repo Move

Move all files from an old repo to a new repo, intentionally losing commit history. Purge private/client info from the new repo before pushing. The old repo is left untouched.

Arguments

If arguments are not provided, ask the user for both paths.

Workflow

Step 1: Validate Repos

  1. Confirm $0 exists and is a git repo
  2. Confirm $1 exists. If it is not a git repo yet, run git init and create an initial empty commit:

```

git commit --allow-empty -m "Initial commit"

```

  1. Confirm $1 has a remote configured (git remote -v). If not, ask the user for the remote URL and add it.

Step 2: Copy Files

  1. Copy all files from $0 to $1, excluding .git/ directory
  1. Verify files were copied correctly

Step 3: Purge Private Info

Run /purge-private-info on the NEW repo ($1) to scan and clean private/client information.

Step 4: Commit and Push

  1. Run /co on the new repo to commit all files
  2. Push to the remote: git push -u origin main (or the appropriate branch name)

Step 5: Update Old Repo Remote (Optional)

Ask the user if they want to update the old repo's remote to point to the new repo. If yes:

  1. Get the new remote URL from $1: git -C $1 remote get-url origin
  2. Update the old repo's remote: git -C $0 remote set-url origin <new-url>

Step 6: Summary

Report what was done:

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.