name: woz-login description: Authenticate with the Woz service. Use when the user needs to log in or when authentication is required. allowed-tools: Bash(node *)
Woz Login Flow
If the user passed --token <token> as arguments, skip directly to the Token Login section below.
Browser Login (Preferred)
Run the Woz authentication flow. This opens a browser for the user to log in:
node --no-warnings=ExperimentalWarning ${CLAUDE_PLUGIN_ROOT}/scripts/wozcode-cli.js login
If the command exits with code 0, login succeeded — confirm to the user.
Token Login
Use this when:
- The user passed
--token <token>as arguments to this skill - The browser login above timed out or failed and the user provides a token
If the browser login failed:
- The auth URL is visible in the output above
- Tell the user to open that URL in their browser and complete the login
- Ask the user to copy the token shown on the auth page after login
Once you have the token (from args or from the user), run:
node --no-warnings=ExperimentalWarning ${CLAUDE_PLUGIN_ROOT}/scripts/wozcode-cli.js login --token '<token>'
Replace <token> with the actual token.
Confirm success or relay any error to the user.