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".
Best use case
prompt-expander is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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".
Teams using prompt-expander should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/prompt-expander-majiayu000/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How prompt-expander Compares
| Feature / Agent | prompt-expander | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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 Skills
prompt-library
Curated collection of high-quality prompts for various use cases. Includes role-based prompts, task-specific templates, and prompt refinement techniques. Use when user needs prompt templates, role-play prompts, or ready-to-use prompt examples for coding, writing, analysis, or creative tasks.
prompt-generation-rules
General rules to generate prompt.
prompt-enhancer
Enhance user prompts by analyzing project context (code structure, dependencies, conventions, existing patterns). Use when users provide brief development requests that would benefit from project-specific context to generate more accurate, contextually-aware prompts.
prompt-engineering-patterns
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production. Use when optimizing prompts, improving LLM outputs, or designing production prompt templates.
prompt-architect
Create and enhance prompts, system instructions, and principle files. Capabilities: transform verbose prompts, add patterns/heuristics, optimize token usage, structure CLAUDE.md principles, improve agent/persona definitions, apply prompt engineering techniques (CoT, few-shot, ReAct). Actions: create, enhance, optimize, refactor, compress prompts. Keywords: prompt engineering, system prompt, CLAUDE.md, principle files, instruction optimization, agent prompt, persona prompt, token efficiency, prompt structure, workflow prompts, rules, constraints, few-shot, chain-of-thought, soul, tensions, dialectic. Use when: creating new prompts, enhancing principle files, improving system instructions, optimizing CLAUDE.md, restructuring verbose prompts, adding patterns to workflows, defining agent behaviors.
optimize-prompt
Prompt optimization consultant for AI system prompts and custom instructions. Supports Claude API, OpenAI API, Gemini API, CLAUDE.md, ChatGPT, and n8n. Use when user wants to improve, review, or create prompts, system instructions, or custom instructions for any AI platform.
midjourney-prompt-engineering
Use when generating images with Midjourney, constructing MJ prompts, iterating on MJ output quality, choosing between --sref/--oref/style codes, scoring image results, or building reusable prompt patterns. Also use when exploring MJ style codes, animating images, or debugging why a prompt isn't producing the intended result.
reviewing-agent-prompting
Review and improve prompts for coding agents. Use PROACTIVELY when auditing, checking, or evaluating agent instructions, system prompts, or task delegation text. Applies state-machine thinking to identify structural gaps and improve effectiveness.
prompt-repetition
LLM 정확도 향상을 위한 프롬프트 반복 기법. 70개 벤치마크 중 67%(47/70)에서 유의미한 성능 향상 달성. 경량 모델(haiku, flash, mini)에서 자동 적용.
prompt-optimization
Guidelines for creating effective prompts that maximize AI understanding and response quality. Helps developers craft clear, specific, actionable prompts with appropriate context for optimal AI assistance.
prompt-factory
World-class prompt powerhouse that generates production-ready mega-prompts for any role, industry, and task through intelligent 7-question flow, 69 comprehensive presets across 15 professional domains (technical, business, creative, legal, finance, HR, design, customer, executive, manufacturing, R&D, regulatory, specialized-technical, research, creative-media), multiple output formats (XML/Claude/ChatGPT/Gemini), quality validation gates, and contextual best practices from OpenAI/Anthropic/Google. Supports both core and advanced modes with testing scenarios and prompt variations.
Prompt Engineering Skill
Craft effective prompts that get the best results from language models.