create-private-repo
Installation
SKILL.md
Create private repo
- Get the repository description and the exact local destination folder. If either is missing, ask for it. Take the first two letters of each of the first two words in the description, lowercase them, and concatenate them (
movie downloader→modo). If either word has fewer than two letters, ask for a different description. - Check
gh auth status, identify the authenticated user withgh api user --jq .login, and check the destination folder and whether<login>/<name>already exists. Stop before creating anything if authentication fails, the folder contains files, or the name is taken. Ask for a different description when the name is taken; keep the naming rule. - Run
gh repo create <login>/<name> --private --description <description>, thengh repo clone <login>/<name> <destination-folder>. If creation succeeds but cloning fails, report the repository URL and the clone error so the user can retry without creating another repository. - Verify the repository is private and the destination has its
originremote. Return the repository URL and absolute local path.