Skip to content
Agentmart
Submit a tool

mirror-to-private

Create a private GitHub repo that mirrors the current public repo.

Skill by danielrosehill

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/danielrosehill-mirror-to-private

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create a private GitHub repo that mirrors the current public repo. Use when the user says "mirror this to a private repo", "create a private mirror", or "private copy of this repo".

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/mirror-to-private

What's inside

Skill name
mirror-to-private
Description
Create a private GitHub repo that mirrors the current public repo. Use when the user says "mirror this to a private repo", "create a private mirror", or "private copy of this repo".
License
MIT
Instructions
33 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Mirror Public Repo To Private

Create a private GitHub repository that mirrors the current repo's contents, so Daniel can keep a private working copy alongside the public one.

## Steps

1. Confirm the current directory is a git repo and capture its name and remote:
   ```bash
   git rev-parse --show-toplevel
   git remote get-url origin
   basename "$(git rev-parse --show-toplevel)"
   ```
2. Ask the user for the private repo name (default: `<current-name>-private`). Confirm before creating.
3. Create an empty private repo on GitHub under `danielrosehill`:
   ```bash
   gh repo create danielrosehill/<NAME> --private --description "Private mirror of <original>"
   ```
4. Clone the current repo as a mirror into a temp dir and push to the new private remote, so all branches and tags carry over:
   ```bash
   tmp=$(mktemp -d)
   git clone --mirror "$(git rev-parse --show-toplevel)" "$tmp/mirror.git"
   cd "$tmp/mirror.git"
   git push --mirror "git@github.com:danielrosehill/<NAME>.git"
   ```
5. Report both URLs (public original + new private mirror) to the user. Do not alter the original repo's remotes unless asked.

## Notes

- Use `--mirror` (not a plain clone) so all refs transfer.
- Never change the original repo's `origin` remote without explicit confirmation.
- If the user wants ongoing sync, suggest they run this skill again or set up a scheduled sync — do not silently add automation.

From danielrosehill/Claude-Rudder, MIT.

More from danielrosehill/Claude-Rudder

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Apr 27, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from danielrosehill

Cite this page

mirror-to-private skill. Agent Mart. https://agentmart.dev/skills/danielrosehill-mirror-to-private (last updated 2026-10-24)