一键导入
rai-doctor
Run self-diagnostics and guide fixes. Use to troubleshoot RaiSE issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run self-diagnostics and guide fixes. Use to troubleshoot RaiSE issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Interactive adapter setup for Jira and Confluence. Detects available backends, discovers projects/spaces, generates validated YAML config. 3-4 questions max.
Evaluate design proportionality using Beck's four rules. Use after implementation.
Root cause analysis using the method best suited to the bug. Phase 3 of bugfix pipeline.
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
基于 SOC 职业分类
| name | rai-doctor |
| description | Run self-diagnostics and guide fixes. Use to troubleshoot RaiSE issues. |
| allowed-tools | ["Read","Grep","Glob"] |
| license | MIT |
| metadata | {"raise.work_cycle":"utility","raise.frequency":"as-needed","raise.fase":"0","raise.prerequisites":"","raise.next":"","raise.gate":"","raise.adaptable":"true","raise.version":"2.2.0","raise.visibility":"public"} |
Diagnose RaiSE setup health, explain issues in plain language, and guide the user through resolution. The user never touches the CLI directly — Rai runs the diagnostics and translates results into actionable conversation.
When to use: User reports something isn't working, after rai init, after upgrading raise-cli, or proactively at session start when setup feels off.
When to skip: The issue is clearly in user code, not RaiSE configuration.
rai doctor --json
Parse the JSON output. Categorize results by severity.
If all checks pass:
Your RaiSE setup is healthy. All checks passed.
If there are warnings or errors, explain each one conversationally:
Example:
I found 2 issues with your setup:
Graph is outdated — your knowledge graph hasn't been rebuilt since governance files changed. This means my context queries may return stale data. I can rebuild it now if you'd like.
MCP server 'jira' is unreachable — the Jira integration can't connect. Check that JIRA_URL and JIRA_API_TOKEN are set in your environment.
For auto-fixable issues (those with fix_id in the JSON):
I can fix issue #1 automatically. Should I run
rai doctor --fix?
Wait for user confirmation before running fixes.
rai doctor --fix
Report the outcome of each fix.
For issues that can't be auto-fixed, guide step by step:
rai skill syncIf issues persist after fixes:
This looks like a bug in RaiSE itself. I can generate a diagnostic report for the team. It only includes non-sensitive data (versions, check results, file names — never secrets or code). Want me to prepare it?
If the user agrees:
rai doctor report
Show the user the saved report path so they can review it. Then:
The report is saved at {path}. Review it, and when ready I can open your email client to send it:
rai doctor report --send
| Artifact | When |
|---|---|
| Diagnostic summary | Always (conversational) |
| Auto-fixes applied | When user approves --fix |
| Report file | When user requests bug report |
| Email draft | When user approves --send |
--fix without user confirmation