Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add HK-hub/AgentSkills --skill page-editorgit clone --depth 1 https://github.com/HK-hub/AgentSkillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hk-hub/agentskills/page-editor)<a href="https://agentmods.dev/skills/hk-hub/agentskills/page-editor"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/page-editor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hk-hub/agentskills/page-editor"><img src="https://agentmods.dev/badge/skills/hk-hub/agentskills/page-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00154 | $0.05241 |
| Opus 5 | $0.00077 | $0.02620 |
| Sonnet 5 | $0.00031 | $0.01048 |
| Haiku 4.5 | $0.00015 | $0.00524 |
Grade A, and why
page-editor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
-r, --reload 通知浏览器刷新(替代 curl 调用 /api/reload,无需确认) How it starts
The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.
页面可视化编辑器
基于浏览器的 HTML 页面可视编辑器。用户在浏览器中完成样式/内容编辑,保存后输出结构化 JSON,供 Agent 回写到源码。
⚠️ 项目隔离(重要)
本工具支持两种使用方式,强烈推荐方式 1:
方式 1:作为项目 Skill 使用(✅ 推荐)
将 page-editor/ 目录复制到你的项目 .codebuddy/skills/ 目录下:
cp -r {skill-base-dir} {your-project}/.codebuddy/skills/page-editor/
优势:
- ✅ 完全项目隔离,多个项目互不影响
- ✅ 端口文件
.page-editor.port和输出文件page-edits.json存储在项目目录 - ✅ 可以为不同项目定制 Skill 配置
- ✅ 版本管理更清晰(每个项目独立管理 Skill 版本)
方式 2:作为全局 Skill 使用(⚠️ 需注意)
如果作为全局 Skill 使用(安装在 ~/.codebuddy/skills/),需注意:
- 端口文件隔离:v2.3.4+ 已支持项目隔离,
.page-editor.port会存储在目标文件所在目录 - 输出文件:
page-edits.json默认输出到当前工作目录,建议通过--output参数显式指定项目目录 - 多个项目同时编辑:确保每个项目使用不同的
--port,避免端口冲突
示例(全局 Skill 多项目使用):
# 项目 A
cd /path/to/project-a
node ~/.codebuddy/skills/page-editor/assets/page-editor/bin/page-editor.js --file ./index.html --output ./page-edits.json &
# 项目 B(使用不同端口)
cd /path/to/project-b
node ~/.codebuddy/skills/page-editor/assets/page-editor/bin/page-editor.js --file ./index.html --port 7789 --output ./page-edits.json &
修改记录存储位置
| 文件 | 存储位置 | 说明 |
|---|---|---|
.page-editor.port |
目标文件所在目录(v2.3.4+)或 CWD | 记录编辑器服务端口号 |
page-edits.json |
--output 参数指定(默认 ./page-edits.json) |
保存时的改动记录 |
| 浏览器 localStorage | 用户浏览器 | 编辑状态临时存储(仅当前会话) |
快速开始(双进程模型)
本工具采用 双进程架构,必须严格按以下顺序启动:
# ===== 第 0 步:安装依赖(仅需首次,后续跳过)=====
SKILL_DIR="{skill-base-dir}/assets/page-editor"
if [ ! -d "$SKILL_DIR/node_modules" ]; then
cd "$SKILL_DIR" && npm install --prefer-offline --no-audit --no-fund
fi
# ===== 第 1 步:启动服务进程(后台常驻,只启动一次!)=====
# 日志写入临时文件以便排障;服务就绪后会自动打开浏览器(延迟 4s,页面显示加载遮罩直到 JS 就绪)
LOGFILE="/tmp/page-editor-$(date +%s).log"
nohup node {skill-base-dir}/assets/page-editor/bin/page-editor.js --file <目标HTML路径> > "$LOGFILE" 2>&1 &
SERVICE_PID=$!
# ===== 第 1.5 步:等待服务就绪(重要!不要跳过)=====
for i in $(seq 1 30); do
if [ -f ".page-editor.port" ]; then break; fi
sleep 0.5
done
if [ ! -f ".page-editor.port" ]; then
echo "⚠️ 服务未能在 15 秒内启动,请检查日志: cat $LOGFILE"
fi
# ===== 第 2 步:启动监听进程(前台阻塞,10 分钟超时)=====
# 阻塞等待用户保存或关闭编辑器。10 分钟内无操作会超时退出。
node {skill-base-dir}/assets/page-editor/bin/page-editor.js --monitor
What ships with it
40 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- _meta.json 104 B
- _skillhub_meta.json 131 B
- assets/page-editor/bin/page-editor.js 11 KB runs code
- assets/page-editor/package-lock.json 36 KB
- assets/page-editor/package.json 621 B
- assets/page-editor/public/editor/css/shell.css 102 KB
- assets/page-editor/public/editor/js/color-picker-engine.js 20 KB runs code
- assets/page-editor/public/editor/js/color-picker-panel.js 49 KB runs code
- assets/page-editor/public/editor/js/consistency-dialog.js 7.9 KB runs code
- assets/page-editor/public/editor/js/consistency-scanner.js 10 KB runs code
- assets/page-editor/public/editor/js/editor-core.js 52 KB runs code
- assets/page-editor/public/editor/js/flex-overlay.js 12 KB runs code
- assets/page-editor/public/editor/js/guides.js 21 KB runs code
- assets/page-editor/public/editor/js/image-picker-panel.js 9.9 KB runs code
- assets/page-editor/public/editor/js/number-scrubber.js 16 KB runs code
- assets/page-editor/public/editor/js/pp-appearance.js 41 KB runs code
- assets/page-editor/public/editor/js/pp-helpers.js 13 KB runs code
- assets/page-editor/public/editor/js/pp-layout.js 53 KB runs code
- assets/page-editor/public/editor/js/properties-panel.js 33 KB runs code
- assets/page-editor/public/editor/js/resize-handles.js 19 KB runs code
- assets/page-editor/public/editor/js/selector.js 8.5 KB runs code
- assets/page-editor/public/editor/js/shell.js 48 KB runs code
- assets/page-editor/public/editor/js/snapshot.js 32 KB runs code
- assets/page-editor/public/editor/js/state-editor.js 14 KB runs code
- assets/page-editor/public/editor/js/tailwind-map.js 16 KB runs code
- assets/page-editor/public/editor/js/undo-stack.js 5.5 KB runs code
- assets/page-editor/public/editor/js/vendor/css-selector-generator.js 10 KB runs code
- assets/page-editor/public/editor/logo-dark.svg 1.9 KB
- assets/page-editor/public/editor/logo-light.svg 1.9 KB
- assets/page-editor/public/editor/partials/properties-panel.html 48 KB
- assets/page-editor/server/index.js 51 KB runs code
- CHANGELOG.md 3.6 KB
- hooks/_common.py 16 KB runs code
- hooks/hooks.py 6.7 KB runs code
- README.md 2.1 KB
- references/output-format.md 9.5 KB
- scripts/track.sh 20 KB runs code
- tools/report.sh 11 KB runs code
- trackmate/dashboard_prompt.md 14 KB
- trackmate/tracking_plan.md 1.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 377 lines · 154 tokens per session scan A 8db33ae7d296
page-editor is a skill published in the GitHub repository HK-hub/AgentSkills (6 stars, last pushed 25d ago), licensed MIT. It adds 154 tokens to every session and 5,241 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
visual-verdict
Structured visual QA verdict for screenshot-to-reference comparisons.
interaction-skill
Layer A interaction-mechanics reference anchored to the beui.dev catalog. Stacks on any style skill whenever work adds or changes motion or interaction — micro-interactions, animated components, transitions, gestures, hover/press/state feedback, loading/success/error morphs, 'make it feel alive'. Mandates reading the…
layout-skill
Layer A layout-mechanics reference. Stacks on any style skill when the screen is an app shell, dashboard, settings, list-detail, mail/inbox, or any layout with fixed regions plus a scrolling body — or when a layout breaks under long, empty, or unbroken content. Owns spatial structure and scroll ownership; owns zero…
ui-design
Unify product UI design, frontend implementation, and verification. Use when asked to design, redesign, build, or fix a web, desktop, or mobile interface; a page, dashboard, form, component, design system, responsive layout, accessibility, interface animation, or editable hero/banner/infographic within a product…
frontend-design
A design guide for building polished web interfaces such as pages, dashboards, forms, navigation, and reusable UI components. It covers HTML, CSS, JavaScript, and common frontend frameworks.
frontend-philosophy
Visual & UI philosophy (The 5 Pillars of Intentional UI). Understand deeply to avoid "AI slop" and create distinctive, memorable interfaces.