editable-page-generator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "editable-page-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a1673b69e4006e4bad069b61e2f96780298d207e9a87b302f76cbcd92d559f37. Verify the upstream source and version against https://skillhub.cn/skills/user_f707e63d/editable-page-generator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generates editable HTML pages where each text block can be edited independently, font size and position adjusted, auto-saved to browser local storage, and exported for download. Suitable for creating editable demo pages, proposals, product descriptions, or personal homepages.
Introduction source: third_party · user_f707e63d · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: editable-page-generator
description: "生成可编辑的 HTML 页面:每段文字可独立编辑、调整字号、移动位置,自动保存到浏览器本地存储,支持导出下载。用于制作可二次编辑的展示页面、提案文档、产品说明页、个人主页等。"
version: 1.0.0
agent_created: true
triggers:
- pattern: "生成可编辑页面"
- pattern: "做一个能编辑的HTML"
- pattern: "生成一个可以改文字的网页"
- pattern: "帮我做个可修改的页面"
- pattern: "制作用于展示的可编辑文档"
- pattern: "生成文案编辑页面"
- pattern: "导出可编辑HTML"可编辑 HTML 页面生成器
生成一个完整、美观、可直接使用的单文件 HTML 页面,支持用户自行编辑所有文字内容、调整字号大小和移动文本框位置。
核心能力
- 单文件输出:所有 CSS + JS 内联,无外部依赖
- 编辑模式:点击"编辑"按钮后所有文字框可点击直接修改
- 独立调参:选中任意文本框后可单独调整字号、字重
- 位置移动:支持方向键及按钮上下左右移动文本框位置
- 自动保存:所有修改自动存入浏览器 localStorage,刷新不丢失
- 导出下载:导出保留所有修改内容的完整 HTML 文件
使用方式
用户说「帮我生成一个可编辑的 XXX 页面」或「用可编辑页面做一个 XXX」,则根据用户描述的内容主题生成 HTML。
生成规则
必须包含的 UI 组件
-
顶部工具栏(fixed 定位,毛玻璃效果):
- 左侧标题:"📝 可编辑页面生成器" 或用户自定义名称
- 右侧:「编辑」/「预览」切换按钮 + 「导出」按钮
-
悬浮控制面板(编辑模式下,选中元素时出现在右侧):
- 字号滑块(10px-60px)
- 字重选择器(400/500/600/700/900)
- 方向移动按钮(↑↓←→,每次 5px)
- 位置重置按钮
-
Toast 提示:操作反馈浮层
必须包含的 JS 逻辑
assignIds()— 给每个[data-editable]元素分配唯一 IDsaveState()— 将所有元素的 html、fontSize、fontWeight、transform 存入 localStoragerestoreState()— 页面加载时从 localStorage 恢复toggleEdit()— 切换编辑/预览模式moveEl(dx, dy)— 移动选中元素位置(CSS transform translate)onSizeChange()/onWeightChange()— 字号/字重实时调整exportHTML()— 克隆页面、移除编辑属性、下载为完整 HTML
内容结构设计
根据用户描述的主题,用以下组件组合布局:
- Hero 区域:渐变背景 + 大标题 + 副标题(
class="hero") - 卡片区域:白色圆角卡片(
class="card"),内含 h2/h3 + p + 标签等 - 统计数字:
class="stat-box"小方块,用于突出数据 - 信息提示框:
class="info-box"(蓝色)/class="warn-box"(黄色) - 标签徽章:
class="tag tag-green/blue/orange/red" - 双列布局:
class="grid-2"响应式两列
样式规范
:root {
--bg: #f5f5f7; /* 页面背景 */
--card-bg: #ffffff; /* 卡片背景 */
--border: #e0e0e6; /* 边框 */
--text: #1d1d1f; /* 主文字 */
--accent: #0071e3; /* 强调色(蓝色) */
--radius: 14px; /* 卡片圆角 */
}
- 字体:
-apple-system, "PingFang SC", "Microsoft YaHei", sans-serif - 卡片阴影:
0 1px 3px rgba(0,0,0,.08) - 工具栏:
position:fixed; backdrop-filter: blur(20px); - 编辑模式下可编辑元素:蓝色边框 + 淡蓝背景
可编辑元素标记
所有需要可编辑的元素加 data-editable="h1|h2|h3|p|span|div" 属性。编辑模式下这些元素会显示蓝色边框提示。
导出逻辑要点
导出时:
- 先调用
saveState()确保最新修改已保存 - 克隆
document.documentElement - 移除:
.toolbar、.control-panel、#toast、<script> - 移除所有
[data-editable]和[data-uid]属性 - 移除
#pageRoot的.edit-modeclass - 保留:所有内联样式(fontSize、fontWeight、transform)
- 添加
<!DOCTYPE html>声明 - 创建 Blob → 触发下载
示例对话
用户:帮我生成一个可编辑的产品介绍页面,产品是一个 AI 写作助手
输出:生成一个单文件 HTML,包含:
- Hero:"✍️ AI 写作助手 — 让每个字都有力量"
- 卡片1:产品功能(智能续写、风格润色、多语言翻译)
- 卡片2:使用场景(公众号写作、商业文案、学术论文)
- 卡片3:价格方案(免费版/专业版/企业版)
- 卡片4:用户评价
每张卡片的内容均可编辑,所有样式和交互完整。
代码模板
使用 可编辑页面生成器.html 作为完整参考模板。核心改动点:
- 替换 Hero 区域的标题和副标题
- 替换卡片内容和数量
- 保持所有 CSS 变量和 JS 逻辑不变
- 根据内容量适当调整卡片数量和布局
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供生成可编辑 HTML 页面的完整解决方案,适用于多种实际场景如产品展示、提案文档、个人主页等
- 功能闭环完整,包含编辑、调整、保存、导出等核心能力,具有广泛实用价值
Highlights
- 触发词覆盖全面,包含多种用户常见表达方式,边界清晰不易误触
Areas to improve
-
description 内容重复 Reported severity: Minor
frontmatter 和 skill_body 中均包含相同 description 内容
Recommendation: 建议移除 skill_body 中的重复 description,保持 frontmatter 唯一
Highlights
- 文档结构清晰完整,包含核心能力、使用方式、生成规则、示例对话等必要章节
- 提供了详细的 UI 组件、JS 逻辑、样式规范和导出逻辑说明
Highlights
- 核心 JS 逻辑完整,包含状态保存、恢复、编辑切换、元素移动、导出等关键函数
- 支持 localStorage 自动保存,确保用户修改不丢失
- 导出逻辑详细,能生成完整可用的 HTML 文件
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.