Install
openclaw skills install @hoshiyomix/task-files-explorerMANDATORY when the user wants to replace, bypass, or stop relying on the platform "All files in task" preview popup; when they want a custom HTML page (index.html) served on the platform preview URL; when they want a persistent file dashboard/explorer for download/ and archive/ served by a custom dev.sh; or when they ask how to make scripts survive container restarts via the /start.sh boot hook. Deploys a zero-dependency Python explorer to 127.0.0.1:3000 (the upstream of the preview ingress) with search, type filters, sorting, inline preview (md, images, pdf, json, text) and per-task grouping parsed automatically from worklog.md. Auto-starts on every container boot, self-heals every 30 seconds via watcher. NOT for Next.js/web-app projects - the web dev server always owns port 3000.
openclaw skills install @hoshiyomix/task-files-explorerGunakan skill ini bila user (ID/EN):
Jangan pakai bila proyeknya aplikasi web interaktif (Next.js dsb.) — server web proyek selalu lebih berhak atas port 3000; explorer otomatis berdiri down (guard ada di explorer.sh).
preview-<bot-id>.space-z.ai (frontend platform — popup tinggal diabaikan)
-> ingress platform :81 (reverse-proxy milik root, env FC_CUSTOM_LISTEN_PORT)
-> 127.0.0.1:3000 (upstream — SISI KITA)
-> explorer.py (server stdlib Python, UI kreatif explorer-ui/index.html)
Fakta kunci yang membuat ini bisa bekerja:
mkdir -p ~/.zscripts/explorer-ui (root proyek: /home/z/my-project)
cp assets/explorer.py assets/explorer.sh <proyek>/.zscripts/
cp assets/explorer-ui/index.html <proyek>/.zscripts/explorer-ui/
cp assets/dev.sh.template <proyek>/.zscripts/dev.sh && chmod +x <proyek>/.zscripts/dev.shbash <proyek>/.zscripts/explorer.sh --ensureif [ -f "$PROJECT/.zscripts/explorer.sh" ]; then
bash "$PROJECT/.zscripts/explorer.sh" --ensure >> "$BOOTLOG" 2>&1 || log "WARN: explorer gagal"
fi
bash .zscripts/explorer.sh --ensure.package.json ada di root proyek -> Next.js pemilik :3000 -> explorer STAND-DOWN.bash .zscripts/explorer.sh --status # kesehatan + log
bash .zscripts/explorer.sh --stop # matikan explorer
bash .zscripts/explorer.sh --ensure # hidupkan bila belum (idempoten)
bash .zscripts/watcher.sh --status # status daemon auto-heal
| File | Peran |
|---|---|
| assets/explorer.py | Server stdlib (/, /api/files, /file/, /healthz) — ThreadingHTTPServer, guard path |
| assets/explorer.sh | Launcher --ensure/--status/--stop, guard Next.js, double-fork orphan |
| assets/explorer-ui/index.html | UI Material Design 3 Expressive (52 KB, zero-dependency): design token MD3 penuh light+dark (33 pasang kontras AA), type scale, shape morphing, wavy progress, ripple, state layer — fitur: stats, task rail (parse worklog.md), search, filter tipe, sort, grid/list, preview modal (md/json/img/pdf/teks), snackbar, tema gelap/terang, live refresh 10 dtk |
| assets/dev.sh.template | Template dev.sh v1.2 untuk container baru (boot hook + tidy + watcher + explorer) |
Semua nol dependensi eksternal: Python stdlib murni, HTML/CSS/JS vanilla, tanpa CDN.