一键导入
doctor
Run environment and workspace diagnostics, auto-fix what it can, and report blockers. Use at session start or when something seems broken.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run environment and workspace diagnostics, auto-fix what it can, and report blockers. Use at session start or when something seems broken.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the author side of the review loop: request review, poll for feedback, optionally delegate triage or isolated fixes to Codex subagents, address findings, and report progress through inbox plus PR comments.
Run the author side of the review loop — address findings and drive to LGTM. Single-pass by default (exits after sending messages); use --poll for in-session polling. Hybrid split — leader handles Bash I/O, subagent does code fixes only.
Run the reviewer side of the review loop: gather PR context, optionally delegate read-only review analysis to a Codex subagent, write findings packets, and send feedback or LGTM.
Run the reviewer side of the review loop — review PR diffs, produce findings, and evaluate quality gate. Single-pass by default (exits after verdict); use --poll for in-session round 2 polling. Hybrid split — leader handles Bash I/O, subagent does analysis only.
Synthesize org-memory — fold new events into recent.md, promote cross-repo patterns to decisions.md and rules.md, and audit for staleness, cross-file conflicts, and drift. Invoke whenever the user asks "synthesize org-memory", "fold events", "is recent.md stale", "audit org-memory", or any phrasing like "did we synthesize org-memory" — even if they do not explicitly type the slash command.
Synthesize org-memory — fold new events into recent.md, promote cross-repo patterns to decisions.md and rules.md, and audit for staleness, cross-file conflicts, and drift. Invoke whenever the user asks "synthesize org-memory", "fold events", "is recent.md stale", "audit org-memory", or any phrasing like "did we synthesize org-memory" — even if they don't explicitly type the slash command.
| name | doctor |
| description | Run environment and workspace diagnostics, auto-fix what it can, and report blockers. Use at session start or when something seems broken. |
Run oacp doctor to check environment health, workspace structure, inbox
state, YAML schemas, and agent status. Auto-fix safe issues and report
blockers that still need human intervention.
/doctor [--project <name>]
--project <name> — optional project overrideIf --project was provided, use it directly. Otherwise auto-detect:
PROJECT="$(python3 - <<'PY'
import json
import os
project = ""
for marker in (".oacp", "workspace.json"):
if not os.path.exists(marker):
continue
path = os.path.realpath(marker) if os.path.islink(marker) else marker
try:
with open(path, "r", encoding="utf-8") as f:
data = json.load(f)
project = data.get("project_name", "") or ""
except Exception:
project = ""
if project:
break
print(project)
PY
)"
OACP_ROOT="${OACP_HOME:-$HOME/oacp}"
If PROJECT is empty, run environment-only checks unless the user explicitly
asked for a specific project audit.
With a project:
oacp doctor --project "${PROJECT}" --fix --json 2>/dev/null
Without a project:
oacp doctor --json 2>/dev/null
Capture stdout JSON and the exit code. Exit code 1 means doctor found
blocking errors, not that the command itself failed.
Parse:
has_errorsfixed[]name and worst_severitycategories[]name, severity, message, and optional fix_hintThe fixed array lists safe changes already applied by oacp doctor --fix.
Do not reimplement those fixes in the skill.
## Doctor Report
### Auto-Fixed
- <list of fixes applied>
### Warnings
- [!] <category> — <description>
### Errors
- [x] <category> — <description> — <fix_hint>
### Summary
<category>: <severity> | ...
Auto-fixed: N issue(s) | Remaining: M warning(s), K error(s)
Reporting rules:
fixed[]fix_hint for warn and error results when presentok results individually--fix, not from
a stale pre-fix snapshotPrioritize the most impactful remaining fix:
oacp init <project>/check-inboxoacp doctor.--fix already handles missing inbox directories, missing status.yaml, and
stale status timestamps. Do not add manual fix scripts for those cases.shared/INTENT.md is a repo-side reference, not an installed runtime
dependency for Codex.