Agents & OrchestrationSûr100100/100
Hf Space Recovery (Hugging Face)
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.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs hf-space-recovery__huggingface-openenv__claude-skills-e0857854018bHugging Face
huggingface/openenv
Contenu à copier
---
name: hf-space-recovery
description: 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.
metadata:
origin: Hugging Face
---
# HF Space Recovery
Use this skill to recover OpenEnv Hub deployments quickly with minimal blast radius.
## Execute This Workflow
### 1) Confirm release tuple
Use a single release tuple across all commands:
- Namespace: `openenv`
- Version: `vX.Y.Z`
- Space suffix: `-vX-Y-Z`
Default to a version suffix and treat unsuffixed Spaces as legacy.
### 2) Snapshot runtime status
Collect all versioned spaces and isolate non-running ones:
```bash
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.
### 3) Classify and extract signal
- `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.
```bash
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.
### 4) Apply minimal fix and targeted redeploy
Prefer targeted redeploys over full-fleet pushes:
```bash
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:
- Validate env layout quickly (`uv run openenv validate ...`) when applicable.
- Keep release deploys on `scripts/prepare_hf_deployment.sh` to preserve suffix/pinning behavior.
### 5) Unstick runtime when code is already good
If Space remains in `APP_STARTING` with no actionable error:
```bash
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:
```bash
hf repo delete openenv/<space-id> --repo-type space
scripts/prepare_hf_deployment.sh --hf-namespace openenv --env <env_name> --skip-collection
```
### 6) Verify and close
Verify both runtime stage and health endpoint:
```bash
hf spaces info openenv/<space-id> --expand=runtime
curl -sS -m 10 https://<space-subdomain>.hf.space/health
```
Then verify fleet-wide:
```bash
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
```
### 7) Reconcile collection
When targeted deploys are done, update collection membership for the same version:
```bash
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.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Hf Space Recovery (Hugging Face)
Namespace: `openenv`
Version: `vX.Y.Z`
Space suffix: `-vX-Y-Z`
`RUNTIME_ERROR`: read traceback from `.runtime.raw.errorMessage`.
Comment utiliser Hf Space Recovery (Hugging Face)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Hf Space Recovery (Hugging Face)
Dis simplement à ton agent quelque chose comme :
Applique le skill hf-space-recovery__huggingface-openenv__claude-skills-e0857854018b à cette tâche
Utilise hf-space-recovery__huggingface-openenv__claude-skills-e0857854018b pour améliorer cette implémentation
Passe en revue ce sujet avec hf-space-recovery__huggingface-openenv__claude-skills-e0857854018b
Skills liés à Hf Space Recovery (Hugging Face)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.