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!
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
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. Use when this capability is needed.4---56# Prompt Factory - World-Class Prompt Powerhouse78A comprehensive system for generating world-class, production-ready prompts in one shot, eliminating the need for iteration.910---1112## ⚠️ CRITICAL CONSTRAINTS - READ FIRST1314**This skill generates PROMPTS only. It does NOT implement the work described in the prompt.**1516### 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 delivery20✅ Output a SINGLE prompt document with token count21✅ Provide the prompt ready to copy and use elsewhere2223### What This Skill DOES NOT DO:24❌ Implement the actual work (no code files, no diagrams, no APIs)25❌ Create architectural diagrams or technical implementations26❌ Write actual marketing campaigns or business strategies27❌ Build infrastructure or deploy anything28❌ Create multiple files or deliverables29❌ Execute the prompt after generating it3031### Expected Workflow:321. User asks for help creating a prompt332. **Skill MUST ask 5-7 questions** (even if context seems obvious)343. User answers questions with specific details354. Skill generates ONE comprehensive prompt document365. Skill announces token count (e.g., "Generated prompt: 4,200 tokens")376. **STOP** - Do not implement anything from the prompt387. Ask: "Would you like me to modify the prompt or create a variation?"3940### Why This Matters:41- **Prevents scope creep**: You're making a prompt, not doing the work42- **Saves context**: One prompt document vs. dozens of implementation files43- **Clear deliverable**: User gets a prompt to use with any LLM44- **Reusability**: The prompt can be used multiple times4546**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.4748---4950## Overview5152Transform any requirement into an optimized mega-prompt through:531. **Mandatory 5-7 question flow** (MUST ask, even if context obvious) with example answers542. **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 delivery575. **Contextual best practices** from OpenAI, Anthropic, Google586. **Core & Advanced modes** for different needs597. **Complete coverage** of role × industry × task combinations6061---6263## Relationship to PROMPTS_FACTORY_PROMPT.md6465This skill works alongside the meta-prompt template:6667- **prompt-factory skill (this file)**: Generates individual mega-prompts for specific roles using 69 presets68 - **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 prompt7172- **PROMPTS_FACTORY_PROMPT.md**: Meta-prompt that generates domain-specific prompt builders73 - **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 domain75 - **Example**: "Generate a FinTech Prompt Builder" → creates a system with 10-20 FinTech role presets76 - **Location**: `documentation/templates/PROMPTS_FACTORY_PROMPT.md`7778**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.md8182---8384## Quick Start: Choose Your Path8586### Path 1: Quick-Start Preset (Fastest)87**Use when:** You need a prompt for a common role88891. User says: "I need a prompt for [preset name]"902. Show matching preset with customizable variables913. Customize (optional) → Generate → Deliver9293**Available Presets (69 total across 15 domains):**9495**Technical (8):** Full-Stack Engineer, DevOps Engineer, Mobile Engineer, Data Scientist, Security Engineer, Cloud Architect, Database Engineer, QA Engineer9697**Business (8):** Product Manager, Product Engineer, Product Owner, Project Manager, Operations Manager, Sales & Business Manager, Business Analyst, Marketing Manager9899**Legal & Compliance (4):** Legal Counsel, Compliance Officer, Contract Manager, Regulatory Affairs Specialist100101**Finance & Accounting (4):** Financial Analyst, CFO/Controller, Accountant/Tax Specialist, Investment Analyst102103**Human Resources (4):** HR Manager, Talent Acquisition Specialist, Learning & Development Manager, Compensation & Benefits Analyst104105**Design (4):** UI/UX Designer, Graphic Designer, Brand Designer, Product Designer106107**Customer-Facing (4):** Customer Success Manager, Support Engineer, Account Manager, Customer Experience Manager108109**Executive Leadership (7):** CEO/Founder, CTO/VP Engineering, Chief Strategy Officer, General Manager, Chief Product Officer, Chief Marketing Officer, Chief Operations Officer110111**Specialized Technical (6):** Machine Learning Engineer, Blockchain Developer, Game Developer, Embedded Systems Engineer, Network Engineer, Site Reliability Engineer (SRE)112113**Research & Analysis (3):** Research Scientist, Quantitative Analyst, Market Researcher114115**Creative & Media (4):** Copywriter, Social Media Manager, SEO Specialist, Video Producer116117**Manufacturing (4):** Manufacturing Engineer, Supply Chain Manager, Quality Engineer (Physical Products), Industrial Designer118119**R&D - Research & Development (2):** Clinical Specialist (PhD-level), Senior AI R&D Expert120121**Regulatory Affairs (1):** Quality Management Responsible Person (ISO 13485, MDR, ISO 27001)122123**Specialized (1):** AEO Specialist (Answer Engine Optimization for LLMs)124125### Path 2: Custom Prompt (5-7 Questions - MANDATORY)126**Use when:** Building a unique prompt from scratch1271281. Detect intent from user request1292. **MUST ask 5-7 questions** with example answers (no skipping allowed)1303. Generate with contextual best practices1314. Validate quality → Deliver132133**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.134135---136137## Workflow: Custom Prompt Generation138139### Step 1: Intent Detection & Context Inference140141Analyze user's request for trigger keywords:142143**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"148149**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"154155**Output Triggers:**156- "code", "documentation", "strategy", "analysis", "plan", "design", "report"157158**Infer from context:**159- Primary role160- Domain/industry161- Task complexity (basic/intermediate/advanced/expert)162- Output type163- Technical depth needed164165### Step 2: Smart 7-Question Flow166167**MANDATORY: You MUST ask questions before generating any prompt.**168169**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 assume173- **Purpose:** Validate assumptions, gather specifics, ensure quality output174175**When to skip a question:**176- ✅ ONLY if user explicitly provided that exact detail in their request177- ✅ Example: User says "React 18 with TypeScript" → skip tech stack question178179**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?"184185**Question Bank (Select 5-7):**186187#### Category 1: Role & Domain (Ask 2 max)188189**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"196197Your answer: `___`198199**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"206207Your answer: `___`208209#### Category 2: Use Case & Output (Ask 2)210211**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"218219Your answer: `___`220221**Q4: What output format do you need?**222*Options:*223- `code` - Implementation code with tests224- `documentation` - Technical/user docs225- `strategy` - Strategic plans/roadmaps226- `analysis` - Data analysis/insights227- `design` - UI/UX designs228- `plan` - Project/implementation plans229230Your answer: `___`231232#### Category 3: Context & Constraints (Ask 1-2)233234**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"241242Your answer: `___`243244**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"251252Your answer: `___`253254#### Category 4: Style & Format (Ask 1-2)255256**Q7: Communication style and response format?**257*Options:*258- **Tone:** Professional / Technical / Casual / Academic259- **Style:** Concise / Detailed / Step-by-step / Conceptual260- **Format:** Prose / Bullets / Mixed / Code-heavy261- **Depth:** High-level / Moderate / Deep-technical / Implementation-ready262263*Example:* "Technical tone, detailed style, mixed format, implementation-ready depth"264265Your answer: `___`266267---268269**Smart Question Adaptation:**270271- **If technical/coding detected:** MUST ask about tech stack, constraints, success criteria272- **If business detected:** MUST ask about KPIs, stakeholders, metrics273- **If creative detected:** MUST ask about brand voice, audience, distribution274- **If industry-specific:** MUST ask about compliance, regulations, standards275276**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 details279- ✅ MUST ask about constraints OR success criteria (at minimum one)280- ✅ MUST ask about output format preference281- ✅ MUST ask about mode (core vs. advanced)282283**Total: MINIMUM 5 questions, MAXIMUM 7 questions**284285**Example - Even for "Obvious" Requests:**286287User: "Write a product manager prompt for creating a PRD"288289You 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)"295296**DO NOT skip questions just because you can infer answers. ALWAYS ask for validation and specifics.**297298---299300### Step 3: Output Format Selection301302After gathering responses, ask:303304**Select output format:**3051. `xml` - XML-structured markdown (optimal for LLM parsing) [DEFAULT]3062. `claude` - Claude-optimized system prompt format3073. `chatgpt` - ChatGPT custom instructions format3084. `gemini` - Google Gemini format3095. `all` - Generate all 4 formats310311Your choice: `___` (or press enter for default)312313---314315### Step 4: Mode Selection316317**Select generation mode:**3181. `core` - Prompt + usage instructions + 2-3 examples (~5K tokens) [DEFAULT]3192. `advanced` - Core + testing scenarios + variations + optimization tips (~12K tokens)320321Your choice: `___` (or press enter for core mode)322323---324325### Step 5: Template Matching & Synthesis326327**Check Quick-Start Presets:**328- Read `templates/presets/` for matching templates329- Match criteria: role (>80%), domain (>70%), output type (exact)330331**Decision Logic:**332- **High match (>85%)**: Use preset, customize variables333- **Moderate match (60-85%)**: Use as base, significant modifications334- **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/task338339---340341### Step 6: Quality Validation (7-Point Gates)342343Before output, validate:3443451. ✓ **XML Structure** - All tags properly opened/closed (if XML format)3462. ✓ **Completeness** - All questionnaire responses incorporated3473. ✓ **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 content3535. ✓ **Actionable Workflow** - Clear, executable steps3546. ✓ **Best Practices** - Contextually relevant practices applied3557. ✓ **Examples Present** - At least 2 examples demonstrating expected behavior356357**If validation fails:** Fix issues before delivery.358359**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)"364365---366367### Step 7: Generate Mega-Prompt368369#### Core Mode Output Structure370371Generate based on selected format:372373##### Format 1: XML (Default)374375```xml376<mega_prompt>377378<role>379[Role title with expertise and domain specialization]380</role>381382<mission>383[Primary objective and success criteria]384</mission>385386<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>393394<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>408409<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>415416<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>422423<best_practices>424[Contextually selected best practices for this role/domain/task]425426[From OpenAI:]427- [Relevant OpenAI practice 1]428- [Relevant OpenAI practice 2]429430[From Anthropic:]431- [Relevant Anthropic practice 1]432- [Relevant Anthropic practice 2]433434[From Google:]435- [Relevant Google practice 1]436- [Relevant Google practice 2]437438[Domain-Specific:]439- [Domain best practice 1]440- [Domain best practice 2]441- [Domain best practice 3]442</best_practices>443444<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>455456<examples>457## Example 1: [Scenario Name]458**User Request:** [Typical user request]459460**Expected Response Structure:**461[Show how to structure the response]462463## Example 2: [Scenario Name]464**User Request:** [Another typical request]465466**Expected Response Structure:**467[Show the response pattern]468</examples>469470<execution_trigger>471You are now fully configured as [Role] specialized in [Domain].472473When the user provides a request:4741. Analyze their specific needs using the workflow above4752. Apply relevant best practices contextually4763. Generate output meeting quality criteria4774. Deliver complete solution in one comprehensive response478479Begin assisting the user now with this configuration.480</execution_trigger>481482</mega_prompt>483```484485##### Format 2: Claude System Prompt486487```markdown488# System Configuration: [Role]489490You are [role with expertise and domain]. Your mission is to [primary objective].491492## Your Expertise493[Domain and specialized knowledge areas]494495## Your Workflow496When given a task:4971. [Phase 1 steps]4982. [Phase 2 steps]4993. [Phase 3 steps]5004. [Phase 4 steps]501502## Output Standards503- Format: [specified format]504- Structure: [organization approach]505- Depth: [detail level]506- Quality bar: [success criteria]507508## Communication Style509- Tone: [specified tone]510- Audience: [target level]511- Formatting: [format approach]512513## Critical Rules514**Must follow:**515- [Priority 1 rules]516517**Should follow:**518- [Priority 2 guidelines]519520## Best Practices521[Contextually relevant practices for this role/domain]522523## Response Examples524[2-3 examples showing expected behavior]525526---527528Execute your role now, following all guidelines above.529```530531##### Format 3: ChatGPT Custom Instructions532533```534**What would you like ChatGPT to know about you to provide better responses?**535536I need you to act as [role with expertise and domain specialization].537538My domain: [industry/field]539My tech stack: [if applicable]540My constraints: [if applicable]541542**How would you like ChatGPT to respond?**543544WORKFLOW:5451. [Phase 1 approach]5462. [Phase 2 approach]5473. [Phase 3 approach]5484. [Phase 4 approach]549550OUTPUT REQUIREMENTS:551- Format: [specified format]552- Style: [tone and communication approach]553- Depth: [detail level]554- Include: [what to include]555556CRITICAL RULES:557- [Priority 1 rules]558- [Important guidelines]559560BEST PRACTICES TO FOLLOW:561[Contextually relevant practices]562563Always provide [example format] and ensure [quality criteria].564```565566##### Format 4: Gemini Format567568```markdown569## Role Configuration570You are: [role with expertise and domain]571572## Task Approach573[Workflow summarized for Gemini's style]574575## Output Format576[Clear format specification]577578## Quality Standards579[Success criteria]580581## Examples582[2 concrete examples]583584Apply this configuration to all responses.585```586587---588589#### Advanced Mode Additions590591If user selected `advanced` mode, append these sections:592593##### Testing Scenarios594595```xml596<testing_scenarios>597## Test Case 1: [Simple Case]598**Input:** [Test input]599**Expected Behavior:** [What should happen]600**Success Criteria:** [How to verify]601602## Test Case 2: [Edge Case]603**Input:** [Edge case input]604**Expected Behavior:** [How to handle]605**Success Criteria:** [Verification method]606607## Test Case 3: [Complex Case]608**Input:** [Complex scenario]609**Expected Behavior:** [Expected handling]610**Success Criteria:** [Verification approach]611612## Test Case 4: [Error Case]613**Input:** [Invalid/error input]614**Expected Behavior:** [Error handling]615**Success Criteria:** [How to validate]616617## Test Case 5: [Performance Case]618**Input:** [High-load scenario]619**Expected Behavior:** [Performance expectations]620**Success Criteria:** [Performance metrics]621</testing_scenarios>622```623624##### Prompt Variations625626```xml627<prompt_variations>628## Variation 1: Concise (~3K tokens)629[Minimal version focusing on essential instructions]630631## Variation 2: Balanced (~5K tokens)632[Standard version with core guidance - THIS IS THE DEFAULT]633634## Variation 3: Comprehensive (~8K tokens)635[Detailed version with extensive examples and edge cases]636637**Recommendation:** Start with Variation 2 (Balanced).638- Use Variation 1 if token limits are tight639- Use Variation 3 for complex/critical use cases640</prompt_variations>641```642643##### Optimization Tips644645```xml646<optimization_tips>647## Token Optimization648- Current token count: [estimated count]649- Optimization opportunities:650 1. [Optimization suggestion 1]651 2. [Optimization suggestion 2]652 3. [Optimization suggestion 3]653654## Clarity Improvements655- Potential ambiguities:656 1. [Ambiguity 1] → [Clarification suggestion]657 2. [Ambiguity 2] → [Clarification suggestion]658659## Effectiveness Enhancements660- Consider adding:661 1. [Enhancement suggestion 1]662 2. [Enhancement suggestion 2]663664## Iteration Guidelines665After testing this prompt:6661. Track which responses meet expectations6672. Note any consistent issues or gaps6683. Refine specific sections (not wholesale rewrites)6694. Test refined version with same scenarios6705. Save successful versions for reuse671</optimization_tips>672```673674---675676### Step 8: Delivery Message677678Present the generated prompt with clear context:679680```markdown681✅ **Your [Mode] mega-prompt is ready!**682683**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"]690691**Quality Validation:** ✓ All 7 gates passed692**Token Count:** ~[X,XXX] tokens ([core: 3K-6K] or [advanced: 8K-12K])693694**Generated Prompt:**695696[INSERT GENERATED PROMPT HERE]697698---699700**Usage Instructions:**701702[FORMAT-SPECIFIC INSTRUCTIONS:]703704**For XML format:**7051. Copy the entire `<mega_prompt>` block above7062. Paste into your LLM conversation (Claude, ChatGPT, Gemini, etc.)7073. Follow with your specific request7084. The AI will respond according to the defined role709710**For Claude format:**7111. Copy the system configuration above7122. Use as your system prompt in Claude7133. Start your conversation7144. Claude will follow the configured behavior715716**For ChatGPT format:**7171. Go to Settings → Personalization → Custom Instructions7182. Paste "What would you like..." in top box7193. Paste "How would you like..." in bottom box7204. Save and start using721722**For Gemini format:**7231. Copy the role configuration7242. Paste at start of new Gemini conversation7253. Continue with your requests7264. Gemini will maintain the configured role727728---729730⚠️ **IMPORTANT - Prompt Generation Complete**731732This skill has generated a PROMPT for you to use. It has NOT:733- ❌ Implemented any code or infrastructure734- ❌ Created architectural diagrams735- ❌ Built actual marketing campaigns736- ❌ Written business documents737738**Next Steps:**7391. Copy the prompt above7402. Use it in a FRESH conversation or different tool7413. That conversation will then implement the actual work742743**Prompt Delivered:** ~[X,XXX] tokens | Ready to use ✅744745---746747[IF ADVANCED MODE:]748749**📊 Testing Scenarios Included:**750- 5 test cases to validate prompt behavior751- Use these to ensure prompt works as expected752753**🎛️ Prompt Variations:**754- Concise, Balanced (current), Comprehensive755- Switch based on your needs756757**⚡ Optimization Tips:**758- Token count: ~[X]K tokens759- [X] optimization opportunities identified760- Iteration guidelines included761762---763764🛑 **STOP HERE - Prompt Delivery Complete**765766The skill has finished generating your prompt. Do NOT proceed with:767- ❌ Implementing code from the prompt768- ❌ Creating diagrams or documentation769- ❌ Building actual infrastructure770- ❌ Executing the prompt's instructions771772**What to do next:**7731. Copy the prompt above7742. Save it for later use OR use it in a fresh conversation7753. Return here only if you need to modify the PROMPT itself776777---778779**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]"784785**Want a different prompt?**786- "Create a new prompt for [different role]"787- "Use [preset name] preset"788- "Generate [advanced/core] mode version"789790**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."792793```794795---796797## Quick-Start Presets798799When user mentions a preset name, load template and offer customization.800801### Available Presets (69 Total)802803#### Technical (8 presets)8048051. **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`813814#### Business (8 presets)8158169. **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`824825#### Legal & Compliance (4 presets)82682717. **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`831832#### Finance & Accounting (4 presets)83383421. **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`838839#### Human Resources (4 presets)84084125. **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`845846#### Design (4 presets)84784829. **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`852853#### Customer-Facing (4 presets)85485533. **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`859860#### Executive Leadership (7 presets)86186237. **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`869870#### Specialized Technical (6 presets)87187244. **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`878879#### Research & Analysis (3 presets)88088150. **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`884885#### Creative & Media (4 presets)88688753. **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`891892#### Manufacturing (4 presets)89389457. **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`898899#### R&D - Research & Development (2 presets)90090161. **Clinical Specialist (PhD-level)** - `templates/presets/rd/clinical-specialist.md`90262. **Senior AI R&D Expert** - `templates/presets/rd/ai-rd-expert.md`903904#### Regulatory Affairs (1 preset)90590663. **Quality Management Responsible Person** - `templates/presets/regulatory/quality-management-responsible.md`907908#### Creative (2 presets)90991064. **Content Strategist** - `templates/presets/creative/content-strategist.md`91165. **UX Researcher** - `templates/presets/creative/ux-researcher.md`912913#### Specialized (4 presets)91491566. **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`919920---921922## Contextual Best Practices Integration923924Apply relevant practices based on context:925926### By Output Type927928**Code:**929- OpenAI: Step-by-step reasoning, edge case handling930- Anthropic: Clear code structure with comments931- Google: Modular design, example-driven932- Domain: Language-specific idioms, testing standards933934**Documentation:**935- OpenAI: Clear structure, practical examples936- Anthropic: Logical flow, comprehensive coverage937- Google: Visual aids, progressive disclosure938- Domain: Audience-appropriate depth, accessibility939940**Strategy:**941- OpenAI: Data-driven reasoning, scenario analysis942- Anthropic: Structured framework, clear rationale943- Google: Actionable insights, measurable outcomes944- Domain: Industry benchmarks, competitive context945946**Analysis:**947- OpenAI: Methodology transparency, evidence-based948- Anthropic: Clear conclusions, limitations noted949- Google: Visual data presentation, insights hierarchy950- Domain: Domain metrics, analytical rigor951952### By Complexity Level953954**Basic:** Essential practices, simplified workflows955**Intermediate:** Standard practices, complete workflows956**Advanced:** Advanced techniques, optimization focus957**Expert:** Cutting-edge practices, innovation emphasis958959### By Domain960961**Technical:** Code quality, testing, security, performance962**Business:** ROI focus, stakeholder alignment, measurability963**Creative:** Brand consistency, audience resonance, originality964**Specialized:** Compliance, regulations, industry standards965966---967968## Use Case Matrix Coverage969970**Supported Combinations:** 15,000+971972**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.)980981**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...992993**15+ Task Types:**994- Build/Create/Develop995- Analyze/Evaluate/Assess996- Design/Architect/Plan997- Optimize/Improve/Refactor998- Debug/Fix/Troubleshoot999- Document/Write/Explain1000- Test/Validate/Verify1001- Strategize/Plan/Roadmap1002- And 7 more...10031004---10051006## Error Handling & Edge Cases10071008### Insufficient Information1009If user responses are vague:10101. Identify specific gaps10112. Ask targeted follow-up (max 2 questions)10123. Offer sensible defaults with confirmation10131014### Conflicting Requirements1015If responses contain contradictions:10161. Highlight specific conflicts10172. Request clarification with options10183. Suggest resolution based on common patterns10191020### Over-Complex Requests1021If requirements suggest >10K token prompt:10221. Suggest breaking into multiple specialized prompts10232. Offer modular approach10243. Provide coordination guidance for multi-prompt system10251026### Template Unavailable1027If template file cannot be loaded:10281. Fall back to synthesis mode10292. Use best practices from references10303. Generate custom template on the fly10311032---10331034## Python Script Integration10351036### Manual Script Usage10371038```bash1039# Generate with JSON config1040python scripts/generate_prompt.py \1041 --responses responses.json \1042 --format xml \1043 --mode core \1044 --output my-prompt.md10451046# Batch generation1047python scripts/batch_generator.py \1048 --input prompts-batch.csv \1049 --output-dir ./outputs/10501051# Validate existing prompt1052python scripts/validator.py \1053 --prompt existing-prompt.md \1054 --report validation-report.json10551056# Optimize prompt1057python scripts/optimizer.py \1058 --prompt my-prompt.md \1059 --target-tokens 5000 \1060 --output optimized-prompt.md1061```10621063### Skill-Triggered Script Execution10641065The 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)10691070---10711072## Success Metrics10731074**User Experience:**1075- Max 7 questions (vs 14-16 in other skills)1076- < 2 minutes to generate prompt1077- 15 one-click presets available1078- 5 output format options1079- 2 generation modes (core/advanced)10801081**Quality:**1082- 7-point pre-delivery validation1083- 100% XML structure validity (when applicable)1084- Best practices contextually applied1085- Token-optimized outputs1086- Zero placeholder text in final output10871088**Coverage:**1089- 15 ready-to-use core templates1090- 15,000+ role/industry/task combinations1091- Support for all major LLMs (Claude/ChatGPT/Gemini)1092- Both basic and expert use cases10931094---10951096## Reference Files10971098- `HOW_TO_USE.md` - Comprehensive user guide with examples1099- `templates/presets/` - 15 quick-start templates1100- `templates/template-synthesis.md` - Custom template generation guidelines1101- `references/best-practices/` - OpenAI, Anthropic, Google techniques1102- `references/prompt-patterns.md` - Common patterns library1103- `references/use-case-matrix.md` - Complete role/industry/task matrix1104- `examples/` - 20 complete examples (5 basic, 5 advanced, 10 industry)1105- `scripts/` - Python automation tools11061107---11081109**Ready to create world-class prompts? Let's begin!**11101111---1112> Converted and distributed by [TomeVault](https://tomevault.io/claim/alirezarezvani) — claim your Tome and manage your conversions.1113<!-- tomevault:4.0:skill_md:2026-04-11 -->