nidhinjs/prompt-master
GitHub: nidhinjs/prompt-master
一款 Claude 技能插件,能针对各类 AI 工具自动生成精准、高效的提示词,避免反复调试浪费额度。
Stars: 9357 | Forks: 1105

一款能为任何 AI 工具编写精准 prompt 的 Claude 技能。零 token 或额度浪费。完整的上下文和记忆保留。无需为了本该在第一次尝试时就得到的答案而反复重新 prompt。 **适用于:** Claude、ChatGPT、Gemini、o1/o3、MiniMax、Cursor、Claude Code、GitHub Copilot、Windsurf、Bolt、v0、Lovable、Devin、Perplexity、Midjourney、DALL-E、Stable Diffusion、ComfyUI、Sora、Runway、ElevenLabs、Zapier、Make,以及任何你能用到的 AI 工具。 ## 🚀 安装说明 ### 推荐 - Claude.ai (浏览器) 1. 以 ZIP 格式下载此代码库 2. 前往 **claude.ai → 侧边栏 → 自定义 → 技能 → 上传技能** ### 或者直接克隆到 Claude Code skills 目录中(不建议) ``` mkdir -p ~/.claude/skills git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master ``` ## 🔥 解决的问题 每个 AI 用户都在以同样的方式浪费额度: 这浪费了 3 次 API 调用。乘以每天 50 个 prompt。那就是实实在在的金钱和时间损失。 ### 核心洞察 大多数“prompt 生成器”会让 prompt 变得更长。而这项技能会让它们更犀利。 ## 🎯 用法 在 Claude 中,你可以自然地调用该技能: ``` Write me a prompt for Cursor to refactor my auth module ``` ``` I need a prompt for Claude Code to build a REST API — ask me what you need to know ``` ``` Here's a bad prompt I wrote for GPT-4o, fix it: [paste prompt] ``` ``` Generate a Midjourney prompt for a cyberpunk city at night ``` ``` I have a reference image — help me write a prompt to edit just the head angle ``` ``` Break this prompt down and adapt it for Stable Diffusion ``` 或者显式调用它: ``` /prompt-master I want to ask Claude Code to build a todo app with React and Supabase ``` ## 工作原理 Prompt Master 会对每个请求运行结构化的 pipeline: 1. **检测目标工具** — 弄清 prompt 是针对哪个 AI 系统的,并静默路由到正确的方法 2. **提取 9 个维度的意图** — 任务、输入、输出、约束、上下文、受众、记忆、成功标准、示例 3. **提出有针对性的澄清问题** — 如果缺少关键信息,最多提问 3 个问题,绝不超过 4. **路由到正确的框架** — 自动选择并应用正确的 prompt 架构,绝不向用户展示 5. **仅应用安全的技术** — 根据需要分配角色、few-shot 示例、XML 结构、基础锚点和记忆块 6. **运行 token 效率审计** — 剔除每一个不会改变输出的单词 7. **交付 prompt** — 提供一个干净的纯文本复制块,并附带一行策略说明 ## 完整示例 #1:为图像生成 prompt ### 用户输入 ``` Write me a midjourney prompt for a realistic samurai standing in the rain at night ``` ### 生成的 Prompt ``` lone samurai standing in heavy rain at night, traditional armor, neon reflections on wet cobblestone street, cinematic lighting, dramatic shadows, fog, ultra detailed, photorealistic, shallow depth of field --ar 16:9 --v 6 --style raw negative: blurry, low quality, watermark, cartoon, anime, extra limbs ``` **🎯 目标:** Midjourney · **⚡ 框架:** 视觉描述符 · **💰 Tokens:** 轻量 (~60) · **💡 策略:** 使用逗号分隔的描述符替代长句,尽早锚定光照和氛围,锁定宽高比和版本,使用负面 prompt 防止风格偏移。 ## 完整示例 #2:为代码编写生成 prompt ### 用户输入 ``` Build a claude code prompt for a landing page for a business dashboard that looks and feels exactly like notion - smooth animations, clean ui ``` ### 生成的 Prompt ``` Objective: Build a fully detailed, production-quality static landing page for a business dashboard product. Design must match Notion's exact aesthetic — clean, minimal, typographic, with smooth animations throughout. Stack: Single HTML file with embedded CSS and vanilla JS. No frameworks. No external dependencies except Google Fonts (Inter). Design Spec — match these exactly: - Background: #ffffff - Primary text: #1a1a1a - Secondary text: #6b7280 - Border color: #e5e7eb - Accent: #000000 - Font: Inter, weights 400 / 500 / 600 / 700 - Base spacing unit: 8px - Border radius: 6px on cards, 4px on buttons - Box shadows: 0 1px 3px rgba(0,0,0,0.08) only — no dramatic shadows - Buttons: black fill, white text, no border radius above 6px Sections to build in order: 1. Navbar — logo left, nav links center, "Get started free" CTA right. Sticky on scroll, adds subtle border-bottom on scroll with JS. 2. Hero — large left-aligned heading (max 3 lines), subtext, two CTAs (primary black + secondary outlined), hero screenshot mockup placeholder (gray rounded card, 16:9 ratio). 3. Logos bar — "Trusted by teams at..." with 5 placeholder company names in muted gray, centered. 4. Features — 3-column grid. Each card: icon (use emoji), bold title, 2-line description. Hover state: border darkens to #d1d5db, translateY(-2px), transition 200ms ease. 5. How it works — alternating left/right layout, 3 steps. Number badge, heading, description, placeholder screenshot card. 6. Pricing — 2 tiers side by side. Free tier: outlined card. Pro tier: black background, white text, "Most popular" badge. List 4 features each with checkmarks. 7. CTA banner — full-width dark section, centered heading, subtext, single CTA button. 8. Footer — 4-column links, copyright line, minimal. Animations — implement all of these: - Fade-in + translateY(20px) to translateY(0) on scroll for every section, using IntersectionObserver. Threshold 0.15. Duration 500ms ease-out. - Staggered animation on feature cards: 100ms delay between each card. - Navbar CTA button: background transitions from black to #333 on hover, 200ms ease. - Hero CTA primary: same hover transition. Secondary: background goes from transparent to #f3f4f6 on hover. - Smooth scroll on all anchor links. - Navbar border-bottom fades in on scroll past 60px using JS scroll event. Constraints: - Single file only — all CSS and JS embedded, no external files - No dependencies except Google Fonts via CDN link tag - All placeholder images replaced with styled gray div elements - Must be pixel-perfect at 375px mobile and 1440px desktop - No CSS frameworks, no utility classes from external sources Done When: - All 8 sections render correctly at both breakpoints - All animations trigger on scroll without layout shift - Navbar sticks and border appears on scroll - Hover states work on all interactive elements - Opens in browser with zero console errors ``` **🎯 目标:** Claude Code · **💰 Tokens:** 中等 (~380) · **💡 策略:** 将每一个模糊的 Notion 美学提示转化为精确的十六进制值和像素规格 —— Claude Code 绝不能猜错。动画需附带确切的执行时间、方法和触发条件,无需额外解释。 ## 🤝 兼容任何 AI 工具 Prompt Master 包含针对 20 多种工具的专属配置。对于列表中没有的任何工具,它会使用**通用指纹 (Universal Fingerprint)**:通过 4 个问题,就能为它从未见过的任何 AI 系统编写高质量的 prompt。
| 工具 | 类别 | Prompt Master 修复的问题 |
|------|----------|--------------------------|
| **Claude** | 推理 LLM | 移除冗余,添加 XML 结构,指定长度 |
| **ChatGPT / GPT-5.x** | 推理 LLM | 输出契约,冗长控制,完成标准 |
| **Gemini 2.x** | 推理 LLM | 基础锚点,引用规则,格式锁定 |
| **o3 / o4-mini** | 思考 LLM | 仅使用简短的纯指令 —— 绝不添加 CoT(它们在内部思考) |
| **Ollama** | 本地 LLM | 询问当前加载了哪个模型,为 Modelfile 包含系统 prompt |
| **Qwen 2.5 / Qwen3** | 开源权重 LLM | Chat 模板格式,思考与非思考模式检测 |
| **本地模型 (Llama, Mistral)** | 开源权重 LLM | 更短的 prompt,更简单的结构,避免复杂的嵌套 |
| **DeepSeek-R1** | 推理 LLM | 简短纯净的指令,剔除 CoT,必要时抑制思考输出 |
| **MiniMax (M3 / M2.7)** | 推理 LLM | Temperature 钳位,思考标签控制,结构化输出优化 |
| **Claude Code** | Agentic AI | 停止条件,文件范围,检查点输出 |
| **Cursor / Windsurf** | IDE AI | 文件路径,函数名,禁止触碰列表,顺序 prompt 指导 |
| **Cline (原 Claude Dev)** | Agentic IDE | 文件范围,批准门控,停止条件,任务分解 |
| **GitHub Copilot** | 自动补全 AI | 将确切的函数契约作为 docstring |
| **Antigravity** | Agentic IDE | 基于任务的 prompt,Artifact 验证,自主级别 |
| **Bolt / v0 / Lovable** | 全栈生成器 | 技术栈规格,版本,不需要脚手架的部分 |
| **Figma Make** | 全栈生成器 | 组件名称引用,frame 到代码的范围 |
| **Google Stitch** | 全栈生成器 | 接口目标重于实现,Material Design 3 规格 |
| **Devin / SWE-agent** | 自主 agent | 起始状态,目标状态,停止条件 |
| **Manus** | 自主 agent | 任务结果导向,权限范围,记忆锚点 |
| **OpenAI Computer Use** | 计算机使用 agent | 屏幕状态,允许的应用,在执行不可逆操作前停止 |
| **Perplexity Computer** | 计算机使用 agent | Artifact 优先的 prompt,限定权限,验证步骤 |
| **OpenClaw** | 计算机使用 agent | 对话精准度,持久化记忆,安全约束 |
| **Perplexity / SearchGPT** | 搜索 AI | 模式规格:搜索 vs 分析 vs 比较 |
| **Midjourney** | 图像 AI | 逗号分隔的描述符,参数,负面 prompt |
| **DALL-E 3** | 图像 AI | 散文式描述,排除文本 —— 编辑与生成检测 |
| **Stable Diffusion** | 图像 AI | 权重语法 `(word:1.3)`,CFG guidance,强制负面 prompt |
| **SeeDream** | 图像 AI | 艺术风格优先,氛围和情绪描述符,负面 prompt |
| **ComfyUI** | 图像 AI | 正向/负向节点拆分,特定于 checkpoint 的语法 |
| **Meshy / Tripo / Rodin** | 3D AI | 风格 + 导出格式 + 多边形预算 + 绑定要求 |
| **BlenderGPT** | 3D AI | Python 脚本输出,Blender 版本,场景上下文 |
| **Unity AI** | 3D / 游戏 AI | 游戏类型,平台目标,机制描述优于代码 |
| **Sora / Runway** | 视频 AI | 镜头运动,时长,剪辑风格 |
| **LTX / Dream Machine / Kling** | 视频 AI | 电影语言,运动强度,风格参考 |
| **ElevenLabs** | 语音 AI | 情感,节奏,重音,语速 |
| **Zapier / Make / n8n** | 工作流自动化 | 触发器应用 + 事件,操作应用 + 字段映射 |
## 📐 12 个 Prompt 模板(自动选择)
Prompt Master 会自动为每个任务选择正确的架构并静默路由 —— 你永远看不到框架名称,只能看到 prompt。
| 模板 | 最适合的场景 |
|----------|----------|
| **RTF** (Role, Task, Format) | 快速的单步任务 |
| **CO-STAR** (Context, Objective, Style, Tone, Audience, Response) | 专业文档、报告、商务写作 |
| **RISEN** (Role, Instructions, Steps, End Goal, Narrowing) | 复杂的多步骤项目 |
| **CRISPE** (Capacity, Role, Insight, Statement, Personality, Experiment) | 创意工作、品牌基调、迭代内容 |
| **Chain of Thought** | 数学、逻辑、调试、多步分析 |
| **Few-Shot** | 一致的结构化输出,模式复制 |
| **File-Scope Template** | Cursor, Windsurf, Copilot — 任何代码编辑 AI |
| **ReAct + Stop Conditions** | Claude Code, Devin, AutoGPT — 任何自主 agent |
| **Visual Descriptor** | Midjourney, DALL-E, Stable Diffusion, Sora — 生成 |
| **Reference Image Editing** | 编辑现有图像 — 自动检测编辑与生成 |
| **ComfyUI** | 基于节点的图像工作流 — 按 checkpoint 拆分正向/负向 |
| **Prompt Decompiler** | 分解、适配、简化或拆分现有的 prompt |
## 🛡️ 5 项安全技术,按需应用
Prompt Master 仅使用具有可靠、边界清晰效果的技术。已知会产生幻觉或不可预测输出的方法(Tree of Thought, Graph of Thought, Universal Self-Consistency, prompt chaining)已被明确排除在外。
| 技术 | 作用 |
|-----------|-------------|
| **Role Assignment** | 分配特定的专家身份,以校准深度和词汇量 |
| **Few-Shot Examples** | 当格式的一致性比指令更重要时,添加 2-5 个示例 |
| **XML Structural Tags** | 为能够可靠解析它的基于 Claude 的工具使用 XML 封装各部分 |
| **Grounding Anchors** | 为事实和引用任务添加防幻觉规则 |
| **Chain of Thought** | 强制逻辑任务进行逐步推理 —— 绝不应用于 o1/o3 |
## 🚫 检测到 35 种消耗额度的模式(附修改前后示例)
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 1 | **模糊的任务动词** | "help me with my code" | "Refactor `getUserData()` to use async/await and handle null returns" |
| 2 | **单个 prompt 包含两项任务** | "explain AND rewrite this function" | 拆分:先解释,后重写 |
| 3 | **缺乏成功标准** | "make it better" | "Done when function passes existing unit tests and handles null input" |
| 4 | **过度宽容的 agent** | "do whatever it takes" | 明确列出允许和禁止的操作 |
| 5 | **情绪化的任务描述** | "it's totally broken, fix everything" | "Throws uncaught TypeError on line 43 when `user` is null" |
| 6 | **试图构建所有内容** | "build my entire app" | 拆分为 Prompt 1 (脚手架)、Prompt 2 (功能)、Prompt 3 (完善) |
| 7 | **隐式引用** | "now add the other thing we discussed" | 始终重申完整任务,绝不要引用 "the thing we discussed" |
### 上下文模式
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 8 | **默认具备前置知识** | "continue where we left off" | 包含记录了所有先前决定的 Memory Block |
| 9 | **缺乏项目上下文** | "write a cover letter" | "PM role at B2B fintech, 2yr SWE experience, shipped 3 features as tech lead" |
| 10 | **遗忘技术栈** | 新 prompt 与先前的技术选择矛盾 | 始终包含 Memory Block |
| 11 | **引发幻觉** | "what do experts say about X?" | "Cite only sources you are certain of. If uncertain, say so." |
| 12 | **未定义受众** | "write something for users" | "Non-technical B2B buyers, no coding, decision-maker level" |
| 13 | **未提及先前的失败** | (空白) | "I already tried X and it failed because Y. Do not suggest X." |
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 14 | **缺少输出格式** | "explain this concept" | "3 bullet points, each under 20 words, one-sentence summary at top" |
| 15 | **隐式长度** | "write a summary" | "Write a summary in exactly 3 sentences" |
| 16 | **没有分配角色** | (空白) | "You are a senior backend engineer specializing in Node.js and PostgreSQL" |
| 17 | **模糊的美学形容词** | "make it look professional" | "Monochrome palette, 16px base font, 24px line height, no decorative elements" |
| 18 | **无负面 prompt (图像 AI)** | "a portrait of a woman" | 添加: "no watermark, no blur, no extra fingers, no distortion, no text" |
| 19 | **用于 Midjourney 的散文式 prompt** | 完整的描述性句子 | "subject, style, mood, lighting, --ar 16:9 --v 6" |
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 20 | **没有范围边界** | "fix my app" | "Fix only login form validation in `src/auth.js`. Touch nothing else." |
| 21 | **没有技术栈约束** | "build a React component" | "React 18, TypeScript strict, no external libraries, Tailwind only" |
| 22 | **agent 没有停止条件** | "build the whole feature" | 明确的停止条件 + 每步后的检查点 |
| 23 | **IDE AI 没有文件路径** | "update the login function" | "Update `handleLogin()` in `src/pages/Login.tsx` only" |
| 24 | **工具使用了错误的模板** | GPT 风格的散文式描述用在 Cursor 中 | 适配包含路径和范围的 File-Scope 模板 |
| 25 | **粘贴整个代码库** | 每次 prompt 都附上整个仓库的上下文 | 仅将范围限定在相关的函数和文件中 |
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 26 | **逻辑任务没有 CoT** | "which approach is better?" | "Think through both approaches step by step before recommending" |
| 27 | **给推理模型添加 CoT** | 向 o1/o3 发送 "think step by step" | 移除,推理模型在内部思考,CoT 指令会降低输出质量 |
| 28 | **复杂输出缺乏自我检查** | (无) | "Before finishing, verify output against the constraints above" |
| 29 | **期望跨会话记忆** | "you already know my project" | 始终重新提供 Memory Block |
| 30 | **与先前的决定冲突** | 新 prompt 忽略了早先的架构 | 包含所有既定事实的 Memory Block |
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 31 | **没有起始状态** | "build me a REST API" | "Empty Node.js project, Express installed, `src/app.js` exists" |
| 32 | **没有目标状态** | "add authentication" | "`/src/middleware/auth.js` with JWT verify. `POST /login` and `POST /register` in `/src/routes/auth.js`" |
| 33 | **沉默的 agent** | 没有进度输出 | "After each step output: ✅ [what was completed]" |
| 34 | **未锁定的文件系统** | 没有文件限制 | "Only edit files inside `src/`. Do not touch `package.json`, `.env`, or any config file." |
| 35 | **缺乏人工审查触发器** | Agent 决定一切 | "Stop and ask before: deleting any file, adding any dependency, or touching the database schema" |
## 🧠 记忆块 (Memory Block) 系统
当你的对话具有历史记录时,Prompt Master 会提取先前的决定,并在开头添加一个 Memory Block,这样 AI 就永远不会与之前的工作相矛盾:
```
## Memory (从 Previous Context 中 Carry Forward)
- Stack: React 18 + TypeScript + Supabase
- Auth uses JWT stored in httpOnly cookies, not localStorage
- Component naming convention: PascalCase, no default exports
- Design system: Tailwind only, no custom CSS files
- Architecture: no Redux, context API only
```
这是针对长会话最有效的修复手段。大多数被浪费的重复 prompt 都是因为 AI 忘记了你已经决定的内容而导致的。
## ℹ️ 版本历史
- **1.7.0** — Opus 4.8 兼容性。使 Claude 4.x 路由具备版本意识:通用建议覆盖 4.6/4.7/4.8,添加了 Opus 4.8(当前默认)配置文件,保留了 Opus 4.7 标签。解除了对努力程度说明的硬编码(现由测试框架管理)。模板 M 和模式 36 覆盖了 4.7 和 4.8。修复了 patterns.md 中多余的片段。
- **1.6.0** — Opus 4.7 更新。添加了模板 M (Opus 4.7 Task Brief)。更新了 Claude 和 Claude Code 路由,以支持字面意思、自适应思考、xhigh 努力程度和会话清理。添加了模式 36–37。
- **1.5.0** — 添加了更多工具路由。新增了 Agentic AI 和 3D 模型 AI 路由。将描述固定为 189 个字符。从输出中移除了 token 估算。添加了指令层和文案占位符
- **1.4.0** — 添加了参考图像编辑检测、ComfyUI 支持、Prompt Decompiler 模式。修复了触发描述,使其能够在 Claude Code 中正确调用。在 references 文件夹中添加了 3 个新模板
- **1.3.0** — 围绕 PAC2026 位置结构 (30/55/15) 进行重构。静默路由取代了面向用户的框架选择。引入了 references 文件夹
- **1.2.0** — 为注意力架构进行了重构。移除了容易产生幻觉的技术(ToT, GoT, USC, prompt chaining)。模板和模式已移至 references 文件夹
- **1.1.0** — 扩展了工具覆盖范围,添加了记忆块系统、35 种消耗额度的模式
- **1.0.0** — 初始发布
## 📄 许可证
MIT:详情请参阅 [许可证](LICENSE)。
## ⭐ Star 历史
[](https://star-history.com/#nidhinjs/claude-skills&Date)
一款能为任何 AI 工具编写精准 prompt 的 Claude 技能。零 token 或额度浪费。完整的上下文和记忆保留。无需为了本该在第一次尝试时就得到的答案而反复重新 prompt。 **适用于:** Claude、ChatGPT、Gemini、o1/o3、MiniMax、Cursor、Claude Code、GitHub Copilot、Windsurf、Bolt、v0、Lovable、Devin、Perplexity、Midjourney、DALL-E、Stable Diffusion、ComfyUI、Sora、Runway、ElevenLabs、Zapier、Make,以及任何你能用到的 AI 工具。 ## 🚀 安装说明 ### 推荐 - Claude.ai (浏览器) 1. 以 ZIP 格式下载此代码库 2. 前往 **claude.ai → 侧边栏 → 自定义 → 技能 → 上传技能** ### 或者直接克隆到 Claude Code skills 目录中(不建议) ``` mkdir -p ~/.claude/skills git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master ``` ## 🔥 解决的问题 每个 AI 用户都在以同样的方式浪费额度: 这浪费了 3 次 API 调用。乘以每天 50 个 prompt。那就是实实在在的金钱和时间损失。 ### 核心洞察 大多数“prompt 生成器”会让 prompt 变得更长。而这项技能会让它们更犀利。 ## 🎯 用法 在 Claude 中,你可以自然地调用该技能: ``` Write me a prompt for Cursor to refactor my auth module ``` ``` I need a prompt for Claude Code to build a REST API — ask me what you need to know ``` ``` Here's a bad prompt I wrote for GPT-4o, fix it: [paste prompt] ``` ``` Generate a Midjourney prompt for a cyberpunk city at night ``` ``` I have a reference image — help me write a prompt to edit just the head angle ``` ``` Break this prompt down and adapt it for Stable Diffusion ``` 或者显式调用它: ``` /prompt-master I want to ask Claude Code to build a todo app with React and Supabase ``` ## 工作原理 Prompt Master 会对每个请求运行结构化的 pipeline: 1. **检测目标工具** — 弄清 prompt 是针对哪个 AI 系统的,并静默路由到正确的方法 2. **提取 9 个维度的意图** — 任务、输入、输出、约束、上下文、受众、记忆、成功标准、示例 3. **提出有针对性的澄清问题** — 如果缺少关键信息,最多提问 3 个问题,绝不超过 4. **路由到正确的框架** — 自动选择并应用正确的 prompt 架构,绝不向用户展示 5. **仅应用安全的技术** — 根据需要分配角色、few-shot 示例、XML 结构、基础锚点和记忆块 6. **运行 token 效率审计** — 剔除每一个不会改变输出的单词 7. **交付 prompt** — 提供一个干净的纯文本复制块,并附带一行策略说明 ## 完整示例 #1:为图像生成 prompt ### 用户输入 ``` Write me a midjourney prompt for a realistic samurai standing in the rain at night ``` ### 生成的 Prompt ``` lone samurai standing in heavy rain at night, traditional armor, neon reflections on wet cobblestone street, cinematic lighting, dramatic shadows, fog, ultra detailed, photorealistic, shallow depth of field --ar 16:9 --v 6 --style raw negative: blurry, low quality, watermark, cartoon, anime, extra limbs ``` **🎯 目标:** Midjourney · **⚡ 框架:** 视觉描述符 · **💰 Tokens:** 轻量 (~60) · **💡 策略:** 使用逗号分隔的描述符替代长句,尽早锚定光照和氛围,锁定宽高比和版本,使用负面 prompt 防止风格偏移。 ## 完整示例 #2:为代码编写生成 prompt ### 用户输入 ``` Build a claude code prompt for a landing page for a business dashboard that looks and feels exactly like notion - smooth animations, clean ui ``` ### 生成的 Prompt ``` Objective: Build a fully detailed, production-quality static landing page for a business dashboard product. Design must match Notion's exact aesthetic — clean, minimal, typographic, with smooth animations throughout. Stack: Single HTML file with embedded CSS and vanilla JS. No frameworks. No external dependencies except Google Fonts (Inter). Design Spec — match these exactly: - Background: #ffffff - Primary text: #1a1a1a - Secondary text: #6b7280 - Border color: #e5e7eb - Accent: #000000 - Font: Inter, weights 400 / 500 / 600 / 700 - Base spacing unit: 8px - Border radius: 6px on cards, 4px on buttons - Box shadows: 0 1px 3px rgba(0,0,0,0.08) only — no dramatic shadows - Buttons: black fill, white text, no border radius above 6px Sections to build in order: 1. Navbar — logo left, nav links center, "Get started free" CTA right. Sticky on scroll, adds subtle border-bottom on scroll with JS. 2. Hero — large left-aligned heading (max 3 lines), subtext, two CTAs (primary black + secondary outlined), hero screenshot mockup placeholder (gray rounded card, 16:9 ratio). 3. Logos bar — "Trusted by teams at..." with 5 placeholder company names in muted gray, centered. 4. Features — 3-column grid. Each card: icon (use emoji), bold title, 2-line description. Hover state: border darkens to #d1d5db, translateY(-2px), transition 200ms ease. 5. How it works — alternating left/right layout, 3 steps. Number badge, heading, description, placeholder screenshot card. 6. Pricing — 2 tiers side by side. Free tier: outlined card. Pro tier: black background, white text, "Most popular" badge. List 4 features each with checkmarks. 7. CTA banner — full-width dark section, centered heading, subtext, single CTA button. 8. Footer — 4-column links, copyright line, minimal. Animations — implement all of these: - Fade-in + translateY(20px) to translateY(0) on scroll for every section, using IntersectionObserver. Threshold 0.15. Duration 500ms ease-out. - Staggered animation on feature cards: 100ms delay between each card. - Navbar CTA button: background transitions from black to #333 on hover, 200ms ease. - Hero CTA primary: same hover transition. Secondary: background goes from transparent to #f3f4f6 on hover. - Smooth scroll on all anchor links. - Navbar border-bottom fades in on scroll past 60px using JS scroll event. Constraints: - Single file only — all CSS and JS embedded, no external files - No dependencies except Google Fonts via CDN link tag - All placeholder images replaced with styled gray div elements - Must be pixel-perfect at 375px mobile and 1440px desktop - No CSS frameworks, no utility classes from external sources Done When: - All 8 sections render correctly at both breakpoints - All animations trigger on scroll without layout shift - Navbar sticks and border appears on scroll - Hover states work on all interactive elements - Opens in browser with zero console errors ``` **🎯 目标:** Claude Code · **💰 Tokens:** 中等 (~380) · **💡 策略:** 将每一个模糊的 Notion 美学提示转化为精确的十六进制值和像素规格 —— Claude Code 绝不能猜错。动画需附带确切的执行时间、方法和触发条件,无需额外解释。 ## 🤝 兼容任何 AI 工具 Prompt Master 包含针对 20 多种工具的专属配置。对于列表中没有的任何工具,它会使用**通用指纹 (Universal Fingerprint)**:通过 4 个问题,就能为它从未见过的任何 AI 系统编写高质量的 prompt。
点击查看全部 30 多种工具配置
| 工具 | 类别 | Prompt Master 修复的问题 |
|------|----------|--------------------------|
| **Claude** | 推理 LLM | 移除冗余,添加 XML 结构,指定长度 |
| **ChatGPT / GPT-5.x** | 推理 LLM | 输出契约,冗长控制,完成标准 |
| **Gemini 2.x** | 推理 LLM | 基础锚点,引用规则,格式锁定 |
| **o3 / o4-mini** | 思考 LLM | 仅使用简短的纯指令 —— 绝不添加 CoT(它们在内部思考) |
| **Ollama** | 本地 LLM | 询问当前加载了哪个模型,为 Modelfile 包含系统 prompt |
| **Qwen 2.5 / Qwen3** | 开源权重 LLM | Chat 模板格式,思考与非思考模式检测 |
| **本地模型 (Llama, Mistral)** | 开源权重 LLM | 更短的 prompt,更简单的结构,避免复杂的嵌套 |
| **DeepSeek-R1** | 推理 LLM | 简短纯净的指令,剔除 CoT,必要时抑制思考输出 |
| **MiniMax (M3 / M2.7)** | 推理 LLM | Temperature 钳位,思考标签控制,结构化输出优化 |
| **Claude Code** | Agentic AI | 停止条件,文件范围,检查点输出 |
| **Cursor / Windsurf** | IDE AI | 文件路径,函数名,禁止触碰列表,顺序 prompt 指导 |
| **Cline (原 Claude Dev)** | Agentic IDE | 文件范围,批准门控,停止条件,任务分解 |
| **GitHub Copilot** | 自动补全 AI | 将确切的函数契约作为 docstring |
| **Antigravity** | Agentic IDE | 基于任务的 prompt,Artifact 验证,自主级别 |
| **Bolt / v0 / Lovable** | 全栈生成器 | 技术栈规格,版本,不需要脚手架的部分 |
| **Figma Make** | 全栈生成器 | 组件名称引用,frame 到代码的范围 |
| **Google Stitch** | 全栈生成器 | 接口目标重于实现,Material Design 3 规格 |
| **Devin / SWE-agent** | 自主 agent | 起始状态,目标状态,停止条件 |
| **Manus** | 自主 agent | 任务结果导向,权限范围,记忆锚点 |
| **OpenAI Computer Use** | 计算机使用 agent | 屏幕状态,允许的应用,在执行不可逆操作前停止 |
| **Perplexity Computer** | 计算机使用 agent | Artifact 优先的 prompt,限定权限,验证步骤 |
| **OpenClaw** | 计算机使用 agent | 对话精准度,持久化记忆,安全约束 |
| **Perplexity / SearchGPT** | 搜索 AI | 模式规格:搜索 vs 分析 vs 比较 |
| **Midjourney** | 图像 AI | 逗号分隔的描述符,参数,负面 prompt |
| **DALL-E 3** | 图像 AI | 散文式描述,排除文本 —— 编辑与生成检测 |
| **Stable Diffusion** | 图像 AI | 权重语法 `(word:1.3)`,CFG guidance,强制负面 prompt |
| **SeeDream** | 图像 AI | 艺术风格优先,氛围和情绪描述符,负面 prompt |
| **ComfyUI** | 图像 AI | 正向/负向节点拆分,特定于 checkpoint 的语法 |
| **Meshy / Tripo / Rodin** | 3D AI | 风格 + 导出格式 + 多边形预算 + 绑定要求 |
| **BlenderGPT** | 3D AI | Python 脚本输出,Blender 版本,场景上下文 |
| **Unity AI** | 3D / 游戏 AI | 游戏类型,平台目标,机制描述优于代码 |
| **Sora / Runway** | 视频 AI | 镜头运动,时长,剪辑风格 |
| **LTX / Dream Machine / Kling** | 视频 AI | 电影语言,运动强度,风格参考 |
| **ElevenLabs** | 语音 AI | 情感,节奏,重音,语速 |
| **Zapier / Make / n8n** | 工作流自动化 | 触发器应用 + 事件,操作应用 + 字段映射 |
点击查看全部 12 个模板
| 模板 | 最适合的场景 |
|----------|----------|
| **RTF** (Role, Task, Format) | 快速的单步任务 |
| **CO-STAR** (Context, Objective, Style, Tone, Audience, Response) | 专业文档、报告、商务写作 |
| **RISEN** (Role, Instructions, Steps, End Goal, Narrowing) | 复杂的多步骤项目 |
| **CRISPE** (Capacity, Role, Insight, Statement, Personality, Experiment) | 创意工作、品牌基调、迭代内容 |
| **Chain of Thought** | 数学、逻辑、调试、多步分析 |
| **Few-Shot** | 一致的结构化输出,模式复制 |
| **File-Scope Template** | Cursor, Windsurf, Copilot — 任何代码编辑 AI |
| **ReAct + Stop Conditions** | Claude Code, Devin, AutoGPT — 任何自主 agent |
| **Visual Descriptor** | Midjourney, DALL-E, Stable Diffusion, Sora — 生成 |
| **Reference Image Editing** | 编辑现有图像 — 自动检测编辑与生成 |
| **ComfyUI** | 基于节点的图像工作流 — 按 checkpoint 拆分正向/负向 |
| **Prompt Decompiler** | 分解、适配、简化或拆分现有的 prompt |
任务模式 (7)
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 1 | **模糊的任务动词** | "help me with my code" | "Refactor `getUserData()` to use async/await and handle null returns" |
| 2 | **单个 prompt 包含两项任务** | "explain AND rewrite this function" | 拆分:先解释,后重写 |
| 3 | **缺乏成功标准** | "make it better" | "Done when function passes existing unit tests and handles null input" |
| 4 | **过度宽容的 agent** | "do whatever it takes" | 明确列出允许和禁止的操作 |
| 5 | **情绪化的任务描述** | "it's totally broken, fix everything" | "Throws uncaught TypeError on line 43 when `user` is null" |
| 6 | **试图构建所有内容** | "build my entire app" | 拆分为 Prompt 1 (脚手架)、Prompt 2 (功能)、Prompt 3 (完善) |
| 7 | **隐式引用** | "now add the other thing we discussed" | 始终重申完整任务,绝不要引用 "the thing we discussed" |
上下文模式 (6)
### 上下文模式
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 8 | **默认具备前置知识** | "continue where we left off" | 包含记录了所有先前决定的 Memory Block |
| 9 | **缺乏项目上下文** | "write a cover letter" | "PM role at B2B fintech, 2yr SWE experience, shipped 3 features as tech lead" |
| 10 | **遗忘技术栈** | 新 prompt 与先前的技术选择矛盾 | 始终包含 Memory Block |
| 11 | **引发幻觉** | "what do experts say about X?" | "Cite only sources you are certain of. If uncertain, say so." |
| 12 | **未定义受众** | "write something for users" | "Non-technical B2B buyers, no coding, decision-maker level" |
| 13 | **未提及先前的失败** | (空白) | "I already tried X and it failed because Y. Do not suggest X." |
格式模式 (6)
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 14 | **缺少输出格式** | "explain this concept" | "3 bullet points, each under 20 words, one-sentence summary at top" |
| 15 | **隐式长度** | "write a summary" | "Write a summary in exactly 3 sentences" |
| 16 | **没有分配角色** | (空白) | "You are a senior backend engineer specializing in Node.js and PostgreSQL" |
| 17 | **模糊的美学形容词** | "make it look professional" | "Monochrome palette, 16px base font, 24px line height, no decorative elements" |
| 18 | **无负面 prompt (图像 AI)** | "a portrait of a woman" | 添加: "no watermark, no blur, no extra fingers, no distortion, no text" |
| 19 | **用于 Midjourney 的散文式 prompt** | 完整的描述性句子 | "subject, style, mood, lighting, --ar 16:9 --v 6" |
范围模式 (6)
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 20 | **没有范围边界** | "fix my app" | "Fix only login form validation in `src/auth.js`. Touch nothing else." |
| 21 | **没有技术栈约束** | "build a React component" | "React 18, TypeScript strict, no external libraries, Tailwind only" |
| 22 | **agent 没有停止条件** | "build the whole feature" | 明确的停止条件 + 每步后的检查点 |
| 23 | **IDE AI 没有文件路径** | "update the login function" | "Update `handleLogin()` in `src/pages/Login.tsx` only" |
| 24 | **工具使用了错误的模板** | GPT 风格的散文式描述用在 Cursor 中 | 适配包含路径和范围的 File-Scope 模板 |
| 25 | **粘贴整个代码库** | 每次 prompt 都附上整个仓库的上下文 | 仅将范围限定在相关的函数和文件中 |
推理模式 (5)
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 26 | **逻辑任务没有 CoT** | "which approach is better?" | "Think through both approaches step by step before recommending" |
| 27 | **给推理模型添加 CoT** | 向 o1/o3 发送 "think step by step" | 移除,推理模型在内部思考,CoT 指令会降低输出质量 |
| 28 | **复杂输出缺乏自我检查** | (无) | "Before finishing, verify output against the constraints above" |
| 29 | **期望跨会话记忆** | "you already know my project" | 始终重新提供 Memory Block |
| 30 | **与先前的决定冲突** | 新 prompt 忽略了早先的架构 | 包含所有既定事实的 Memory Block |
Agentic 模式 (5)
| # | 模式 | 修改前 | 修改后 |
|---|---------|--------|-------|
| 31 | **没有起始状态** | "build me a REST API" | "Empty Node.js project, Express installed, `src/app.js` exists" |
| 32 | **没有目标状态** | "add authentication" | "`/src/middleware/auth.js` with JWT verify. `POST /login` and `POST /register` in `/src/routes/auth.js`" |
| 33 | **沉默的 agent** | 没有进度输出 | "After each step output: ✅ [what was completed]" |
| 34 | **未锁定的文件系统** | 没有文件限制 | "Only edit files inside `src/`. Do not touch `package.json`, `.env`, or any config file." |
| 35 | **缺乏人工审查触发器** | Agent 决定一切 | "Stop and ask before: deleting any file, adding any dependency, or touching the database schema" |
标签:AI提示词工程, Claude, CVE检测, DLL 劫持, SOC Prime, 大语言模型, 开发工具, 效率提升, 自动化技能