Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.
中文简介正在准备中。当前显示原文说明。
Diagnose and recover failing or stuck Hugging Face Space deployments for OpenEnv environments. Use when deploying envs from `envs/` to the Hub (`openenv` namespace with version suffixes), when Spaces are in `BUILDING`/`APP_STARTING`/`RUNTIME_ERROR`, or when release collections need to be reconciled after targeted redeploys.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
Use this skill to recover OpenEnv Hub deployments quickly with minimal blast radius.
Use a single release tuple across all commands:
openenvvX.Y.Z-vX-Y-ZDefault to a version suffix and treat unsuffixed Spaces as legacy.
Collect all versioned spaces and isolate non-running ones:
hf spaces ls --author openenv --limit 500 --expand=runtime \
| jq -r '.[] | select(.id|test("-v[0-9]+-[0-9]+-[0-9]+$")) \
| [.id, .runtime.stage, (.runtime.raw.errorMessage // "")] | @tsv' \
| sort
Treat RUNNING and SLEEPING as healthy. Triage everything else.
RUNTIME_ERROR: read traceback from .runtime.raw.errorMessage.BUILD_ERROR: read build error text from runtime info, then patch Dockerfile/deps.APP_STARTING longer than 10 minutes: inspect event stream and metrics before changing code.hf spaces info openenv/<space-id> --expand=runtime
curl -sS -m 10 https://huggingface.co/api/spaces/openenv/<space-id>/events | sed -n '1,140p'
curl -sS -m 10 -i https://huggingface.co/api/spaces/openenv/<space-id>/metrics | sed -n '1,120p'
Read references/troubleshooting.md for symptom-to-fix mappings.
Prefer targeted redeploys over full-fleet pushes:
scripts/prepare_hf_deployment.sh \
--hf-namespace openenv \
--env <env_name> \
--skip-collection
Use openenv CLI as a supplement, not a replacement, for release triage:
uv run openenv validate ...) when applicable.scripts/prepare_hf_deployment.sh to preserve suffix/pinning behavior.If Space remains in APP_STARTING with no actionable error:
uv run --with huggingface_hub python - <<'PY'
from huggingface_hub import HfApi
api = HfApi()
api.restart_space("openenv/<space-id>", factory_reboot=True)
PY
If still stuck, force recreation as last resort:
hf repo delete openenv/<space-id> --repo-type space
scripts/prepare_hf_deployment.sh --hf-namespace openenv --env <env_name> --skip-collection
Verify both runtime stage and health endpoint:
hf spaces info openenv/<space-id> --expand=runtime
curl -sS -m 10 https://<space-subdomain>.hf.space/health
Then verify fleet-wide:
hf spaces ls --author openenv --limit 500 --expand=runtime \
| jq -r '.[] | select(.id|test("-v[0-9]+-[0-9]+-[0-9]+$")) \
| select(.runtime.stage!="RUNNING" and .runtime.stage!="SLEEPING") \
| [.id, .runtime.stage] | @tsv' | sort
When targeted deploys are done, update collection membership for the same version:
python3 scripts/manage_hf_collection.py \
--version vX.Y.Z \
--collection-namespace openenv \
--space-id openenv/<space-id>
Add one --space-id per redeployed space.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Review code changes for bugs and alignment with OpenEnv principles and RFCs. Use when reviewing PRs, checking code before commit, or when asked to review changes. Implements two-tier review model.
中文简介正在准备中。当前显示原文说明。
Deploy an OpenEnv environment to Hugging Face Spaces. Use when asked to deploy, push to Hugging Face, or update a space.
中文简介正在准备中。当前显示原文说明。
Generate OpenEnv environments from a concrete use case (for example, "generate an env for the library textarena"). Use when asked to design or implement a new environment under envs/ by researching a target library/API, selecting matching OpenEnv examples, asking key implementation questions, and building models/client/server/openenv.yaml. Do not use for model training or evaluation tasks.
中文简介正在准备中。当前显示原文说明。
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing repositories, models, datasets, and Spaces on the Hugging Face Hub. Replaces now deprecated `huggingface-cli` command.
中文简介正在准备中。当前显示原文说明。
Make tests pass. Invoke after /write-tests produces failing tests.
中文简介正在准备中。当前显示原文说明。
OpenEnv CLI (`openenv`) for scaffolding, validating, building, and pushing OpenEnv environments.
中文简介正在准备中。当前显示原文说明。