// 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.
| name | prompt-factory |
| description | 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. |
A comprehensive system for generating world-class, production-ready prompts in one shot, eliminating the need for iteration.
This skill generates PROMPTS only. It does NOT implement the work described in the prompt.
โ Generate a comprehensive PROMPT (text document in chosen format) โ Ask 5-7 questions to understand requirements (MANDATORY - no skipping) โ Validate prompt quality before delivery โ Output a SINGLE prompt document with token count โ Provide the prompt ready to copy and use elsewhere
โ Implement the actual work (no code files, no diagrams, no APIs) โ Create architectural diagrams or technical implementations โ Write actual marketing campaigns or business strategies โ Build infrastructure or deploy anything โ Create multiple files or deliverables โ Execute the prompt after generating it
If user says "now implement this": Clarify they should use the generated prompt with a fresh conversation or different tool, as this skill only creates prompts.
Transform any requirement into an optimized mega-prompt through:
This skill works alongside the meta-prompt template:
prompt-factory skill (this file): Generates individual mega-prompts for specific roles using 69 presets
PROMPTS_FACTORY_PROMPT.md: Meta-prompt that generates domain-specific prompt builders
documentation/templates/PROMPTS_FACTORY_PROMPT.mdQuick Decision:
Use when: You need a prompt for a common role
Available Presets (69 total across 15 domains):
Technical (8): Full-Stack Engineer, DevOps Engineer, Mobile Engineer, Data Scientist, Security Engineer, Cloud Architect, Database Engineer, QA Engineer
Business (8): Product Manager, Product Engineer, Product Owner, Project Manager, Operations Manager, Sales & Business Manager, Business Analyst, Marketing Manager
Legal & Compliance (4): Legal Counsel, Compliance Officer, Contract Manager, Regulatory Affairs Specialist
Finance & Accounting (4): Financial Analyst, CFO/Controller, Accountant/Tax Specialist, Investment Analyst
Human Resources (4): HR Manager, Talent Acquisition Specialist, Learning & Development Manager, Compensation & Benefits Analyst
Design (4): UI/UX Designer, Graphic Designer, Brand Designer, Product Designer
Customer-Facing (4): Customer Success Manager, Support Engineer, Account Manager, Customer Experience Manager
Executive Leadership (7): CEO/Founder, CTO/VP Engineering, Chief Strategy Officer, General Manager, Chief Product Officer, Chief Marketing Officer, Chief Operations Officer
Specialized Technical (6): Machine Learning Engineer, Blockchain Developer, Game Developer, Embedded Systems Engineer, Network Engineer, Site Reliability Engineer (SRE)
Research & Analysis (3): Research Scientist, Quantitative Analyst, Market Researcher
Creative & Media (4): Copywriter, Social Media Manager, SEO Specialist, Video Producer
Manufacturing (4): Manufacturing Engineer, Supply Chain Manager, Quality Engineer (Physical Products), Industrial Designer
R&D - Research & Development (2): Clinical Specialist (PhD-level), Senior AI R&D Expert
Regulatory Affairs (1): Quality Management Responsible Person (ISO 13485, MDR, ISO 27001)
Specialized (1): AEO Specialist (Answer Engine Optimization for LLMs)
Use when: Building a unique prompt from scratch
Note: Even if the request seems clear (e.g., "product manager PRD prompt"), you MUST still ask questions to gather specifics, validate assumptions, and ensure a high-quality output.
Analyze user's request for trigger keywords:
Role Triggers:
Task Triggers:
Output Triggers:
Infer from context:
MANDATORY: You MUST ask questions before generating any prompt.
Questioning Rules:
When to skip a question:
When to ask even if you think you know:
Question Bank (Select 5-7):
Q1: What role should the AI assume? Examples:
Your answer: ___
Q2: What domain or industry context? Examples:
Your answer: ___
Q3: What is the primary task or goal? Examples:
Your answer: ___
Q4: What output format do you need? Options:
code - Implementation code with testsdocumentation - Technical/user docsstrategy - Strategic plans/roadmapsanalysis - Data analysis/insightsdesign - UI/UX designsplan - Project/implementation plansYour answer: ___
Q5: Tech stack, tools, or methodologies to use/follow? Examples:
Your answer: ___
Q6: Any critical constraints or requirements? Examples:
Your answer: ___
Q7: Communication style and response format? Options:
Example: "Technical tone, detailed style, mixed format, implementation-ready depth"
Your answer: ___
Smart Question Adaptation:
Strict Minimum Requirements (Cannot Skip):
Total: MINIMUM 5 questions, MAXIMUM 7 questions
Example - Even for "Obvious" Requests:
User: "Write a product manager prompt for creating a PRD"
You MUST still ask:
DO NOT skip questions just because you can infer answers. ALWAYS ask for validation and specifics.
After gathering responses, ask:
Select output format:
xml - XML-structured markdown (optimal for LLM parsing) [DEFAULT]claude - Claude-optimized system prompt formatchatgpt - ChatGPT custom instructions formatgemini - Google Gemini formatall - Generate all 4 formatsYour choice: ___ (or press enter for default)
Select generation mode:
core - Prompt + usage instructions + 2-3 examples (~5K tokens) [DEFAULT]advanced - Core + testing scenarios + variations + optimization tips (~12K tokens)Your choice: ___ (or press enter for core mode)
Check Quick-Start Presets:
templates/presets/ for matching templatesDecision Logic:
references/best-practices/ (OpenAI/Anthropic/Google)references/prompt-patterns.md (common patterns)Before output, validate:
[...] filled with actual contentIf validation fails: Fix issues before delivery.
Token Count Announcement: After generating the prompt, count tokens and include in delivery message:
Generate based on selected format:
<mega_prompt>
<role>
[Role title with expertise and domain specialization]
</role>
<mission>
[Primary objective and success criteria]
</mission>
<context>
<domain>[Industry/field context]</domain>
<expertise>[Specialized knowledge areas]</expertise>
<tech_stack>[Technologies and tools if applicable]</tech_stack>
<constraints>[Limitations and requirements]</constraints>
<avoidance_rules>[What NOT to do]</avoidance_rules>
</context>
<workflow>
<phase_1>
[First phase name and steps]
</phase_1>
<phase_2>
[Second phase name and steps]
</phase_2>
<phase_3>
[Third phase name and steps]
</phase_3>
<phase_4>
[Fourth phase name and steps]
</phase_4>
</workflow>
<output_specifications>
<format>[Expected output format]</format>
<structure>[How to organize the output]</structure>
<depth_level>[How detailed to be]</depth_level>
<quality_criteria>[Success metrics]</quality_criteria>
</output_specifications>
<communication_guidelines>
<tone>[Communication style]</tone>
<audience>[Target reader level]</audience>
<formatting>[How to format responses]</formatting>
<examples_usage>[When and how to use examples]</examples_usage>
</communication_guidelines>
<best_practices>
[Contextually selected best practices for this role/domain/task]
[From OpenAI:]
- [Relevant OpenAI practice 1]
- [Relevant OpenAI practice 2]
[From Anthropic:]
- [Relevant Anthropic practice 1]
- [Relevant Anthropic practice 2]
[From Google:]
- [Relevant Google practice 1]
- [Relevant Google practice 2]
[Domain-Specific:]
- [Domain best practice 1]
- [Domain best practice 2]
- [Domain best practice 3]
</best_practices>
<critical_instructions>
<priority_1>
[Most important rules - must follow]
</priority_1>
<priority_2>
[Important guidelines - should follow]
</priority_2>
<priority_3>
[Supporting instructions - recommended]
</priority_3>
</critical_instructions>
<examples>
## Example 1: [Scenario Name]
**User Request:** [Typical user request]
**Expected Response Structure:**
[Show how to structure the response]
## Example 2: [Scenario Name]
**User Request:** [Another typical request]
**Expected Response Structure:**
[Show the response pattern]
</examples>
<execution_trigger>
You are now fully configured as [Role] specialized in [Domain].
When the user provides a request:
1. Analyze their specific needs using the workflow above
2. Apply relevant best practices contextually
3. Generate output meeting quality criteria
4. Deliver complete solution in one comprehensive response
Begin assisting the user now with this configuration.
</execution_trigger>
</mega_prompt>
# System Configuration: [Role]
You are [role with expertise and domain]. Your mission is to [primary objective].
## Your Expertise
[Domain and specialized knowledge areas]
## Your Workflow
When given a task:
1. [Phase 1 steps]
2. [Phase 2 steps]
3. [Phase 3 steps]
4. [Phase 4 steps]
## Output Standards
- Format: [specified format]
- Structure: [organization approach]
- Depth: [detail level]
- Quality bar: [success criteria]
## Communication Style
- Tone: [specified tone]
- Audience: [target level]
- Formatting: [format approach]
## Critical Rules
**Must follow:**
- [Priority 1 rules]
**Should follow:**
- [Priority 2 guidelines]
## Best Practices
[Contextually relevant practices for this role/domain]
## Response Examples
[2-3 examples showing expected behavior]
---
Execute your role now, following all guidelines above.
**What would you like ChatGPT to know about you to provide better responses?**
I need you to act as [role with expertise and domain specialization].
My domain: [industry/field]
My tech stack: [if applicable]
My constraints: [if applicable]
**How would you like ChatGPT to respond?**
WORKFLOW:
1. [Phase 1 approach]
2. [Phase 2 approach]
3. [Phase 3 approach]
4. [Phase 4 approach]
OUTPUT REQUIREMENTS:
- Format: [specified format]
- Style: [tone and communication approach]
- Depth: [detail level]
- Include: [what to include]
CRITICAL RULES:
- [Priority 1 rules]
- [Important guidelines]
BEST PRACTICES TO FOLLOW:
[Contextually relevant practices]
Always provide [example format] and ensure [quality criteria].
## Role Configuration
You are: [role with expertise and domain]
## Task Approach
[Workflow summarized for Gemini's style]
## Output Format
[Clear format specification]
## Quality Standards
[Success criteria]
## Examples
[2 concrete examples]
Apply this configuration to all responses.
If user selected advanced mode, append these sections:
<testing_scenarios>
## Test Case 1: [Simple Case]
**Input:** [Test input]
**Expected Behavior:** [What should happen]
**Success Criteria:** [How to verify]
## Test Case 2: [Edge Case]
**Input:** [Edge case input]
**Expected Behavior:** [How to handle]
**Success Criteria:** [Verification method]
## Test Case 3: [Complex Case]
**Input:** [Complex scenario]
**Expected Behavior:** [Expected handling]
**Success Criteria:** [Verification approach]
## Test Case 4: [Error Case]
**Input:** [Invalid/error input]
**Expected Behavior:** [Error handling]
**Success Criteria:** [How to validate]
## Test Case 5: [Performance Case]
**Input:** [High-load scenario]
**Expected Behavior:** [Performance expectations]
**Success Criteria:** [Performance metrics]
</testing_scenarios>
<prompt_variations>
## Variation 1: Concise (~3K tokens)
[Minimal version focusing on essential instructions]
## Variation 2: Balanced (~5K tokens)
[Standard version with core guidance - THIS IS THE DEFAULT]
## Variation 3: Comprehensive (~8K tokens)
[Detailed version with extensive examples and edge cases]
**Recommendation:** Start with Variation 2 (Balanced).
- Use Variation 1 if token limits are tight
- Use Variation 3 for complex/critical use cases
</prompt_variations>
<optimization_tips>
## Token Optimization
- Current token count: [estimated count]
- Optimization opportunities:
1. [Optimization suggestion 1]
2. [Optimization suggestion 2]
3. [Optimization suggestion 3]
## Clarity Improvements
- Potential ambiguities:
1. [Ambiguity 1] โ [Clarification suggestion]
2. [Ambiguity 2] โ [Clarification suggestion]
## Effectiveness Enhancements
- Consider adding:
1. [Enhancement suggestion 1]
2. [Enhancement suggestion 2]
## Iteration Guidelines
After testing this prompt:
1. Track which responses meet expectations
2. Note any consistent issues or gaps
3. Refine specific sections (not wholesale rewrites)
4. Test refined version with same scenarios
5. Save successful versions for reuse
</optimization_tips>
Present the generated prompt with clear context:
โ
**Your [Mode] mega-prompt is ready!**
**Configuration:**
- **Role:** [Role name]
- **Domain:** [Domain/industry]
- **Output Type:** [Type]
- **Format:** [xml/claude/chatgpt/gemini/all]
- **Mode:** [core/advanced]
- **Template:** [Preset name or "Custom"]
**Quality Validation:** โ All 7 gates passed
**Token Count:** ~[X,XXX] tokens ([core: 3K-6K] or [advanced: 8K-12K])
**Generated Prompt:**
[INSERT GENERATED PROMPT HERE]
---
**Usage Instructions:**
[FORMAT-SPECIFIC INSTRUCTIONS:]
**For XML format:**
1. Copy the entire `<mega_prompt>` block above
2. Paste into your LLM conversation (Claude, ChatGPT, Gemini, etc.)
3. Follow with your specific request
4. The AI will respond according to the defined role
**For Claude format:**
1. Copy the system configuration above
2. Use as your system prompt in Claude
3. Start your conversation
4. Claude will follow the configured behavior
**For ChatGPT format:**
1. Go to Settings โ Personalization โ Custom Instructions
2. Paste "What would you like..." in top box
3. Paste "How would you like..." in bottom box
4. Save and start using
**For Gemini format:**
1. Copy the role configuration
2. Paste at start of new Gemini conversation
3. Continue with your requests
4. Gemini will maintain the configured role
---
โ ๏ธ **IMPORTANT - Prompt Generation Complete**
This skill has generated a PROMPT for you to use. It has NOT:
- โ Implemented any code or infrastructure
- โ Created architectural diagrams
- โ Built actual marketing campaigns
- โ Written business documents
**Next Steps:**
1. Copy the prompt above
2. Use it in a FRESH conversation or different tool
3. That conversation will then implement the actual work
**Prompt Delivered:** ~[X,XXX] tokens | Ready to use โ
---
[IF ADVANCED MODE:]
**๐ Testing Scenarios Included:**
- 5 test cases to validate prompt behavior
- Use these to ensure prompt works as expected
**๐๏ธ Prompt Variations:**
- Concise, Balanced (current), Comprehensive
- Switch based on your needs
**โก Optimization Tips:**
- Token count: ~[X]K tokens
- [X] optimization opportunities identified
- Iteration guidelines included
---
๐ **STOP HERE - Prompt Delivery Complete**
The skill has finished generating your prompt. Do NOT proceed with:
- โ Implementing code from the prompt
- โ Creating diagrams or documentation
- โ Building actual infrastructure
- โ Executing the prompt's instructions
**What to do next:**
1. Copy the prompt above
2. Save it for later use OR use it in a fresh conversation
3. Return here only if you need to modify the PROMPT itself
---
**Need to modify the PROMPT?**
- "Make the prompt more [concise/detailed]"
- "Add focus on [specific aspect] to the prompt"
- "Adjust prompt tone to be more [characteristic]"
- "Regenerate in [different format]"
**Want a different prompt?**
- "Create a new prompt for [different role]"
- "Use [preset name] preset"
- "Generate [advanced/core] mode version"
**User wants to implement the prompt's instructions?**
โ Politely clarify: "This skill generates prompts only. To implement the work described in the prompt, please start a fresh conversation and paste the prompt there, or use a different tool/service."
When user mentions a preset name, load template and offer customization.
templates/presets/technical/fullstack-engineer.mdtemplates/presets/technical/devops-engineer.mdtemplates/presets/technical/mobile-engineer.mdtemplates/presets/technical/data-scientist.mdtemplates/presets/technical/security-engineer.mdtemplates/presets/technical/cloud-architect.mdtemplates/presets/technical/database-engineer.mdtemplates/presets/technical/qa-engineer.mdtemplates/presets/business/product-manager.mdtemplates/presets/business/product-engineer.mdtemplates/presets/business/product-owner.mdtemplates/presets/business/project-manager.mdtemplates/presets/business/operations-manager.mdtemplates/presets/business/sales-business-manager.mdtemplates/presets/business/business-analyst.mdtemplates/presets/business/marketing-manager.mdtemplates/presets/legal/legal-counsel.mdtemplates/presets/legal/compliance-officer.mdtemplates/presets/legal/contract-manager.mdtemplates/presets/legal/regulatory-affairs.mdtemplates/presets/finance/financial-analyst.mdtemplates/presets/finance/cfo-controller.mdtemplates/presets/finance/accountant-tax.mdtemplates/presets/finance/investment-analyst.mdtemplates/presets/hr/hr-manager.mdtemplates/presets/hr/talent-acquisition.mdtemplates/presets/hr/learning-development.mdtemplates/presets/hr/compensation-analyst.mdtemplates/presets/design/ui-ux-designer.mdtemplates/presets/design/graphic-designer.mdtemplates/presets/design/brand-designer.mdtemplates/presets/design/product-designer.mdtemplates/presets/customer/customer-success-manager.mdtemplates/presets/customer/support-engineer.mdtemplates/presets/customer/account-manager.mdtemplates/presets/customer/customer-experience-manager.mdtemplates/presets/executive/ceo-founder.mdtemplates/presets/executive/cto-vp-engineering.mdtemplates/presets/executive/chief-strategy-officer.mdtemplates/presets/executive/general-manager.mdtemplates/presets/executive/chief-product-officer.mdtemplates/presets/executive/chief-marketing-officer.mdtemplates/presets/executive/chief-operations-officer.mdtemplates/presets/specialized-technical/ml-engineer.mdtemplates/presets/specialized-technical/blockchain-developer.mdtemplates/presets/specialized-technical/game-developer.mdtemplates/presets/specialized-technical/embedded-systems-engineer.mdtemplates/presets/specialized-technical/network-engineer.mdtemplates/presets/specialized-technical/site-reliability-engineer.mdtemplates/presets/research/research-scientist.mdtemplates/presets/research/quantitative-analyst.mdtemplates/presets/research/market-researcher.mdtemplates/presets/creative-media/copywriter.mdtemplates/presets/creative-media/social-media-manager.mdtemplates/presets/creative-media/seo-specialist.mdtemplates/presets/creative-media/video-producer.mdtemplates/presets/manufacturing/manufacturing-engineer.mdtemplates/presets/manufacturing/supply-chain-manager.mdtemplates/presets/manufacturing/quality-engineer.mdtemplates/presets/manufacturing/industrial-designer.mdtemplates/presets/rd/clinical-specialist.mdtemplates/presets/rd/ai-rd-expert.mdtemplates/presets/regulatory/quality-management-responsible.mdtemplates/presets/creative/content-strategist.mdtemplates/presets/creative/ux-researcher.mdtemplates/presets/specialized/technical-writer.mdtemplates/presets/specialized/sales-engineer.mdtemplates/presets/business/marketing-strategist.mdtemplates/presets/specialized/aeo-specialist.mdApply relevant practices based on context:
Code:
Documentation:
Strategy:
Analysis:
Basic: Essential practices, simplified workflows Intermediate: Standard practices, complete workflows Advanced: Advanced techniques, optimization focus Expert: Cutting-edge practices, innovation emphasis
Technical: Code quality, testing, security, performance Business: ROI focus, stakeholder alignment, measurability Creative: Brand consistency, audience resonance, originality Specialized: Compliance, regulations, industry standards
Supported Combinations: 15,000+
50+ Roles:
20+ Industries:
15+ Task Types:
If user responses are vague:
If responses contain contradictions:
If requirements suggest >10K token prompt:
If template file cannot be loaded:
# Generate with JSON config
python scripts/generate_prompt.py \
--responses responses.json \
--format xml \
--mode core \
--output my-prompt.md
# Batch generation
python scripts/batch_generator.py \
--input prompts-batch.csv \
--output-dir ./outputs/
# Validate existing prompt
python scripts/validator.py \
--prompt existing-prompt.md \
--report validation-report.json
# Optimize prompt
python scripts/optimizer.py \
--prompt my-prompt.md \
--target-tokens 5000 \
--output optimized-prompt.md
The skill will automatically call Python scripts for:
User Experience:
Quality:
Coverage:
HOW_TO_USE.md - Comprehensive user guide with examplestemplates/presets/ - 15 quick-start templatestemplates/template-synthesis.md - Custom template generation guidelinesreferences/best-practices/ - OpenAI, Anthropic, Google techniquesreferences/prompt-patterns.md - Common patterns libraryreferences/use-case-matrix.md - Complete role/industry/task matrixexamples/ - 20 complete examples (5 basic, 5 advanced, 10 industry)scripts/ - Python automation toolsReady to create world-class prompts? Let's begin!