Html frontend template

From jiushiwon/wg-skills · View interactive version

Html frontend template is an AI agent skill from the GitHub repository jiushiwon/wg-skills. 纯 HTML + 原生 JS 管理后台模板,适用于自媒体运营平台,无需任何框架依赖

How to use this skill

Skill file

HTML Frontend Template

纯 HTML + 原生 JS 管理后台模板,为自媒体运营平台提供完整的前端解决方案。

使用场景

功能特性

页面模块

| 页面 | 功能 |

|------|------|

| 热点管理 | 热点列表、手动添加、筛选过滤 |

| 创作中心 | 选择热点 → 选择平台 → AI 生成文章 |

| 文章库 | 文章列表、编辑、删除、状态管理 |

| 素材库 | 图片/文案素材管理 |

| 发布中心 | 一键复制、导出、平台格式适配 |

技术特点

项目结构

html-frontend-template/
├── SKILL.md
├── index.html              # 主入口
├── assets/
│   ├── css/
│   │   └── style.css      # 样式文件
│   └── js/
│       ├── app.js         # 主逻辑
│       ├── api.js         # API 调用
│       ├── router.js      # 简单路由
│       └── store.js       # 状态管理
└── pages/
    ├── trends.html        # 热点管理
    ├── create.html        # 创作中心
    ├── articles.html      # 文章库
    ├── materials.html     # 素材库
    └── publish.html      # 发布中心

使用方法

1. 快速开始

直接用浏览器打开 index.html 即可预览:

# 可以用任意静态服务器
python -m http.server 8080
# 或直接双击打开

2. 配置 API

在 assets/js/api.js 中配置后端地址:

const API_BASE = "http://localhost:8000";

3. 页面功能

热点管理
创作中心
文章库
素材库
发布中心

主题切换

点击页面右上角主题按钮切换明暗主题,主题偏好会保存到 localStorage。

扩展开发

添加新页面

  1. 在 pages/ 目录创建新 HTML
  2. 在 assets/js/router.js 注册路由
  3. 在导航菜单添加链接

添加新功能

在对应页面的 <script> 标签中编写逻辑,使用 store.js 进行状态管理。

注意事项

触发词

html-frontend-template、HTML Frontend Template

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.