Prompt Factory - World-Class Prompt Powerhouse
A comprehensive system for generating world-class, production-ready prompts in one shot, eliminating the need for iteration.
⚠️ CRITICAL CONSTRAINTS - READ FIRST
This skill generates PROMPTS only. It does NOT implement the work described in the prompt.
What This Skill DOES:
✅ 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
What This Skill DOES NOT DO:
❌ 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
Expected Workflow:
- User asks for help creating a prompt
- Skill MUST ask 5-7 questions (even if context seems obvious)
- User answers questions with specific details
- Skill generates ONE comprehensive prompt document
- Skill announces token count (e.g., "Generated prompt: 4,200 tokens")
- STOP - Do not implement anything from the prompt
- Ask: "Would you like me to modify the prompt or create a variation?"
Why This Matters:
- Prevents scope creep: You're making a prompt, not doing the work
- Saves context: One prompt document vs. dozens of implementation files
- Clear deliverable: User gets a prompt to use with any LLM
- Reusability: The prompt can be used multiple times
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.
Overview
Transform any requirement into an optimized mega-prompt through:
- Mandatory 5-7 question flow (MUST ask, even if context obvious) with example answers
- 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, specialized)
- Multi-format output (XML/Claude/ChatGPT/Gemini)
- 7-point quality validation before delivery
- Contextual best practices from OpenAI, Anthropic, Google
- Core & Advanced modes for different needs
- Complete coverage of role × industry × task combinations
Relationship to PROMPTS_FACTORY_PROMPT.md
This skill works alongside the meta-prompt template:
Quick Decision:
- Need one prompt now? → Use this skill (prompt-factory)
- Building a prompt system for a new domain? → Use PROMPTS_FACTORY_PROMPT.md
Quick Start: Choose Your Path
Path 1: Quick-Start Preset (Fastest)
Use when: You need a prompt for a common role
- User says: "I need a prompt for [preset name]"
- Show matching preset with customizable variables
- Customize (optional) → Generate → Deliver
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)
Path 2: Custom Prompt (5-7 Questions - MANDATORY)
Use when: Building a unique prompt from scratch
- Detect intent from user request
- MUST ask 5-7 questions with example answers (no skipping allowed)
- Generate with contextual best practices
- Validate quality → Deliver
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.
Workflow: Custom Prompt Generation
Step 1: Intent Detection & Context Inference
Analyze user's request for trigger keywords:
Role Triggers:
- Technical: "engineer", "developer", "architect", "DevOps", "backend", "frontend", "full-stack", "ML", "data scientist"
- Business: "manager", "strategist", "analyst", "consultant", "executive", "director", "VP"
- Creative: "designer", "writer", "content", "UX", "brand", "marketing"
- Specialized: "healthcare", "fintech", "legal", "education", "security"
Task Triggers:
- Build: "create", "build", "develop", "implement", "code", "write"
- Analyze: "analyze", "review", "evaluate", "assess", "audit", "research"
- Optimize: "optimize", "improve", "refactor", "enhance", "fix"
- Plan: "strategy", "plan", "roadmap", "architecture", "design"
Output Triggers:
- "code", "documentation", "strategy", "analysis", "plan", "design", "report"
Infer from context:
- Primary role
- Domain/industry
- Task complexity (basic/intermediate/advanced/expert)
- Output type
- Technical depth needed
Step 2: Smart 7-Question Flow
MANDATORY: You MUST ask questions before generating any prompt.
Questioning Rules:
- MINIMUM: Ask at least 5 questions (even if context seems clear)
- MAXIMUM: Ask up to 7 questions (skip only truly redundant ones)
- Always ask for CONFIRMATION of inferred details, don't just assume
- Purpose: Validate assumptions, gather specifics, ensure quality output
When to skip a question:
- ✅ ONLY if user explicitly provided that exact detail in their request
- ✅ Example: User says "React 18 with TypeScript" → skip tech stack question
When to ask even if you think you know:
- ✅ ALWAYS ask for domain/industry context (gets specifics)
- ✅ ALWAYS ask for constraints (budget, timeline, team size)
- ✅ ALWAYS ask for success criteria (measurable outcomes)
- ✅ Ask for confirmation: "I'm inferring [X], is that correct?"
Question Bank (Select 5-7):
Category 1: Role & Domain (Ask 2 max)
Q1: What role should the AI assume?
Examples:
- "Senior Backend Engineer"
- "Marketing Growth Strategist"
- "Data Analyst"
- "Product Manager"
- "UX Designer"
Your answer: ___
Q2: What domain or industry context?
Examples:
- "FinTech / Payment Processing"
- "Healthcare SaaS"
- "E-commerce Platform"
- "B2B Marketing Agency"
- "Mobile Gaming"
Your answer: ___
Category 2: Use Case & Output (Ask 2)
Q3: What is the primary task or goal?
Examples:
- "Build REST APIs for payment processing"
- "Create content marketing strategies"
- "Analyze user behavior data"
- "Design mobile app interfaces"
- "Optimize database performance"
Your answer: ___
Q4: What output format do you need?
Options:
code - Implementation code with tests
documentation - Technical/user docs
strategy - Strategic plans/roadmaps
analysis - Data analysis/insights
design - UI/UX designs
plan - Project/implementation plans
Your answer: ___
Category 3: Context & Constraints (Ask 1-2)
Q5: Tech stack, tools, or methodologies to use/follow?
Examples:
- "Python, FastAPI, PostgreSQL, AWS"
- "React, TypeScript, Next.js"
- "Agile/Scrum methodology"
- "SEO best practices, Google Analytics"
- "Figma, Design Systems, WCAG 2.1"
Your answer: ___
Q6: Any critical constraints or requirements?
Examples:
- "HIPAA compliant, healthcare regulations"
- "Budget < $10k, 2-week timeline"
- "Must support 10k+ concurrent users"
- "PCI-DSS compliance for payments"
- "Mobile-first, accessibility AA"
Your answer: ___
Category 4: Style & Format (Ask 1-2)
Q7: Communication style and response format?
Options:
- Tone: Professional / Technical / Casual / Academic
- Style: Concise / Detailed / Step-by-step / Conceptual
- Format: Prose / Bullets / Mixed / Code-heavy
- Depth: High-level / Moderate / Deep-technical / Implementation-ready
Example: "Technical tone, detailed style, mixed format, implementation-ready depth"
Your answer: ___
Smart Question Adaptation:
- If technical/coding detected: MUST ask about tech stack, constraints, success criteria
- If business detected: MUST ask about KPIs, stakeholders, metrics
- If creative detected: MUST ask about brand voice, audience, distribution
- If industry-specific: MUST ask about compliance, regulations, standards
Strict Minimum Requirements (Cannot Skip):
- ✅ MUST ask at least 1 question about role/domain (even if "obvious")
- ✅ MUST ask at least 1 question about use case/task details
- ✅ MUST ask about constraints OR success criteria (at minimum one)
- ✅ MUST ask about output format preference
- ✅ MUST ask about mode (core vs. advanced)
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:
- "I'm inferring role = Product Manager. What domain/industry? (e.g., B2B SaaS, Mobile Apps, Healthcare)"
- "What type of PRD? (e.g., New Feature, Platform Migration, MVP Launch)"
- "What are the constraints? (e.g., Team size, Timeline, Budget, Technical stack)"
- "What are the success criteria? (e.g., Stakeholder approval, Dev handoff ready, Measurable KPIs)"
- "What output format? (XML [default], Claude, ChatGPT, Gemini, All)"
DO NOT skip questions just because you can infer answers. ALWAYS ask for validation and specifics.
Step 3: Output Format Selection
After gathering responses, ask:
Select output format:
xml - XML-structured markdown (optimal for LLM parsing) [DEFAULT]
claude - Claude-optimized system prompt format
chatgpt - ChatGPT custom instructions format
gemini - Google Gemini format
all - Generate all 4 formats
Your choice: ___ (or press enter for default)
Step 4: Mode Selection
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)
Step 5: Template Matching & Synthesis
Check Quick-Start Presets:
- Read
templates/presets/ for matching templates
- Match criteria: role (>80%), domain (>70%), output type (exact)
Decision Logic:
- High match (>85%): Use preset, customize variables
- Moderate match (60-85%): Use as base, significant modifications
- Low match (<60%): Synthesize custom template using:
references/best-practices/ (OpenAI/Anthropic/Google)
references/prompt-patterns.md (common patterns)
- Contextual best practices for role/domain/task
Step 6: Quality Validation (7-Point Gates)
Before output, validate:
- ✓ XML Structure - All tags properly opened/closed (if XML format)
- ✓ Completeness - All questionnaire responses incorporated
- ✓ Token Count - Count tokens and verify reasonable size:
- Core mode: 3,000-6,000 tokens (ideal ~4,500)
- Advanced mode: 8,000-12,000 tokens (ideal ~10,000)
- Warning if >8K for core, >15K for advanced
- ANNOUNCE token count in delivery message
- ✓ No Placeholders - All
[...] filled with actual content
- ✓ Actionable Workflow - Clear, executable steps
- ✓ Best Practices - Contextually relevant practices applied
- ✓ Examples Present - At least 2 examples demonstrating expected behavior
If validation fails: Fix issues before delivery.
Token Count Announcement:
After generating the prompt, count tokens and include in delivery message:
- "Token Count: ~4,200 tokens (Core mode - within optimal range ✅)"
- "Token Count: ~10,500 tokens (Advanced mode - comprehensive ✅)"
- "Token Count: ~7,800 tokens (Warning: Higher than typical Core mode)"
Step 7: Generate Mega-Prompt
Core Mode Output Structure
Generate based on selected format:
Format 1: XML (Default)
<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>
Format 2: Claude System 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.
Format 3: ChatGPT Custom Instructions
**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].
Format 4: Gemini Format
## 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.
Advanced Mode Additions
If user selected advanced mode, append these sections:
Testing Scenarios
<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
<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
<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>
Step 8: Delivery Message
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."
Quick-Start Presets
When user mentions a preset name, load template and offer customization.
Available Presets (69 Total)
Technical (8 presets)
- Senior Full-Stack Engineer -
templates/presets/technical/fullstack-engineer.md
- DevOps Engineer -
templates/presets/technical/devops-engineer.md
- Mobile Engineer -
templates/presets/technical/mobile-engineer.md
- Data Scientist -
templates/presets/technical/data-scientist.md
- Security Engineer -
templates/presets/technical/security-engineer.md
- Cloud Architect -
templates/presets/technical/cloud-architect.md
- Database Engineer -
templates/presets/technical/database-engineer.md
- QA Engineer -
templates/presets/technical/qa-engineer.md
Business (8 presets)
- Product Manager -
templates/presets/business/product-manager.md
- Product Engineer -
templates/presets/business/product-engineer.md
- Product Owner -
templates/presets/business/product-owner.md
- Project Manager -
templates/presets/business/project-manager.md
- Operations Manager -
templates/presets/business/operations-manager.md
- Sales & Business Manager -
templates/presets/business/sales-business-manager.md
- Business Analyst -
templates/presets/business/business-analyst.md
- Marketing Manager -
templates/presets/business/marketing-manager.md
Legal & Compliance (4 presets)
- Legal Counsel -
templates/presets/legal/legal-counsel.md
- Compliance Officer -
templates/presets/legal/compliance-officer.md
- Contract Manager -
templates/presets/legal/contract-manager.md
- Regulatory Affairs Specialist -
templates/presets/legal/regulatory-affairs.md
Finance & Accounting (4 presets)
- Financial Analyst -
templates/presets/finance/financial-analyst.md
- CFO / Controller -
templates/presets/finance/cfo-controller.md
- Accountant / Tax Specialist -
templates/presets/finance/accountant-tax.md
- Investment Analyst -
templates/presets/finance/investment-analyst.md
Human Resources (4 presets)
- HR Manager / HR Business Partner -
templates/presets/hr/hr-manager.md
- Talent Acquisition Specialist -
templates/presets/hr/talent-acquisition.md
- Learning & Development Manager -
templates/presets/hr/learning-development.md
- Compensation & Benefits Analyst -
templates/presets/hr/compensation-analyst.md
Design (4 presets)
- UI/UX Designer -
templates/presets/design/ui-ux-designer.md
- Graphic Designer -
templates/presets/design/graphic-designer.md
- Brand Designer -
templates/presets/design/brand-designer.md
- Product Designer -
templates/presets/design/product-designer.md
Customer-Facing (4 presets)
- Customer Success Manager -
templates/presets/customer/customer-success-manager.md
- Support Engineer / Technical Support -
templates/presets/customer/support-engineer.md
- Account Manager -
templates/presets/customer/account-manager.md
- Customer Experience Manager -
templates/presets/customer/customer-experience-manager.md
Executive Leadership (7 presets)
- CEO / Founder -
templates/presets/executive/ceo-founder.md
- CTO / VP of Engineering -
templates/presets/executive/cto-vp-engineering.md
- Chief Strategy Officer -
templates/presets/executive/chief-strategy-officer.md
- General Manager -
templates/presets/executive/general-manager.md
- Chief Product Officer (CPO) -
templates/presets/executive/chief-product-officer.md
- Chief Marketing Officer (CMO) -
templates/presets/executive/chief-marketing-officer.md
- Chief Operations Officer (COO) -
templates/presets/executive/chief-operations-officer.md
Specialized Technical (6 presets)
- Machine Learning Engineer -
templates/presets/specialized-technical/ml-engineer.md
- Blockchain Developer -
templates/presets/specialized-technical/blockchain-developer.md
- Game Developer -
templates/presets/specialized-technical/game-developer.md
- Embedded Systems Engineer -
templates/presets/specialized-technical/embedded-systems-engineer.md
- Network Engineer -
templates/presets/specialized-technical/network-engineer.md
- Site Reliability Engineer (SRE) -
templates/presets/specialized-technical/site-reliability-engineer.md
Research & Analysis (3 presets)
- Research Scientist -
templates/presets/research/research-scientist.md
- Quantitative Analyst (Quant) -
templates/presets/research/quantitative-analyst.md
- Market Researcher -
templates/presets/research/market-researcher.md
Creative & Media (4 presets)
- Copywriter -
templates/presets/creative-media/copywriter.md
- Social Media Manager -
templates/presets/creative-media/social-media-manager.md
- SEO Specialist -
templates/presets/creative-media/seo-specialist.md
- Video Producer / Content Creator -
templates/presets/creative-media/video-producer.md
Manufacturing (4 presets)
- Manufacturing Engineer -
templates/presets/manufacturing/manufacturing-engineer.md
- Supply Chain Manager -
templates/presets/manufacturing/supply-chain-manager.md
- Quality Engineer (Physical Products) -
templates/presets/manufacturing/quality-engineer.md
- Industrial Designer -
templates/presets/manufacturing/industrial-designer.md
R&D - Research & Development (2 presets)
- Clinical Specialist (PhD-level) -
templates/presets/rd/clinical-specialist.md
- Senior AI R&D Expert -
templates/presets/rd/ai-rd-expert.md
Regulatory Affairs (1 preset)
- Quality Management Responsible Person -
templates/presets/regulatory/quality-management-responsible.md
Creative (2 presets)
- Content Strategist -
templates/presets/creative/content-strategist.md
- UX Researcher -
templates/presets/creative/ux-researcher.md
Specialized (4 presets)
- Technical Writer -
templates/presets/specialized/technical-writer.md
- Sales Engineer -
templates/presets/specialized/sales-engineer.md
- Marketing Strategist -
templates/presets/business/marketing-strategist.md
- AEO Specialist (Answer Engine Optimization) -
templates/presets/specialized/aeo-specialist.md
Contextual Best Practices Integration
Apply relevant practices based on context:
By Output Type
Code:
- OpenAI: Step-by-step reasoning, edge case handling
- Anthropic: Clear code structure with comments
- Google: Modular design, example-driven
- Domain: Language-specific idioms, testing standards
Documentation:
- OpenAI: Clear structure, practical examples
- Anthropic: Logical flow, comprehensive coverage
- Google: Visual aids, progressive disclosure
- Domain: Audience-appropriate depth, accessibility
Strategy:
- OpenAI: Data-driven reasoning, scenario analysis
- Anthropic: Structured framework, clear rationale
- Google: Actionable insights, measurable outcomes
- Domain: Industry benchmarks, competitive context
Analysis:
- OpenAI: Methodology transparency, evidence-based
- Anthropic: Clear conclusions, limitations noted
- Google: Visual data presentation, insights hierarchy
- Domain: Domain metrics, analytical rigor
By Complexity Level
Basic: Essential practices, simplified workflows
Intermediate: Standard practices, complete workflows
Advanced: Advanced techniques, optimization focus
Expert: Cutting-edge practices, innovation emphasis
By Domain
Technical: Code quality, testing, security, performance
Business: ROI focus, stakeholder alignment, measurability
Creative: Brand consistency, audience resonance, originality
Specialized: Compliance, regulations, industry standards
Use Case Matrix Coverage
Supported Combinations: 15,000+
50+ Roles:
- Developers (Frontend, Backend, Full-Stack, Mobile, ML, DevOps, etc.)
- Analysts (Data, Business, Product, Market, etc.)
- Strategists (Marketing, Business, Product, Growth, etc.)
- Designers (UX, UI, Product, System, etc.)
- Consultants (Tech, Business, Strategy, Domain-specific, etc.)
- Managers (Product, Project, Operations, Technical, etc.)
- Specialists (Security, Performance, Quality, Compliance, etc.)
20+ Industries:
- Technology (SaaS, Cloud, Mobile, Web, AI/ML)
- Finance (Banking, Trading, Payments, Insurance, FinTech)
- Healthcare (Clinical, Pharma, MedTech, Telemedicine)
- E-commerce (Retail, Marketplace, D2C)
- Education (EdTech, E-learning, Academic)
- Legal (LegalTech, Compliance, Contracts)
- Manufacturing (IoT, Supply Chain, Automation)
- Media (Streaming, Content, Publishing)
- Real Estate (PropTech, Management, Investment)
- And 11 more...
15+ Task Types:
- Build/Create/Develop
- Analyze/Evaluate/Assess
- Design/Architect/Plan
- Optimize/Improve/Refactor
- Debug/Fix/Troubleshoot
- Document/Write/Explain
- Test/Validate/Verify
- Strategize/Plan/Roadmap
- And 7 more...
Error Handling & Edge Cases
Insufficient Information
If user responses are vague:
- Identify specific gaps
- Ask targeted follow-up (max 2 questions)
- Offer sensible defaults with confirmation
Conflicting Requirements
If responses contain contradictions:
- Highlight specific conflicts
- Request clarification with options
- Suggest resolution based on common patterns
Over-Complex Requests
If requirements suggest >10K token prompt:
- Suggest breaking into multiple specialized prompts
- Offer modular approach
- Provide coordination guidance for multi-prompt system
Template Unavailable
If template file cannot be loaded:
- Fall back to synthesis mode
- Use best practices from references
- Generate custom template on the fly
Python Script Integration
Manual Script Usage
# 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
Skill-Triggered Script Execution
The skill will automatically call Python scripts for:
- Quality validation (validator.py)
- Token counting (within validator.py)
- Batch operations (if user requests multiple prompts)
Success Metrics
User Experience:
- Max 7 questions (vs 14-16 in other skills)
- < 2 minutes to generate prompt
- 15 one-click presets available
- 5 output format options
- 2 generation modes (core/advanced)
Quality:
- 7-point pre-delivery validation
- 100% XML structure validity (when applicable)
- Best practices contextually applied
- Token-optimized outputs
- Zero placeholder text in final output
Coverage:
- 15 ready-to-use core templates
- 15,000+ role/industry/task combinations
- Support for all major LLMs (Claude/ChatGPT/Gemini)
- Both basic and expert use cases
Reference Files
HOW_TO_USE.md - Comprehensive user guide with examples
templates/presets/ - 15 quick-start templates
templates/template-synthesis.md - Custom template generation guidelines
references/best-practices/ - OpenAI, Anthropic, Google techniques
references/prompt-patterns.md - Common patterns library
references/use-case-matrix.md - Complete role/industry/task matrix
examples/ - 20 complete examples (5 basic, 5 advanced, 10 industry)
scripts/ - Python automation tools
Ready to create world-class prompts? Let's begin!
1---2name: prompt-factory3description: 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.4---5
6# Prompt Factory - World-Class Prompt Powerhouse
7
8A comprehensive system for generating world-class, production-ready prompts in one shot, eliminating the need for iteration.
9
10---
11
12## ⚠️ CRITICAL CONSTRAINTS - READ FIRST
13
14**This skill generates PROMPTS only. It does NOT implement the work described in the prompt.**
15
16### What This Skill DOES:
17✅ Generate a comprehensive PROMPT (text document in chosen format)
18✅ **Ask 5-7 questions to understand requirements** (MANDATORY - no skipping)
19✅ Validate prompt quality before delivery
20✅ Output a SINGLE prompt document with token count
21✅ Provide the prompt ready to copy and use elsewhere
22
23### What This Skill DOES NOT DO:
24❌ Implement the actual work (no code files, no diagrams, no APIs)
25❌ Create architectural diagrams or technical implementations
26❌ Write actual marketing campaigns or business strategies
27❌ Build infrastructure or deploy anything
28❌ Create multiple files or deliverables
29❌ Execute the prompt after generating it
30
31### Expected Workflow:
321. User asks for help creating a prompt
332. **Skill MUST ask 5-7 questions** (even if context seems obvious)
343. User answers questions with specific details
354. Skill generates ONE comprehensive prompt document
365. Skill announces token count (e.g., "Generated prompt: 4,200 tokens")
376. **STOP** - Do not implement anything from the prompt
387. Ask: "Would you like me to modify the prompt or create a variation?"
39
40### Why This Matters:
41- **Prevents scope creep**: You're making a prompt, not doing the work
42- **Saves context**: One prompt document vs. dozens of implementation files
43- **Clear deliverable**: User gets a prompt to use with any LLM
44- **Reusability**: The prompt can be used multiple times
45
46**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.
47
48---
49
50## Overview
51
52Transform any requirement into an optimized mega-prompt through:
531. **Mandatory 5-7 question flow** (MUST ask, even if context obvious) with example answers
542. **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, specialized)
553. **Multi-format output** (XML/Claude/ChatGPT/Gemini)
564. **7-point quality validation** before delivery
575. **Contextual best practices** from OpenAI, Anthropic, Google
586. **Core & Advanced modes** for different needs
597. **Complete coverage** of role × industry × task combinations
60
61---
62
63## Relationship to PROMPTS_FACTORY_PROMPT.md
64
65This skill works alongside the meta-prompt template:
66
67- **prompt-factory skill (this file)**: Generates individual mega-prompts for specific roles using 69 presets
68 - **Use when**: You need a single prompt for a common role (e.g., "Product Manager", "Full-Stack Engineer")
69 - **Output**: One ready-to-use mega-prompt (~4-12K tokens)
70 - **Example**: "Create a prompt for a Growth Hacker in B2B SaaS" → generates one prompt
71
72- **PROMPTS_FACTORY_PROMPT.md**: Meta-prompt that generates domain-specific prompt builders
73 - **Use when**: You want to create a new prompt generation system for a specific domain (e.g., Healthcare, FinTech, Legal)
74 - **Output**: A complete prompt builder with 10-20 role presets for that domain
75 - **Example**: "Generate a FinTech Prompt Builder" → creates a system with 10-20 FinTech role presets
76 - **Location**: `documentation/templates/PROMPTS_FACTORY_PROMPT.md`
77
78**Quick Decision**:
79- Need one prompt now? → Use this skill (prompt-factory)
80- Building a prompt system for a new domain? → Use PROMPTS_FACTORY_PROMPT.md
81
82---
83
84## Quick Start: Choose Your Path
85
86### Path 1: Quick-Start Preset (Fastest)
87**Use when:** You need a prompt for a common role
88
891. User says: "I need a prompt for [preset name]"
902. Show matching preset with customizable variables
913. Customize (optional) → Generate → Deliver
92
93**Available Presets (69 total across 15 domains):**
94
95**Technical (8):** Full-Stack Engineer, DevOps Engineer, Mobile Engineer, Data Scientist, Security Engineer, Cloud Architect, Database Engineer, QA Engineer
96
97**Business (8):** Product Manager, Product Engineer, Product Owner, Project Manager, Operations Manager, Sales & Business Manager, Business Analyst, Marketing Manager
98
99**Legal & Compliance (4):** Legal Counsel, Compliance Officer, Contract Manager, Regulatory Affairs Specialist
100
101**Finance & Accounting (4):** Financial Analyst, CFO/Controller, Accountant/Tax Specialist, Investment Analyst
102
103**Human Resources (4):** HR Manager, Talent Acquisition Specialist, Learning & Development Manager, Compensation & Benefits Analyst
104
105**Design (4):** UI/UX Designer, Graphic Designer, Brand Designer, Product Designer
106
107**Customer-Facing (4):** Customer Success Manager, Support Engineer, Account Manager, Customer Experience Manager
108
109**Executive Leadership (7):** CEO/Founder, CTO/VP Engineering, Chief Strategy Officer, General Manager, Chief Product Officer, Chief Marketing Officer, Chief Operations Officer
110
111**Specialized Technical (6):** Machine Learning Engineer, Blockchain Developer, Game Developer, Embedded Systems Engineer, Network Engineer, Site Reliability Engineer (SRE)
112
113**Research & Analysis (3):** Research Scientist, Quantitative Analyst, Market Researcher
114
115**Creative & Media (4):** Copywriter, Social Media Manager, SEO Specialist, Video Producer
116
117**Manufacturing (4):** Manufacturing Engineer, Supply Chain Manager, Quality Engineer (Physical Products), Industrial Designer
118
119**R&D - Research & Development (2):** Clinical Specialist (PhD-level), Senior AI R&D Expert
120
121**Regulatory Affairs (1):** Quality Management Responsible Person (ISO 13485, MDR, ISO 27001)
122
123**Specialized (1):** AEO Specialist (Answer Engine Optimization for LLMs)
124
125### Path 2: Custom Prompt (5-7 Questions - MANDATORY)
126**Use when:** Building a unique prompt from scratch
127
1281. Detect intent from user request
1292. **MUST ask 5-7 questions** with example answers (no skipping allowed)
1303. Generate with contextual best practices
1314. Validate quality → Deliver
132
133**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.
134
135---
136
137## Workflow: Custom Prompt Generation
138
139### Step 1: Intent Detection & Context Inference
140
141Analyze user's request for trigger keywords:
142
143**Role Triggers:**
144- Technical: "engineer", "developer", "architect", "DevOps", "backend", "frontend", "full-stack", "ML", "data scientist"
145- Business: "manager", "strategist", "analyst", "consultant", "executive", "director", "VP"
146- Creative: "designer", "writer", "content", "UX", "brand", "marketing"
147- Specialized: "healthcare", "fintech", "legal", "education", "security"
148
149**Task Triggers:**
150- Build: "create", "build", "develop", "implement", "code", "write"
151- Analyze: "analyze", "review", "evaluate", "assess", "audit", "research"
152- Optimize: "optimize", "improve", "refactor", "enhance", "fix"
153- Plan: "strategy", "plan", "roadmap", "architecture", "design"
154
155**Output Triggers:**
156- "code", "documentation", "strategy", "analysis", "plan", "design", "report"
157
158**Infer from context:**
159- Primary role
160- Domain/industry
161- Task complexity (basic/intermediate/advanced/expert)
162- Output type
163- Technical depth needed
164
165### Step 2: Smart 7-Question Flow
166
167**MANDATORY: You MUST ask questions before generating any prompt.**
168
169**Questioning Rules:**
170- **MINIMUM: Ask at least 5 questions** (even if context seems clear)
171- **MAXIMUM: Ask up to 7 questions** (skip only truly redundant ones)
172- **Always ask for CONFIRMATION** of inferred details, don't just assume
173- **Purpose:** Validate assumptions, gather specifics, ensure quality output
174
175**When to skip a question:**
176- ✅ ONLY if user explicitly provided that exact detail in their request
177- ✅ Example: User says "React 18 with TypeScript" → skip tech stack question
178
179**When to ask even if you think you know:**
180- ✅ ALWAYS ask for domain/industry context (gets specifics)
181- ✅ ALWAYS ask for constraints (budget, timeline, team size)
182- ✅ ALWAYS ask for success criteria (measurable outcomes)
183- ✅ Ask for confirmation: "I'm inferring [X], is that correct?"
184
185**Question Bank (Select 5-7):**
186
187#### Category 1: Role & Domain (Ask 2 max)
188
189**Q1: What role should the AI assume?**
190*Examples:*
191- "Senior Backend Engineer"
192- "Marketing Growth Strategist"
193- "Data Analyst"
194- "Product Manager"
195- "UX Designer"
196
197Your answer: `___`
198
199**Q2: What domain or industry context?**
200*Examples:*
201- "FinTech / Payment Processing"
202- "Healthcare SaaS"
203- "E-commerce Platform"
204- "B2B Marketing Agency"
205- "Mobile Gaming"
206
207Your answer: `___`
208
209#### Category 2: Use Case & Output (Ask 2)
210
211**Q3: What is the primary task or goal?**
212*Examples:*
213- "Build REST APIs for payment processing"
214- "Create content marketing strategies"
215- "Analyze user behavior data"
216- "Design mobile app interfaces"
217- "Optimize database performance"
218
219Your answer: `___`
220
221**Q4: What output format do you need?**
222*Options:*
223- `code` - Implementation code with tests
224- `documentation` - Technical/user docs
225- `strategy` - Strategic plans/roadmaps
226- `analysis` - Data analysis/insights
227- `design` - UI/UX designs
228- `plan` - Project/implementation plans
229
230Your answer: `___`
231
232#### Category 3: Context & Constraints (Ask 1-2)
233
234**Q5: Tech stack, tools, or methodologies to use/follow?**
235*Examples:*
236- "Python, FastAPI, PostgreSQL, AWS"
237- "React, TypeScript, Next.js"
238- "Agile/Scrum methodology"
239- "SEO best practices, Google Analytics"
240- "Figma, Design Systems, WCAG 2.1"
241
242Your answer: `___`
243
244**Q6: Any critical constraints or requirements?**
245*Examples:*
246- "HIPAA compliant, healthcare regulations"
247- "Budget < $10k, 2-week timeline"
248- "Must support 10k+ concurrent users"
249- "PCI-DSS compliance for payments"
250- "Mobile-first, accessibility AA"
251
252Your answer: `___`
253
254#### Category 4: Style & Format (Ask 1-2)
255
256**Q7: Communication style and response format?**
257*Options:*
258- **Tone:** Professional / Technical / Casual / Academic
259- **Style:** Concise / Detailed / Step-by-step / Conceptual
260- **Format:** Prose / Bullets / Mixed / Code-heavy
261- **Depth:** High-level / Moderate / Deep-technical / Implementation-ready
262
263*Example:* "Technical tone, detailed style, mixed format, implementation-ready depth"
264
265Your answer: `___`
266
267---
268
269**Smart Question Adaptation:**
270
271- **If technical/coding detected:** MUST ask about tech stack, constraints, success criteria
272- **If business detected:** MUST ask about KPIs, stakeholders, metrics
273- **If creative detected:** MUST ask about brand voice, audience, distribution
274- **If industry-specific:** MUST ask about compliance, regulations, standards
275
276**Strict Minimum Requirements (Cannot Skip):**
277- ✅ MUST ask at least 1 question about role/domain (even if "obvious")
278- ✅ MUST ask at least 1 question about use case/task details
279- ✅ MUST ask about constraints OR success criteria (at minimum one)
280- ✅ MUST ask about output format preference
281- ✅ MUST ask about mode (core vs. advanced)
282
283**Total: MINIMUM 5 questions, MAXIMUM 7 questions**
284
285**Example - Even for "Obvious" Requests:**
286
287User: "Write a product manager prompt for creating a PRD"
288
289You MUST still ask:
2901. "I'm inferring role = Product Manager. What domain/industry? (e.g., B2B SaaS, Mobile Apps, Healthcare)"
2912. "What type of PRD? (e.g., New Feature, Platform Migration, MVP Launch)"
2923. "What are the constraints? (e.g., Team size, Timeline, Budget, Technical stack)"
2934. "What are the success criteria? (e.g., Stakeholder approval, Dev handoff ready, Measurable KPIs)"
2945. "What output format? (XML [default], Claude, ChatGPT, Gemini, All)"
295
296**DO NOT skip questions just because you can infer answers. ALWAYS ask for validation and specifics.**
297
298---
299
300### Step 3: Output Format Selection
301
302After gathering responses, ask:
303
304**Select output format:**
3051. `xml` - XML-structured markdown (optimal for LLM parsing) [DEFAULT]
3062. `claude` - Claude-optimized system prompt format
3073. `chatgpt` - ChatGPT custom instructions format
3084. `gemini` - Google Gemini format
3095. `all` - Generate all 4 formats
310
311Your choice: `___` (or press enter for default)
312
313---
314
315### Step 4: Mode Selection
316
317**Select generation mode:**
3181. `core` - Prompt + usage instructions + 2-3 examples (~5K tokens) [DEFAULT]
3192. `advanced` - Core + testing scenarios + variations + optimization tips (~12K tokens)
320
321Your choice: `___` (or press enter for core mode)
322
323---
324
325### Step 5: Template Matching & Synthesis
326
327**Check Quick-Start Presets:**
328- Read `templates/presets/` for matching templates
329- Match criteria: role (>80%), domain (>70%), output type (exact)
330
331**Decision Logic:**
332- **High match (>85%)**: Use preset, customize variables
333- **Moderate match (60-85%)**: Use as base, significant modifications
334- **Low match (<60%)**: Synthesize custom template using:
335 - `references/best-practices/` (OpenAI/Anthropic/Google)
336 - `references/prompt-patterns.md` (common patterns)
337 - Contextual best practices for role/domain/task
338
339---
340
341### Step 6: Quality Validation (7-Point Gates)
342
343Before output, validate:
344
3451. ✓ **XML Structure** - All tags properly opened/closed (if XML format)
3462. ✓ **Completeness** - All questionnaire responses incorporated
3473. ✓ **Token Count** - Count tokens and verify reasonable size:
348 - Core mode: 3,000-6,000 tokens (ideal ~4,500)
349 - Advanced mode: 8,000-12,000 tokens (ideal ~10,000)
350 - **Warning if >8K for core, >15K for advanced**
351 - **ANNOUNCE token count in delivery message**
3524. ✓ **No Placeholders** - All `[...]` filled with actual content
3535. ✓ **Actionable Workflow** - Clear, executable steps
3546. ✓ **Best Practices** - Contextually relevant practices applied
3557. ✓ **Examples Present** - At least 2 examples demonstrating expected behavior
356
357**If validation fails:** Fix issues before delivery.
358
359**Token Count Announcement:**
360After generating the prompt, count tokens and include in delivery message:
361- "**Token Count:** ~4,200 tokens (Core mode - within optimal range ✅)"
362- "**Token Count:** ~10,500 tokens (Advanced mode - comprehensive ✅)"
363- "**Token Count:** ~7,800 tokens (Warning: Higher than typical Core mode)"
364
365---
366
367### Step 7: Generate Mega-Prompt
368
369#### Core Mode Output Structure
370
371Generate based on selected format:
372
373##### Format 1: XML (Default)
374
375```xml
376<mega_prompt>
377
378<role>
379[Role title with expertise and domain specialization]
380</role>
381
382<mission>
383[Primary objective and success criteria]
384</mission>
385
386<context>
387 <domain>[Industry/field context]</domain>
388 <expertise>[Specialized knowledge areas]</expertise>
389 <tech_stack>[Technologies and tools if applicable]</tech_stack>
390 <constraints>[Limitations and requirements]</constraints>
391 <avoidance_rules>[What NOT to do]</avoidance_rules>
392</context>
393
394<workflow>
395 <phase_1>
396 [First phase name and steps]
397 </phase_1>
398 <phase_2>
399 [Second phase name and steps]
400 </phase_2>
401 <phase_3>
402 [Third phase name and steps]
403 </phase_3>
404 <phase_4>
405 [Fourth phase name and steps]
406 </phase_4>
407</workflow>
408
409<output_specifications>
410 <format>[Expected output format]</format>
411 <structure>[How to organize the output]</structure>
412 <depth_level>[How detailed to be]</depth_level>
413 <quality_criteria>[Success metrics]</quality_criteria>
414</output_specifications>
415
416<communication_guidelines>
417 <tone>[Communication style]</tone>
418 <audience>[Target reader level]</audience>
419 <formatting>[How to format responses]</formatting>
420 <examples_usage>[When and how to use examples]</examples_usage>
421</communication_guidelines>
422
423<best_practices>
424[Contextually selected best practices for this role/domain/task]
425
426[From OpenAI:]
427- [Relevant OpenAI practice 1]
428- [Relevant OpenAI practice 2]
429
430[From Anthropic:]
431- [Relevant Anthropic practice 1]
432- [Relevant Anthropic practice 2]
433
434[From Google:]
435- [Relevant Google practice 1]
436- [Relevant Google practice 2]
437
438[Domain-Specific:]
439- [Domain best practice 1]
440- [Domain best practice 2]
441- [Domain best practice 3]
442</best_practices>
443
444<critical_instructions>
445 <priority_1>
446 [Most important rules - must follow]
447 </priority_1>
448 <priority_2>
449 [Important guidelines - should follow]
450 </priority_2>
451 <priority_3>
452 [Supporting instructions - recommended]
453 </priority_3>
454</critical_instructions>
455
456<examples>
457## Example 1: [Scenario Name]
458**User Request:** [Typical user request]
459
460**Expected Response Structure:**
461[Show how to structure the response]
462
463## Example 2: [Scenario Name]
464**User Request:** [Another typical request]
465
466**Expected Response Structure:**
467[Show the response pattern]
468</examples>
469
470<execution_trigger>
471You are now fully configured as [Role] specialized in [Domain].
472
473When the user provides a request:
4741. Analyze their specific needs using the workflow above
4752. Apply relevant best practices contextually
4763. Generate output meeting quality criteria
4774. Deliver complete solution in one comprehensive response
478
479Begin assisting the user now with this configuration.
480</execution_trigger>
481
482</mega_prompt>
483```
484
485##### Format 2: Claude System Prompt
486
487```markdown
488# System Configuration: [Role]
489
490You are [role with expertise and domain]. Your mission is to [primary objective].
491
492## Your Expertise
493[Domain and specialized knowledge areas]
494
495## Your Workflow
496When given a task:
4971. [Phase 1 steps]
4982. [Phase 2 steps]
4993. [Phase 3 steps]
5004. [Phase 4 steps]
501
502## Output Standards
503- Format: [specified format]
504- Structure: [organization approach]
505- Depth: [detail level]
506- Quality bar: [success criteria]
507
508## Communication Style
509- Tone: [specified tone]
510- Audience: [target level]
511- Formatting: [format approach]
512
513## Critical Rules
514**Must follow:**
515- [Priority 1 rules]
516
517**Should follow:**
518- [Priority 2 guidelines]
519
520## Best Practices
521[Contextually relevant practices for this role/domain]
522
523## Response Examples
524[2-3 examples showing expected behavior]
525
526---
527
528Execute your role now, following all guidelines above.
529```
530
531##### Format 3: ChatGPT Custom Instructions
532
533```
534**What would you like ChatGPT to know about you to provide better responses?**
535
536I need you to act as [role with expertise and domain specialization].
537
538My domain: [industry/field]
539My tech stack: [if applicable]
540My constraints: [if applicable]
541
542**How would you like ChatGPT to respond?**
543
544WORKFLOW:
5451. [Phase 1 approach]
5462. [Phase 2 approach]
5473. [Phase 3 approach]
5484. [Phase 4 approach]
549
550OUTPUT REQUIREMENTS:
551- Format: [specified format]
552- Style: [tone and communication approach]
553- Depth: [detail level]
554- Include: [what to include]
555
556CRITICAL RULES:
557- [Priority 1 rules]
558- [Important guidelines]
559
560BEST PRACTICES TO FOLLOW:
561[Contextually relevant practices]
562
563Always provide [example format] and ensure [quality criteria].
564```
565
566##### Format 4: Gemini Format
567
568```markdown
569## Role Configuration
570You are: [role with expertise and domain]
571
572## Task Approach
573[Workflow summarized for Gemini's style]
574
575## Output Format
576[Clear format specification]
577
578## Quality Standards
579[Success criteria]
580
581## Examples
582[2 concrete examples]
583
584Apply this configuration to all responses.
585```
586
587---
588
589#### Advanced Mode Additions
590
591If user selected `advanced` mode, append these sections:
592
593##### Testing Scenarios
594
595```xml
596<testing_scenarios>
597## Test Case 1: [Simple Case]
598**Input:** [Test input]
599**Expected Behavior:** [What should happen]
600**Success Criteria:** [How to verify]
601
602## Test Case 2: [Edge Case]
603**Input:** [Edge case input]
604**Expected Behavior:** [How to handle]
605**Success Criteria:** [Verification method]
606
607## Test Case 3: [Complex Case]
608**Input:** [Complex scenario]
609**Expected Behavior:** [Expected handling]
610**Success Criteria:** [Verification approach]
611
612## Test Case 4: [Error Case]
613**Input:** [Invalid/error input]
614**Expected Behavior:** [Error handling]
615**Success Criteria:** [How to validate]
616
617## Test Case 5: [Performance Case]
618**Input:** [High-load scenario]
619**Expected Behavior:** [Performance expectations]
620**Success Criteria:** [Performance metrics]
621</testing_scenarios>
622```
623
624##### Prompt Variations
625
626```xml
627<prompt_variations>
628## Variation 1: Concise (~3K tokens)
629[Minimal version focusing on essential instructions]
630
631## Variation 2: Balanced (~5K tokens)
632[Standard version with core guidance - THIS IS THE DEFAULT]
633
634## Variation 3: Comprehensive (~8K tokens)
635[Detailed version with extensive examples and edge cases]
636
637**Recommendation:** Start with Variation 2 (Balanced).
638- Use Variation 1 if token limits are tight
639- Use Variation 3 for complex/critical use cases
640</prompt_variations>
641```
642
643##### Optimization Tips
644
645```xml
646<optimization_tips>
647## Token Optimization
648- Current token count: [estimated count]
649- Optimization opportunities:
650 1. [Optimization suggestion 1]
651 2. [Optimization suggestion 2]
652 3. [Optimization suggestion 3]
653
654## Clarity Improvements
655- Potential ambiguities:
656 1. [Ambiguity 1] → [Clarification suggestion]
657 2. [Ambiguity 2] → [Clarification suggestion]
658
659## Effectiveness Enhancements
660- Consider adding:
661 1. [Enhancement suggestion 1]
662 2. [Enhancement suggestion 2]
663
664## Iteration Guidelines
665After testing this prompt:
6661. Track which responses meet expectations
6672. Note any consistent issues or gaps
6683. Refine specific sections (not wholesale rewrites)
6694. Test refined version with same scenarios
6705. Save successful versions for reuse
671</optimization_tips>
672```
673
674---
675
676### Step 8: Delivery Message
677
678Present the generated prompt with clear context:
679
680```markdown
681✅ **Your [Mode] mega-prompt is ready!**
682
683**Configuration:**
684- **Role:** [Role name]
685- **Domain:** [Domain/industry]
686- **Output Type:** [Type]
687- **Format:** [xml/claude/chatgpt/gemini/all]
688- **Mode:** [core/advanced]
689- **Template:** [Preset name or "Custom"]
690
691**Quality Validation:** ✓ All 7 gates passed
692**Token Count:** ~[X,XXX] tokens ([core: 3K-6K] or [advanced: 8K-12K])
693
694**Generated Prompt:**
695
696[INSERT GENERATED PROMPT HERE]
697
698---
699
700**Usage Instructions:**
701
702[FORMAT-SPECIFIC INSTRUCTIONS:]
703
704**For XML format:**
7051. Copy the entire `<mega_prompt>` block above
7062. Paste into your LLM conversation (Claude, ChatGPT, Gemini, etc.)
7073. Follow with your specific request
7084. The AI will respond according to the defined role
709
710**For Claude format:**
7111. Copy the system configuration above
7122. Use as your system prompt in Claude
7133. Start your conversation
7144. Claude will follow the configured behavior
715
716**For ChatGPT format:**
7171. Go to Settings → Personalization → Custom Instructions
7182. Paste "What would you like..." in top box
7193. Paste "How would you like..." in bottom box
7204. Save and start using
721
722**For Gemini format:**
7231. Copy the role configuration
7242. Paste at start of new Gemini conversation
7253. Continue with your requests
7264. Gemini will maintain the configured role
727
728---
729
730⚠️ **IMPORTANT - Prompt Generation Complete**
731
732This skill has generated a PROMPT for you to use. It has NOT:
733- ❌ Implemented any code or infrastructure
734- ❌ Created architectural diagrams
735- ❌ Built actual marketing campaigns
736- ❌ Written business documents
737
738**Next Steps:**
7391. Copy the prompt above
7402. Use it in a FRESH conversation or different tool
7413. That conversation will then implement the actual work
742
743**Prompt Delivered:** ~[X,XXX] tokens | Ready to use ✅
744
745---
746
747[IF ADVANCED MODE:]
748
749**📊 Testing Scenarios Included:**
750- 5 test cases to validate prompt behavior
751- Use these to ensure prompt works as expected
752
753**🎛️ Prompt Variations:**
754- Concise, Balanced (current), Comprehensive
755- Switch based on your needs
756
757**⚡ Optimization Tips:**
758- Token count: ~[X]K tokens
759- [X] optimization opportunities identified
760- Iteration guidelines included
761
762---
763
764🛑 **STOP HERE - Prompt Delivery Complete**
765
766The skill has finished generating your prompt. Do NOT proceed with:
767- ❌ Implementing code from the prompt
768- ❌ Creating diagrams or documentation
769- ❌ Building actual infrastructure
770- ❌ Executing the prompt's instructions
771
772**What to do next:**
7731. Copy the prompt above
7742. Save it for later use OR use it in a fresh conversation
7753. Return here only if you need to modify the PROMPT itself
776
777---
778
779**Need to modify the PROMPT?**
780- "Make the prompt more [concise/detailed]"
781- "Add focus on [specific aspect] to the prompt"
782- "Adjust prompt tone to be more [characteristic]"
783- "Regenerate in [different format]"
784
785**Want a different prompt?**
786- "Create a new prompt for [different role]"
787- "Use [preset name] preset"
788- "Generate [advanced/core] mode version"
789
790**User wants to implement the prompt's instructions?**
791→ 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."
792
793```
794
795---
796
797## Quick-Start Presets
798
799When user mentions a preset name, load template and offer customization.
800
801### Available Presets (69 Total)
802
803#### Technical (8 presets)
804
8051. **Senior Full-Stack Engineer** - `templates/presets/technical/fullstack-engineer.md`
8062. **DevOps Engineer** - `templates/presets/technical/devops-engineer.md`
8073. **Mobile Engineer** - `templates/presets/technical/mobile-engineer.md`
8084. **Data Scientist** - `templates/presets/technical/data-scientist.md`
8095. **Security Engineer** - `templates/presets/technical/security-engineer.md`
8106. **Cloud Architect** - `templates/presets/technical/cloud-architect.md`
8117. **Database Engineer** - `templates/presets/technical/database-engineer.md`
8128. **QA Engineer** - `templates/presets/technical/qa-engineer.md`
813
814#### Business (8 presets)
815
8169. **Product Manager** - `templates/presets/business/product-manager.md`
81710. **Product Engineer** - `templates/presets/business/product-engineer.md`
81811. **Product Owner** - `templates/presets/business/product-owner.md`
81912. **Project Manager** - `templates/presets/business/project-manager.md`
82013. **Operations Manager** - `templates/presets/business/operations-manager.md`
82114. **Sales & Business Manager** - `templates/presets/business/sales-business-manager.md`
82215. **Business Analyst** - `templates/presets/business/business-analyst.md`
82316. **Marketing Manager** - `templates/presets/business/marketing-manager.md`
824
825#### Legal & Compliance (4 presets)
826
82717. **Legal Counsel** - `templates/presets/legal/legal-counsel.md`
82818. **Compliance Officer** - `templates/presets/legal/compliance-officer.md`
82919. **Contract Manager** - `templates/presets/legal/contract-manager.md`
83020. **Regulatory Affairs Specialist** - `templates/presets/legal/regulatory-affairs.md`
831
832#### Finance & Accounting (4 presets)
833
83421. **Financial Analyst** - `templates/presets/finance/financial-analyst.md`
83522. **CFO / Controller** - `templates/presets/finance/cfo-controller.md`
83623. **Accountant / Tax Specialist** - `templates/presets/finance/accountant-tax.md`
83724. **Investment Analyst** - `templates/presets/finance/investment-analyst.md`
838
839#### Human Resources (4 presets)
840
84125. **HR Manager / HR Business Partner** - `templates/presets/hr/hr-manager.md`
84226. **Talent Acquisition Specialist** - `templates/presets/hr/talent-acquisition.md`
84327. **Learning & Development Manager** - `templates/presets/hr/learning-development.md`
84428. **Compensation & Benefits Analyst** - `templates/presets/hr/compensation-analyst.md`
845
846#### Design (4 presets)
847
84829. **UI/UX Designer** - `templates/presets/design/ui-ux-designer.md`
84930. **Graphic Designer** - `templates/presets/design/graphic-designer.md`
85031. **Brand Designer** - `templates/presets/design/brand-designer.md`
85132. **Product Designer** - `templates/presets/design/product-designer.md`
852
853#### Customer-Facing (4 presets)
854
85533. **Customer Success Manager** - `templates/presets/customer/customer-success-manager.md`
85634. **Support Engineer / Technical Support** - `templates/presets/customer/support-engineer.md`
85735. **Account Manager** - `templates/presets/customer/account-manager.md`
85836. **Customer Experience Manager** - `templates/presets/customer/customer-experience-manager.md`
859
860#### Executive Leadership (7 presets)
861
86237. **CEO / Founder** - `templates/presets/executive/ceo-founder.md`
86338. **CTO / VP of Engineering** - `templates/presets/executive/cto-vp-engineering.md`
86439. **Chief Strategy Officer** - `templates/presets/executive/chief-strategy-officer.md`
86540. **General Manager** - `templates/presets/executive/general-manager.md`
86641. **Chief Product Officer (CPO)** - `templates/presets/executive/chief-product-officer.md`
86742. **Chief Marketing Officer (CMO)** - `templates/presets/executive/chief-marketing-officer.md`
86843. **Chief Operations Officer (COO)** - `templates/presets/executive/chief-operations-officer.md`
869
870#### Specialized Technical (6 presets)
871
87244. **Machine Learning Engineer** - `templates/presets/specialized-technical/ml-engineer.md`
87345. **Blockchain Developer** - `templates/presets/specialized-technical/blockchain-developer.md`
87446. **Game Developer** - `templates/presets/specialized-technical/game-developer.md`
87547. **Embedded Systems Engineer** - `templates/presets/specialized-technical/embedded-systems-engineer.md`
87648. **Network Engineer** - `templates/presets/specialized-technical/network-engineer.md`
87749. **Site Reliability Engineer (SRE)** - `templates/presets/specialized-technical/site-reliability-engineer.md`
878
879#### Research & Analysis (3 presets)
880
88150. **Research Scientist** - `templates/presets/research/research-scientist.md`
88251. **Quantitative Analyst (Quant)** - `templates/presets/research/quantitative-analyst.md`
88352. **Market Researcher** - `templates/presets/research/market-researcher.md`
884
885#### Creative & Media (4 presets)
886
88753. **Copywriter** - `templates/presets/creative-media/copywriter.md`
88854. **Social Media Manager** - `templates/presets/creative-media/social-media-manager.md`
88955. **SEO Specialist** - `templates/presets/creative-media/seo-specialist.md`
89056. **Video Producer / Content Creator** - `templates/presets/creative-media/video-producer.md`
891
892#### Manufacturing (4 presets)
893
89457. **Manufacturing Engineer** - `templates/presets/manufacturing/manufacturing-engineer.md`
89558. **Supply Chain Manager** - `templates/presets/manufacturing/supply-chain-manager.md`
89659. **Quality Engineer (Physical Products)** - `templates/presets/manufacturing/quality-engineer.md`
89760. **Industrial Designer** - `templates/presets/manufacturing/industrial-designer.md`
898
899#### R&D - Research & Development (2 presets)
900
90161. **Clinical Specialist (PhD-level)** - `templates/presets/rd/clinical-specialist.md`
90262. **Senior AI R&D Expert** - `templates/presets/rd/ai-rd-expert.md`
903
904#### Regulatory Affairs (1 preset)
905
90663. **Quality Management Responsible Person** - `templates/presets/regulatory/quality-management-responsible.md`
907
908#### Creative (2 presets)
909
91064. **Content Strategist** - `templates/presets/creative/content-strategist.md`
91165. **UX Researcher** - `templates/presets/creative/ux-researcher.md`
912
913#### Specialized (4 presets)
914
91566. **Technical Writer** - `templates/presets/specialized/technical-writer.md`
91667. **Sales Engineer** - `templates/presets/specialized/sales-engineer.md`
91768. **Marketing Strategist** - `templates/presets/business/marketing-strategist.md`
91869. **AEO Specialist (Answer Engine Optimization)** - `templates/presets/specialized/aeo-specialist.md`
919
920---
921
922## Contextual Best Practices Integration
923
924Apply relevant practices based on context:
925
926### By Output Type
927
928**Code:**
929- OpenAI: Step-by-step reasoning, edge case handling
930- Anthropic: Clear code structure with comments
931- Google: Modular design, example-driven
932- Domain: Language-specific idioms, testing standards
933
934**Documentation:**
935- OpenAI: Clear structure, practical examples
936- Anthropic: Logical flow, comprehensive coverage
937- Google: Visual aids, progressive disclosure
938- Domain: Audience-appropriate depth, accessibility
939
940**Strategy:**
941- OpenAI: Data-driven reasoning, scenario analysis
942- Anthropic: Structured framework, clear rationale
943- Google: Actionable insights, measurable outcomes
944- Domain: Industry benchmarks, competitive context
945
946**Analysis:**
947- OpenAI: Methodology transparency, evidence-based
948- Anthropic: Clear conclusions, limitations noted
949- Google: Visual data presentation, insights hierarchy
950- Domain: Domain metrics, analytical rigor
951
952### By Complexity Level
953
954**Basic:** Essential practices, simplified workflows
955**Intermediate:** Standard practices, complete workflows
956**Advanced:** Advanced techniques, optimization focus
957**Expert:** Cutting-edge practices, innovation emphasis
958
959### By Domain
960
961**Technical:** Code quality, testing, security, performance
962**Business:** ROI focus, stakeholder alignment, measurability
963**Creative:** Brand consistency, audience resonance, originality
964**Specialized:** Compliance, regulations, industry standards
965
966---
967
968## Use Case Matrix Coverage
969
970**Supported Combinations:** 15,000+
971
972**50+ Roles:**
973- Developers (Frontend, Backend, Full-Stack, Mobile, ML, DevOps, etc.)
974- Analysts (Data, Business, Product, Market, etc.)
975- Strategists (Marketing, Business, Product, Growth, etc.)
976- Designers (UX, UI, Product, System, etc.)
977- Consultants (Tech, Business, Strategy, Domain-specific, etc.)
978- Managers (Product, Project, Operations, Technical, etc.)
979- Specialists (Security, Performance, Quality, Compliance, etc.)
980
981**20+ Industries:**
982- Technology (SaaS, Cloud, Mobile, Web, AI/ML)
983- Finance (Banking, Trading, Payments, Insurance, FinTech)
984- Healthcare (Clinical, Pharma, MedTech, Telemedicine)
985- E-commerce (Retail, Marketplace, D2C)
986- Education (EdTech, E-learning, Academic)
987- Legal (LegalTech, Compliance, Contracts)
988- Manufacturing (IoT, Supply Chain, Automation)
989- Media (Streaming, Content, Publishing)
990- Real Estate (PropTech, Management, Investment)
991- And 11 more...
992
993**15+ Task Types:**
994- Build/Create/Develop
995- Analyze/Evaluate/Assess
996- Design/Architect/Plan
997- Optimize/Improve/Refactor
998- Debug/Fix/Troubleshoot
999- Document/Write/Explain
1000- Test/Validate/Verify
1001- Strategize/Plan/Roadmap
1002- And 7 more...
1003
1004---
1005
1006## Error Handling & Edge Cases
1007
1008### Insufficient Information
1009If user responses are vague:
10101. Identify specific gaps
10112. Ask targeted follow-up (max 2 questions)
10123. Offer sensible defaults with confirmation
1013
1014### Conflicting Requirements
1015If responses contain contradictions:
10161. Highlight specific conflicts
10172. Request clarification with options
10183. Suggest resolution based on common patterns
1019
1020### Over-Complex Requests
1021If requirements suggest >10K token prompt:
10221. Suggest breaking into multiple specialized prompts
10232. Offer modular approach
10243. Provide coordination guidance for multi-prompt system
1025
1026### Template Unavailable
1027If template file cannot be loaded:
10281. Fall back to synthesis mode
10292. Use best practices from references
10303. Generate custom template on the fly
1031
1032---
1033
1034## Python Script Integration
1035
1036### Manual Script Usage
1037
1038```bash
1039# Generate with JSON config
1040python scripts/generate_prompt.py \
1041 --responses responses.json \
1042 --format xml \
1043 --mode core \
1044 --output my-prompt.md
1045
1046# Batch generation
1047python scripts/batch_generator.py \
1048 --input prompts-batch.csv \
1049 --output-dir ./outputs/
1050
1051# Validate existing prompt
1052python scripts/validator.py \
1053 --prompt existing-prompt.md \
1054 --report validation-report.json
1055
1056# Optimize prompt
1057python scripts/optimizer.py \
1058 --prompt my-prompt.md \
1059 --target-tokens 5000 \
1060 --output optimized-prompt.md
1061```
1062
1063### Skill-Triggered Script Execution
1064
1065The skill will automatically call Python scripts for:
1066- Quality validation (validator.py)
1067- Token counting (within validator.py)
1068- Batch operations (if user requests multiple prompts)
1069
1070---
1071
1072## Success Metrics
1073
1074**User Experience:**
1075- Max 7 questions (vs 14-16 in other skills)
1076- < 2 minutes to generate prompt
1077- 15 one-click presets available
1078- 5 output format options
1079- 2 generation modes (core/advanced)
1080
1081**Quality:**
1082- 7-point pre-delivery validation
1083- 100% XML structure validity (when applicable)
1084- Best practices contextually applied
1085- Token-optimized outputs
1086- Zero placeholder text in final output
1087
1088**Coverage:**
1089- 15 ready-to-use core templates
1090- 15,000+ role/industry/task combinations
1091- Support for all major LLMs (Claude/ChatGPT/Gemini)
1092- Both basic and expert use cases
1093
1094---
1095
1096## Reference Files
1097
1098- `HOW_TO_USE.md` - Comprehensive user guide with examples
1099- `templates/presets/` - 15 quick-start templates
1100- `templates/template-synthesis.md` - Custom template generation guidelines
1101- `references/best-practices/` - OpenAI, Anthropic, Google techniques
1102- `references/prompt-patterns.md` - Common patterns library
1103- `references/use-case-matrix.md` - Complete role/industry/task matrix
1104- `examples/` - 20 complete examples (5 basic, 5 advanced, 10 industry)
1105- `scripts/` - Python automation tools
1106
1107---
1108
1109**Ready to create world-class prompts? Let's begin!**