/promptgen:promptgen <prompt-description> [--for claude|gpt|codex|generic] [--research light|deep] [--verbose] [--no-copy] [--examples] [--raw]from promptgen
Transforms rough instructions into optimized, evidence-based AI prompts for system prompts, task prompts, coding-agent instructions, tools, eval graders, subagent briefings, or prompt-improvement work. Copies to clipboard.
Ships in promptgen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate optimized, evidence-based prompts from rough human instructions. Built on Anthropic / OpenAI guidance through April 2026, the 2025-2026 academic literature (Mollick / Wharton Prompting Science Reports 1-4, Chroma context-rot research, GEPA, IFScale, "Reasoning Models Struggle to Control CoT"), Simon Willison's lethal trifecta and Meta's Rule of Two, and current agent / coding-agent patterns (AGENTS.md, SKILL.md, three-agent harness, ACI design).
Before taking any action, read references/workflow.md completely. It is the authoritative procedure and preserves every platform fallback, decision rule, template, command, validation step, and output contract. Follow its sections in order and load the deeper references it names only at their stated gates.
Paths in the workflow are relative to this skill directory. When a named tool, agent, or interaction primitive is unavailable, use the workflow's compatibility fallback; never silently skip the behavior.
Invocation arguments: $ARGUMENTS
These are the prompt description and flags the user gave on invocation. The workflow reads them from here, not from its own text. If the line above is empty or still shows the literal placeholder, the client passed none: take the same values from the user's request.
agents/openai.yaml (opens in a new tab)evals/evals.json (opens in a new tab)references/anti-patterns.md (opens in a new tab)references/code-for-agents.md (opens in a new tab)references/prompt-mechanics.md (opens in a new tab)references/prompt-principles.md (opens in a new tab)references/prompt-structure.md (opens in a new tab)references/security-patterns.md (opens in a new tab)references/workflow.md (opens in a new tab)scripts/clipboard.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prompt-engineering, prompt-optimization, ai-prompts, clipboard
Other plugins' skills for the same job
npx claudepluginhub smykla-skalski/sai --plugin promptgen