chrome-extension-generator

一键生成 Chrome 扩展程序模板,支持 Popup、Background Script、Content Script、Options 页面等多种类型。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "chrome-extension-generator" with this command: npx skills add Sunshine-del-ux/chrome-extension-generator

Chrome Extension Generator

一键生成 Chrome 扩展程序模板,快速启动你的扩展开发。

功能

  • ⚡ 快速生成项目结构
  • 🎨 多种模板可选
  • 📝 完整的配置文件
  • 🧪 测试模板
  • 📖 生成 README
  • 🚀 支持 TypeScript

模板类型

模板说明
basic基础 Hello World
popup带 Popup 界面
options设置页面
content-script内容脚本
background后台脚本
full完整功能扩展

使用方法

生成扩展

# 基本用法
chrome-extension-generator "扩展名称" "描述"

# 指定模板
chrome-extension-generator "My Extension" "描述" --template popup

# 指定技术栈
chrome-extension-generator "扩展" "描述" --template full --stack typescript

选项

选项说明
--template, -t模板类型
--stack, -sJavaScript/TypeScript
--output, -o输出目录

输出结构

my-extension/
├── manifest.json
├── popup.html
├── popup.js
├── popup.css
├── background.js
├── content.js
├── options.html
├── options.js
├── icon.png
├── README.md
└── _locales/
    └── en/
        └── messages.json

示例

Popup 扩展

chrome-extension-generator "Focus Timer" "Pomodoro timer extension" --template popup

内容脚本扩展

chrome-extension-generator "Page Highlighter" "Highlight text on pages" --template content-script

完整扩展

chrome-extension-generator "All-in-One Tool" "Ultimate browser tool" --template full

manifest.json 示例

{
  "manifest_version": 3,
  "name": "My Extension",
  "version": "1.0.0",
  "description": "An amazing Chrome extension",
  "permissions": ["storage", "activeTab"],
  "action": {
    "default_popup": "popup.html"
  },
  "background": {
    "service_worker": "background.js"
  }
}

安装

# 无需依赖

开发流程

  1. 生成模板
  2. 修改 manifest.json
  3. 编写功能代码
  4. 本地加载扩展
  5. 测试并发布

发布到 Chrome Web Store

生成模板包含:

  • 发布检查清单
  • 上传截图模板
  • 商店描述模板

变现思路

  1. 付费模板 - 专业版模板
  2. 定制开发 - 为客户开发扩展
  3. 插件市场 - 建立扩展市场
  4. 广告收入 - 在扩展中展示广告
  5. 联盟营销 - 推广产品获取佣金

示例扩展

  • 广告拦截器
  • 密码管理器
  • 截图工具
  • 笔记工具
  • 社媒工具
  • 开发辅助工具

常用权限

权限说明
storage本地存储
activeTab当前标签页
tabs标签页管理
bookmarks书签管理
history历史记录
cookiesCookie 管理
webRequest网络请求

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

AutoClaw Browser Automation

Complete browser automation skill with MCP protocol support and Chrome extension

Registry SourceRecently Updated
0353
Profile unavailable
General

Browser Search

浏览器自动化搜索技能 - 使用本地浏览器进行网页搜索和内容提取。 支持 Bing、Google、Baidu 等搜索引擎,无需 API 配置。 适合:实时搜索、信息收集、资料整理、竞品分析等场景。

Registry SourceRecently Updated
059
Profile unavailable
General

Package.json Generator

生成专业的 package.json,包含最佳实践的脚本、依赖和配置。

Registry SourceRecently Updated
0174
Profile unavailable