github-createlisted
Install: claude install-skill AnotherSava/claude-code-common
# Create a GitHub repository
Read `~/.claude/skills/shared/bash-rules.md` for bash command constraints.
## Context
- Repo root: !`git rev-parse --show-toplevel 2>/dev/null || pwd`
- Folder name: !`basename "$PWD"`
- Is a git repo: !`git rev-parse --is-inside-work-tree 2>/dev/null || echo NO`
- Current branch: !`git branch --show-current 2>/dev/null || echo "(none)"`
- Commit count: !`git rev-list --count HEAD 2>/dev/null || echo 0`
- Blocking changes: !`git status --porcelain 2>/dev/null | grep -v '^??' || echo "(none)"`
- Existing remotes: !`git remote -v 2>/dev/null | grep . || echo "(none)"`
- LICENSE on disk: !`test -f LICENSE && echo PRESENT || echo MISSING`
- README opening: !`head -n 5 README.md 2>/dev/null || echo "(no README.md)"`
- Manifest name field: !`grep -m1 '"name"' package.json 2>/dev/null || grep -m1 '^name' pyproject.toml Cargo.toml 2>/dev/null || echo "(none)"`
- Top-level entries: !`ls -A1 2>/dev/null | head -n 30`
- GitHub account: !`gh api user --jq .login 2>/dev/null || echo NOT-AUTHENTICATED`
- Git protocol: !`gh config get git_protocol --host github.com 2>/dev/null || echo https`
- Copyright holder: !`git config user.name 2>/dev/null || echo "(unset)"`
- Existing repo names: !`gh repo list --limit 200 --json name --jq '.[].name' 2>/dev/null || echo "(unavailable)"`
## End state
When this skill finishes:
- A GitHub repo exists whose entire history is one root commit, `Initial commit`, containing only `LICENSE` — MIT or all rights reserved, as cho