page-editor

page-editor is a skill for Claude Code, Codex from HK-hub/AgentSkills. It costs 154 tokens per session (5,241 once invoked), scanned A, original, MIT.

A browser-based editor for changing the styles and content of real HTML pages visually, then saving those changes as structured data for an agent to apply to source code.

In plain words
What is it for?
Use it to edit HTML page appearance and content, record the edits, and apply them back to the project files.
Why use it?
It gives developers a direct way to adjust a page visually when describing every design change in text is slow or unclear.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to edit HTML page appearance and content, record the edits, and apply them back to the project files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hk-hub/agentskills/page-editor
Install

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.

Any agent
npx skills add HK-hub/AgentSkills --skill page-editor
Clone the repo
git clone --depth 1 https://github.com/HK-hub/AgentSkills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for page-editor

README.md
[![agentmods](https://agentmods.dev/badge/skills/hk-hub/agentskills/page-editor/github.svg)](https://agentmods.dev/skills/hk-hub/agentskills/page-editor)
Your own site
<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.

agentmods 80×15 button for page-editor

Your own site · 80×15
<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>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,241 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 8db33ae7d296, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 27 executable files (assets/page-editor/bin/page-editor.js, assets/page-editor/public/editor/js/color-picker-engine.js, assets/page-editor/public/editor/js/color-picker-panel.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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,无需确认)
page-editor/SKILL.md · 377 lines

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/),需注意:

  1. 端口文件隔离:v2.3.4+ 已支持项目隔离,.page-editor.port 会存储在目标文件所在目录
  2. 输出文件page-edits.json 默认输出到当前工作目录,建议通过 --output 参数显式指定项目目录
  3. 多个项目同时编辑:确保每个项目使用不同的 --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

Read the full file on GitHub · 377 lines

Files

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.

Changes

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.

  1. 9d ago First seen · 377 lines · 154 tokens per session scan A 8db33ae7d296

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

visual-verdict

Structured visual QA verdict for screenshot-to-reference comparisons.

Yeachan-Heo/oh-my-claudecode · 13 tokens

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…

code-yeongyu/oh-my-openagent · 104 tokens

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…

code-yeongyu/oh-my-openagent · 88 tokens

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…

AnastasiyaW/codex-claude-code-config · 97 tokens

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.

AnastasiyaW/codex-claude-code-config · 264 tokens

frontend-philosophy

Visual & UI philosophy (The 5 Pillars of Intentional UI). Understand deeply to avoid "AI slop" and create distinctive, memorable interfaces.

kdcokenny/ocx · 36 tokens