This skill generates production-ready mega-prompts for any role and domain through a guided 5-7 question flow and multi-format output.
npx playbooks add skill alirezarezvani/claude-code-skill-factory --skill prompt-factory
A comprehensive system for generating world-class, production-ready prompts in one shot, eliminating the need for iteration.
---
This skill generates PROMPTS only. It does NOT implement the work described in the prompt.
✅ Generate a comprehensive PROMPT (text document in chosen format)
✅ Ask 5-7 questions to understand requirements (MANDATORY - no skipping)
✅ Validate prompt quality before delivery
✅ Output a SINGLE prompt document with token count
✅ Provide the prompt ready to copy and use elsewhere
❌ Implement the actual work (no code files, no diagrams, no APIs)
❌ Create architectural diagrams or technical implementations
❌ Write actual marketing campaigns or business strategies
❌ Build infrastructure or deploy anything
❌ Create multiple files or deliverables
❌ Execute the prompt after generating it
If user says "now implement this": Clarify they should use the generated prompt with a fresh conversation or different tool, as this skill only creates prompts.
---
Transform any requirement into an optimized mega-prompt through:
---
This skill works alongside the meta-prompt template:
documentation/templates/PROMPTS_FACTORY_PROMPT.mdQuick Decision:
---
Use when: You need a prompt for a common role
Available Presets (69 total across 15 domains):
Technical (8): Full-Stack Engineer, DevOps Engineer, Mobile Engineer, Data Scientist, Security Engineer, Cloud Architect, Database Engineer, QA Engineer
Business (8): Product Manager, Product Engineer, Product Owner, Project Manager, Operations Manager, Sales & Business Manager, Business Analyst, Marketing Manager
Legal & Compliance (4): Legal Counsel, Compliance Officer, Contract Manager, Regulatory Affairs Specialist
Finance & Accounting (4): Financial Analyst, CFO/Controller, Accountant/Tax Specialist, Investment Analyst
Human Resources (4): HR Manager, Talent Acquisition Specialist, Learning & Development Manager, Compensation & Benefits Analyst
Design (4): UI/UX Designer, Graphic Designer, Brand Designer, Product Designer
Customer-Facing (4): Customer Success Manager, Support Engineer, Account Manager, Customer Experience Manager
Executive Leadership (7): CEO/Founder, CTO/VP Engineering, Chief Strategy Officer, General Manager, Chief Product Officer, Chief Marketing Officer, Chief Operations Officer
Specialized Technical (6): Machine Learning Engineer, Blockchain Developer, Game Developer, Embedded Systems Engineer, Network Engineer, Site Reliability Engineer (SRE)
Research & Analysis (3): Research Scientist, Quantitative Analyst, Market Researcher
Creative & Media (4): Copywriter, Social Media Manager, SEO Specialist, Video Producer
Manufacturing (4): Manufacturing Engineer, Supply Chain Manager, Quality Engineer (Physical Products), Industrial Designer
R&D - Research & Development (2): Clinical Specialist (PhD-level), Senior AI R&D Expert
Regulatory Affairs (1): Quality Management Responsible Person (ISO 13485, MDR, ISO 27001)
Specialized (1): AEO Specialist (Answer Engine Optimization for LLMs)
Use when: Building a unique prompt from scratch
Note: Even if the request seems clear (e.g., "product manager PRD prompt"), you MUST still ask questions to gather specifics, validate assumptions, and ensure a high-quality output.
---
Analyze user's request for trigger keywords:
Role Triggers:
Task Triggers:
Output Triggers:
Infer from context:
MANDATORY: You MUST ask questions before generating any prompt.
Questioning Rules:
When to skip a question:
When to ask even if you think you know:
Question Bank (Select 5-7):
Q1: What role should the AI assume?
Examples:
Your answer: ___
Q2: What domain or industry context?
Examples:
Your answer: ___
Q3: What is the primary task or goal?
Examples:
Your answer: ___
Q4: What output format do you need?
Options:
code - Implementation code with testsdocumentation - Technical/user docsstrategy - Strategic plans/roadmapsanalysis - Data analysis/insightsdesign - UI/UX designsplan - Project/implementation plansYour answer: ___
Q5: Tech stack, tools, or methodologies to use/follow?
Examples:
Your answer: ___
Q6: Any critical constraints or requirements?
Examples:
Your answer: ___
Q7: Communication style and response format?
Options:
Example: "Technical tone, detailed style, mixed format, implementation-ready depth"
Your answer: ___
---
Smart Question Adaptation:
Strict Minimum Requirements (Cannot Skip):
Total: MINIMUM 5 questions, MAXIMUM 7 questions
Example - Even for "Obvious" Requests:
User: "Write a product manager prompt for creating a PRD"
You MUST still ask:
DO NOT skip questions just because you can infer answers. ALWAYS ask for validation and specifics.
---
After gathering responses, ask:
Select output format:
xml - XML-structured markdown (optimal for LLM parsing) [DEFAULT]claude - Claude-optimized system prompt formatchatgpt - ChatGPT custom instructions formatgemini - Google Gemini formatall - Generate all 4 formatsYour choice: ___ (or press enter for default)
---
Select generation mode:
core - Prompt + usage instructions + 2-3 examples (~5K tokens) [DEFAULT]advanced - Core + testing scenarios + variations + optimization tips (~12K tokens)Your choice: ___ (or press enter for core mode)
---
Check Quick-Start Presets:
templates/presets/ for matching templatesDecision Logic:
references/best-practices/ (OpenAI/Anthropic/Google)references/prompt-patterns.md (common patterns)---
Before output, validate:
[...] filled with actual contentIf validation fails: Fix issues before delivery.
Token Count Announcement:
After generating the prompt, count tokens and include in delivery message:
---
Generate based on selected format:
<mega_prompt>
<role>
[Role title with expertise and domain specialization]
</role>
<mission>
[Primary objective and success criteria]
</mission>
<context>
<domain>[Industry/field context]</domain>
<expertise>[Specialized knowledge areas]</expertise>
<tech_stack>[Technologies and tools if applicable]</tech_stack>
<constraints>[Limitations and requirements]</constraints>
<avoidance_rules>[What NOT to do]</avoidance_rules>
</context>
<workflow>
<phase_1>
[First phase name and steps]
</phase_1>
<phase_2>
[Second phase name and steps]
</phase_2>
<phase_3>
[Third phase name and steps]
</phase_3>
<phase_4>
[Fourth phase name and steps]
</phase_4>
</workflow>
<output_specifications>
<format>[Expected output format]</format>
<structure>[How to organize the output]</structure>
<depth_level>[How detailed to be]</depth_level>
<quality_criteria>[Success metrics]</quality_criteria>
</output_specifications>
<communication_guidelines>
<tone>[Communication style]</tone>
<audience>[Target reader level]</audience>
<formatting>[How to format responses]</formatting>
<examples_usage>[When and how to use examples]</examples_usage>
</communication_guidelines>
<best_practices>
[Contextually selected best practices for this role/domain/task]
[From OpenAI:]
- [Relevant OpenAI practice 1]
- [Relevant OpenAI practice 2]
[From Anthropic:]
- [Relevant Anthropic practice 1]
- [Relevant Anthropic practice 2]
[From Google:]
- [Relevant Google practice 1]
- [Relevant Google practice 2]
[Domain-Specific:]
- [Domain best practice 1]
- [Domain best practice 2]
- [Domain best practice 3]
</best_practices>
<critical_instructions>
<priority_1>
[Most important rules - must follow]
</priority_1>
<priority_2>
[Important guidelines - should follow]
</priority_2>
<priority_3>
[Supporting instructions - recommended]
</priority_3>
</critical_instructions>
<examples>
## Example 1: [Scenario Name]
**User Request:** [Typical user request]
**Expected Response Structure:**
[Show how to structure the response]
## Example 2: [Scenario Name]
**User Request:** [Another typical request]
**Expected Response Structure:**
[Show the response pattern]
</examples>
<execution_trigger>
You are now fully configured as [Role] specialized in [Domain].
When the user provides a request:
1. Analyze their specific needs using the workflow above
2. Apply relevant best practices contextually
3. Generate output meeting quality criteria
4. Deliver complete solution in one comprehensive response
Begin assisting the user now with this configuration.
</execution_trigger>
</mega_prompt>
# System Configuration: [Role]
You are [role with expertise and domain]. Your mission is to [primary objective].
## Your Expertise
[Domain and specialized knowledge areas]
## Your Workflow
When given a task:
1. [Phase 1 steps]
2. [Phase 2 steps]
3. [Phase 3 steps]
4. [Phase 4 steps]
## Output Standards
- Format: [specified format]
- Structure: [organization approach]
- Depth: [detail level]
- Quality bar: [success criteria]
## Communication Style
- Tone: [specified tone]
- Audience: [target level]
- Formatting: [format approach]
## Critical Rules
**Must follow:**
- [Priority 1 rules]
**Should follow:**
- [Priority 2 guidelines]
## Best Practices
[Contextually relevant practices for this role/domain]
## Response Examples
[2-3 examples showing expected behavior]
---
Execute your role now, following all guidelines above.
**What would you like ChatGPT to know about you to provide better responses?**
I need you to act as [role with expertise and domain specialization].
My domain: [industry/field]
My tech stack: [if applicable]
My constraints: [if applicable]
**How would you like ChatGPT to respond?**
WORKFLOW:
1. [Phase 1 approach]
2. [Phase 2 approach]
3. [Phase 3 approach]
4. [Phase 4 approach]
OUTPUT REQUIREMENTS:
- Format: [specified format]
- Style: [tone and communication approach]
- Depth: [detail level]
- Include: [what to include]
CRITICAL RULES:
- [Priority 1 rules]
- [Important guidelines]
BEST PRACTICES TO FOLLOW:
[Contextually relevant practices]
Always provide [example format] and ensure [quality criteria].
## Role Configuration
You are: [role with expertise and domain]
## Task Approach
[Workflow summarized for Gemini's style]
## Output Format
[Clear format specification]
## Quality Standards
[Success criteria]
## Examples
[2 concrete examples]
Apply this configuration to all responses.
---
If user selected advanced mode, append these sections:
<testing_scenarios>
## Test Case 1: [Simple Case]
**Input:** [Test input]
**Expected Behavior:** [What should happen]
**Success Criteria:** [How to verify]
## Test Case 2: [Edge Case]
**Input:** [Edge case input]
**Expected Behavior:** [How to handle]
**Success Criteria:** [Verification method]
## Test Case 3: [Complex Case]
**Input:** [Complex scenario]
**Expected Behavior:** [Expected handling]
**Success Criteria:** [Verification approach]
## Test Case 4: [Error Case]
**Input:** [Invalid/error input]
**Expected Behavior:** [Error handling]
**Success Criteria:** [How to validate]
## Test Case 5: [Performance Case]
**Input:** [High-load scenario]
**Expected Behavior:** [Performance expectations]
**Success Criteria:** [Performance metrics]
</testing_scenarios>
<prompt_variations>
## Variation 1: Concise (~3K tokens)
[Minimal version focusing on essential instructions]
## Variation 2: BalancedWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.