Generating Mega Prompts
Generating Mega-Prompts
This skill produces ONE prompt document. It does NOT do the work described in that prompt.
- ✅ Output: a single, copy-ready prompt (text) with a token count
- ❌ Never: write the code, build the strategy, create the diagrams, or execute the prompt
- If the user says "now implement this" → explain they should paste the generated prompt into a fresh conversation or tool; this skill only builds prompts.
Two paths, choose based on request specificity:
Path 1 — Preset (fast): User names a common role ("I need a prompt for a Full-Stack Engineer") → find closest match from the 69 presets below → confirm/customize variables → generate.
Path 2 — Custom (default): Anything else → run the mandatory 5-7 question flow → generate from best practices or a partial-match preset.
Preset domains (69 total, 15 domains): Technical(8), Business(8), Legal & Compliance(4), Finance(4), HR(4), Design(4), Customer-Facing(4), Executive(7), Specialized Technical(6), Research(3), Creative & Media(4), Manufacturing(4), R&D(2), Regulatory(1), Specialized/AEO(1).
Progress:
- [ ] 1. Detect intent (role/domain/task/output triggers in user's request)
- [ ] 2. Check for preset match (>85% = use directly, 60-85% = adapt, <60% = custom)
- [ ] 3. Ask 5-7 mandatory questions (never skip, even if request seems complete)
- [ ] 4. Confirm output format (default: xml) and mode (default: core)
- [ ] 5. Synthesize the prompt using best practices for the role/domain
- [ ] 6. Run 7-point quality validation
- [ ] 7. Deliver prompt + token count, then STOP
Step 1: Intent Detection
Scan for triggers:
- Role: engineer/developer/architect → Technical; manager/strategist/analyst → Business; designer/writer/UX → Creative; healthcare/fintech/legal → Specialized
- Task: create/build/implement → Build; analyze/review/audit → Analyze; optimize/refactor → Optimize; strategy/roadmap → Plan
- Output: code, documentation, strategy, analysis, plan, design, report
Step 2: Mandatory Question Flow (never skip)
Rule: Ask minimum 5, maximum 7 questions. Skip a question ONLY if the user already stated that exact detail. Never skip because you can infer it — ask for confirmation instead.
Required coverage (pick 5-7 from these categories):
- Role — "What role should the AI assume?" (e.g., "Senior Backend Engineer")
- Domain/Industry — "What domain or industry context?" (e.g., "FinTech / Payment Processing") — ALWAYS ask, even if role implies it
- Primary task/goal — "What is the primary task or output?" (e.g., "Build REST APIs for payments")
- Output format — code / documentation / strategy / analysis / design / plan
- Tech stack / methodology — tools, frameworks, standards to follow
- Constraints — compliance, budget, timeline, scale, team size — ALWAYS ask
- Style — tone, depth, format (bullets vs. prose vs. code-heavy)
Also confirm separately:
- Format: xml (default) / claude / chatgpt / gemini / all
- Mode: core (~4.5K tokens: prompt + instructions + 2-3 examples) / advanced (~10K tokens: + testing scenarios + variations)
Example of correct behavior — even for "obvious" requests:
Input: "Write a product manager prompt for creating a PRD"
Correct response (ask, don't assume):
I'm inferring role = Product Manager. A few quick questions:
- What domain/industry? (e.g., B2B SaaS, Mobile Apps, Healthcare)
- What type of PRD? (New Feature, Platform Migration, MVP Launch)
- Constraints? (team size, timeline, technical stack)
- Success criteria? (stakeholder approval, dev-ready, KPI targets)
- Output format — XML (default), Claude, ChatGPT, Gemini, or All?
Step 3: Template Matching
- Search preset list for role/domain/output match
-
85% match → use preset, substitute variables from answers
- 60-85% → use preset skeleton, rewrite sections that don't fit
- <60% → build custom from best-practice prompt structure (role → mission → context → workflow phases → output spec → communication guidelines → best practices → examples)
Step 4: Generate (Core Mode Structure)
XML<mega_prompt> <role>[Title + expertise + specialization]</role> <mission>[Objective + success criteria]</mission> <context> <domain>...</domain> <expertise>...</expertise> <tech_stack>...</tech_stack> <constraints>...</constraints> <avoidance_rules>...</avoidance_rules> </context> <workflow> <phase_1>...</phase_1> <phase_2>...</phase_2> <phase_3>...</phase_3> <phase_4>...</phase_4> </workflow> <output_specifications> <format>...</format> <structure>...</structure> <depth_level>...</depth_level> <quality_criteria>...</quality_criteria> </output_specifications> <communication_guidelines> <tone>...</tone> <audience>...</audience> <formatting>...</formatting> </communication_guidelines> <best_practices>[2-4 role-specific practices, cite source style: OpenAI/Anthropic/Google patterns]</best_practices> <examples>[2-3 concrete input→expected-behavior pairs]</examples> </mega_prompt>
Advanced mode adds: <testing_scenarios> (3-5 edge cases), <variations> (alt versions for different contexts), <optimization_notes>.
For non-XML formats, translate the same sections into Claude system-prompt prose, ChatGPT custom-instruction fields, or Gemini format conventions — content parity matters more than tag syntax.
Step 5: Quality Validation (must pass all 7 before delivery)
- XML/structure tags properly closed (if applicable)
- All question answers reflected in output — zero generic filler
- Token count in range: core 3-6K (ideal 4.5K), advanced 8-12K (ideal 10K)
- No unfilled placeholders (
[...]) - Workflow steps are concrete and actionable, not vague
- At least one best practice relevant to the specific role/domain
- Minimum 2 worked examples present
Step 6: Deliver
Output the prompt, then state token count explicitly, e.g.:
Token Count: ~4,200 tokens (Core mode — optimal range ✅)
Then stop and ask: "Would you like me to modify the prompt or create a variation?" Do not proceed to implement anything.
Example 1: Input: "I need a prompt for a DevOps Engineer, AWS-focused, for CI/CD pipeline design" Output: Ask 5-7 questions confirming domain (which AWS services, team size), constraints (compliance, existing tooling), success criteria, output format/mode → generate XML mega-prompt with role=DevOps Engineer, phases covering pipeline audit/design/implementation/monitoring, best practices citing infra-as-code and blue-green deployment patterns → deliver with token count.
Example 2: Input: "Write a prompt for a marketing person" (vague) Output: Ask clarifying role questions first ("Growth Marketer? Content Marketer? CMO-level strategy?"), domain, task specifics, constraints, format — do not guess and generate immediately.
- Always confirm inferred details rather than silently assuming
- Prefer preset adaptation over full custom synthesis when match ≥60% — faster and more reliable
- Keep core mode the default; only go advanced if user needs testing scenarios or multiple variations
- Cite the style of best practice (e.g., "Anthropic-style explicit role/context separation") rather than fabricating fake external quotes
- One deliverable per request: a single prompt document, not multiple files
- Skipping questions because the request "seems obvious" — always ask minimum 5
- Generating implementation artifacts (code, diagrams) instead of the prompt itself
- Leaving placeholder brackets
[...]in the final output - Omitting the token count announcement
- Continuing past delivery to "helpfully" execute the prompt's instructions
- Producing a prompt so generic it could apply to any role (defeats the purpose of the discovery questions)