بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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.
| 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