create-public-gh-repo
Create a public GitHub repo
Running this skill is the user's go-ahead to publish, so ask only for what you can't work out. The two scripts hold every fixed choice: scripts/scaffold.sh writes the files that are the same in every repo, and scripts/configure.sh applies and checks the GitHub settings. Paths to the scripts are relative to this skill's folder.
Steps
-
Check the folder. It must hold no project files: only an empty git repo,
.claude/or editor folders such as.idea/may be there, and they stay out of the commit. Otherwise stop and say this skill starts new projects only. -
Ask for the description. The owner is the active
ghaccount (gh api user --jq .login) and the repo name is the folder's name. In one message say "Creating<owner>/<repo>as a public repo" and ask for a one-sentence description. Skip the question when the user already gave one. -
Write the files. Answer the other skills' questions from here, so the user gets no more of them.
- Run
git init -b mainunless the folder is already a git repo, thenscripts/scaffold.sh <owner> <repo>. - Use the
gitignoreskill. No stack is chosen yet. - Use the
readmeskill with the name, the description, the status "Early development, not usable yet", and the licenseAGPL-3.0-or-later. - Use the
agentsmdskill with the name and the description, and put these two lines in its Rules:- CI checks go in the
Verifyjob of.github/workflows/verify.yaml, which themainruleset requires. Pin every action to a full commit SHA: the repo rejects tags. - When you add a build file, add its ecosystem to
.github/dependabot.yml.
- CI checks go in the
Done when
LICENSE,README.md,AGENTS.md,.gitignoreand the.githubfolder exist. - Run