Source profileQuality 91/100

terrylica/cc-skills/plugins/gmail-commander/skills/setup/SKILL.md

setup

Full Gmail Commander setup wizard - Gmail OAuth, Telegram bot, launchd services. Discovers 1Password items, configures mise.

Source repository stars
62
Declared platforms
0
Static risk flags
1
Last source update
2026-08-24
Source checked
2026-08-25

Decision brief

What it does: where it fits

Complete setup wizard for Gmail CLI access, Telegram bot, and launchd services.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/terrylica/cc-skills --skill "plugins/gmail-commander/skills/setup"
    Safe inspection promptEditorial

    Inspect the Agent Skill "setup" from https://github.com/terrylica/cc-skills/blob/a5f847b22ee5afa35677e446973a903d098cd1d4/plugins/gmail-commander/skills/setup/SKILL.md at commit a5f847b22ee5afa35677e446973a903d098cd1d4. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Phase 1: Gmail OAuth Setup

      If already set, use AskUserQuestion to ask if user wants to reconfigure.

      If already set, use AskUserQuestion to ask if user wants to reconfigure.Use AskUserQuestion with discovered items or guide new credential creation.
    2. 02

      Step 1: Check if already configured

      If already set, use AskUserQuestion to ask if user wants to reconfigure.

      If already set, use AskUserQuestion to ask if user wants to reconfigure.
    3. 03

      Step 2: Discover 1Password items

      Review the “Step 2: Discover 1Password items” section in the pinned source before continuing.

      Review and apply the “Step 2: Discover 1Password items” source section.
    4. 04

      Step 3: Present options

      Use AskUserQuestion with discovered items or guide new credential creation.

      Use AskUserQuestion with discovered items or guide new credential creation.
    5. 05

      Step 4: Configure .mise.local.toml

      Review the “Step 4: Configure .mise.local.toml” section in the pinned source before continuing.

      Review and apply the “Step 4: Configure .mise.local.toml” source section.

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 13

    The documentation includes network, browsing, or remote request actions.

    command -v mise && echo "OK mise" || echo "MISSING: curl https://mise.run | sh"

    Network access

    medium · line 14

    The documentation includes network, browsing, or remote request actions.

    command -v bun && echo "OK bun" || echo "MISSING: curl -fsSL https://bun.sh/install | bash"

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score91/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars62SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    terrylica/cc-skills
    Skill path
    plugins/gmail-commander/skills/setup/SKILL.md
    Commit
    a5f847b22ee5afa35677e446973a903d098cd1d4
    License
    MIT
    Collected
    2026-08-25
    Default branch
    main
    View the original SKILL.md

    Gmail Commander Setup

    Complete setup wizard for Gmail CLI access, Telegram bot, and launchd services.

    Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

    Prerequisites Check

    # Check required tools
    command -v op && echo "OK 1Password CLI" || echo "MISSING: brew install 1password-cli"
    command -v mise && echo "OK mise" || echo "MISSING: curl https://mise.run | sh"
    command -v bun && echo "OK bun" || echo "MISSING: curl -fsSL https://bun.sh/install | bash"
    command -v ffmpeg && echo "OK ffmpeg" || echo "OPTIONAL: brew install ffmpeg (for voice digest)"
    

    Phase 1: Gmail OAuth Setup

    Step 1: Check if already configured

    echo "GMAIL_OP_UUID: ${GMAIL_OP_UUID:-NOT_SET}"
    

    If already set, use AskUserQuestion to ask if user wants to reconfigure.

    Step 2: Discover 1Password items

    op item list --vault Employee --format json | jq -r '.[] | select(.title | test("gmail|oauth"; "i")) | "\(.id)\t\(.title)"'
    

    Step 3: Present options

    Use AskUserQuestion with discovered items or guide new credential creation.

    Step 4: Configure .mise.local.toml

    # Add to .mise.local.toml in project directory
    cat >> .mise.local.toml << 'EOF'
    [env]
    GMAIL_OP_UUID = "<selected-uuid>"
    EOF
    

    Step 5: Build Gmail CLI

    cd "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli" && bun install && bun run build
    

    Step 6: Test Gmail access

    "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli/gmail" list -n 1
    

    Phase 2: Telegram Bot Setup

    Step 1: Check Telegram config

    echo "TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:+SET}"
    echo "TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID:-NOT_SET}"
    

    If NOT_SET, guide user through BotFather setup:

    1. Message @BotFather on Telegram
    2. Send /newbot and follow prompts
    3. Copy the token
    4. Get chat ID: message the bot, then check https://api.telegram.org/bot<TOKEN>/getUpdates

    Step 2: Add to .mise.local.toml

    # Append bot config
    cat >> .mise.local.toml << 'EOF'
    TELEGRAM_BOT_TOKEN = "<bot-token>"
    TELEGRAM_CHAT_ID = "<chat-id>"
    EOF
    

    Phase 3: launchd Service Installation

    Step 1: Create launcher scripts

    mkdir -p ~/own/amonic/bin ~/own/amonic/logs
    
    # Bot launcher
    cat > ~/own/amonic/bin/gmail-commander-bot << 'SCRIPT'
    #!/bin/bash
    set -euo pipefail
    eval "$("$HOME/.local/bin/mise" activate bash)"
    cd "$HOME/own/amonic"
    exec bun run "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/bot.ts"
    SCRIPT
    chmod +x ~/own/amonic/bin/gmail-commander-bot
    
    # Digest launcher
    cat > ~/own/amonic/bin/gmail-commander-digest << 'SCRIPT'
    #!/bin/bash
    set -euo pipefail
    eval "$("$HOME/.local/bin/mise" activate bash)"
    cd "$HOME/own/amonic"
    exec bun run "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/digest.ts"
    SCRIPT
    chmod +x ~/own/amonic/bin/gmail-commander-digest
    

    Step 2: Install launchd plists

    Use AskUserQuestion to confirm before installing launchd services.

    # Copy plist templates (from bot-process-control SKILL.md) to LaunchAgents
    # launchctl load ~/Library/LaunchAgents/com.terryli.gmail-commander-bot.plist
    # launchctl load ~/Library/LaunchAgents/com.terryli.gmail-commander-digest.plist
    

    Phase 4: Verification

    # Run health check
    echo "=== Gmail CLI ==="
    "$HOME/.claude/plugins/marketplaces/cc-skills/plugins/gmail-commander/scripts/gmail-cli/gmail" list -n 1 2>&1 | head -5
    
    echo ""
    echo "=== Bot Process ==="
    pgrep -fl gmail-commander || echo "Not running"
    
    echo ""
    echo "=== launchd ==="
    launchctl list | grep gmail-commander || echo "Not registered"
    

    Success Criteria

    1. echo $GMAIL_OP_UUID shows a UUID
    2. Gmail CLI returns email data
    3. echo $TELEGRAM_BOT_TOKEN is set
    4. Bot responds to /help in Telegram
    5. launchd jobs are loaded (optional)

    No OAuth Credentials?

    Direct user to: gmail-api-setup.md


    Post-Execution Reflection

    After this skill completes, reflect before closing the task:

    1. Locate yourself. — Find this SKILL.md's canonical path (Glob for this skill's name) before editing. All corrections target THIS file and its sibling references/ — never other documentation.
    2. What failed? — Fix the instruction that caused it. If it could recur, add it as an anti-pattern.
    3. What worked better than expected? — Promote it to recommended practice. Document why.
    4. What drifted? — Any script, reference, or external dependency that no longer matches reality gets fixed now.
    5. Log it. — Every change gets an evolution-log entry with trigger, fix, and evidence.

    Do NOT defer. The next invocation inherits whatever you leave behind.

    Frequently asked questions

    What to verify before installation and use

    What does the setup source document cover?

    Complete setup wizard for Gmail CLI access, Telegram bot, and launchd services.

    How do I install setup?

    The source record exposes this install command: npx skills add https://github.com/terrylica/cc-skills --skill "plugins/gmail-commander/skills/setup". Inspect the command and pinned source before running it.

    Which permission-related actions were detected?

    Static rules flagged network in the source; the page lists the matching lines and excerpts.

    Alternatives

    Compare before choosing