macOS system doctor — system info, disk cleanup, and maintenance. Use when user mentions "系统信息", "磁盘清理", "清理磁盘", "系统维护", "disk full", "free up space", "clean disk", "system info", "system status", "mac doctor", "体检", "checkup", "DNS flush", "Spotlight rebuild".
macOS system doctor: diagnose, clean, and maintain your Mac.
Detect the language of $ARGUMENTS. If $ARGUMENTS is empty, detect from the user's message that triggered this skill invocation.
Apply this language choice throughout the entire session.
Global rules for all modules:
du on a nearly-full disk), inform the user and consider reducing scan scope.Parse $ARGUMENTS and route to the matching module:
| Keywords |
|---|
| Module |
|---|
| disk, 磁盘, clean, storage, 存储, 空间, space, cache, 缓存 | disk-clean |
| info, 信息, status, 状态, overview, hardware, 硬件, specs, 配置 | system-info |
| maintain, 维护, dns, spotlight, repair, fix, 修复, diagnose, 诊断, rebuild, 重建 | maintenance |
| all, 全面, checkup, 体检, health, 健康, scan, 扫描, 检查, check, OR empty $ARGUMENTS | all modules (summary mode) |
Match is case-insensitive and partial (e.g., "磁盘满了" contains "磁盘" → disk-clean).
Precedence: if keywords match multiple modules, prefer the longest keyword match. If still tied, prefer this order: maintenance > disk-clean > system-info (most specific action wins).
Fallback: if $ARGUMENTS matches no keyword, list the three available modules with a brief description and ask the user to clarify.
Read the matched module file and follow its full instructions:
cat ${CLAUDE_SKILL_DIR}/modules/<module-name>.md
Run all three modules in summary mode (each module defines what summary mode means):
${CLAUDE_SKILL_DIR}/modules/system-info.md (summary mode)${CLAUDE_SKILL_DIR}/modules/disk-clean.md (summary mode)${CLAUDE_SKILL_DIR}/modules/maintenance.md (summary mode)Present a unified report with three sections. End with an overall health assessment.