Webapp Load Fixer

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

修复本地 Node + 原生 JS 单页应用(ERP/LIMS 类)报进不去、打不开、用不了的问题。覆盖四类根因:服务未启动、CSS [hidden] 被 display:flex 覆盖遮罩不消失、静态服务无缓存头致浏览器用旧资源、AI 会话结束进程被回收;含 agent-browser 真实浏览器验证、Node vm 无头兜底,以及 Windows 启动文件夹自启方案。

一句话选型结论

按资料字段整理

Webapp Load Fixer是开发类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_c64282f7/webapp-load-fixer
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_c64282f7仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791625178
正文体量9.7 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
写代码与改 bug

按需求补代码、定位并修掉报错。

读仓库与生成改动

让模型读懂项目结构,再给出可落地的改动。

跑测试与排查故障

按现象排查问题,补测试用例并复跑。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Webapp Load Fixer当前 未标注权限 未标注 未标注 未标注 有
技能审查员 浏览器控制 ClawHub 市场 877.9 万 OpenClaw 有
Vercel React 最佳实践 浏览器控制 GitHub 仓库 849.1 万 Codex、Claude、Cursor 有
GitHub 代码协作 联网访问 ClawHub 市场 763.3 万 OpenClaw 有
网页设计指南 联网访问 GitHub 仓库 668.6 万 Codex、Claude、Cursor 有
本体论 只读 ClawHub 市场 663.7 万 OpenClaw 有

SKILL.md 全文

9.7 KB
模型实际读到的说明书原文,来自技能仓库

Webapp Load Fixer

Overview

Fix locally-run web apps (Node static server + vanilla JS SPA, e.g. the user's ERP / LIMS
systems) that report "can't enter" / "can't use". The failure is almost never a single bug —
it is usually one of four recurring causes. Work the diagnostic decision tree top-down, fix
the real cause, then verify in a real browser before declaring done.

When To Use

  • User says "进不去 / 无法进入 / 打不开 / 用不了 / 无法使用" about a local app.
  • A localhost:<port> page is blank, stuck on a login mask, or a modal blocks all clicks.
  • After an AI session ends, a previously-working local app stops responding.

Diagnostic Decision Tree (work top-down)

  1. Is the server listening? netstat -ano | grep ":<port>" | grep LISTEN
    - Not listening → Cause 1 (start the server).
    - Listening → continue.
  2. Does a trivial HTTP GET of the homepage succeed? curl -s -o /dev/null -w "%{http_code}" http://localhost:<port>/
    - Non-200 → server crashed or wrong port → Cause 1.
    - 200 → continue.
  3. Do static assets return 200? curl each /js/*.js, /css/*.css.
    - Any non-200 → path/route bug → fix server static routes.
    - All 200 → continue (this is the "service is fine but UI is broken" case).
  4. Is there a login/mask overlay stuck on screen? Read the CSS for .login-mask /
    .modal-mask / any *-mask and check whether it sets display: flex|grid|block. If so and
    the HTML hides it via the hidden attribute → Cause 2.
  5. Did code change recently but the browser still shows the bug? Check whether the static
    server sets Cache-Control. If absent → Cause 3 (stale cache).
  6. Did it work during the session, then die after the session closed? → Cause 4
    (process recycled; add autostart).

Root Cause 1 — Server process not running

The Node server was never started, or its process was recycled (e.g. when the AI session
ends). Start it in the background and verify the login chain.

# locate the entry file (often server.js) and start it with managed node
cd "<app-dir>"
"/c/Users/DJHdj/.workbuddy/binaries/node/versions/22.22.2/node.exe" server.js &
sleep 1
curl -s -o /dev/null -w "HTTP %{http_code}\n" http://localhost:<port>/
# verify login chain
curl -s -X POST http://localhost:<port>/api/login -H "Content-Type: application/json" \
  -d '{"username":"admin","password":"admin123"}' | \
  "/c/Users/DJHdj/.workbuddy/binaries/node/versions/22.22.2/node.exe" \
  -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const j=JSON.parse(d);console.log('token:',j.token?'OK':'NONE','| user:',j.user&&j.user.name)}catch(e){console.log('ERR',d.slice(0,150))}})"

Note the demo accounts typically live on the login page as clickable chips; read
index.html to get the real username/password and the #login-user / #login-pwd /
#login-btn selectors.

Root Cause 2 — CSS [hidden] overridden by display:flex

Classic bug. A login mask or modal is hidden in JS via el.hidden = true, which relies on the
user-agent rule [hidden] { display: none }. But if the CSS sets .login-mask { display: flex }, that declaration outranks the UA [hidden] rule, so the element never disappears
and sits on top (high z-index) blocking the whole UI — "can't enter".

Fix: add a global override at the very top of the stylesheet (before :root):

[hidden] { display: none !important; }

Also check for missing button/utility classes the SPA references (e.g. .btn-warning) and add
them. After editing CSS/JS, pair this fix with Cause 3 so the browser actually picks it up.

Root Cause 3 — Browser serving stale CSS/JS (no cache headers)

If server.js serves static files without Cache-Control, the browser caches the
pre-fix assets. Every refresh reloads the broken old version. Force freshness by emitting
no-cache headers from the static handler:

res.writeHead(200, {
  'Content-Type': STATIC_TYPES[ext] || 'application/octet-stream',
  'Cache-Control': 'no-store, no-cache, must-revalidate, max-age=0',
  'Pragma': 'no-cache',
  'Expires': '0'
});
res.end(content);

Restart the server after editing. The user can then do a normal refresh (no forced Ctrl+F5
needed). Verify via curl -s -D - -o /dev/null http://localhost:<port>/css/style.css | grep -i cache-control.

Root Cause 4 — Process recycled when the AI session ends

A background server started inside an AI session is killed when the session closes, so the
next time the user opens the app it is "down". Make it survive by auto-starting on Windows
login.

> Environment quirk: this sandbox blocks reg.exe and wscript.exe as LOLBins, so the
> HKCU\Run registry key cannot be written by the agent. Use the Startup folder instead —
> it is functionally equivalent (runs on user login). See references/windows-autostart.md
> and the template scripts/windows_autostart.bat.

The bat does an idempotent netstat check (if the port is already LISTENING, exit) then
start "" /min launches the node server with absolute paths. Prefer generating a
project-specific bat with the included generator instead of hand-editing paths:

node scripts/make_autostart.js --app "<abs-path-to-server.js>" --port 3000 \
  --name "My App" --out "<dir>/start-myapp.bat" --install   # --install -> Startup folder

The generator validates paths, auto-detects the managed node binary, and writes the bat
CRLF/ASCII-clean. The template scripts/windows_autostart.bat also works standalone —
just edit its 4-line CONFIG block (APP_NAME / PORT / APP / NODE). To verify
end-to-end: kill the running server PID, run the bat (bash can execute it directly), curl
the homepage for HTTP 200, run it again to confirm the "already running" guard.

Verification — Real browser via agent-browser

This is the definitive check: it catches runtime errors that curl/headless JSON cannot.

export PATH="/c/Users/DJHdj/.workbuddy/binaries/node/versions/22.22.2:$PATH"
# first time only — downloads Chrome (~2.5 min, retry-safe):
agent-browser install
agent-browser open http://localhost:<port>/
agent-browser console --clear; agent-browser errors --clear
agent-browser fill "#login-user" admin
agent-browser fill "#login-pwd" admin123
agent-browser click "#login-btn"
agent-browser wait "#content"
# assert the mask is gone and dashboard rendered:
agent-browser eval "document.getElementById('login-mask').hidden + '|title=' + document.getElementById('page-title').textContent + '|len=' + document.getElementById('content').innerHTML.length"
agent-browser errors      # must be empty
agent-browser console     # must be empty
agent-browser screenshot "<app-dir>/verify.png"

Interpretation: login-mask.hidden === true, a non-empty #content, and empty errors
and console mean the app is fully working. If errors appear, paste them and fix the
underlying JS; if the mask is still visible, re-check Cause 2.

> Pitfall — clicking the last nav items may silently miss. When you agent-browser click ".nav-item[data-id='finance']" on a SPA whose nav re-renders on every route change, the click can land before the new element is attached (or scroll/race), so the page just stays on the previous module — looking like the module is broken when it is not. If a trailing module (e.g. finance/statement at the end of the nav) appears to render the wrong content with no errors, do NOT conclude it is a bug. Re-verify from inside the page:
> js > agent-browser eval "navigate('finance'); 'called'" // or document.querySelector('.nav-item[data-id=statement]').click() > // then re-read title + content after a short sleep >
> If navigate(id) / .click() switch correctly, the module is fine and the earlier miss was a tooling artifact.

Fallback — Node vm headless harness

When the Chrome download is too slow/unavailable, validate the front-end JS logic without a
browser using scripts/headless_check.js: it loads api.js/ui.js/app.js into a vm
context with a mocked DOM + fetch and runs boot(), capturing any thrown error. This proves
the logic is sound but will NOT catch CSS-rendering bugs (Cause 2) — always prefer the real
browser when available.

Resources

  • scripts/headless_check.js — Node vm harness that loads the three SPA JS files, mocks DOM
    and fetch, runs boot(), and reports runtime errors. Adapt the mock to the app's globals.
  • scripts/make_autostart.js — generator that emits a project-specific autostart .bat
    from --app/--port/--name/--node/--out flags; --install copies it into the Windows
    Startup folder. Use this instead of hand-editing bat paths (also passes .bat-rejecting
    upload pipelines since only the .js ships).
  • scripts/windows_autostart.bat — idempotent autostart template (netstat guard + start /min
    node) with a 4-line CONFIG block (APP_NAME/PORT/APP/NODE) for manual editing.
  • references/windows-autostart.md — why HKCU\Run is blocked here and the Startup-folder
    alternative, generator usage, and the exact paths used for the user's ERP/LIMS.

常见问题

5 问
答案由本站依据条目字段整理
Webapp Load Fixer怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_c64282f7/webapp-load-fixer。安装方式为未标注。装完刷新技能列表或重开客户端。

Webapp Load Fixer支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Webapp Load Fixer权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Webapp Load Fixer收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Webapp Load Fixer用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。