Skip to content

Instantly share code, notes, and snippets.

@alirezarezvani
Created October 28, 2025 13:31
Show Gist options
  • Select an option

  • Save alirezarezvani/3f31fc5435eaa3fcb260d774286587ef to your computer and use it in GitHub Desktop.

Select an option

Save alirezarezvani/3f31fc5435eaa3fcb260d774286587ef to your computer and use it in GitHub Desktop.
Prompt Factory - Generate World-Class AI Prompts in 2 Minutes | 69 Professional Presets | ChatGPT Custom Instructions | Claude System Prompts | Gemini Configuration | Multi-LLM Support | Technical, Business, Legal, Healthcare, Finance Prompts | XML/Claude/ChatGPT/Gemini Formats | Answer Engine Optimization

Prompt Factory - Generate World-Class Mega-Prompts for Any Role, Industry & LLM

Production-ready prompt generation with 69 professional presets, 7-question intelligent flow, and multi-format output (XML/Claude/ChatGPT/Gemini).

Keywords: Prompt Engineering, AI Prompts, ChatGPT Prompts, Claude Prompts, Gemini Prompts, LLM Optimization, Mega-Prompts, System Prompts, Custom Instructions, AI Prompt Templates, Prompt Generation, Professional AI Prompts, Business Prompts, Technical Prompts, Legal Prompts, Healthcare Prompts

Repository: claude-code-skills-factory/prompt-factory


🎯 What is Prompt Factory?

A comprehensive prompt generation system that creates production-ready mega-prompts in under 2 minutes through:

  • βœ… 69 professional presets across 15 domains (Technical, Business, Legal, Finance, HR, Design, Customer, Executive, and more)
  • βœ… Intelligent 7-question flow with example answers (max 7 questions, no iteration needed)
  • βœ… Multiple output formats (XML, Claude, ChatGPT, Gemini, or All)
  • βœ… 7-point quality validation before delivery (no placeholders, working examples, token optimized)
  • βœ… Contextual best practices from OpenAI, Anthropic, Google
  • βœ… Core & Advanced modes (5K or 12K tokens, with testing scenarios)
  • βœ… 15,000+ role/industry/task combinations supported

Download: prompt-factory.zip (403KB)


πŸš€ Quick Start (30 Seconds)

Path 1: Use a Preset (Fastest)

"Use the Senior Full-Stack Engineer preset"

Claude shows customizable template β†’ Select format β†’ Generate

Time: 30 seconds to production-ready prompt

Path 2: Custom Prompt (2 Minutes)

"Create a custom prompt for a Growth Hacker in B2B SaaS"

Answer 5-7 questions β†’ Select format & mode β†’ Get validated prompt

Time: 2 minutes to tailored mega-prompt


πŸ“‹ 69 Professional Presets

Technical Domain (8 Presets)

  1. Senior Full-Stack Engineer - React, Node.js, PostgreSQL, AWS
  2. DevOps Engineer - CI/CD, Kubernetes, Terraform, Cloud platforms
  3. Mobile Engineer - React Native, Flutter, iOS/Android
  4. Data Scientist - Python, ML pipelines, statistical analysis
  5. Security Engineer - AppSec, penetration testing, compliance
  6. Cloud Architect - AWS/GCP/Azure, serverless, scalability
  7. Database Engineer - PostgreSQL, MongoDB, optimization
  8. QA Engineer - Testing strategies, automation, quality gates

Business Domain (8 Presets)

  1. Product Manager - PRDs, roadmaps, stakeholder management
  2. Product Engineer - Technical product delivery
  3. Product Owner - Agile, user stories, backlog prioritization
  4. Project Manager - Planning, execution, risk management
  5. Operations Manager - Process optimization, efficiency
  6. Sales & Business Manager - Pipeline, revenue, customer acquisition
  7. Business Analyst - Requirements, data analysis, insights
  8. Marketing Manager - Campaigns, analytics, growth strategies

Legal & Compliance (4 Presets)

  1. Legal Counsel - Contract review, legal analysis, risk assessment
  2. Compliance Officer - Regulatory compliance, policy development
  3. Contract Manager - Contract lifecycle, negotiation
  4. Regulatory Affairs Specialist - Regulatory submissions, compliance

Finance & Accounting (4 Presets)

  1. Financial Analyst - Financial modeling, forecasting, analysis
  2. CFO / Controller - Financial strategy, reporting, controls
  3. Accountant / Tax Specialist - Accounting, tax planning, compliance
  4. Investment Analyst - Investment research, portfolio analysis

Human Resources (4 Presets)

  1. HR Manager - Talent management, employee relations, policies
  2. Talent Acquisition - Recruiting, candidate assessment, hiring
  3. Learning & Development - Training programs, career development
  4. Compensation & Benefits - Salary structures, benefits design

Design (4 Presets)

  1. UI/UX Designer - User research, interface design, usability
  2. Graphic Designer - Visual design, branding, creative assets
  3. Brand Designer - Brand strategy, visual identity, guidelines
  4. Product Designer - Product design, prototyping, user testing

Customer-Facing (4 Presets)

  1. Customer Success Manager - Retention, expansion, adoption
  2. Support Engineer - Technical support, troubleshooting, documentation
  3. Account Manager - Relationship management, upselling, renewals
  4. Customer Experience Manager - CX strategy, journey mapping, satisfaction

Executive Leadership (7 Presets)

  1. CEO / Founder - Strategic vision, leadership, company building
  2. CTO / VP Engineering - Technical strategy, team leadership, architecture
  3. Chief Strategy Officer - Corporate strategy, market analysis, M&A
  4. General Manager - P&L management, operations, team leadership
  5. Chief Product Officer - Product strategy, roadmap, innovation
  6. Chief Marketing Officer - Marketing strategy, brand, demand generation
  7. Chief Operations Officer - Operational excellence, process optimization

Specialized Technical (6 Presets)

  1. Machine Learning Engineer - ML pipelines, model training, MLOps
  2. Blockchain Developer - Smart contracts, Web3, DeFi, crypto
  3. Game Developer - Game design, engines (Unity/Unreal), gameplay
  4. Embedded Systems Engineer - Firmware, hardware, IoT, real-time
  5. Network Engineer - Network design, security, protocols, infrastructure
  6. Site Reliability Engineer (SRE) - Reliability, monitoring, incident response

Research & Analysis (3 Presets)

  1. Research Scientist - Scientific research, experimental design, publishing
  2. Quantitative Analyst (Quant) - Financial modeling, algorithmic trading
  3. Market Researcher - Market analysis, consumer insights, competitive intelligence

Creative & Media (4 Presets)

  1. Copywriter - Marketing copy, content creation, storytelling
  2. Social Media Manager - Social strategy, content calendar, engagement
  3. SEO Specialist - Search optimization, keyword research, technical SEO
  4. Video Producer - Video production, editing, storytelling

Manufacturing (4 Presets)

  1. Manufacturing Engineer - Production processes, quality control, efficiency
  2. Supply Chain Manager - Logistics, inventory, vendor management
  3. Quality Engineer - Quality systems, inspection, continuous improvement
  4. Industrial Designer - Product design, ergonomics, manufacturing

R&D (2 Presets)

  1. Clinical Specialist (PhD-level) - Clinical research, trials, regulatory
  2. Senior AI R&D Expert - AI research, cutting-edge ML, innovation

Regulatory Affairs (1 Preset)

  1. Quality Management Responsible Person - ISO 13485, MDR, ISO 27001

Creative (2 Presets)

  1. Content Strategist - Content strategy, editorial calendar, distribution
  2. UX Researcher - User research, usability testing, insights

Specialized (4 Presets)

  1. Technical Writer - Documentation, API reference, user guides
  2. Sales Engineer - Technical sales, demos, solutions architecture
  3. Marketing Strategist - Marketing strategy, positioning, campaigns
  4. AEO Specialist - Answer Engine Optimization for LLMs

🎨 Output Formats

Format 1: XML (Default - Universal)

<mega_prompt>
  <role>Senior Full-Stack Engineer specializing in...</role>
  <mission>Build production-ready web applications...</mission>
  <context>
    <domain>Web Development</domain>
    <tech_stack>React, Node.js, PostgreSQL, AWS</tech_stack>
    <constraints>Performance, security, scalability</constraints>
  </context>
  <workflow>
    <analysis_phase>Understand requirements...</analysis_phase>
    <solution_design>Design architecture...</solution_design>
    <execution>Implement with best practices...</execution>
    <validation>Test thoroughly...</validation>
  </workflow>
  <!-- ... complete structured prompt ... -->
</mega_prompt>

Best for: All LLMs, maximum compatibility

Format 2: Claude System Prompt

# System Configuration: Senior Full-Stack Engineer

You are a Senior Full-Stack Engineer specializing in React, Node.js, PostgreSQL, and AWS.

## Your Workflow
1. Analyze requirements and constraints
2. Design system architecture
3. Implement with best practices
4. Test thoroughly and document

## Output Standards
- Code: Production-ready with tests
- Documentation: Comprehensive
- Security: Best practices applied

Execute your role now.

Best for: Claude conversations

Format 3: ChatGPT Custom Instructions

**What would you like ChatGPT to know about you?**

I need you to act as a Senior Full-Stack Engineer.
My tech stack: React, Node.js, PostgreSQL, AWS

**How would you like ChatGPT to respond?**

WORKFLOW:
1. Analyze requirements
2. Design architecture
3. Implement with tests
4. Document thoroughly

Always provide production-ready code with comprehensive documentation.

Best for: ChatGPT persistent configuration

Format 4: Gemini Format

## Role Configuration
You are: Senior Full-Stack Engineer specializing in modern web applications

## Task Approach
Analyze β†’ Design β†’ Implement β†’ Validate

## Output Format
Production-ready code with tests and documentation

Best for: Google Gemini


πŸ’‘ Example Generated Prompts

Example 1: Growth Hacker (B2B SaaS)

Input Questions:

  1. Role: Growth Hacker
  2. Domain: B2B SaaS
  3. Goal: Rapid user acquisition and activation
  4. Output: Strategy documents and experiment plans
  5. Tech: Product analytics, A/B testing, email automation
  6. Constraints: Limited budget, early-stage startup
  7. Style: Data-driven, actionable, experimental

Output (XML format, ~5K tokens):

<mega_prompt>
<role>Growth Hacker specializing in B2B SaaS rapid acquisition and activation</role>

<mission>
Drive explosive user growth through data-driven experimentation, optimized funnels, and viral loops while maintaining product-market fit.
</mission>

<workflow>
  <data_analysis>
    - Analyze current metrics (CAC, LTV, activation rate, churn)
    - Identify bottlenecks in funnel
    - Segment users by behavior and value
  </data_analysis>

  <hypothesis_generation>
    - Formulate growth hypotheses based on data
    - Prioritize experiments (ICE scoring: Impact, Confidence, Ease)
    - Design A/B tests with statistical rigor
  </hypothesis_generation>

  <execution>
    - Implement growth experiments rapidly
    - Use automation tools (Zapier, Segment, Mixpanel)
    - Leverage viral mechanisms and referral loops
  </execution>

  <optimization>
    - Measure results with statistical significance
    - Double down on winners, kill losers fast
    - Document learnings and iterate
  </optimization>
</workflow>

<!-- Complete prompt continues with best practices, examples, metrics... -->
</mega_prompt>

Token Count: ~5,200 tokens Validation: βœ… 7/7 gates passed

Example 2: Clinical Psychologist (Healthcare)

Output (Claude format, Advanced mode, ~10K tokens):

# System Configuration: Clinical Psychologist (CBT Specialist)

You are a licensed Clinical Psychologist specializing in Cognitive Behavioral Therapy for depression and anxiety disorders.

## Clinical Expertise
- Evidence-based CBT interventions
- DSM-5-TR diagnostic criteria
- Psychological assessment (PHQ-9, GAD-7, PCL-5)
- Treatment planning and outcome monitoring

## Therapy Workflow
1. **Assessment**: Gather symptoms, history, functional impact
2. **Formulation**: Identify thought patterns, triggers, maintaining factors
3. **Intervention**: CBT techniques (thought records, behavioral activation, exposure)
4. **Monitoring**: Track progress, adjust interventions, prevent relapse

## Critical Rules
- Evidence-based interventions only (Beck, Burns, Linehan)
- Screen for crisis (suicide risk, harm to self/others)
- Maintain professional boundaries (educational, not therapy)
- Escalate to emergency services if needed
- Document scope limitations clearly

## Examples
[3 detailed examples of CBT interventions...]

## Testing Scenarios
[5 test cases: simple depression, complex anxiety, crisis situation, etc...]

## Prompt Variations
[Concise, Balanced, Comprehensive versions...]

## Optimization Tips
[Token optimization, clarity improvements, effectiveness enhancements...]

Token Count: ~10,500 tokens (Advanced mode) Includes: Testing scenarios, variations, optimization tips


πŸ† Quality Validation (7 Gates)

Before delivery, every prompt passes:

  1. βœ… XML Structure - All tags properly opened/closed (if XML format)
  2. βœ… Completeness - All questionnaire responses incorporated
  3. βœ… Token Count - Optimized (3-6K for Core, 8-12K for Advanced)
  4. βœ… No Placeholders - All [...] filled with actual content
  5. βœ… Actionable Workflow - Clear, executable steps
  6. βœ… Best Practices - Contextually relevant practices from OpenAI/Anthropic/Google
  7. βœ… Examples Present - At least 2 examples demonstrating expected behavior

Token Count Reported: "Generated prompt: 5,200 tokens (Core mode - optimal range βœ…)"


πŸ’° Value Proposition

Time Savings

  • Manual prompt writing: 2-4 hours of iteration
  • With Prompt Factory: 2 minutes to production-ready
  • Savings: 98% time reduction

Quality Improvements

  • Manual prompts: Often miss edge cases, inconsistent structure
  • Factory prompts: 7-point validated, complete, optimized
  • Result: Higher quality, more consistent outputs

Multi-LLM Support

  • Manual: Rewrite for each LLM
  • Factory: Generate all formats at once
  • Benefit: Use same prompt across Claude, ChatGPT, Gemini

πŸŽ“ Use Cases

Software Development Teams

Generate prompts for:

  • Senior engineers (frontend, backend, full-stack, mobile)
  • DevOps automation (CI/CD, infrastructure, monitoring)
  • Security engineers (AppSec, compliance, penetration testing)
  • QA engineers (test strategies, automation, quality gates)

Result: Consistent code quality across team

Product & Business Teams

Generate prompts for:

  • Product managers (PRDs, roadmaps, prioritization)
  • Project managers (planning, execution, stakeholder management)
  • Business analysts (requirements, data analysis, insights)
  • Marketing managers (campaigns, analytics, growth)

Result: Aligned product development and go-to-market

Specialized Professionals

Generate prompts for:

  • Legal counsel (contract analysis, compliance, risk assessment)
  • Financial analysts (modeling, forecasting, valuation)
  • HR managers (talent management, policies, employee relations)
  • Designers (UI/UX, branding, visual identity)

Result: Domain-specific expertise on-demand


🌍 Enterprise Use Cases

Startup CTO - Technical Prompts Library

Challenge: Need consistent AI assistance for 15-person engineering team

Solution:

Generate prompts for entire team:
- Frontend engineers: "Senior Frontend Engineer" preset
- Backend engineers: "Senior Backend Engineer" preset
- DevOps: "DevOps Engineer" preset
- QA: "QA Engineer" preset
- Architects: "Cloud Architect" preset

Format: All formats (team uses Claude, ChatGPT, Gemini)
Mode: Advanced (with testing scenarios)

Result:
- 5 production-ready prompts
- Each ~10K tokens (Advanced mode)
- All formats (XML, Claude, ChatGPT, Gemini)
- Team-wide consistency
- Quality validated

Time: 10 minutes total (vs 2 hours+ manual)

Marketing Agency - Client Prompts

Challenge: Generate custom prompts for each client industry

Solution:

Use custom path for specialized prompts:

Client 1 (FinTech):
- Role: "FinTech Content Strategist"
- Domain: "Financial technology and payments"
- Output: SEO-optimized blog content
- Constraints: Regulatory compliance (SEC, FinCEN)

Client 2 (Healthcare):
- Role: "Healthcare Marketing Strategist"
- Domain: "Medical devices and telehealth"
- Output: Patient education content
- Constraints: HIPAA compliance, health literacy (8th grade)

Client 3 (E-commerce):
- Role: "E-commerce Conversion Optimizer"
- Domain: "Direct-to-consumer retail"
- Output: Product descriptions and email campaigns
- Constraints: Platform-specific best practices

Each prompt: Custom, validated, industry-specific
Time per prompt: 2 minutes

πŸ“Š Comparison: Manual vs Factory

Aspect Manual Prompt Writing Prompt Factory
Time 2-4 hours (with iteration) 2 minutes
Quality Variable, may miss edge cases 7-point validated
Formats One format (rewrite for others) 4 formats at once
Best Practices Manual research needed Auto-applied (OpenAI/Anthropic/Google)
Testing Manual test case creation Built-in (Advanced mode)
Optimization Manual token counting Automatic optimization
Consistency Varies by creator Standardized, repeatable
Examples Often skipped Always included (2+)

πŸ”§ Advanced Features

Core Mode (~5K Tokens)

  • Complete mega-prompt
  • Usage instructions
  • 2-3 working examples
  • Best practices applied

Best for: Most use cases, quick turnaround

Advanced Mode (~12K Tokens)

Includes everything in Core PLUS:

  • 5 testing scenarios (simple, edge, complex, error, performance cases)
  • 3 prompt variations (Concise ~3K, Balanced ~5K, Comprehensive ~8K)
  • Optimization tips (token reduction, clarity improvements)
  • Iteration guidelines (how to refine the prompt)

Best for: Mission-critical applications, team deployment, quality assurance


🎯 SEO Keywords & Answer Engine Optimization

Prompt Engineering: How to write AI prompts, ChatGPT custom instructions, Claude system prompts, Gemini configuration, LLM prompt optimization, mega-prompts, system prompts, AI prompt templates

Business Prompts: Product Manager prompts, CEO prompts, CFO prompts, Marketing Manager prompts, Sales prompts, Operations prompts, HR prompts

Technical Prompts: Software engineer prompts, DevOps prompts, Cloud architect prompts, Data scientist prompts, Security engineer prompts, Full-stack developer prompts

Professional Roles: Executive prompts, C-level AI assistants, Senior engineer prompts, Specialist prompts, Manager prompts, Analyst prompts

LLM Specific: Claude AI prompts, ChatGPT prompts, Gemini prompts, Claude custom instructions, ChatGPT system prompts, Multi-LLM prompts

Legal & Compliance: Legal AI prompts, Compliance officer prompts, Contract analysis prompts, Regulatory affairs prompts, GDPR prompts, HIPAA prompts

Healthcare: Clinical psychologist prompts, Therapist prompts, Medical AI prompts, Healthcare prompts, Mental health prompts, Patient care prompts

Prompt Formats: XML prompts, Structured prompts, System configuration, Custom instructions, Mega-prompts, Production prompts


πŸ’‘ Best Practices from Top AI Labs

From OpenAI

  • Use clear, specific instructions
  • Provide examples for complex patterns
  • Request step-by-step reasoning
  • Structure output format explicitly
  • Handle edge cases proactively

From Anthropic

  • Use XML tags for structure
  • Implement chain-of-thought prompting
  • Leverage extended context windows
  • Optimize for prompt caching
  • Design for tool use and function calling

From Google

  • Break complex tasks into subtasks
  • Provide concrete examples
  • Specify output format clearly
  • Use progressive disclosure
  • Optimize for model strengths

Factory applies these contextually based on role, domain, and output type.


πŸš€ Getting Started

Installation

Claude Code:

cp -r prompt-factory ~/.claude/skills/

Claude Desktop:

  • Import prompt-factory.zip (403KB)
  • Skill loads automatically

Usage

Interactive (Fastest for presets):

"Use the Senior Full-Stack Engineer preset"

Custom (For unique needs):

"Create a custom prompt for [your specific role/need]"

Answer 5-7 questions β†’ Select format & mode β†’ Get validated prompt

Example Requests

"I need a prompt for a Product Manager in FinTech"
"Create a prompt for a Healthcare Data Scientist"
"Generate a Growth Hacker prompt for B2B SaaS"
"Make a prompt for Senior Backend Engineer in microservices"
"Build a prompt for Legal Counsel specializing in M&A"

πŸ“ˆ Success Metrics

Generated Prompts Achieve:

  • βœ… 7/7 quality gates passed
  • βœ… Token optimized (3-6K Core, 8-12K Advanced)
  • βœ… Zero placeholders
  • βœ… Working examples included
  • βœ… Best practices applied
  • βœ… Multi-format ready

User Experience:

  • Max 7 questions (vs 14-16 in other tools)
  • < 2 minutes to generate
  • 69 one-click presets
  • 4 output formats
  • 2 generation modes

Coverage:

  • 15,000+ role/industry/task combinations
  • 15 professional domains
  • Support for all major LLMs

πŸ“š Documentation

Complete guides included:

  • HOW_TO_USE.md - Comprehensive user guide with examples
  • SKILL.md - Complete skill definition (400KB+)
  • README.md - Feature overview
  • References - OpenAI/Anthropic/Google best practices
  • Templates - 69 preset templates
  • Examples - 20 complete generated prompt examples

πŸ”— Resources

Repository: claude-code-skills-factory

Download: prompt-factory.zip (403KB)

Related:


Create world-class AI prompts in 2 minutes instead of 2 hours πŸš€

Last Updated: October 28, 2025 Version: 1.0.0 License: MIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment