# Hf Doctor

> Diagnose the ML Intern environment, Hugging Face auth, uv, tokens, job pricing catalog, and data directory. Use at setup, when any HF call returns an auth error, or when jobs and sandboxes fail unexpectedly.

- **Type:** Skill
- **Install:** `agentstack add skill-boeschj-ml-intern-plugin-hf-doctor`
- **Verified:** Pending review
- **Seller:** [boeschj](https://agentstack.voostack.com/s/boeschj)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [boeschj](https://github.com/boeschj)
- **Source:** https://github.com/boeschj/ml-intern-plugin/tree/main/skills/hf-doctor
- **Website:** https://github.com/boeschj/ml-intern-plugin#quickstart

## Install

```sh
agentstack add skill-boeschj-ml-intern-plugin-hf-doctor
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Environment check results:

```!
"${CLAUDE_PLUGIN_ROOT}/bin/hf-doctor" 2>&1 || echo '{"check": "doctor", "ok": false, "detail": "hf-doctor failed to run, is uv installed?"}'
```

Interpret the results above for the user, shortest useful form:

- Every check ok: say so in one line and move on with the pending task.
- uv missing: it is the runtime for every plugin tool. Install: `curl -LsSf https://astral.sh/uv/install.sh | sh` (macOS/Linux) or `brew install uv`.
- HF token missing or whoami failing: the fix is `hf auth login` with a Write token from https://huggingface.co/settings/tokens, or exporting `HF_TOKEN`. Jobs, sandboxes, uploads, and access-restricted datasets all need write access. GPU jobs also need a positive credit balance in HF billing, which is separate from the token.
- GITHUB_TOKEN missing: warn only; `hf-gh-examples` works anonymously at a low rate limit. Set `GITHUB_TOKEN`, or just log in with `gh auth login` and the tools reuse that token automatically.
- Hardware catalog unreachable: cost estimates fall back to the static table; job submission still works.
- trackio unknown: informational; jobs install it as a dependency at run time.
- pyright_lsp absent: informational; the bundled Python language server config stays dormant until `npm install -g pyright`, which turns on live diagnostics for training scripts.
- MCP tools missing: the bundled `hf` server may need auth, point the user at `/mcp` to authenticate it.

After fixing auth, rerun this skill to confirm, then continue whatever task was blocked.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [boeschj](https://github.com/boeschj)
- **Source:** [boeschj/ml-intern-plugin](https://github.com/boeschj/ml-intern-plugin)
- **License:** Apache-2.0
- **Homepage:** https://github.com/boeschj/ml-intern-plugin#quickstart

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-boeschj-ml-intern-plugin-hf-doctor
- Seller: https://agentstack.voostack.com/s/boeschj
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
