# Prompt Master — Zero-Waste AI Prompt Generator Skill > Claude Code skill that generates optimized prompts for 30+ AI tools. Auto-detects target tool, applies 5 safe techniques, catches 35 credit-killing patterns. 4.8K+ stars, MIT license. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use Install directly to Claude Code: ```bash mkdir -p ~/.claude/skills git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master ``` Or for Claude.ai (browser): 1. Download the repo as ZIP from GitHub 2. Go to claude.ai → Sidebar → Customize → Skills → Upload a Skill 3. Upload the ZIP file --- ## Intro Prompt Master is a Claude Code skill with 4,800+ GitHub stars that generates optimized prompts for 30+ AI tools — from Claude and ChatGPT to Midjourney and ElevenLabs. It auto-detects your target tool, routes to the correct framework from 12 templates, catches 35 credit-killing patterns (vague verbs, missing audiences, no scope boundaries), and audits token efficiency before delivering the final prompt. The Memory Block system preserves prior decisions across sessions. MIT licensed, free to use. Best for: developers and content creators who waste credits on vague, multi-iteration prompts. Works with: Claude Code, Claude.ai, compatible with any tool via SKILL.md format. --- ## How Prompt Master Works ### 12 Auto-Selected Templates Prompt Master automatically selects the optimal template based on your intent: | Template | Best For | |----------|---------| | RTF | Quick role-based tasks | | CO-STAR | Content creation with audience targeting | | RISEN | Multi-step process instructions | | Chain of Thought | Logic and reasoning tasks | | Few-Shot | Pattern-based generation | | File-Scope | Code file operations | | ReAct + Stop | Agentic workflows | | Visual Descriptor | Image generation (Midjourney, DALL-E) | | Reference Image Editing | Image modification prompts | | ComfyUI | Stable Diffusion workflows | | Prompt Decompiler | Reverse-engineer existing prompts | ### 30+ Supported AI Tools **Text/Code**: Claude, ChatGPT, Gemini, o1/o3, Cursor, GitHub Copilot, Windsurf, Codex **Image**: Midjourney, DALL-E, Stable Diffusion, Flux **Video**: Sora, Runway, Kling **Audio**: ElevenLabs, Suno **Automation**: Zapier, Make, n8n **Plus**: Universal Fingerprint for any unlisted tool ### 5 Safe Techniques Applied Automatically 1. **Role Assignment** — Sets the AI's persona and expertise level 2. **Few-Shot Examples** — Provides concrete input/output patterns 3. **XML Structural Tags** — Organizes complex prompts with clear sections 4. **Grounding Anchors** — Prevents hallucination with factual constraints 5. **Chain of Thought** — Adds step-by-step reasoning for logic tasks > Deliberately excludes hallucination-prone methods like Tree of Thought ### 35 Credit-Killing Patterns Detected Prompt Master flags and fixes common waste patterns including: - Vague task verbs ("help me with...", "do something about...") - Undefined audiences - Missing output formats - No scope boundaries - Missing CoT for logic-heavy tasks - Agentic pattern gaps (no stop conditions, no tool instructions) ### Memory Block System Preserves decisions across conversation sessions to prevent: - Contradicting earlier choices - Re-asking resolved questions - Losing context from prior iterations ### FAQ **Q: What is Prompt Master?** A: A Claude Code skill that generates optimized prompts for 30+ AI tools, catching 35 credit-killing patterns and applying 5 safe techniques to maximize prompt quality. **Q: Is Prompt Master free?** A: Yes, fully open source under the MIT license. **Q: How do I install Prompt Master?** A: Run `git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master` — no additional setup needed. --- ## Source & Thanks > Created by [nidhinjs](https://github.com/nidhinjs). Licensed under MIT. > > [prompt-master](https://github.com/nidhinjs/prompt-master) — ⭐ 4,800+ Thanks to nidhinjs for building a practical solution to the prompt quality problem that wastes millions in AI credits daily. --- ## 快速使用 直接安装到 Claude Code: ```bash mkdir -p ~/.claude/skills git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master ``` 或在 claude.ai 浏览器版中上传 ZIP 文件到 Skills。 --- ## 简介 Prompt Master 是一款 Claude Code 技能,GitHub 4,800+ stars,为 30+ AI 工具生成优化提示词。它自动检测目标工具,从 12 个模板中选择最优框架,捕获 35 种浪费 token 的模式(模糊动词、缺少受众、无范围边界),并在交付前审计 token 效率。Memory Block 系统跨会话保持决策一致性。MIT 开源。 --- ## 核心功能 ### 12 个自动选择的模板 RTF(快速任务)、CO-STAR(内容创作)、RISEN(多步骤)、Chain of Thought(逻辑推理)、Few-Shot(模式生成)、Visual Descriptor(图像生成)等 12 种,自动匹配意图。 ### 30+ 支持的 AI 工具 覆盖文本/代码(Claude、ChatGPT、Cursor)、图像(Midjourney、DALL-E)、视频(Sora)、音频(ElevenLabs)、自动化(Zapier、n8n)等。 ### 5 种安全技术 角色分配、Few-Shot 示例、XML 结构化标签、事实锚定、思维链推理。 ### 35 种浪费模式检测 自动标记并修复模糊动词、缺少输出格式、无范围边界等常见问题。 --- ## 来源与感谢 > Created by [nidhinjs](https://github.com/nidhinjs). Licensed under MIT. > > [prompt-master](https://github.com/nidhinjs/prompt-master) — ⭐ 4,800+ --- Source: https://tokrepo.com/en/workflows/0994566a-33aa-11f1-9bc6-00163e2b0d79 Author: Prompt Lab