본문으로 건너뛰기
cccskills
무료GitHub에 공개

mdoctor-agent

Install, verify, and operate mdoctor on macOS and Debian/Arch-based Linux. Use when users ask to set up mdoctor, install dependencies, test branch builds on the current machine, run first health checks, troubleshoot install/runtime issues, or perform safe cleanup/fix workflows with mdoctor commands.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.2 KB
  • scripts/install_mdoctor_with_deps.sh5.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

mdoctor Agent

Run reliable mdoctor setup + usage workflows, with dependency handling built in.

Quick start

From the mdoctor repo root, run:

bash skills/mdoctor-agent/scripts/install_mdoctor_with_deps.sh

Useful modes:

# Preview only
bash skills/mdoctor-agent/scripts/install_mdoctor_with_deps.sh --dry-run

# Dev mode: link current checkout (best for branch testing)
bash skills/mdoctor-agent/scripts/install_mdoctor_with_deps.sh --method dev --user-bin

# Force local installer behavior (~/.mdoctor clone/update)
bash skills/mdoctor-agent/scripts/install_mdoctor_with_deps.sh --method local

Workflow

1) Preflight

  • Detect OS (Darwin or Debian/Arch-family Linux only).
  • Validate method (auto|dev|local|remote).
  • Check required dependencies:
    • git for local/remote methods
    • curl for remote method
  • If dependencies are missing:
    • Debian-family Linux: install via sudo apt update && sudo apt install -y ...
    • Arch-family Linux (incl. Omarchy): install via sudo pacman -S --needed ...
    • macOS: instruct user to run xcode-select --install (or Homebrew install)

2) Install mdoctor

Choose method by intent:

  • dev: symlink current repo ./mdoctor into bin dir (branch-accurate testing)
  • local: run local install.sh (installs under ~/.mdoctor)
  • remote: one-line installer from GitHub
  • auto (default): prefer dev when current repo is available, fallback to local, then remote

Optional flags:

  • --user-bin: use ~/.local/bin (avoids sudo in most cases)
  • --repo-root <path>: override repository root for dev/local modes

3) Verify installation

Run smoke checks:

mdoctor version
mdoctor help
mdoctor info
mdoctor check -m system

The installer script forces a safe TERM fallback for non-interactive sessions to reduce tput noise during checks.

4) First safe usage

Prefer non-destructive commands first:

mdoctor check
mdoctor clean
mdoctor list

Only run destructive cleanup with explicit intent:

mdoctor clean --force

5) Troubleshooting

  • If mdoctor is not found: verify symlink target and PATH.
  • If /usr/local/bin is not writable: rerun with --user-bin.
  • If Linux distro unsupported: stop and explain the Debian/Arch-family limitation.
  • If sudo is unavailable in remote sessions: provide exact commands for user to run locally (apt on Debian-family, pacman -S on Arch-family).

Command reference

Common operations:

mdoctor check
mdoctor check --json
mdoctor check -m security
mdoctor clean
mdoctor clean --interactive
mdoctor fix dns
mdoctor fix disk
mdoctor update --check
mdoctor update

Guardrails

  • Ask before state-changing operations (clean --force, fix *, package installs).
  • Prefer read-only diagnosis first, then targeted fixes.
  • Do not claim support for Linux outside Debian/Arch families.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고