turbo-doctor — скилл для Claude Code: что делает и как установить
Интерактивная диагностика сбоев в пайплайнах Goldsky Turbo. Помогает найти причину ошибок по логам, проверить секреты и вернуть поток данных в строй.
npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a claude-codeЧто делает turbo-doctor
Скилл подключается к отладке уже запущенных или упавших пайплайнов Goldsky Turbo. Сначала проверяется статус авторизации через goldsky project list, затем агент запрашивает список пайплайнов через goldsky turbo list и разбирает последние строки логов. Скилл распознаёт типичные сбои: недоступность приёмника данных, расхождения в схемах колонок, нехватку памяти или ошибки десериализации.
Поведение зависит от окружения. Если агенту доступен инструмент Bash, он выполняет диагностические команды в терминале сам. Без прямого доступа к консоли скилл выводит команды в чат и ждёт, пока вы вставите ответ терминала. В конце формируется структурированный отчёт с первопричиной проблемы, цитатами из логов и шагами для починки.
Для пайплайнов в режиме job команды паузы и перезапуска недоступны: их можно только удалить и развернуть заново. Скилл предназначен строго для починки существующих процессов. Создание новых пайплайнов вынесено в отдельный инструмент /turbo-builder, а справочник синтаксиса — в /turbo-operations.
Какие задачи решает
- выяснить причину падения пайплайна по последним строкам логов
- проверить доступность и валидность секретов для приёмника данных
- безопасно перезапустить сбойный пайплайн через Goldsky CLI
- отличить ошибку схемы данных от аппаратного лимита по памяти
Примеры запросов агенту
- Пайплайн eth-blocks упал с ошибкой, посмотри логи и скажи, что сломалось.
- Пайплайн transfers висит в статусе starting уже 15 минут, разберись в проблеме.
- Проверь, почему пайплайн polygon-sync перестал получать входящие события.
Как установить turbo-doctor
1Через Skills CLI (Vercel)
npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a claude-code2Вручную: положить файлы
~/.claude/skills/turbo-doctor/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/turbo-doctor/
1Через Skills CLI (Vercel)
npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a codex2Вручную: положить файлы
.agents/skills/turbo-doctor/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a cursor2Вручную: положить файлы
.cursor/skills/turbo-doctor/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install goldsky-io/goldsky-agent turbo-doctor2Вручную: положить файлы
.github/skills/turbo-doctor/SKILL.md1Через Skills CLI (Vercel)
npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a gemini-cli2Командой платформы
gemini skills install https://github.com/goldsky-io/goldsky-agent --path skills/turbo-doctorВручную: положить файлы
.devin/skills/turbo-doctor/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о turbo-doctor
Как установить turbo-doctor в Claude Code?
Выполните в терминале команду npx skills add goldsky-io/goldsky-agent --skill turbo-doctor -a claude-code. Конфигурация сохранится по пути ~/.claude/skills/turbo-doctor/SKILL.md.
Что делает скилл turbo-doctor?
Он ведёт пошаговую диагностику сбоев: проверяет авторизацию в Goldsky CLI, изучает статус пайплайна, анализирует хвост логов и предлагает точечные команды для устранения ошибки.
Можно ли перезапустить пайплайн в режиме job?
Нет, пайплайны типа job нельзя ставить на паузу или перезапускать. Их можно только удалить командой goldsky turbo delete <name> и запустить заново через goldsky turbo apply <file.yaml>.
Исходный текст
SKILL.md · MIT
--- name: turbo-doctor description: "Diagnose and fix broken Goldsky Turbo pipelines interactively. Triggers on: pipeline in error state, stuck starting, connection refused, not getting data, duplicate rows, missing fields, slow backfill, or any named pipeline misbehaving. Runs logs/status commands, identifies root cause, and offers fixes. For CLI syntax or error pattern lookup without an active problem, use /turbo-operations instead." --- # Pipeline Doctor ## Boundaries - Diagnose and fix EXISTING pipeline problems interactively. - Do not build new pipelines — that belongs to `/turbo-builder`. - Do not serve as a command reference. If the user only needs CLI syntax or error pattern lookup, use the `/turbo-operations` skill instead. Systematically identify and resolve pipeline issues by following a structured diagnostic workflow. ## Mode Detection Before running any commands, check if you have the `Bash` tool available: - **If Bash is available** (CLI mode): Execute commands directly and parse output. - **If Bash is NOT available** (reference mode): Output commands for the user to run. Ask them to paste the output back so you can analyze it and provide recommendations. ## Diagnostic Workflow Follow these steps in order. Do not skip steps — each builds on the previous one. ### Step 1: Verify Authentication Run `goldsky project list 2>&1` to check login status. - **If logged in:** Note the current project and continue. - **If not logged in:** Tell the user they need to authenticate. Use the `/auth-setup` skill for guidance. Do not proceed until auth is confirmed. ### Step 2: Identify the Pipeline Run `goldsky turbo list` to show all pipelines. Ask the user which pipeline they want to diagnose. If they already named one, confirm it exists in the list. Note the pipeline's current status (running, paused, error, completed, starting). ### Step 3: Analyze Pipeline Status Based on the status: - **running** — Pipeline is active. Check if the issue is data quality, latency, or unexpected behavior. Proceed to Step 4. - **error** — Pipeline has failed. This is the most common case. Proceed to Step 4 for log analysis. - **paused** — Pipeline was manually paused. Ask if they want to resume it. - **starting** — Pipeline is initializing. Ask how long it's been starting. If >10 minutes, check logs. - **completed** — Job-mode pipeline finished. Ask what the expected vs actual behavior was. ### Step 4: Examine Logs Run `goldsky turbo logs <pipeline-name> --tail 100 2>&1` to get recent logs. Analyze the output for known error patterns. Reference the error patterns in the `/turbo-operations` skill, including: - **Connection errors** — sink unreachable, auth failed, timeout - **Schema errors** — column mismatch, type mismatch, missing columns - **Resource errors** — OOM, disk full, rate limiting - **Data errors** — deserialization failures, invalid block ranges - **Configuration errors** — invalid YAML, unknown dataset, bad transform ### Step 5: Check Secrets (if applicable) If logs show connection or authentication errors: Run `goldsky secret list` to verify all required secrets exist. Cross-reference with the pipeline YAML if available. Use the `/secrets` skill for guidance on creating or updating secrets. ### Step 6: Provide Diagnosis Present your findings in this format: ``` ## Diagnosis **Pipeline:** [name] **Status:** [status] **Issue:** [one-line summary] **Root cause:** [Detailed explanation of what's wrong] **Evidence:** - [Log line or observation 1] - [Log line or observation 2] **Recommended fix:** 1. [Step 1] 2. [Step 2] **Prevention:** [How to avoid this in the future] ``` ### Step 7: Offer to Fix If the fix involves CLI commands (restart, update secrets, redeploy), offer to execute them. Always confirm with the user before making changes. Common fixes: - **Restart:** `goldsky turbo restart <name>` (or `--clear-state` for a fresh start) - **Update secret:** Use `goldsky secret update <name> --value "$(cat /secure/path/secret.json)"` to rotate the existing secret in place; see [Rotating Credentials](../secrets/SKILL.md#rotating-credentials) for the JSON format and credential handling. Do not delete and recreate an in-use secret. Unlike `create`, `update` does not prompt for a value. Never echo credentials back into the conversation. - **Redeploy:** `goldsky turbo delete <name>` then `goldsky turbo apply <file.yaml>` - **Resume:** `goldsky turbo resume <name>` (for paused pipelines) ## Important Rules - Never guess at the problem. Always check logs and status first. - If you're unsure, say so and suggest what additional information would help. - For job-mode pipelines: remember they cannot be paused, resumed, or restarted — only deleted and redeployed. - Always ask before running destructive commands (delete, restart --clear-state). - If the issue is beyond what the CLI can diagnose, suggest contacting Goldsky support with the specific error messages. ## Related - **`/turbo-operations`** — CLI commands, lifecycle operations, and error pattern reference - **`/turbo-builder`** — Build and deploy new pipelines - **`/turbo-pipelines`** — YAML configuration and architecture reference - **`/secrets`** — Manage sink credentials
© goldsky-io · MIT · goldsky-io/goldsky-agent