Skip to main content

runtime-diagnostics

Debug the local media-library-manager runtime by inspecting jobs, ports, reports, state artifacts, and backend health. Use when the dashboard looks stale, API behavior differs from edited files, a job is stuck, a scan keeps timing out, or the backend needs a clean restart.

来源信息

仓库
leolionart/media-library-manager
最近来源活动
2026年4月5日 09:59
检测到的 SKILL.md 语言
英语
星标
1
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
runtime-diagnostics
description
Debug the local media-library-manager runtime by inspecting jobs, ports, reports, state artifacts, and backend health. Use when the dashboard looks stale, API behavior differs from edited files, a job is stuck, a scan keeps timing out, or the backend needs a clean restart.
# Runtime Diagnostics Use this skill to understand what the running app is actually doing before changing code or blaming the UI. ## Workflow 1. Inspect runtime state first. Read `/api/process` and `/api/state`. Compare live state with files under `data/`. 2. Check ports and processes. In this repo, Vite commonly runs on `127.0.0.1:5173` and the Python backend on `127.0.0.1:8766`. Confirm which process is actually serving the current API. 3. Inspect logs and artifacts. Check `current_job.logs`, `activity_log`, and relevant saved artifacts such as `last-path-repair-scan.json`. 4. Restart cleanly when needed. Stop the Python backend, confirm the port is free, then restart with the repo's `PYTHONPATH=src` setup and the correct `data/app-state.json`. 5. Re-verify after restart. Confirm that the live API reflects the edited code and current state file before resuming workflow operations. ## Guardrails - Distinguish between stale saved reports and live provider reality. - Do not assume Vite and the Python backend restarted together. - Prefer direct API checks over guessing from the UI. ## Typical Requests - "Kiểm tra backend đang chạy code nào" - "Tại sao UI và file state không khớp" - "Restart backend sạch rồi verify lại"
在 GitHub 查看