A Claude skill that writes the accurate prompts for any AI tool. Zero tokens or credits wasted. Full context and memory retention

A 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.
Works with: 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, and any AI tool you throw at it.
mkdir -p ~/.claude/skills
git clone https://github.com/nidhinjs/prompt-master.git ~/.claude/skills/prompt-master
Every AI user wastes credits the same way:
Write vague prompt â get wrong output â re-prompt â get closer â re-prompt again â finally get what you wanted on attempt 4
Thatâs 3 wasted API calls. Multiply by 50 prompts a day. Thatâs real money and real time gone.
âThe best prompt is not the longest. Itâs the one where every word is load-bearing.â
Most âprompt generatorsâ make prompts longer. This skill makes them sharper.
In Claude, you can invoke the skill naturally:
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
Or explicitly invoke it:
/prompt-master
I want to ask Claude Code to build a todo app with React and Supabase
Prompt Master runs a structured pipeline on every request:
Write me a midjourney prompt for a realistic samurai standing in the rain at night
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
đŻ 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.
Build a claude code prompt for a landing page for a business
dashboard that looks and feels exactly like notion - smooth animations,
clean ui
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
đŻ 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.
Prompt 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.
| Tool | Category | What Prompt Master Fixes |
|---|---|---|
| Claude | Reasoning LLM | Removes padding, adds XML structure, specifies length |
| ChatGPT / GPT-5.x | Reasoning LLM | Output contract, verbosity control, completion criteria |
| Gemini 2.x | Reasoning LLM | Grounding anchors, citation rules, format locks |
| o3 / o4-mini | Thinking LLM | Short clean instructions only â never adds CoT (they think internally) |
| Ollama | Local LLM | Asks which model is loaded, includes system prompt for Modelfile |
| Qwen 2.5 / Qwen3 | Open-weight LLM | Chat template format, thinking vs non-thinking mode detection |
| Local models (Llama, Mistral) | Open-weight LLM | Shorter prompts, simpler structure, no complex nesting |
| DeepSeek-R1 | Reasoning LLM | Short clean instructions, strips CoT, suppresses thinking output if needed |
| MiniMax (M2.7 / M2.5) | Reasoning LLM | Temperature clamping, thinking tag control, structured output optimization |
| Claude Code | Agentic AI | Stop conditions, file scope, checkpoint output |
| Cursor / Windsurf | IDE AI | File path, function name, do-not-touch list, sequential prompt guidance |
| Cline (formerly Claude Dev) | Agentic IDE | File scope, approval gates, stop conditions, task breakdown |
| GitHub Copilot | Autocomplete AI | Exact function contract as docstring |
| Antigravity | Agentic IDE | Task-based prompting, Artifact verification, autonomy level |
| Bolt / v0 / Lovable | Full-stack generator | Stack spec, version, what NOT to scaffold |
| Figma Make | Full-stack generator | Component name references, frame-to-code scope |
| Google Stitch | Full-stack generator | Interface goal over implementation, Material Design 3 spec |
| Devin / SWE-agent | Autonomous agent | Starting state, target state, stop conditions |
| Manus | Autonomous agent | Task outcome focus, permission scope, memory anchors |
| OpenAI Computer Use | Computer-use agent | Screen state, allowed apps, stop before irreversible actions |
| Perplexity Computer | Computer-use agent | Artifact-first prompting, scoped permissions, verification steps |
| OpenClaw | Computer-use agent | Conversational precision, persistent memory, security constraints |
| Perplexity / SearchGPT | Search AI | Mode spec: search vs analyze vs compare |
| Midjourney | Image AI | Comma-separated descriptors, parameters, negative prompts |
| DALL-E 3 | Image AI | Prose description, text exclusion â edit vs generate detection |
| Stable Diffusion | Image AI | Weight syntax (word:1.3), CFG guidance, mandatory negative prompt |
| SeeDream | Image AI | Art style first, mood and atmosphere descriptors, negative prompt |
| ComfyUI | Image AI | Positive/negative node split, checkpoint-specific syntax |
| Meshy / Tripo / Rodin | 3D AI | Style + export format + polygon budget + rig requirements |
| BlenderGPT | 3D AI | Python script output, Blender version, scene context |
| Unity AI | 3D / Game AI | Game genre, platform target, mechanic description over code |
| Sora / Runway | Video AI | Camera movement, duration, cut style |
| LTX / Dream Machine / Kling | Video AI | Cinematic language, motion intensity, style reference |
| ElevenLabs | Voice AI | Emotion, pacing, emphasis, speech rate |
| Zapier / Make / n8n | Workflow automation | Trigger app + event, action app + field mapping |
Prompt Master picks the right architecture for every task automatically and routes silently â you never see the framework name, just the prompt.
| Template | Best For |
|---|---|
| RTF (Role, Task, Format) | Fast one-shot tasks |
| CO-STAR (Context, Objective, Style, Tone, Audience, Response) | Professional documents, reports, business writing |
| RISEN (Role, Instructions, Steps, End Goal, Narrowing) | Complex multi-step projects |
| CRISPE (Capacity, Role, Insight, Statement, Personality, Experiment) | Creative work, brand voice, iterative content |
| Chain of Thought | Math, logic, debugging, multi-step analysis |
| Few-Shot | Consistent structured output, pattern replication |
| File-Scope Template | Cursor, Windsurf, Copilot â any code editing AI |
| ReAct + Stop Conditions | Claude Code, Devin, AutoGPT â any autonomous agent |
| Visual Descriptor | Midjourney, DALL-E, Stable Diffusion, Sora â generation |
| Reference Image Editing | Editing an existing image â detects edit vs generate automatically |
| ComfyUI | Node-based image workflows â positive/negative split per checkpoint |
| Prompt Decompiler | Breaking down, adapting, simplifying, or splitting existing prompts |
Prompt 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.
| Technique | What It Does |
|---|---|
| Role Assignment | Assigns a specific expert identity to calibrate depth and vocabulary |
| Few-Shot Examples | Adds 2-5 examples when format consistency matters more than instructions |
| XML Structural Tags | Wraps sections in XML for Claude-based tools that parse it reliably |
| Grounding Anchors | Adds anti-hallucination rules for factual and citation tasks |
| Chain of Thought | Forces step-by-step reasoning for logic tasks â never applied to o1/o3 |
| # | Pattern | Before | After |
|---|---|---|---|
| 1 | Vague task verb | âhelp me with my codeâ | âRefactor getUserData() to use async/await and handle null returnsâ |
| 2 | Two tasks in one prompt | âexplain AND rewrite this functionâ | Split: explain first, rewrite second |
| 3 | No success criteria | âmake it betterâ | âDone when function passes existing unit tests and handles null inputâ |
| 4 | Over-permissive agent | âdo whatever it takesâ | Explicit allowed + forbidden actions list |
| 5 | Emotional task description | âitâs totally broken, fix everythingâ | âThrows uncaught TypeError on line 43 when user is nullâ |
| 6 | Build-the-whole-thing | âbuild my entire appâ | Break into Prompt 1 (scaffold), Prompt 2 (feature), Prompt 3 (polish) |
| 7 | Implicit reference | ânow add the other thing we discussedâ | Always restate the full task, never reference âthe thing we discussedâ |
| # | Pattern | Before | After |
|---|---|---|---|
| 8 | Assumed prior knowledge | âcontinue where we left offâ | Include Memory Block with all prior decisions |
| 9 | No project context | âwrite a cover letterâ | âPM role at B2B fintech, 2yr SWE experience, shipped 3 features as tech leadâ |
| 10 | Forgotten stack | New prompt contradicts prior tech choice | Always include Memory Block |
| 11 | Hallucination invite | âwhat do experts say about X?â | âCite only sources you are certain of. If uncertain, say so.â |
| 12 | Undefined audience | âwrite something for usersâ | âNon-technical B2B buyers, no coding knowledge, decision-maker levelâ |
| 13 | No mention of prior failures | (blank) | âI already tried X and it failed because Y. Do not suggest X.â |
| # | Pattern | Before | After |
|---|---|---|---|
| 14 | Missing output format | âexplain this conceptâ | â3 bullet points, each under 20 words, one-sentence summary at topâ |
| 15 | Implicit length | âwrite a summaryâ | âWrite a summary in exactly 3 sentencesâ |
| 16 | No role assignment | (blank) | âYou are a senior backend engineer specializing in Node.js and PostgreSQLâ |
| 17 | Vague aesthetic adjectives | âmake it look professionalâ | âMonochrome palette, 16px base font, 24px line height, no decorative elementsâ |
| 18 | No negative prompts (image AI) | âa portrait of a womanâ | Add: âno watermark, no blur, no extra fingers, no distortion, no textâ |
| 19 | Prose prompt for Midjourney | Full descriptive sentence | âsubject, style, mood, lighting, --ar 16:9 --v 6â |
| # | Pattern | Before | After |
|---|---|---|---|
| 20 | No scope boundary | âfix my appâ | âFix only login form validation in src/auth.js. Touch nothing else.â |
| 21 | No stack constraints | âbuild a React componentâ | âReact 18, TypeScript strict, no external libraries, Tailwind onlyâ |
| 22 | No stop condition for agents | âbuild the whole featureâ | Explicit stop conditions + checkpoint after each step |
| 23 | No file path for IDE AI | âupdate the login functionâ | âUpdate handleLogin() in src/pages/Login.tsx onlyâ |
| 24 | Wrong template for tool | GPT-style prose used in Cursor | Adapted to File-Scope Template with path + scope |
| 25 | Pasting entire codebase | Full repo context every prompt | Scoped to relevant function and file only |
| # | Pattern | Before | After |
|---|---|---|---|
| 26 | No CoT for logic task | âwhich approach is better?â | âThink through both approaches step by step before recommendingâ |
| 27 | Adding CoT to reasoning models | âthink step by stepâ sent to o1/o3 | Removed, reasoning models think internally and CoT instructions degrade output |
| 28 | No self-check on complex output | (nothing) | âBefore finishing, verify output against the constraints aboveâ |
| 29 | Expecting inter-session memory | âyou already know my projectâ | Always re-provide the Memory Block |
| 30 | Contradicting prior decisions | New prompt ignores earlier architecture | Memory Block with all established facts |
| # | Pattern | Before | After |
|---|---|---|---|
| 31 | No starting state | âbuild me a REST APIâ | âEmpty Node.js project, Express installed, src/app.js existsâ |
| 32 | No target state | âadd authenticationâ | â/src/middleware/auth.js with JWT verify. POST /login and POST /register in /src/routes/auth.jsâ |
| 33 | Silent agent | No progress output | âAfter each step output: â [what was completed]â |
| 34 | Unlocked filesystem | No file restrictions | âOnly edit files inside src/. Do not touch package.json, .env, or any config file.â |
| 35 | No human review trigger | Agent decides everything | âStop and ask before: deleting any file, adding any dependency, or touching the database schemaâ |
When your conversation has history, Prompt Master pulls out prior decisions and prepends a Memory Block so the AI never contradicts earlier work:
## Memory (Carry Forward from Previous Context)
- 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
This is the single biggest fix for long sessions. Most wasted re-prompts come from the AI forgetting what you already decided.
MIT: See LICENSE for details.