Generate Openenv Env
adithya-s-k/FineEnvs
Builds an OpenEnv (Hugging Face) variant of an RL environment.
Diagnose broken Hugging Face Gradio Spaces from their actual logs and pinned source, then prepare a minimal verified source fix as candidate files.
$ npx skills add huggingface/hf-mcp-server --skill space-doctor -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install huggingface/hf-mcp-server space-doctor --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/huggingface/hf-mcp-server.git skills-src && mkdir -p .claude/skills && cp -r skills-src/monitor/distribution/skills/space-doctor .claude/skills/space-doctor && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "space-doctor" agent skill from https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctor into .claude/skills/space-doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "space-doctor", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add huggingface/hf-mcp-server --skill space-doctor -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install huggingface/hf-mcp-server space-doctor --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/hf-mcp-server.git skills-src && mkdir -p .agents/skills && cp -r skills-src/monitor/distribution/skills/space-doctor .agents/skills/space-doctor && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "space-doctor" agent skill from https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctor into .agents/skills/space-doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "space-doctor", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add huggingface/hf-mcp-server --skill space-doctor -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install huggingface/hf-mcp-server space-doctor --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/hf-mcp-server.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/monitor/distribution/skills/space-doctor .cursor/skills/space-doctor && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "space-doctor" agent skill from https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctor into .cursor/skills/space-doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "space-doctor", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/huggingface/hf-mcp-server.git --path monitor/distribution/skills/space-doctor--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add huggingface/hf-mcp-server --skill space-doctor -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install huggingface/hf-mcp-server space-doctor --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/hf-mcp-server.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/monitor/distribution/skills/space-doctor .gemini/skills/space-doctor && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "space-doctor" agent skill from https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctor into .gemini/skills/space-doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "space-doctor", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install huggingface/hf-mcp-server space-doctorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add huggingface/hf-mcp-server --skill space-doctor -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/huggingface/hf-mcp-server.git skills-src && mkdir -p .github/skills && cp -r skills-src/monitor/distribution/skills/space-doctor .github/skills/space-doctor && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "space-doctor" agent skill from https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctor into .github/skills/space-doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "space-doctor", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add huggingface/hf-mcp-server --skill space-doctor -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install huggingface/hf-mcp-server space-doctor --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/huggingface/hf-mcp-server.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/monitor/distribution/skills/space-doctor .opencode/skills/space-doctor && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "space-doctor" agent skill from https://github.com/huggingface/hf-mcp-server/tree/main/monitor/distribution/skills/space-doctor into .opencode/skills/space-doctor/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "space-doctor", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
space-doctorDiagnose broken Hugging Face Gradio Spaces from their actual logs and pinned source, then prepare a minimal verified source fix as candidate files.
Space Doctor is an agent skill from huggingface/hf-mcp-server, published by the product's own GitHub organization. Diagnose broken Hugging Face Gradio Spaces from their actual logs and pinned source, then prepare a minimal verified source fix as candidate files. Use for scheduled Space monitoring, BUILDERROR or RUNTIMEERROR triage, Gradio and ZeroGPU failures, source analysis, and patch preparation. Read-only against the Hub - it never uploads, publishes, or restarts anything.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including assets (for example `assets/doctor-result.schema.json`). Compatibility notes: Requires Python 3.10+ and fast-agent shell access. Remote reads require either a connected Hugging Face MCP server or the hf CLI.
It sits in AI & LLM Engineering, covering Model hubs and datasets. It works with Hugging Face and Gradio. The repository describes itself as: Hugging Face MCP Server. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit dce2d5f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
hfpython3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Requires Python 3.10+ and fast-agent shell access. Remote reads require either a connected Hugging Face MCP server or the hf CLI.
From compatibility in the SKILL.md frontmatter.
Space Doctor loads about 1.8k tokens when it runs. Until then it costs about 95 tokens; SKILL.md has 823 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from huggingface/hf-mcp-server at commit dce2d5f, republished under its MIT licence (© huggingface). 823 words, ~1,800 tokens.
.claude/skills/space-doctor/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Diagnose a broken Hugging Face Space and, when a narrow reversible source fix is appropriate, write the complete fixed files into the candidate directory you were given. You have no Hub write access: never attempt an upload, PR, restart, or any other mutation. The parent process opens a PR from your candidate files and performs any restart itself.
Use fast-agent for reasoning and Hub reads. Diagnose from the observed failure, actual Hub logs, and the pinned source; static patterns and generic automated rewrites are not a repair decision.
A scheduled request provides the Space ID, exact failing revision, run ID,
observed status/stage/detail, previous restart outcome for that revision (when
one exists), and a workspace containing a candidate/ directory. Treat the
restart outcome as evidence, not proof that the current failure has the same
cause. Emit exactly one final structured result matching the configured JSON
schema, only after all work is complete:
status: "fix-proposed" with changed_files, fix_summary, and pr_title
when you have written complete fixed files (paths relative to the Space
repository root) into candidate/.status: "needs-human" with needs_human_reason otherwise.Diagnose exactly the requested revision. If the Space has moved to a different
revision, report needs-human with reason revision-changed. Never place
credentials, tokens, or local filesystem paths in any output field.
Prefer connected Hugging Face MCP tools. With the hf CLI:
hf spaces info <namespace/name> --expand runtime --format json
hf spaces logs <namespace/name> --tail 300
hf spaces logs <namespace/name> --build --tail 300 # for BUILD_ERRORRecord runtime stage, hardware, revision, runtime.raw.errorMessage, and the
first actionable error. Read both build and runtime logs when relevant and
compare them with the observed status/stage/detail supplied in the request.
Always use the full 40-character repository SHA. Do not treat RUNNING alone
as healthy.
mkdir -p <workspace>/source
hf download <namespace/name> --repo-type space \
--revision <full-sha> --local-dir <workspace>/source \
--exclude '*.safetensors' --exclude '*.safetensors.index.json' \
--exclude '*.bin' --exclude '*.pt' --exclude '*.pth' --exclude '*.ckpt' \
--exclude '*.onnx' --exclude '*.gguf' --exclude '*.h5' --exclude '*.tflite'Never download a moving default branch when diagnosing a specific failure. Acquire source, configuration, and dependency manifests needed to reproduce the failure, but do not download model weights or launch a large model locally. If a required source file is absent, fetch that named file at the same full SHA.
Read the source and log context yourself. Compile Python without writing
__pycache__ into the tree:
python3 -I -c '
import pathlib, sys
root = pathlib.Path(sys.argv[1])
for path in sorted(root.rglob("*.py")):
compile(path.read_text(encoding="utf-8"), str(path), "exec")
' <workspace>/sourceClassify findings by full SHA, stage, and timestamp. If a new build stops earlier than a historical runtime failure, report the old failure as superseded rather than the active root cause.
Report needs-human when:
Never repair access by adding or rotating a secret. Safe candidates are narrow, reversible fixes directly supported by a deterministic failure.
Make a source-aware edit only when the logs and source establish a narrow,
reversible root cause. First copy the complete acquired source tree to
<workspace>/verify/ and edit that complete tree. Do not edit a partial
candidate directory. Once verified, create <workspace>/candidate/ containing
only each changed file's complete contents at its repository-relative path; list
exactly those paths in changed_files.
ZeroGPU rules:
.to("cuda") placement are normally
correct after import spaces; actual CUDA computation belongs inside
@spaces.GPU;gradio, spaces, or huggingface_hub to
requirements.txt solely because they are imported.Before reporting fix-proposed:
<workspace>/verify/ tree with in-memory compile(...), never py_compile;source/ and verify/, then ensure candidate/ contains only the
changed complete files, with no secret, cache, run artifact, or unrelated
file.For dependency repairs, reconstruct the exact platform install inputs from the
failing build (dependency file, injected Gradio/Spaces/torch requirements,
Python version) and verify the resolution; a reduced synthetic resolver is
exploratory evidence only. For gated models, verify authenticated read access
without downloading weights when authorized credentials are available. An
unauthenticated model probe returning 401/403 does not establish an access
failure in the actual Space runtime: the Space may have its own authorized
credentials. Do not infer a human hold from that probe alone (including Krea).
A verified independent code repair may be fix-proposed for a PR even when
model access remains unverified. Include a warning finding describing the probe
context and verification limitation; do not claim full runtime success.
For access issues, report needs-human only when actual Space runtime evidence
establishes access failure and no independent fix is available. Never add,
rotate, or expose secrets to repair access. Do not launch a large model locally.
Finally, re-read the remote revision. If it no longer matches the requested
revision, report needs-human with reason revision-changed.
© huggingface, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (assets) in monitor/distribution/skills/space-doctor of huggingface/hf-mcp-server.
Open the folder on GitHubat commit dce2d5f
Space Doctor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Space Doctor this skillhuggingface/hf-mcp-server | 302 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Generate Openenv Envadithya-s-k/FineEnvs | 461 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Hugging Face ZeroGPUhuggingface/skills | 11k | 2 repos | ~4.6k | Automated safety check: Pass | Apache-2.0 | |
| LoRA Space Builderhuggingface/skills | 11k | 2 repos | ~8.4k | Automated safety check: Pass | Apache-2.0 | |
| Huggingface Spaceshuggingface/skills | 11k | 1 repos | ~4.4k | Automated safety check: Pass | Apache-2.0 | |
| Hf MCPhuggingface/skills | 11k | 2 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 |
adithya-s-k/FineEnvs
Builds an OpenEnv (Hugging Face) variant of an RL environment.
huggingface/skills
Covers the rules for writing Gradio Spaces on ZeroGPU hardware: the @spaces.GPU decorator, duration and quota tuning, process isolation and CUDA build limits.
huggingface/skills
Builds and publishes a Gradio demo on Hugging Face Spaces for a LoRA, with the pipeline, UI and settings chosen to match that LoRA's task and model card.
huggingface/skills
Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers, community…
huggingface/skills
Use Hugging Face Hub via MCP server tools. An agent skill from huggingface/skills.
waybarrios/opencode-power-pack
Build, deploy, debug, or maintain a Hugging Face Space using Gradio, Docker, or Static SDKs.
Works with
Categories
Diagnose broken Hugging Face Gradio Spaces from their actual logs and pinned source, then prepare a minimal verified source fix as candidate files. Space Doctor is an agent skill from huggingface/hf-mcp-server, published by the product's own GitHub organization. Diagnose broken Hugging Face Gradio Spaces from their actual logs and pinned source, then prepare a minimal verified source fix as candidate files.
Space Doctor fits situations like: scheduled Space monitoring; RUNTIMEERROR triage; gradio and ZeroGPU failures; source analysis.
Run `npx skills add huggingface/hf-mcp-server --skill space-doctor -a claude-code`. Or copy the skill folder (monitor/distribution/skills/space-doctor in huggingface/hf-mcp-server) into .claude/skills/space-doctor in your project. Claude Code loads it when a task matches its description.
Run `npx skills add huggingface/hf-mcp-server --skill space-doctor -a codex`. Or copy the skill folder (monitor/distribution/skills/space-doctor in huggingface/hf-mcp-server) into .agents/skills/space-doctor in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huggingface/hf-mcp-server --skill space-doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/space-doctor, .gemini/skills/space-doctor, .github/skills/space-doctor and .opencode/skills/space-doctor in your project.
Going by SKILL.md and its folder, Space Doctor needs the command-line tools its instructions call (hf and python3). Our summary lists: Python 3. Compatibility (from SKILL.md): Requires Python 3.10+ and fast-agent shell access. Remote reads require either a connected Hugging Face MCP server or the hf CLI..
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Space Doctor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Space Doctor: Generate Openenv Env (adithya-s-k/FineEnvs, 461 stars), Hugging Face ZeroGPU (huggingface/skills, 11k stars), LoRA Space Builder (huggingface/skills, 11k stars) and Huggingface Spaces (huggingface/skills, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
huggingface (a GitHub organization, an official publisher) maintains it in huggingface/hf-mcp-server, which has 302 GitHub stars. The repository was last updated on October 7, 2026.
Source: huggingface/hf-mcp-server on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.