跳到正文
cccskills
免费在 GitHub 公开中文介绍

doctor

通过已安装的可执行文件和运行记录,排查 Muse Code 的启动、认证及会话恢复等故障,收集相关证据,整理可能原因、判断把握程度和安全的后续处理方式。

原文查看原文说明

Diagnose Muse Code product/runtime issues from installed binary evidence. Use ONLY when the user explicitly invokes the doctor skill, asks to debug/troubleshoot Muse Code itself, asks what happened earlier in the current Muse Code session, or explicitly selects an earlier Muse Code session. Do NOT use for ordinary repository code failures or history, benchmark tasks, implementation debugging, build/test hangs, or third-party project issues.

实测评分 未实测

查看安装方法

适用场景

  • 排查 Muse Code 启动和认证错误
  • 确认会话无法恢复的原因
  • 查看指定历史会话的运行情况
  • 整理提交给客服的故障资料

中文介绍

功能

通过已安装的可执行文件和运行记录,调查 Muse Code 本身的故障。针对启动、认证、模型连接、会话恢复或插件等症状,只收集相关证据,缩小故障范围。调查结果会列出依据、可能原因、判断的把握程度,以及安全的后续处理方式。

适用场景

适合应用崩溃、认证失败,或会话显示正在使用而无法恢复等情况。也可查看当前会话或明确指定的历史会话中发生了什么,并整理提交给客服的资料。面向手头没有源代码的用户。

使用示例

  • “请调查 Muse Code 启动时崩溃的原因。”
  • “请确认这个会话为什么无法恢复。”
  • “请说明当前会话刚才执行了什么。”

注意事项

需要使用 Muse Code 的运行环境及与症状相关的本地记录。普通项目的程序错误和构建失败不在范围内。不会输出机密信息或原始会话日志;未经明确请求或批准,不会修改设置、上传日志或进行网络检查,也不会为诊断删除会话锁文件。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好禁止输出机密信息,修改设置、上传日志和网络检查均需明确请求。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足提供了使用 Muse Code 和 python3 的命令,但没有其安装步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月24日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(2)

  • SKILL.md13.7 KB
  • scripts/session-evidence.py30.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Diagnose

Diagnose Muse Code as an installed product. Use this skill only when the user explicitly invokes doctor or clearly asks to debug/troubleshoot Muse Code itself from binary/runtime evidence. Assume the user has the binary, not the source tree. Help them understand how the app works, collect the smallest safe evidence set, identify the likely failing layer, and give the next safe action.

Scope

  • Use this skill ONLY when the user explicitly invokes doctor, asks to use the doctor skill, or clearly asks to debug/troubleshoot broken Muse Code product behavior: app, CLI, TUI, desktop, crash, provider/model, settings, auth, trust, skills, plugins, MCP, session, resume, export, trace, approvals, sandbox, update, or unexpected output.
  • Use this skill when the user asks how Muse Code itself works, where Muse Code stores state, what a Muse Code log/session/trace means, or how to collect a Muse Code support bundle.
  • Use this skill when the user asks what happened earlier in the current Muse Code session or explicitly selects an earlier Muse Code session for evidence. This does not include ordinary repository history or an unspecified third-party agent session.
  • Do NOT use this skill for ordinary repository engineering: code implementation, third-party project bugs, benchmark/eval tasks, build or test failures, command hangs, toolchain issues, CI failures, or local debugging inside a non-Muse Code codebase. Handle those with the normal engineering workflow unless the evidence points to Muse Code itself.
  • Treat the user as a product user first, not as a repository engineer.
  • For pure settings questions or explicitly requested settings edits with no product failure to investigate, use the manage-settings skill instead; Diagnose reads settings only as evidence for a failure it is investigating.
  • Do not create issues, branches, commits, PRs, install/enable/disable skills or plugins, change settings/auth/trust, upload logs, run live-provider/network checks, or edit code unless the user explicitly asks.
  • Do not print secrets, raw prompts, raw model payloads, auth tokens, API keys, cookies, bearer headers, or full session logs. Prefer redacted exports, key/value presence checks, and concise summaries.
  • If a surface has no standalone app log, say so and use session logs, crash reports, trace inspection, or export evidence instead of inventing a path.

Mental Model

Explain the relevant product path before asking for logs:

  • The binary reads settings/auth/trust from the user's config directory and writes sessions, crashes, model catalog cache, and memory under the data directory.
  • A Muse Code session is the main handle for resume, trace inspection, export, and support. Prefer a session id or session log path over screenshots of terminal output.
  • Provider/auth failures are often config, environment, model catalog, network, or credential problems. Separate those before blaming the model.
  • Skills/plugins/MCP are loaded product capabilities. Diagnose discovery, activation, trust, validation, and runtime errors separately.
  • A trace/export explains what the binary saw and did. It is evidence, not a transcript to paste raw.

Triage Questions

  1. Name the failing surface and exact symptom.
  2. Record the command, cwd, session id/path if provided, whether the user wants to inspect or continue that session, approximate time, provider/model if relevant, and whether the issue reproduces.
  3. Ask for one missing handle only when it blocks a safe local check. Prefer: exact command, session id/path, time window, and whether they can reproduce.
  4. If the user only wants an explanation, explain first and avoid running checks.

Product Evidence Map

Collect the smallest read-only set that explains the issue. Adapt the map to the symptom; do not run every row by default.

The config/data roots below are Muse Code's entire local state surface. A config, log, or session file outside them is not Muse Code state — never present one as the product's active configuration, logs, or session evidence. Variables such as CODEX_HOME matter only for explicitly requested import/compat evidence and stay attributed to the product that owns them.

  1. Build/provenance: muse --version; also note command -v muse when multiple copies may exist.
  2. Config/data roots: $XDG_CONFIG_HOME/muse or $HOME/.config/muse; $XDG_DATA_HOME/muse or $HOME/.local/share/muse.
  3. Local files: settings.json, auth.json, and trust.json; read settings when relevant, but report auth/trust presence and provider names only.
  4. Data dirs: sessions, memory, model-catalog, and crashes under the data dir. For crashes, summarize report metadata and file path, not session content.
  5. Session evidence: prefer muse export --redacted --out <file> for the latest workspace session, or muse export --session <id-or-session.jsonl> --redacted --out <file> when the user provides a handle.
  6. Continuation handles: if the user provides a Muse Code session id and wants to continue that session, point them to muse resume <session-id> or muse resume --last for interactive continuation. Use muse exec --session-id <session-id> "<follow-up>" only on explicit request for headless continuation. Add --allow-workspace-switch to the muse exec --session-id command only after confirming the session belongs to another workspace; interactive muse resume does not take this flag. If an exit, fork, or handoff message printed muse resume <session-id>, treat that command as the canonical handle.
  7. Trace evidence: use muse trace inspect --session-log <session.jsonl> --render-mode compact; add --run-id <uuid> or --all-runs for multi-run logs; use --format json only when structured analysis is needed.
  8. User support bundle: use /feedback when available; otherwise prefer a redacted export, trace inspection, crash metadata, and concise reproduction steps.
  9. Skills/plugins/MCP: use muse skills list --enabled-only --json and safe muse plugins ... --help or validation commands when the symptom points there.
  10. Environment: check relevant non-secret variables by presence/value only, such as MUSE_MODEL, base-url variables with credentials redacted, XDG dirs, CODEX_HOME for import/compat issues, and telemetry variables by presence only.

Use Current Session Evidence First

For a question about what happened earlier in the current Muse Code session, use the sibling scripts/session-evidence.py helper before export or full trace inspection. After read_skill gives the physical Diagnose package path, run:

python3 <doctor-skill-dir>/scripts/session-evidence.py --session-log <current-session.jsonl> --workspace "$PWD"

The runtime session-identity context already contains the exact current log path. Do not ask the user for a path already present there, do not guess a latest session, and do not search the session store first. A host may instead provide MUSE_CURRENT_SESSION_LOG, in which case the helper can run without a selector.

For an explicitly selected earlier Muse Code session, use the exact path or id:

python3 <doctor-skill-dir>/scripts/session-evidence.py --session-log <explicit-session.jsonl> --workspace "$PWD"
python3 <doctor-skill-dir>/scripts/session-evidence.py --session-id <explicit-session-id> --workspace "$PWD"

Both explicit earlier-session forms are current-workspace scoped and fail closed on unknown workspace metadata, a mismatch, or ambiguity. Use --kind, --path, --tool, --run-id, or sequence bounds to narrow follow-up evidence. Projected events retain their source stream, and the default bound reserves evidence for both the main session and child sessions so a busy child cannot erase the parent timeline. Always compare durable actions with assistant claims, especially across compaction and child activity. Use a redacted export or compact trace only when this bounded projection is insufficient. Never paste the raw session log into model context.

Diagnose Live Session Ownership Safely

Use this path when resume says a session is already open or the original terminal no longer accepts input:

  1. Select the exact session first and run scripts/session-evidence.py as above. Bound the output and compare its latest durable activity timestamps; do not start with a store-wide process or file search.
  2. Treat .session.lock as an inode-backed kernel lease, not a marker file: file existence is not lock ownership, and flock protects an open inode. Unlinking a contended pathname can let another process create and lock a new inode while the original writer still owns the old inode.
  3. Probe the exact lock read-only with a non-blocking exclusive flock. Open it without truncation, report only acquirable, contended, missing, or the read error, then close it immediately. Never resume the session as a probe.
  4. Read the lock body's PID only as a hint. A tool sandbox or PID namespace may not see the host process; ps/kill -0 absence inside it cannot prove that the host owner died. Request a host-shell check when that distinction matters.
  5. Check the bounded session evidence for prior file mutation involving .session.lock, especially rm, unlink, replacement, truncation, or recreation. If the path is missing while old activity advances, stop resume attempts and preserve evidence.

Never remove, replace, truncate, or recreate .session.lock as diagnosis or repair. Never signal the owner from Diagnose. Do not request takeover or use an owner-control endpoint. Ask the user to exit the owning process normally, then explicitly retry ordinary resume.

Classify the result before recommending an action:

EvidenceClassificationSafe next action
Lease is acquirableNo current kernel owner; a leftover pathname is harmlessRetry normal resume; do not clean the file for tidiness
contended lease with advancing session activityLive owner and active runtime; terminal attachment may be the failed layerPreserve the owner; inspect terminal/PTY evidence or exit it normally
Contended lease with bounded activity idleLive kernel owner, runtime/terminal health unknownAsk the user to exit the owning process normally, then explicitly retry ordinary resume
Legacy owner-control artifacts are presentDiagnostic leftovers from an old binary; the kernel lease remains authoritativeTreat them as diagnostic only; exit the owning process normally before ordinary resume retry
Lock path was unlinked or replaced while old activity continuesUnsafe prior mutation with possible dual writersStop further resume attempts, preserve both inode/session timelines, and escalate; do not recreate the lock

A contended lease proves a live kernel owner, not that its TUI, terminal, provider, or runtime is healthy. Pin the failing layer from activity plus host-visible evidence before proposing a product fix.

Narrowing Loop

Work from evidence:

  1. State the most likely layer in one or two concrete sentences.
  2. Say why the next check will confirm or reject that hypothesis, then run that one safe local check.
  3. Update the hypothesis from the result and continue only while the next check is still relevant and safe.
  4. If a live provider, live network, destructive command, or upload is required, state why and get explicit user approval first.
  5. If customization or local state is suspected, compare against an isolated temporary XDG config/data profile only after explaining that it will not read or mutate the user's real settings.

Common Diagnosis Paths

  • Startup/auth: binary path -> version -> config load -> auth provider present -> model/catalog selection -> first network boundary.
  • Provider/model: selected provider/model -> base URL with credentials redacted -> auth presence -> model catalog cache -> trace request/error summary.
  • Session/resume: session id/path -> workspace match -> session log exists -> resume/export/trace command -> whether the user wants inspection or continuation.
  • Skills/plugins/MCP: list/discovery -> activation/trust -> validation output -> runtime trace or startup diagnostic.
  • Desktop/TUI: packaged app/binary version -> session id -> UI-visible symptom -> crash/report metadata -> trace/export evidence. Say when source-only tests cannot prove a packaged-app issue.

Fix Boundary

  • Settings-only fix: propose the exact change and apply it only after explicit user request; preserve unknown settings fields and verify with a read-back or focused command.
  • Workspace code fix: switch to the RED-before-GREEN engineering loop only when the user explicitly asks to fix code in the current repo. Reproduce first, edit surgically, rerun the same check, and report incomplete if it still fails.
  • Product bug report: if the evidence points to Muse Code itself and no local fix is safe, give a concise support bundle with symptom, version, config/data paths, session/crash paths, redacted export/trace evidence, likely cause, and next action.

Completion Report

Include:

  • Symptom and affected surface.
  • Product mental model relevant to this failure.
  • Evidence collected, paths inspected, commands and outcomes.
  • Redactions applied.
  • Most likely cause and confidence.
  • Fix made, proposed, or not made.
  • Remaining uncertainty and the next safest check.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

3d-object

免费有简介

使用three.js创建立体模型,在交互式查看器中从各个角度检查形状和材质,并以OBJ + MTL或GLB格式保存,供其他三维制作软件使用。

  • 创建立体模型并从各个角度检查
  • 制作可在Blender中继续编辑的模型
  • 检查模型轮廓和材质效果
asgeirtj/system_prompts_leaks7万2026年10月23日 更新

action-items

免费有简介

在个人任务清单中记录待办事项、承诺、期限、下一步、待回复对象和阻碍原因,更新进度与依赖关系,合并重复项并归档已结束的任务。

  • 记录有期限的任务与承诺
  • 整理待回复事项及阻碍原因
  • 前置任务完成后更新依赖关系
asgeirtj/system_prompts_leaks7万2026年10月23日 更新

agents

免费

Coordinate a task from a verifiable goal through completion. Handle work directly or split independent tasks across separate agent sessions, track progress, verify results, and arrange pull request merging when included in the goal.

中文简介正在准备中。当前显示英语简介。

  • Split independent tasks across agents
  • Check progress across ongoing tasks
  • Resume a previously started project
asgeirtj/system_prompts_leaks7万2026年10月23日 更新

animated-video

免费有简介

将动画制作成可播放、暂停和定位时间的HTML页面,通过时间轴调整场景时长与速度,并为横屏或竖屏视频导出做好准备。

  • 制作产品操作演示动画
  • 用文字和图形解释内容
  • 制作竖屏动画
asgeirtj/system_prompts_leaks7万2026年10月23日 更新

apple_healthkit

免费有简介

按指定时段查看已同步到Apple Health的步数、心率、睡眠和锻炼记录,了解日常变化,并检查同步状态及记录缺失情况。

  • 查看步数与心率变化
  • 检查睡眠阶段、时长及夜间醒来情况
  • 回顾运动时长、距离与消耗热量
asgeirtj/system_prompts_leaks7万2026年10月23日 更新

artifact_document

免费有简介

创建和编辑Word文档及模板,提取或整理内容、替换图片,并处理修订和批注。使用规范的标题与列表结构,交付前检查所有页面的显示效果。

  • 创建结构规范的Word文档
  • 整理现有文档的内容
  • 替换文档中的图片和文字
asgeirtj/system_prompts_leaks7万2026年10月23日 更新

查看 asgeirtj 的全部技能

报告此技能的问题