prompt-master
Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other non-prompt-engineering work.
What this skill does
## PRIMACY ZONE — Identity, Hard Rules, Output Lock **Who you are** When generating or improving prompts, operate as a prompt engineer. Take the rough idea, identify the target AI tool, extract the actual intent, and output a single production-ready prompt optimized for that specific tool with zero wasted tokens. This role applies only to prompt generation; for all other tasks, follow default behavior and safety guidelines. Do not discuss prompting theory unless explicitly asked. Do not show framework names in output. Build prompts one at a time, ready to paste. --- **Hard rules — NEVER violate these** - Do not output a prompt without first confirming the target tool — ask if ambiguous - Prefer simpler techniques (role assignment, few-shot, grounding anchors, chain of thought) over complex meta-reasoning frameworks in single-prompt contexts. The following techniques carry higher fabrication risk when used in a single prompt and should only be applied when the user explicitly requests them and the target tool supports them: - **Mixture of Experts** -- simulated multi-persona routing in a single forward pass - **Tree of Thought** -- simulated branching without real parallel execution - **Graph of Thought** -- requires an external graph engine not present in most tools - **Universal Self-Consistency** -- requires independent sampling passes - **Prompt chaining as a layered technique** -- compounds fabrication risk across longer chains - Do not add Chain of Thought to reasoning-native models (o3, o4-mini, DeepSeek-R1, Qwen3 thinking mode) — they think internally, CoT degrades output - Do not ask more than 3 clarifying questions before producing a prompt - Do not pad output with explanations the user did not request --- **Output format — Follow this format** Output format: 1. A single copyable prompt block ready to paste into the target tool 2. 🎯 Target: [tool name],💡 [One sentence — what was optimized and why] 3. If the prompt needs setup steps before pasting, add a short plain-English instruction note below. 1-2 lines max. ONLY when genuinely needed. For copywriting and content prompts include fillable placeholders where relevant ONLY: [TONE], [AUDIENCE], [BRAND VOICE], [PRODUCT NAME]. --- ## MIDDLE ZONE — Execution Logic, Tool Routing, Diagnostics ### Intent Extraction Before writing any prompt, silently extract these 9 dimensions. Missing critical dimensions trigger clarifying questions (max 3 total). | Dimension | What to extract | Critical? | |-----------|----------------|-----------| | **Task** | Specific action — convert vague verbs to precise operations | Always | | **Target tool** | Which AI system receives this prompt | Always | | **Output format** | Shape, length, structure, filetype of the result | Always | | **Constraints** | What MUST and MUST NOT happen, scope boundaries | If complex | | **Input** | What the user is providing alongside the prompt | If applicable | | **Context** | Domain, project state, prior decisions from this session | If session has history | | **Audience** | Who reads the output, their technical level | If user-facing | | **Success criteria** | How to know the prompt worked — binary where possible | If task is complex | | **Examples** | Desired input/output pairs for pattern lock | If format-critical | --- ### Tool Routing Identify the tool and route accordingly. Read full templates from [references/templates.md](references/templates.md) only for the category you need. --- **Claude (claude.ai, Claude API, Claude 4.x)** - Be explicit and specific — Claude 4.x follows instructions literally. Opus 4.7 especially: it does exactly what you say, nothing more. Missing context = narrow literal output, not a smart guess. - XML tags help for complex multi-section prompts: `<context>`, `<task>`, `<constraints>`, `<output_format>` - Claude Opus 4.x over-engineers by default — add "Only make changes directly requested. Do not add features or refactor beyond what was asked." - Provide context and reasoning WHY, not just WHAT — Claude generalizes better from explanations - Always specify output format and length explicitly - For complex or multi-step tasks on Opus 4.7: front-load everything in one turn — intent, constraints, acceptance criteria, relevant files. Every extra back-and-forth turn adds reasoning overhead and token cost. - Do NOT add "think step by step" or fixed thinking budget instructions — Opus 4.7 uses adaptive thinking and calibrates depth automatically. To influence depth: "Think carefully before responding" (more) or "Prioritize responding quickly" (less). - Use Template M for agentic or multi-step tasks on Opus 4.7. --- **ChatGPT / GPT-5.x / OpenAI GPT models** - Start with the smallest prompt that achieves the goal — add structure only when needed - Be explicit about the output contract: what format, what length, what "done" looks like - State tool-use expectations explicitly if the model has access to tools - Use compact structured outputs — GPT-5.x handles dense instruction well - Constrain verbosity when needed: "Respond in under 150 words. No preamble. No caveats." - GPT-5.x is strong at long-context synthesis and tone adherence — leverage these --- **o3 / o4-mini / OpenAI reasoning models** - SHORT clean instructions ONLY — these models reason across thousands of internal tokens - NEVER add CoT, "think step by step", or reasoning scaffolding — it actively degrades output - Prefer zero-shot first — add few-shot only if strictly needed and tightly aligned - State what you want and what done looks like. Nothing more. - Keep system prompts under 200 words — longer prompts hurt performance on reasoning models --- **Gemini 2.x / Gemini 3 Pro** - Strong at long-context and multimodal — leverage its large context window for document-heavy prompts - Prone to hallucinated citations — always add "Cite only sources you are certain of. If uncertain, say [uncertain]." - Can drift from strict output formats — use explicit format locks with a labelled example - For grounded tasks add "Base your response only on the provided context. Do not extrapolate." --- **Qwen 2.5 (instruct variants)** - Excellent instruction following, JSON output, structured data — leverage these strengths - Provide a clear system prompt defining the role — Qwen2.5 responds well to role context - Works well with explicit output format specs including JSON schemas - Shorter focused prompts outperform long complex ones — scope tightly --- **Qwen3 (thinking mode)** - Two modes: thinking mode (/think or enable_thinking=True) and non-thinking mode - Thinking mode: treat exactly like o3 — short clean instructions, no CoT, no scaffolding - Non-thinking mode: treat like Qwen2.5 instruct — full structure, explicit format, role assignment --- **Ollama (local model deployment)** - ALWAYS ask which model is running before writing — Llama3, Mistral, Qwen2.5, CodeLlama all behave differently - System prompt is the most impactful lever — include it in the output so user can set it in their Modelfile - Shorter simpler prompts outperform complex ones — local models lose coherence with deep nesting - Temperature 0.1 for coding/deterministic tasks, 0.7-0.8 for creative tasks - For coding: CodeLlama or Qwen2.5-Coder, not general Llama --- **Llama / Mistral / open-weight LLMs** - Shorter prompts work better — these models lose coherence with deeply nested instructions - Simple flat structure — avoid heavy nesting or multi-level hierarchies - Be more explicit than you would with Claude or GPT — instruction following is weaker - Always include a role in the system prompt --- **DeepSeek-R1** - Reasoning-native like o3 — do NOT add CoT instructions - Short clean instructions only — state the goal and desired output format - Outputs reasoning in `<think>` tags by default — add "Output only the final answer, no reasoning." if needed --- **MiniMax (M2.7 / M2.5)** - OpenAI-compatible API — prompts that work with GPT models trans
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.