auth-setup

Set up Goldsky CLI authentication and project configuration. Use this skill when the user needs to: install the goldsky CLI (what's the official install command?), run goldsky login (including when the browser opens but 'authentication failed'), run goldsky project list and see 'not logged in' or 'unauthorized', switch between Goldsky projects, check which project they're currently authenticated to, or fix 'unauthorized' errors when running goldsky turbo commands. Also use for 'walk me through setting up goldsky CLI from scratch for the first time'. If any other Goldsky skill hits an auth error, redirect here first.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "auth-setup" with this command: npx skills add goldsky-io/goldsky-agent/goldsky-io-goldsky-agent-auth-setup

Goldsky Authentication & Project Setup

Set up the Goldsky CLI, authenticate your account, and configure projects for your pipelines and subgraphs.

Prerequisites

  • macOS, Linux, or WSL (Windows Subsystem for Linux)
  • Internet connection
  • Goldsky account (sign up at https://app.goldsky.com)

Authentication Workflow

Follow this workflow and verify each step. Execute commands and check results.

Step 1: Check CLI Installation

which goldsky && goldsky --version

Success: Path and version displayed (e.g., /usr/local/bin/goldsky and 13.2.0)

Not installed: Tell the user to run this in their terminal:

curl https://goldsky.com | sh

This requires sudo password entry. Use AskUserQuestion to confirm installation:

Question: "Please run this command in your terminal to install the Goldsky CLI:"
Code block: curl https://goldsky.com | sh

Options:
1. Label: "Done, it's installed"
   Description: "I ran the command and the CLI is now installed"

2. Label: "I need help"
   Description: "I encountered an error during installation"

After confirmation, verify with which goldsky && goldsky --version.

Step 2: Check Authentication Status

goldsky project list 2>&1

Already logged in: Output shows a table with project IDs and Names. Skip to Step 4.

Not logged in: Output contains Make sure to run 'goldsky login'. Continue to Step 3.

Step 3: Token-Based Login

Do NOT attempt interactive login. Always use token-based authentication.

Do NOT use AskUserQuestion for token input. Simply ask the user to paste their token directly in the chat:

You're not logged in. Please paste your API token:

(Need a token? Go to https://app.goldsky.com → Settings → API Tokens → Create Token)

Wait for the user to paste their token in their next message.

If user says they don't have a token or need help: Explain the steps:

  1. Go to https://app.goldsky.com
  2. Click Settings → API Tokens
  3. Click "Create Token" and give it a name
  4. Copy the token (it won't be shown again)

Then ask them to paste it.

Once user provides the token: Log them in:

goldsky login --token USER_PROVIDED_TOKEN

Step 4: Verify Login

ALWAYS verify after login:

goldsky project list

Success: Exit code 0, shows table with projects

Failure indicators:

  • Make sure to run 'goldsky login' still appears
  • invalid token or unauthorized

If verification fails, ask user to generate a new token and repeat Step 3.

Completion Summary

After successful setup, provide a summary to the user:

## Setup Complete

**What was done:**
- ✓ Goldsky CLI installed (version X.X.X)
- ✓ Authenticated to Goldsky
- ✓ Connected to project: [project-name]

**Your available projects:**
[List projects from goldsky project list output]

**Next steps - try these skills:**
- `/secrets` - Set up credentials for pipeline sinks (PostgreSQL, ClickHouse, Kafka)
- Ask "create a pipeline" to start building data pipelines
- Ask "deploy a subgraph" to deploy a subgraph to Goldsky

Command Reference

CommandPurposeKey Flags
goldsky loginAuthenticate with Goldsky--token for API token
goldsky logoutRemove local credentials
goldsky project listList all projects you belong to
goldsky project createCreate a new project--name (required)
goldsky project users listList users in current project
goldsky project users inviteInvite user to project--emails, --role

Common Patterns

Create a New Project

goldsky project create --name "my-new-project"

Invite Team Members

goldsky project users invite --emails user@example.com --role Editor

Available roles: Owner, Admin, Editor, Viewer

Switching accounts

goldsky logout
goldsky login
# MUST verify after: goldsky project list

Error Patterns

PatternMeaning
Make sure to run 'goldsky login'Not authenticated
invalid token / unauthorizedToken is incorrect or expired
Permission denied / 403User lacks required role
token expired / session expiredNeed to re-authenticate

Troubleshooting

IssueAction
Not logged inPrompt user for API token, use goldsky login --token
Invalid tokenAsk user to generate a new token in dashboard
Permission deniedUser needs role upgrade from project Owner/Admin
Session expiredPrompt for new token and re-authenticate

Related

After authentication is complete, suggest next steps:

  • /turbo-builder — Build and deploy a new pipeline interactively
  • /datasets — Find the right dataset for your use case
  • /secrets — Set up credentials for pipeline sinks (PostgreSQL, ClickHouse, Kafka, etc.)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

turbo-pipelines

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

turbo-builder

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

secrets

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

turbo-lifecycle

No summary provided by upstream source.

Repository SourceNeeds Review