# Send Skill Doctor to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "skill-doctor",
    "name": "Skill Doctor",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/RuneweaverStudios/skill-doctor",
    "canonicalUrl": "https://clawhub.ai/RuneweaverStudios/skill-doctor",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/skill-doctor",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=skill-doctor",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "_meta.json",
      "scripts/skill_doctor.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/skill-doctor"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/skill-doctor",
    "downloadUrl": "https://openagent3.xyz/downloads/skill-doctor",
    "agentUrl": "https://openagent3.xyz/skills/skill-doctor/agent",
    "manifestUrl": "https://openagent3.xyz/skills/skill-doctor/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/skill-doctor/agent.md"
  }
}
```
## Documentation

### Skill Doctor | OpenClaw Skill

Scans workspace/skills (or a given folder) to detect missing and unused Python dependencies, can fix requirements.txt (add missing, optionally remove unused), and can test a skill using the skill-tester in sandbox (default) or no-sandbox mode.

### Description

Scan: For each skill, finds all Python files under the skill and its scripts/ folder, extracts top-level imports, and compares them to requirements.txt. Reports:

Missing: Imported but not listed in requirements (suggests adding).
Unused: Listed in requirements but not imported (suggests removing).


Fix: Adds missing packages to requirements.txt and/or removes unused ones (--fix-unused).
Test: Runs the skill-tester for the given skill. Use --no-sandbox to run tests with full environment (e.g. network); default runs in sandbox.

Stdlib modules and local modules (same skill’s .py files) are excluded from “missing”.

### Installation

clawhub install skill-doctor

Or clone into your skills directory:

git clone https://github.com/Org/skill-doctor.git workspace/skills/skill-doctor

### Usage

# Scan all skills (or default: scan)
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py

# Scan one skill
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill SUBAGENT-DASHBOARD --scan

# Fix: add missing deps to requirements.txt
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill MY-SKILL --fix

# Fix: add missing and remove unused
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill MY-SKILL --fix --fix-unused

# Dry-run fix (report only)
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill MY-SKILL --fix --fix-unused --dry-run

# Test skill (sandbox)
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill gateway-guard --test

# Test skill (no sandbox: full env)
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill gateway-guard --test --no-sandbox

# JSON output
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --scan --json
python3 workspace/skills/skill-doctor/scripts/skill_doctor.py --skill X --test --json

### Commands

Command / flagsDescription--scanScan skills and report missing/unused dependencies (default if no --fix/--test)--skill SLUGLimit to one skill--fixAdd missing packages to requirements.txt--fix-unusedWith --fix, also remove unused packages--dry-runWith --fix: only report what would be done--testRun skill-tester for the skill--no-sandboxRun tests with full env (no sandbox)--timeout NTest timeout in seconds (default 60)--jsonOutput JSON--skills-dir PATHOverride skills root (default: workspace/skills)

### What this skill does

Discover skills — Finds dirs with SKILL.md or _meta.json under the skills folder.
Parse Python — Uses ast to collect top-level import / import from names from all .py files in the skill and scripts/.
Exclude stdlib and local — Ignores standard library modules and local modules (same skill’s file names).
Map to pip — Maps import names to pip package names (e.g. bs4 → beautifulsoup4, yaml → PyYAML).
Compare — Compares required (from requirements.txt) vs needed (from imports); reports missing and unused.
Fix — Writes requirements.txt: append missing packages; optionally remove unused lines.
Test — Invokes skill-tester/scripts/skill_tester.py --skill SLUG --json. Sandbox vs no-sandbox is controlled by --no-sandbox and the OPENCLAW_DOCTOR_NO_SANDBOX env var for the test run.

### Requirements

Python 3.7+
Optional: skill-tester for --test (must be present under workspace/skills/skill-tester).

### Security & privacy

Reads: Skill directories and their .py and requirements.txt files.
Writes: Only requirements.txt when using --fix (and --fix-unused).
Test: Runs skill-tester in a subprocess; --no-sandbox means tests run with the current environment (e.g. network allowed).
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: RuneweaverStudios
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/skill-doctor)
- [Send to Agent page](https://openagent3.xyz/skills/skill-doctor/agent)
- [JSON manifest](https://openagent3.xyz/skills/skill-doctor/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/skill-doctor/agent.md)
- [Download page](https://openagent3.xyz/downloads/skill-doctor)