askill
setup

setupSafety 85Repository

Configure second-opinion agents interactively. Use when user says "setup second opinion", "configure agents", "enable/disable agents", "which agents", or wants to change second-opinion settings.

0 stars
1.2k downloads
Updated 1/17/2026

Package Files

Loading files...
SKILL.md

Second Opinion Setup

Interactive configuration for second-opinion agents. No file editing required.

Authentication Methods

AgentAuth MethodHow to Set Up
GitHubOAuth via gh CLIRun gh auth login in terminal
OpenAIAPI KeyEnter interactively below
GeminiAPI KeyEnter interactively below

Instructions

Step 1: Check GitHub Authentication

First, check if gh auth token returns a token:

gh auth token 2>/dev/null && echo "authenticated" || echo "not authenticated"

If authenticated: GitHub agent is ready to use (OAuth - no API key needed).

If not authenticated: Tell the user:

GitHub uses OAuth authentication.

To set up, run this in your terminal:
  gh auth login

Then restart Claude Code.

Step 2: Check for Existing API Keys

Read .claude/second-opinion.json if it exists to see what's already configured.

Display current status:

## Current Configuration

| Agent | Status |
|-------|--------|
| GitHub | ✓ authenticated via gh CLI |
| OpenAI | ✗ not configured |
| Gemini | ✗ not configured |

Step 3: Prompt for Missing API Keys

For each agent WITHOUT a configured key, use AskUserQuestion:

{
  "questions": [{
    "question": "Would you like to configure OpenAI?",
    "header": "OpenAI",
    "multiSelect": false,
    "options": [
      {"label": "Yes, enter API key", "description": "I have an OpenAI API key ready"},
      {"label": "Skip for now", "description": "I'll configure this later"}
    ]
  }]
}

If user selects "Yes, enter API key":

Use AskUserQuestion with a text input option:

{
  "questions": [{
    "question": "Enter your OpenAI API key (starts with sk-):",
    "header": "API Key",
    "multiSelect": false,
    "options": [
      {"label": "I'll paste it", "description": "The API key will be stored locally in .claude/second-opinion.json"}
    ]
  }]
}

When the user provides the key via "Other" input, save it to the config file.

Step 4: Save Configuration

Write the API keys to .claude/second-opinion.json:

{
  "apiKeys": {
    "openai": "sk-...",
    "gemini": "AI..."
  },
  "updatedAt": "2026-01-17T12:00:00Z"
}

Use the Write tool to create/update this file.

Step 5: Show Confirmation

## Configuration Complete

| Agent | Status | Auth Source |
|-------|--------|-------------|
| GitHub | ✓ ready | gh CLI (OAuth) |
| OpenAI | ✓ ready | stored locally |
| Gemini | ✗ skipped | - |

**Config file:** .claude/second-opinion.json

### Next Steps

- Use `/second-opinion` to get second opinions
- Run `/second-opinion setup` again to reconfigure
- GitHub auth: run `gh auth login` in terminal

### Security Note

API keys are stored locally in your project's `.claude/` directory.
Add `.claude/second-opinion.json` to `.gitignore` to avoid committing keys.

Important Rules

  1. NEVER ask users to edit files manually
  2. NEVER ask users to set environment variables
  3. Use AskUserQuestion for ALL user input
  4. GitHub uses OAuth via gh auth login - no API key needed
  5. Store API keys in .claude/second-opinion.json using Write tool
  6. Add reminder about .gitignore for security

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 2/20/2026

High-quality skill with excellent actionability and clarity. Clear when-to-use description, structured 5-step instructions, proper security practices (no manual file editing, .gitignore reminder). Somewhat specific to the second-opinion plugin but follows good patterns. Minor gaps in completeness around error handling and edge cases."

85
85
60
70
90

Metadata

Licenseunknown
Version-
Updated1/17/2026
Publisheralejandrolaborda

Tags

apigithubllmpromptingsecurity