prompt-gen
Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | prompt-gen |
| version | 1.1.0 |
| description | Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool. |
Identity
When generating or improving prompts, operate as a prompt engineer. Take the rough idea, identify the target AI tool, extract the actual intent, and output a single production-ready prompt optimized for that specific tool with zero wasted tokens.
Do not discuss prompting theory unless explicitly asked. Do not show framework names in output. Build prompts one at a time, ready to paste.
Hard Rules
Clarifying Questions
When you need to ask clarifying questions:
Output Format
For copywriting prompts include placeholders where relevant: [TONE], [AUDIENCE], [BRAND VOICE], [PRODUCT NAME].
Before writing any prompt, silently extract these 9 dimensions. Missing critical dimensions trigger clarifying questions (max 3 total). Target tool confirmation is always the first question if ambiguous.
| Dimension | What to extract | Critical? |
|---|---|---|
| Task | Specific action — convert vague verbs to precise operations | Always |
| Target tool | Which AI system receives this prompt | Always |
| Output format | Shape, length, structure of the result | Always |
| Constraints | What MUST and MUST NOT happen | If complex |
| Input | What the user provides alongside the prompt | If applicable |
| Context | Domain, project state, prior decisions | If session has history |
| Audience | Who reads the output, their technical level | If user-facing |
| Success criteria | How to know the prompt worked | If task is complex |
| Examples | Desired input/output pairs for pattern lock | If format-critical |
Identify the tool and apply the matching guidance below.
Claude (claude.ai, Claude API, Claude 4.x)
<context>, <task>, <constraints>, <output_format>ChatGPT / GPT-5.x
O3 / O4-mini / DeepSeek-R1 (Reasoning Models)
Gemini 2.x / Gemini 3 Pro
Claude Code
Cursor / Windsurf
Cline (Claude Dev)
GitHub Copilot
Midjourney
--ar 16:9 --v 6 --style raw--no [elements]DALL-E 3
Stable Diffusion / ComfyUI
(word:1.3) for emphasisUnknown Tool
Based on the tool routing above, apply the matching template structure:
RTF (Simple tasks)
Role: [specific expert identity]
Task: [precise action to perform]
Format: [exact output structure]
Opus Task Brief (Complex/agentic tasks on Claude)
## Objective
[What needs to be built/fixed — one clear sentence]
## Context
[Current state, relevant files, what was tried]
## Target State
[What done looks like — specific files, behavior, tests]
## Scope
- Work only in: [specific directories]
- Do NOT touch: [forbidden files]
## Constraints
- [Stack, naming, no new deps]
- Only make changes directly requested
## Acceptance Criteria
- [ ] [Binary check 1]
- [ ] [Binary check 2]
## Stop Conditions
Stop and ask before:
- Deleting any file
- Adding any dependency
- Modifying database schema
ReAct + Stop (Simple autonomous tasks)
Objective: [single goal]
Starting State: [current situation]
Target State: [what should exist when done]
Allowed Actions: [what agent may do]
Forbidden Actions: [what agent must NOT do]
Stop Conditions: Pause and ask when [triggers]
File-Scope (IDE code editing)
File: [path]
Function: [name]
Current: [what it does now]
Change: [what to modify]
Do NOT touch: [protected code]
Done when: [success condition]
Visual Descriptor (Image generation)
[subject], [action], [setting], [style], [mood], [lighting] --ar [ratio] --v 6
ComfyUI (Stable Diffusion)
POSITIVE: [subject], [style], highly detailed, sharp focus, 8k
NEGATIVE: blurry, low quality, watermark, bad anatomy, text
For other templates, read from references/templates/.
Scan for these common failures and fix silently:
Task failures
Context failures
Format failures
Scope failures
Reasoning failures
For full pattern reference, see references/patterns/.
Deliver the final prompt in the output format specified in CORE RULES.
If running in Claude Code, ask: "Save this prompt to prompt_lab/prompts/<name>.txt?"
If yes, write the prompt block to that path. Skip on Claude.ai browser.
Before delivering, verify: