clone-with-hash
Clone With Hash
Overview
Create a fresh git clone in a unique -<hash> folder under a chosen parent directory (default: home), then check out a new branch from origin/main (or another base branch if specified).
Workflow
- Identify the source repo (local path or remote URL).
- Choose the parent directory (default:
~) and suffix length (default: 6). - Derive the base name from the repo path or URL (strip trailing
.git). - Generate a random hex suffix, build the destination path, and ensure it does not exist.
- Run
git clone <src> <dest>, thengit checkout -b <branch> origin/<base>. - Report the destination path and created branch.
Quick Commands
python - <<'PY'
More from b1tank/skills
market-research
Research existing products and competitors for a given product idea. Use when starting a new project, cloning an existing product, or analyzing competitive landscape. Returns feature analysis, gaps, and differentiation opportunities.
15diff-check
Author's cleanup checklist before committing or submitting a PR. Use before any commit or PR to ensure code is clean, focused, and ready for review. Checks for debug code, secrets, redundant changes, and scope creep.
13spec-template
9-section product specification template for defining software projects. Use when drafting a new spec.md, converting an idea into a structured specification, or reviewing spec completeness. Ensures consistent, comprehensive project definitions.
9decompose-task
Break large tasks (>100 lines) into atomic, verifiable sub-tasks. Use when a task scope is unclear, touches multiple files/modules, or exceeds comfortable single-commit size. Returns structured breakdown without implementing code.
8skill-name
Clear description of what this skill does and when to use it. Include specific triggers and contexts for when Claude should invoke this skill.
5