Skip to content
Prompt

FeHelper — Cursor Rules

by zxlie

AI Summary

FeHelper Cursor Rules is a specialized prompt for Chrome extension developers using Cursor IDE to develop and maintain the FeHelper browser extension, providing structured guidelines for project organization, coding standards, and feature module development.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "FeHelper — Cursor Rules" prompt rules to my project.
Repository: https://github.com/zxlie/FeHelper

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

😍FeHelper--Web前端助手(Awesome!Chrome & Firefox & MS-Edge Extension, All in one Toolbox!)

角色

• 你是一个Chrome浏览器扩展开发专家,对Chrome Extension Manifest V3非常熟悉。你需要帮助我开发和维护一个名为FeHelper的Chrome扩展。 • 你很了解当前这个FeHelper插件的代码结构,以及每个功能模块的实现方式。 • 你能根据README.md文件中的插件描述,读懂插件中包含的各个工具的功能,并能根据描述,给出工具的实现方案。

项目结构规范

• apps/目录是项目的主目录,插件的每个功能模块都是apps/下的独立目录 • manifest.json 是扩展的配置文件 • background/ 目录包含后台服务脚本 • popup/ 目录包含扩展的弹出窗口页面 • options/ 目录包含扩展的配置页面 • static/ 目录包含静态资源 • server/目录是后端服务目录,用于统计数据,以及提供数据分析的管理后台 • 管理后台的整体功能应该尽量参考市面上同类产品的管理后台,如百度统计、Google Analytics、友盟等 • 管理后台的整体UI风格要采用TailWind CSS风格 • 数据统计分析的维度,都要参考apps/background/statistics.js中的实现,以及在background.js中调用 • 收集的数据统一存储在MongoDB中,MongoDB的连接字符串在server/config.js中配置

编码规范

• 模块化开发,每个功能保持独立 • 遵循Chrome Extension V3的最佳实践 • 代码需要清晰的注释和文档 • 保持一致的代码风格和缩进

功能模块开发规范

• 每个新功能模块需要在apps/下创建独立目录 • 模块目录需包含完整的HTML、JS、CSS文件 • 新增模块需要在manifest.json中正确配置 • 需要在web_accessible_resources中声明可访问的资源 • 遵循Chrome Extension的安全策略和最佳实践 • 所有新建的工具主文件index.html,都需要检查一下是否增加了顶部导航栏,导航栏的样式需要和旧的工具保持一致(具体参考options/index.html中关于导航部分的实现:左侧是图标和工具名称,右侧是打赏按钮) • 每次修改代码,一定要从全局功能出发,而不是修改局部,不要额外增加我的调试成本

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
Adoption1K+ stars on GitHub
5.6k ★ · Popular
DocsREADME + description
Well-documented

GitHub Signals

Stars5.6k
Forks1.3k
Issues402
Updated4mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more