{
  "markdown": "![](https://i.postimg.cc/kG03s7tk/prompt-banner.png)\n\n<br/>\n\nA Claude skill that writes the accurate prompts for any AI tool. Zero tokens or credits wasted. Full context and memory retention. No re-prompting your way to an answer you should have gotten on attempt one.\n\n**Works with:** Claude, ChatGPT, Codex, Grok, 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, and any AI tool you throw at it.\n\n---\n\n## 🚀 Installation\n\n### RECOMMENDED - Claude.ai (browser)\n\n1. Download this repo as a ZIP\n2. Go to **claude.ai → Sidebar → Customize → Skills → Upload a Skill**\n\n\n### OR Clone directly into Claude Code skills directory (Not Suggested)\n\n```bash\nmkdir -p ~/.claude/skills\ngit clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master\n```\n\n## 🔥 The Problem This Solves\n\nEvery AI user wastes credits the same way:\n\n> Write vague prompt → get wrong output → re-prompt → get closer → re-prompt again → finally get what you wanted on attempt 4\n\nThat's 3 wasted API calls. Multiply by 50 prompts a day. That's real money and real time gone.\n\n### The key insight\n\n> \"The best prompt is not the longest. It's the one where every word is load-bearing.\"\n\nMost \"prompt generators\" make prompts longer. This skill makes them sharper.\n\n---\n\n## 🎯 Usage\n\nIn Claude, you can invoke the skill naturally:\n\n```\nWrite me a prompt for Cursor to refactor my auth module\n```\n\n```\nI need a prompt for Claude Code to build a REST API — ask me what you need to know\n```\n\n```\nHere's a bad prompt I wrote for GPT-4o, fix it: [paste prompt]\n```\n\n```\nGenerate a Midjourney prompt for a cyberpunk city at night\n```\n\n```\nI have a reference image — help me write a prompt to edit just the head angle\n```\n\n```\nBreak this prompt down and adapt it for Stable Diffusion\n```\n\nOr explicitly invoke it:\n\n```\n/prompt-master\n\nI want to ask Claude Code to build a todo app with React and Supabase\n```\n\n---\n\n## How It Works\n\nPrompt Master runs a structured pipeline on every request:\n\n1. **Detects the target tool** — figures out which AI system the prompt is for and routes silently to the right approach\n2. **Extracts 9 dimensions of intent** — task, input, output, constraints, context, audience, memory, success criteria, examples\n3. **Asks targeted clarifying questions** — max 3 questions if critical info is missing, never more\n4. **Routes to the right framework** — picks and applies the correct prompt architecture automatically, never shown to the user\n5. **Applies safe techniques only** — role assignment, few-shot examples, XML structure, grounding anchors, memory block as needed\n6. **Checks model recency** — verifies exact models and controls against official provider docs when the request depends on \"latest\"\n7. **Runs a token efficiency audit** — strips every word that doesn't change the output\n8. **Delivers the prompt** — one clean copyable block with a one-line strategy note\n\n---\n## Full Example #1: Generating Prompts for Images\n\n### User Input\n```\nWrite me a midjourney prompt for a realistic samurai standing in the rain at night\n```\n\n### Generated Prompt\n```\nlone samurai standing in heavy rain at night, traditional armor, \nneon reflections on wet cobblestone street, cinematic lighting, \ndramatic shadows, fog, ultra detailed, photorealistic, \nshallow depth of field --ar 16:9 --v 6 --style raw\n\nnegative: blurry, low quality, watermark, cartoon, anime, extra limbs\n```\n**🎯 Target:** Midjourney · **⚡ Framework:** Visual Descriptor · **💰 Tokens:** Light (~60) · **💡 Strategy:** Comma-separated descriptors over prose, lighting and mood anchored early, aspect ratio and version locked, negative prompt prevents style drift.\n\n---\n## Full Example #2: Generating Prompts for Coding\n\n### User Input\n```\nBuild a claude code prompt for a landing page for a business \ndashboard that looks and feels exactly like notion - smooth animations, \nclean ui\n```\n\n\n### Generated Prompt\n```\nObjective:\nBuild a fully detailed, production-quality static landing page for a \nbusiness dashboard product. Design must match Notion's exact aesthetic — \nclean, minimal, typographic, with smooth animations throughout.\n\nStack:\nSingle HTML file with embedded CSS and vanilla JS. No frameworks. \nNo external dependencies except Google Fonts (Inter).\n\nDesign Spec — match these exactly:\n- Background: #ffffff\n- Primary text: #1a1a1a\n- Secondary text: #6b7280\n- Border color: #e5e7eb\n- Accent: #000000\n- Font: Inter, weights 400 / 500 / 600 / 700\n- Base spacing unit: 8px\n- Border radius: 6px on cards, 4px on buttons\n- Box shadows: 0 1px 3px rgba(0,0,0,0.08) only — no dramatic shadows\n- Buttons: black fill, white text, no border radius above 6px\n\nSections to build in order:\n1. Navbar — logo left, nav links center, \"Get started free\" CTA right. \n   Sticky on scroll, adds subtle border-bottom on scroll with JS.\n2. Hero — large left-aligned heading (max 3 lines), subtext, two CTAs \n   (primary black + secondary outlined), hero screenshot mockup \n   placeholder (gray rounded card, 16:9 ratio).\n3. Logos bar — \"Trusted by teams at...\" with 5 placeholder company names \n   in muted gray, centered.\n4. Features — 3-column grid. Each card: icon (use emoji), bold title, \n   2-line description. Hover state: border darkens to #d1d5db, \n   translateY(-2px), transition 200ms ease.\n5. How it works — alternating left/right layout, 3 steps. Number badge, \n   heading, description, placeholder screenshot card.\n6. Pricing — 2 tiers side by side. Free tier: outlined card. Pro tier: \n   black background, white text, \"Most popular\" badge. List 4 features \n   each with checkmarks.\n7. CTA banner — full-width dark section, centered heading, subtext, \n   single CTA button.\n8. Footer — 4-column links, copyright line, minimal.\n\nAnimations — implement all of these:\n- Fade-in + translateY(20px) to translateY(0) on scroll for every section, \n  using IntersectionObserver. Threshold 0.15. Duration 500ms ease-out.\n- Staggered animation on feature cards: 100ms delay between each card.\n- Navbar CTA button: background transitions from black to #333 on hover, \n  200ms ease.\n- Hero CTA primary: same hover transition. Secondary: background goes from \n  transparent to #f3f4f6 on hover.\n- Smooth scroll on all anchor links.\n- Navbar border-bottom fades in on scroll past 60px using JS scroll event.\n\nConstraints:\n- Single file only — all CSS and JS embedded, no external files\n- No dependencies except Google Fonts via CDN link tag\n- All placeholder images replaced with styled gray div elements\n- Must be pixel-perfect at 375px mobile and 1440px desktop\n- No CSS frameworks, no utility classes from external sources\n\nDone When:\n- All 8 sections render correctly at both breakpoints\n- All animations trigger on scroll without layout shift\n- Navbar sticks and border appears on scroll\n- Hover states work on all interactive elements\n- Opens in browser with zero console errors\n```\n**🎯 Target:** Claude Code · **💰 Tokens:** Medium (~380) · **💡 Strategy:** Every vague Notion aesthetic cue translated into exact hex values and pixel specs — Claude Code cannot guess wrong. Animations defined with exact timing, method, and trigger so there is no interpretation needed.\n\n---\n\n## 🤝 Works With Any AI Tool\n\nPrompt Master includes specific profiles for 20+ tools. For anything not on the list, it uses a **Universal Fingerprint**: 4 questions that let it write a quality prompt for any AI system it has never seen before.\n\n<details>\n<summary><h3> Click to view all 30+ tool profiles </h3></summary>\n\n| Tool | Category | What Prompt Master Fixes |\n|------|----------|--------------------------|\n| **Claude 5 / current Claude** | Reasoning and agentic LLM | Model-aware effort, scope, XML structure, and delegation control |\n| **ChatGPT / GPT-5.6** | Reasoning and agentic LLM | Sol/Terra/Luna routing, lean contracts, autonomy and effort control |\n| **Codex** | Coding agent | File scope, approval boundaries, verification, bounded subagents |\n| **Grok 4.6** | Reasoning and agentic LLM | Search grounding, reasoning effort, tools, caching, and stop conditions |\n| **Gemini 2.x** | Reasoning LLM | Grounding anchors, citation rules, format locks |\n| **o3 / o4-mini** | Thinking LLM | Short clean instructions only — never adds CoT (they think internally) |\n| **Ollama** | Local LLM | Asks which model is loaded, includes system prompt for Modelfile |\n| **Qwen 2.5 / Qwen3** | Open-weight LLM | Chat template format, thinking vs non-thinking mode detection |\n| **Local models (Llama, Mistral)** | Open-weight LLM | Shorter prompts, simpler structure, no complex nesting |\n| **DeepSeek-R1** | Reasoning LLM | Short clean instructions, strips CoT, suppresses thinking output if needed |\n| **MiniMax (M3 / M2.7)** | Reasoning LLM | Temperature clamping, thinking tag control, structured output optimization |\n| **Claude Code** | Agentic AI | Stop conditions, file scope, checkpoint output |\n| **Cursor / Windsurf** | IDE AI | File path, function name, do-not-touch list, sequential prompt guidance |\n| **Cline (formerly Claude Dev)** | Agentic IDE | File scope, approval gates, stop conditions, task breakdown |\n| **GitHub Copilot** | Autocomplete AI | Exact function contract as docstring |\n| **Antigravity** | Agentic IDE | Task-based prompting, Artifact verification, autonomy level |\n| **Bolt / v0 / Lovable** | Full-stack generator | Stack spec, version, what NOT to scaffold |\n| **Figma Make** | Full-stack generator | Component name references, frame-to-code scope |\n| **Google Stitch** | Full-stack generator | Interface goal over implementation, Material Design 3 spec |\n| **Devin / SWE-agent** | Autonomous agent | Starting state, target state, stop conditions |\n| **Manus** | Autonomous agent | Task outcome focus, permission scope, memory anchors |\n| **OpenAI Computer Use** | Computer-use agent | Screen state, allowed apps, stop before irreversible actions |\n| **Perplexity Computer** | Computer-use agent | Artifact-first prompting, scoped permissions, verification steps |\n| **OpenClaw** | Computer-use agent | Conversational precision, persistent memory, security constraints |\n| **Perplexity / SearchGPT** | Search AI | Mode spec: search vs analyze vs compare |\n| **Midjourney** | Image AI | Comma-separated descriptors, parameters, negative prompts |\n| **DALL-E 3** | Image AI | Prose description, text exclusion — edit vs generate detection |\n| **Stable Diffusion** | Image AI | Weight syntax `(word:1.3)`, CFG guidance, mandatory negative prompt |\n| **SeeDream** | Image AI | Art style first, mood and atmosphere descriptors, negative prompt |\n| **ComfyUI** | Image AI | Positive/negative node split, checkpoint-specific syntax |\n| **Meshy / Tripo / Rodin** | 3D AI | Style + export format + polygon budget + rig requirements |\n| **BlenderGPT** | 3D AI | Python script output, Blender version, scene context |\n| **Unity AI** | 3D / Game AI | Game genre, platform target, mechanic description over code |\n| **Sora / Runway** | Video AI | Camera movement, duration, cut style |\n| **LTX / Dream Machine / Kling** | Video AI | Cinematic language, motion intensity, style reference |\n| **ElevenLabs** | Voice AI | Emotion, pacing, emphasis, speech rate |\n| **Zapier / Make / n8n** | Workflow automation | Trigger app + event, action app + field mapping |\n\n</details>\n\n---\n\n## 📐 13 Prompt Templates (Auto-Selected)\n\nPrompt Master picks the right architecture for every task automatically and routes silently — you never see the framework name, just the prompt.\n\n<details>\n<summary><h3> Click to view all 13 templates</h3></summary>\n\n| Template | Best For |\n|----------|----------|\n| **RTF** (Role, Task, Format) | Fast one-shot tasks |\n| **CO-STAR** (Context, Objective, Style, Tone, Audience, Response) | Professional documents, reports, business writing |\n| **RISEN** (Role, Instructions, Steps, End Goal, Narrowing) | Complex multi-step projects |\n| **CRISPE** (Capacity, Role, Insight, Statement, Personality, Experiment) | Creative work, brand voice, iterative content |\n| **Auditable Reasoning** | Checkable math, logic, debugging, and analysis without hidden reasoning requests |\n| **Few-Shot** | Consistent structured output, pattern replication |\n| **File-Scope Template** | Cursor, Windsurf, Copilot — any code editing AI |\n| **ReAct + Stop Conditions** | Claude Code, Devin, AutoGPT — any autonomous agent |\n| **Visual Descriptor** | Midjourney, DALL-E, Stable Diffusion, Sora — generation |\n| **Reference Image Editing** | Editing an existing image — detects edit vs generate automatically |\n| **ComfyUI** | Node-based image workflows — positive/negative split per checkpoint |\n| **Prompt Decompiler** | Breaking down, adapting, simplifying, or splitting existing prompts |\n| **Current Claude Task Brief** | Complex, multi-step, or agentic tasks on current Claude models |\n\n</details>\n\n---\n\n## 🛡️ 5 Safe Techniques, Applied When Needed\n\nPrompt Master only uses techniques with reliable, bounded effects. Methods known to produce hallucinations or unpredictable output (Tree of Thought, Graph of Thought, Universal Self-Consistency, prompt chaining) are explicitly excluded.\n\n| Technique | What It Does |\n|-----------|-------------|\n| **Role Assignment** | Assigns a specific expert identity to calibrate depth and vocabulary |\n| **Few-Shot Examples** | Adds 2-5 examples when format consistency matters more than instructions |\n| **XML Structural Tags** | Wraps sections in XML for Claude-based tools that parse it reliably |\n| **Grounding Anchors** | Adds anti-hallucination rules for factual and citation tasks |\n| **Auditable Reasoning** | Requests conclusions, assumptions, evidence, and verification without hidden reasoning |\n\n---\n\n## 🚫 37 Credit-Killing Patterns Detected (with Before/After Examples)\n\n<details>\n<summary><h3> Task Patterns (7)</h3></summary>\n\n| # | Pattern | Before | After |\n|---|---------|--------|-------|\n| 1 | **Vague task verb** | \"help me with my code\" | \"Refactor `getUserData()` to use async/await and handle null returns\" |\n| 2 | **Two tasks in one prompt** | \"explain AND rewrite this function\" | Split: explain first, rewrite second |\n| 3 | **No success criteria** | \"make it better\" | \"Done when function passes existing unit tests and handles null input\" |\n| 4 | **Over-permissive agent** | \"do whatever it takes\" | Explicit allowed + forbidden actions list |\n| 5 | **Emotional task description** | \"it's totally broken, fix everything\" | \"Throws uncaught TypeError on line 43 when `user` is null\" |\n| 6 | **Build-the-whole-thing** | \"build my entire app\" | Break into Prompt 1 (scaffold), Prompt 2 (feature), Prompt 3 (polish) |\n| 7 | **Implicit reference** | \"now add the other thing we discussed\" | Always restate the full task, never reference \"the thing we discussed\" |\n\n</details>\n\n<details>\n<summary><h3> Context Patterns (6)</h3></summary>\n\n### Context Patterns\n\n| # | Pattern | Before | After |\n|---|---------|--------|-------|\n| 8 | **Assumed prior knowledge** | \"continue where we left off\" | Include Memory Block with all prior decisions |\n| 9 | **No project context** | \"write a cover letter\" | \"PM role at B2B fintech, 2yr SWE experience, shipped 3 features as tech lead\" |\n| 10 | **Forgotten stack** | New prompt contradicts prior tech choice | Always include Memory Block |\n| 11 | **Hallucination invite** | \"what do experts say about X?\" | \"Cite only sources you are certain of. If uncertain, say so.\" |\n| 12 | **Undefined audience** | \"write something for users\" | \"Non-technical B2B buyers, no coding knowledge, decision-maker level\" |\n| 13 | **No mention of prior failures** | (blank) | \"I already tried X and it failed because Y. Do not suggest X.\" |\n\n</details>\n\n\n<details>\n<summary><h3> Format Patterns (6)</h3></summary>\n\n| # | Pattern | Before | After |\n|---|---------|--------|-------|\n| 14 | **Missing output format** | \"explain this concept\" | \"3 bullet points, each under 20 words, one-sentence summary at top\" |\n| 15 | **Implicit length** | \"write a summary\" | \"Write a summary in exactly 3 sentences\" |\n| 16 | **No role assignment** | (blank) | \"You are a senior backend engineer specializing in Node.js and PostgreSQL\" |\n| 17 | **Vague aesthetic adjectives** | \"make it look professional\" | \"Monochrome palette, 16px base font, 24px line height, no decorative elements\" |\n| 18 | **No negative prompts (image AI)** | \"a portrait of a woman\" | Add: \"no watermark, no blur, no extra fingers, no distortion, no text\" |\n| 19 | **Prose prompt for Midjourney** | Full descriptive sentence | \"subject, style, mood, lighting, --ar 16:9 --v 6\" |\n\n</details>\n\n\n<details>\n<summary><h3> Scope Patterns (6)</h3></summary>\n\n| # | Pattern | Before | After |\n|---|---------|--------|-------|\n| 20 | **No scope boundary** | \"fix my app\" | \"Fix only login form validation in `src/auth.js`. Touch nothing else.\" |\n| 21 | **No stack constraints** | \"build a React component\" | \"React 18, TypeScript strict, no external libraries, Tailwind only\" |\n| 22 | **No stop condition for agents** | \"build the whole feature\" | Explicit stop conditions + checkpoint after each step |\n| 23 | **No file path for IDE AI** | \"update the login function\" | \"Update `handleLogin()` in `src/pages/Login.tsx` only\" |\n| 24 | **Wrong template for tool** | GPT-style prose used in Cursor | Adapted to File-Scope Template with path + scope |\n| 25 | **Pasting entire codebase** | Full repo context every prompt | Scoped to relevant function and file only |\n\n</details>\n\n\n<details>\n<summary><h3> Reasoning Patterns (5)</h3></summary>\n\n| # | Pattern | Before | After |\n|---|---------|--------|-------|\n| 26 | **No audit contract for logic task** | \"which approach is better?\" | Request the recommendation, assumptions, criteria, evidence, and checks |\n| 27 | **Requesting hidden reasoning** | \"show your chain of thought\" | Ask for a concise rationale, evidence, and verification instead |\n| 28 | **Expecting inter-session memory** | \"you already know my project\" | Re-provide the Memory Block in every new session |\n| 29 | **Contradicting prior work** | New prompt ignores earlier architecture | Include established decisions in the Memory Block |\n| 30 | **No grounding rule for factual tasks** | \"summarize what experts say about X\" | Require verifiable sources and explicit uncertainty |\n\n</details>\n\n<details>\n<summary><h3> Agentic Patterns (7)</h3></summary>\n\n| # | Pattern | Before | After |\n|---|---------|--------|-------|\n| 31 | **No starting state** | \"build me a REST API\" | \"Empty Node.js project, Express installed, `src/app.js` exists\" |\n| 32 | **No target state** | \"add authentication\" | \"`/src/middleware/auth.js` with JWT verify. `POST /login` and `POST /register` in `/src/routes/auth.js`\" |\n| 33 | **Silent agent** | No progress output | \"After each step output: ✅ [what was completed]\" |\n| 34 | **Unlocked filesystem** | No file restrictions | \"Only edit files inside `src/`. Do not touch `package.json`, `.env`, or any config file.\" |\n| 35 | **No human review trigger** | Agent decides everything | \"Stop and ask before: deleting any file, adding any dependency, or touching the database schema\" |\n| 36 | **Vague first turn for an agentic model** | \"fix the auth bug\" with no scope, files, or criteria | Front-load outcome, context, scope, boundaries, and acceptance criteria |\n| 37 | **Context rot on long sessions** | Repeated corrections leave stale assumptions in context | Start fresh for unrelated work or compact around current decisions and state |\n\n</details>\n\n---\n\n## 🧠 Memory Block System\n\nWhen your conversation has history, Prompt Master pulls out prior decisions and prepends a Memory Block so the AI never contradicts earlier work:\n\n```\n## Memory (Carry Forward from Previous Context)\n- Stack: React 18 + TypeScript + Supabase\n- Auth uses JWT stored in httpOnly cookies, not localStorage\n- Component naming convention: PascalCase, no default exports\n- Design system: Tailwind only, no custom CSS files\n- Architecture: no Redux, context API only\n```\n\nThis is the single biggest fix for long sessions. Most wasted re-prompts come from the AI forgetting what you already decided.\n\n---\n\n## ℹ️ Version History\n\n- **1.8.0** — Current-model refresh. Added Claude Fable 5, Opus 5, Sonnet 5, GPT-5.6 Sol/Terra/Luna, Codex, and Grok 4.6 routing. Replaced hidden chain-of-thought requests with auditable reasoning and generalized the Claude task brief for current adaptive-thinking models.\n- **1.7.0** — Opus 4.8 compatibility. Made Claude 4.x routing version-aware: durable advice generalized across 4.6/4.7/4.8, added Opus 4.8 (current default) profile, kept Opus 4.7 labeled. De-hardcoded the effort-level note (now harness-managed). Template M and pattern 36 cover 4.7 and 4.8. Fixed a stray fragment in patterns.md.\n- **1.6.0** — Opus 4.7 update. Added Template M (Opus 4.7 Task Brief). Updated Claude and Claude Code routing for literalism, adaptive thinking, xhigh effort, and session hygiene. Added patterns 36–37.\n- **1.5.0** — Added more tool routing. New Agentic AI and 3D Model AI routing added. Fixed description to 189 chars. Removed token estimate from output. Added instruction layer and copywriting placeholders\n- **1.4.0** — Added reference image editing detection, ComfyUI support, Prompt Decompiler mode. Fixed trigger description to invoke correctly in Claude Code. 3 new templates added to references folder\n- **1.3.0** — Rebuilt around PAC2026 positional structure (30/55/15). Silent routing replaces user-facing framework selection. References folder introduced\n- **1.2.0** — Restructured for attention architecture. Removed fabrication-prone techniques (ToT, GoT, USC, prompt chaining). Templates and patterns moved to references folder\n- **1.1.0** — Expanded tool coverage, added memory block system, 35 credit killing patterns\n- **1.0.0** — Initial release\n\n---\n\n## 📄 License\n\nMIT: See [LICENSE](LICENSE) for details.\n\n---\n\n## ⭐ Star History\n\n[![Star History Chart](https://star-history.dera.page/svg?repos=nidhinjs/prompt-master&type=Date)](https://star-history.dera.page/#nidhinjs/prompt-master&Date)\n\n---\n",
  "bytes": 22130,
  "sha": "843742c6ae699295ceea326f79727c93a4cbd76f536b5952c3f971a000371e55",
  "repo_slug": "nidhinjs/prompt-master",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_nidhinjs_prompt_master_prompt_master_fb573ae9/readme"
}