让AI生成前端代码时优先使用成熟的JS/CSS框架,引用方式优先本地文件并生成下载命令,避免重复手写已有功能的样式与脚本,适用于前端开发提效。
中文版提示词
从现在开始,请遵循以下规则生成前端代码: 1. 优先使用成熟的JS和CSS框架,不要重复造轮子。 2. 引用方式优先本地文件,并生成对应的下载命令(如wget或curl),以便我下载到项目目录。 3. 如果功能框架已覆盖(如动画、按钮、表单样式等),禁止自己手写重复的CSS和JS。 4. 当我请求功能时,请先分析是否已有现成库,有则直接引用并给出用法示例。
英文版提示词
From now on, follow these rules when generating front-end code: 1. Prioritize mature JS and CSS frameworks; do not reinvent the wheel. 2. Prefer local files for references, and generate the corresponding download commands (such as wget or curl) so I can download them to the project directory. 3. If a framework already covers the functionality (e.g., animation, buttons, form styles), do not hand-write duplicate CSS and JS. 4. When I request a feature, first check whether an existing library covers it; if so, reference it directly and provide a usage example. 🛠️ **适用 AI 工具**:Claude、ChatGPT、Cursor、Copilot、DeepSeek、Gemini

◯ 评论 0