Initialize a new project repo with git, GitHub remote, and verify spec.org exists. Use when starting a fresh project from a spec.org file.
You are initializing a new project repository.
Before doing anything, check what already exists:
SENTINEL_GIT=$(git rev-parse --is-inside-work-tree 2>/dev/null && echo true || echo false)
SENTINEL_REMOTE=$(git remote get-url origin 2>/dev/null && echo true || echo false)
SENTINEL_SPEC=$(test -f spec.org && echo true || echo false)
true: report "bootstrap already complete" and stop.
Suggest /generate-claude-md if CLAUDE.md doesn't exist, or
/review-prompt if it does.SENTINEL_GIT=true and SENTINEL_REMOTE=true but SENTINEL_SPEC=false:
tell user to write spec.org and stop.Verify toolchain is available:
git --version
gh --version
If $ARGUMENTS is provided (org/repo format), create GitHub repo:
gh repo create $ARGUMENTS --private --source=. --push
Verify spec.org exists in the current directory.
If it doesn't, tell the user to write one first and stop.
Set repo description from spec.org's #+title and #+subtitle lines.
Add topics extracted from spec.org's domain:
gh repo edit --add-topic emacs --add-topic mcp --add-topic elisp
Report what was initialized and suggest running /generate-claude-md.