turbo-doctor
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePipeline 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 or
/turbo-monitor-debugskill instead./turbo-lifecycle
Systematically identify and resolve pipeline issues by following a structured diagnostic workflow.
- 交互式诊断并修复已存在的管道问题。
- 不负责构建新管道——该功能属于工具。
/turbo-builder - 不作为命令参考工具。若用户仅需查询CLI语法或错误模式,请使用或
/turbo-monitor-debug工具。/turbo-lifecycle
通过结构化的诊断流程系统地识别并解决管道问题。
Mode Detection
模式检测
Before running any commands, check if you have the tool available:
Bash- 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.
在执行任何命令前,检查是否具备工具:
Bash- 若Bash可用(CLI模式):直接执行命令并解析输出。
- 若Bash不可用(参考模式):输出供用户执行的命令。请用户粘贴返回结果,以便分析并提供建议。
Diagnostic Workflow
诊断流程
Follow these steps in order. Do not skip steps — each builds on the previous one.
按以下顺序执行步骤,请勿跳过——每个步骤都基于前一步的结果。
Step 1: Verify Authentication
步骤1:验证身份认证
Run to check login status.
goldsky project list 2>&1- If logged in: Note the current project and continue.
- If not logged in: Tell the user they need to authenticate. Use the skill for guidance. Do not proceed until auth is confirmed.
/auth-setup
执行命令检查登录状态。
goldsky project list 2>&1- 已登录:记录当前项目并继续。
- 未登录:告知用户需要进行身份认证。使用工具获取指导。身份认证确认前请勿继续。
/auth-setup
Step 2: Identify the Pipeline
步骤2:定位目标管道
Run to show all pipelines.
goldsky turbo listAsk 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).
执行命令展示所有管道。
goldsky turbo list询问用户需要诊断的管道。若用户已指定管道名称,请确认该管道存在于列表中。
记录管道的当前状态(运行中、已暂停、错误、已完成、启动中)。
Step 3: Analyze Pipeline Status
步骤3:分析管道状态
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.
根据状态采取对应操作:
- 运行中:管道处于活跃状态。检查是否存在数据质量、延迟或异常行为问题,继续执行步骤4。
- 错误:管道已失败。这是最常见的情况,继续执行步骤4进行日志分析。
- 已暂停:管道被手动暂停。询问用户是否需要恢复该管道。
- 启动中:管道正在初始化。询问用户管道已启动多久。若超过10分钟,检查日志。
- 已完成:任务模式管道已结束。询问用户预期行为与实际行为的差异。
Step 4: Examine Logs
步骤4:检查日志
Run to get recent logs.
goldsky turbo logs <pipeline-name> --tail 100 2>&1Analyze the output for known error patterns. Reference the error patterns in the skill, including:
/turbo-monitor-debug- 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
执行命令获取最新日志。
goldsky turbo logs <pipeline-name> --tail 100 2>&1分析输出中的已知错误模式。参考工具中的错误模式,包括:
/turbo-monitor-debug- 连接错误——目标存储不可达、认证失败、超时
- Schema错误——列不匹配、类型不匹配、列缺失
- 资源错误——内存不足、磁盘已满、速率限制
- 数据错误——反序列化失败、无效块范围
- 配置错误——无效YAML、未知数据集、转换规则错误
Step 5: Check Secrets (if applicable)
步骤5:检查密钥(如适用)
If logs show connection or authentication errors:
Run to verify all required secrets exist.
goldsky secret listCross-reference with the pipeline YAML if available. Use the skill for guidance on creating or updating secrets.
/secrets若日志显示连接或认证错误:
执行命令验证所有必需的密钥是否存在。
goldsky secret list若有管道YAML文件,交叉核对密钥信息。使用工具获取创建或更新密钥的指导。
/secretsStep 6: Provide Diagnosis
步骤6:输出诊断结果
Present your findings in this format:
undefined按以下格式呈现发现的问题:
undefinedDiagnosis
诊断结果
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:
- [Step 1]
- [Step 2]
Prevention:
[How to avoid this in the future]
undefined管道名称: [名称]
当前状态: [状态]
问题摘要: [一行总结]
根本原因:
[详细说明问题所在]
证据:
- [日志行或观察结果1]
- [日志行或观察结果2]
推荐修复方案:
- [步骤1]
- [步骤2]
预防措施:
[未来如何避免此类问题]
undefinedStep 7: Offer to Fix
步骤7:提供修复操作
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: (or
goldsky turbo restart <name>for a fresh start)--clear-state - Update secret: (secrets are immutable — recreate to update)
goldsky secret create <name> --value <new-value> - Redeploy: then
goldsky turbo delete <name>goldsky turbo apply <file.yaml> - Resume: (for paused pipelines)
goldsky turbo resume <name>
若修复涉及CLI命令(重启、更新密钥、重新部署),主动提出为用户执行这些命令。执行任何修改前务必征得用户确认。
常见修复操作:
- 重启: (或使用
goldsky turbo restart <name>参数进行全新启动)--clear-state - 更新密钥: (密钥为不可变类型——需重新创建以更新)
goldsky secret create <name> --value <new-value> - 重新部署: 先执行,再执行
goldsky turbo delete <name>goldsky turbo apply <file.yaml> - 恢复: (针对已暂停的管道)
goldsky turbo resume <name>
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.
- 切勿猜测问题。务必先检查日志和状态。
- 若不确定问题所在,请如实告知,并说明需要哪些额外信息来辅助诊断。
- 对于任务模式管道:请注意此类管道无法暂停、恢复或重启——只能删除后重新部署。
- 执行破坏性命令(删除、带--clear-state参数的重启)前务必征得用户同意。
- 若问题超出CLI诊断范围,建议用户联系Goldsky支持团队并提供具体错误信息。
Related
相关工具
- — CLI command reference and error pattern lookup
/turbo-monitor-debug - — Pipeline lifecycle commands (pause, resume, restart, delete)
/turbo-lifecycle - — Build and deploy new pipelines
/turbo-builder - — Manage sink credentials
/secrets
- ——CLI命令参考与错误模式查询
/turbo-monitor-debug - ——管道生命周期管理命令(暂停、恢复、重启、删除)
/turbo-lifecycle - ——构建并部署新管道
/turbo-builder - ——管理目标存储凭据
/secrets