prompt-expander
EXPAND vague prompts into precise, platform-optimized instructions. Detects target platform (Claude, GPT, Gemini, Midjourney, Sora, etc.) and applies appropriate prompting patterns. Use when user says "coggle", "expand", "improve prompt", "make better".
What this skill does
# Prompt Expander Transform vague prompts into precise, platform-optimized instructions. ## Trigger Phrases Users invoke this skill by saying: - "coggle" - "expand" - "improve prompt" - "make better" - "optimize prompt" - "enhance prompt" ## Platform Detection Detect target platform from context clues: | Clue | Platform | |------|----------| | "for Claude", "Claude Code", "system prompt" | Claude | | "GPT", "ChatGPT", "OpenAI", "Codex" | OpenAI | | "Gemini", "Google AI" | Gemini | | "Perplexity", "search", "research", "citations" | Perplexity | | "Copilot", "GitHub", "code completion" | GitHub Copilot | | "Grok", "xAI", "X AI" | Grok | | "Midjourney", "MJ", "--ar", "DALL-E", "image" | Image Generation | | "Flux", "FLUX.1", "Black Forest" | Flux | | "Sora", "Runway", "video", "animation" | Video Generation | | "Nano Banana", "Higgsfield" | Nano Banana Pro | **If unclear, ask user:** "What platform is this prompt for?" ## Expansion Workflow ### Step 1: Detect Platform Identify target from prompt context or ask user. ### Step 2: Apply PRECISE Framework Adapt elements based on platform: | Element | Text AI | Image AI | Video AI | |---------|---------|----------|----------| | **P**ersona | Role definition | Style/artist reference | Director's vision | | **R**equirements | Deliverables | Visual elements | Shots/scenes | | **E**xamples | Reference outputs | Reference images | Reference clips | | **C**ontext | Background info | Scene setting | Narrative context | | **I**nstructions | Step-by-step | Composition notes | Storyboard | | **S**pecifications | Output format | Parameters (--ar, --v) | Duration, resolution | | **E**valuation | Success criteria | Visual quality checks | Motion coherence | #### P - Persona Define the AI's role or style: - **Text AI**: "Act as a [specific expert role] with [relevant experience]..." - **Image AI**: "In the style of [artist/movement]..." - **Video AI**: "Directed as [cinematic style/vision]..." #### R - Requirements Specify deliverables: - **Text AI**: Output format, length, style, technical requirements - **Image AI**: Visual elements, composition, mood - **Video AI**: Shot list, scene requirements, key moments #### E - Examples Provide concrete references: - **Text AI**: Sample outputs, style guides - **Image AI**: Reference images, similar works - **Video AI**: Reference clips, similar scenes #### C - Context Add relevant background: - **Text AI**: Industry, audience, purpose, constraints - **Image AI**: Scene setting, environment, atmosphere - **Video AI**: Narrative context, story arc, setting #### I - Instructions Break down the task: - **Text AI**: Numbered steps, logical sequence - **Image AI**: Composition notes, layer priorities - **Video AI**: Storyboard sequence, shot progression #### S - Specifications Define format and structure: - **Text AI**: markdown/JSON/list/table, length, sections - **Image AI**: Aspect ratio (--ar 16:9), version (--v 6), quality (--q 2) - **Video AI**: Duration, resolution, frame rate, transitions #### E - Evaluation Specify success criteria: - **Text AI**: Quality metrics, what to avoid - **Image AI**: Visual coherence, style consistency - **Video AI**: Motion smoothness, narrative flow ### Step 3: Apply Platform Template Reference platform-specific patterns from `./templates/[platform].md`: | Platform | Best For | Key Pattern | Template File | |----------|----------|-------------|---------------| | Claude | Complex reasoning, coding | Role + Context + Task + Constraints | `claude.md` | | Codex/GPT | Code generation, chat | Delimiters + Examples | `codex.md` | | Gemini | Multimodal, reasoning | Few-shot examples | `gemini.md` | | Perplexity | Research, citations | Search scope + Recency + Sources | `perplexity.md` | | Copilot | Code completion | General goal + Specific requirements | `copilot.md` | | Grok | Conversational, real-time | Role + Task + Format | `grok.md` | | Image Gen | Midjourney, DALL-E | Descriptive phrases + Parameters | `image-gen.md` | | Flux | Photorealistic images | Natural language descriptions | `flux.md` | | Video Gen | Sora, Runway, Kling | Storyboard + Camera direction | `video-gen.md` | When expanding a prompt, detect the target platform and apply the appropriate template structure. ### Step 4: Present Options After expansion, offer: - **Run** - Execute the prompt (if possible) - **Save** - Save to `.prompts/[name].md` - **Refine** - Iterate with user feedback ## Output Format ```markdown ## Coggle! **Original:** > [input] **Platform:** [detected platform] **Expanded:** [Full expanded prompt in platform-appropriate format] --- **Templates:** See `./templates/` for platform-specific patterns. **Next Steps:** - **Run** - Execute this prompt - **Save** - Save to `.prompts/[name].md` - **Refine** - Make adjustments ``` ## Common Anti-Patterns to Avoid | Anti-Pattern | Example | Fix | |--------------|---------|-----| | Vague verbs | "help", "something", "stuff" | Specific actions | | Missing audience | No target reader defined | Add audience context | | Implicit assumptions | Unstated requirements | Make explicit | | Wall of text | No structure | Add sections/steps | | Conflicting instructions | Contradictory asks | Resolve conflicts | | Missing format | No output spec | Define structure | ## Success Indicators This skill is successful when: - [ ] Platform has been detected or confirmed - [ ] PRECISE framework elements applied appropriately for platform - [ ] Expanded prompt is significantly more actionable than original - [ ] Output follows platform-specific conventions - [ ] User can immediately use the expanded version ## Quick Examples **Text AI (Claude):** ``` Before: "Write something about marketing" After: "Act as a marketing strategist with 10+ years B2B SaaS experience. Write a 500-word blog post about email marketing best practices for startup founders. Include 3 actionable tips with examples. Format as: Hook -> Problem -> Solution -> Examples -> CTA. Tone: Professional but approachable." ``` **Image AI (Midjourney):** ``` Before: "sunset over mountains" After: "Golden hour sunset over snow-capped mountain peaks, dramatic god rays through clouds, alpine lake reflection in foreground, cinematic composition, in the style of Ansel Adams, photorealistic, --ar 16:9 --v 6 --q 2" ``` **Video AI (Sora):** ``` Before: "person walking in city" After: "Cinematic tracking shot following a silhouetted figure walking through rain-soaked Tokyo streets at night, neon reflections on wet pavement, bokeh lights in background, film noir aesthetic, slow motion, camera dollies forward maintaining subject in center frame, 4K resolution, 24fps, 10 seconds duration" ``` **Research AI (Perplexity):** ``` Before: "tell me about quantum computing" After: "What are the latest breakthroughs in quantum error correction? Focus on peer-reviewed research from 2024-2025. Summarize the top 3 developments with inline citations. Include practical implications for each breakthrough." ``` **Code AI (GitHub Copilot):** ``` Before: "make a retry function" After: "Write a TypeScript function that retries async operations with exponential backoff. Requirements: - Accept a function, max retries (default 3), initial delay (default 1000ms) - Double delay after each retry - Return successful result or throw after max retries - Log each attempt with attempt number" ``` **Conversational AI (Grok):** ``` Before: "analyze this startup" After: "Role: Skeptical tech analyst who's seen too many hype cycles Task: Evaluate the claims in this startup pitch Format: Bullet points with a reality-check score (1-10) for each claim Be direct, flag red flags, and rate overall viability." ``` --- *Prompt Expander skill | Last Updated: 2025-12-26*
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.