api2cli-publish-to-github
Installation
SKILL.md
Publish to GitHub
Push an api2cli-generated CLI (from ~/.cli/<app>-cli/) to a new GitHub repository.
Phase 1: Pre-flight
Auth
Run gh auth status. If not logged in, tell the user to run gh auth login first. Stop and wait.
Note the GitHub username from the output (e.g. Logged in to github.com account <username>).
Resolve the CLI
If the user didn't specify which CLI, check ~/.cli/ and ask which one. Read package.json to get the package name.
Phase 2: Prepare the repo
From the CLI directory (~/.cli/<app>-cli/):