Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By smykla-skalskiv3.1.9MITIn 1 marketplace
Turns rough instructions into optimized prompts for AI agents, coding agents or subagent briefings, with done-when criteria and side-effect limits. Copies to the clipboard on macOS, Linux or Windows and prints in chat when none works.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Turn rough instructions into optimized, evidence-based AI prompts. Built on Anthropic and 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).
You describe what you want a prompt to do in plain language. The skill generates a well-structured prompt with an outcome contract, observable done-when criteria, evidence rules, side-effect boundaries, fitting specificity, and no common anti-patterns. Output goes to clipboard by default.
Supports four target formats: Claude (XML tags), GPT (outcome-first Markdown), Codex (coding-agent contract), and generic (Markdown-only). Handles task prompts, system prompts, reusable templates, tool descriptions, eval graders, subagent briefings, three-agent harness instructions, and prompt-improvement passes.
The plugin is a portable Agent Plugin with one Agent Skill, so the same package works in Claude Code, Codex, Copilot CLI and opencode.
Claude Code (Copilot CLI is the same with copilot in place of claude):
claude plugin marketplace add smykla-skalski/sai
claude plugin install promptgen@sai
Codex:
codex plugin marketplace add smykla-skalski/sai
codex plugin add promptgen@sai
opencode, or any agent that reads Agent Skills, loads skills/promptgen/ directly:
ln -s /path/to/sai/plugins/promptgen/skills/promptgen ~/.config/opencode/skills/promptgen
Local checkout: claude --plugin-dir /path/to/sai/plugins/promptgen/
In Claude Code and Copilot CLI use /promptgen, in Codex $promptgen. On agents without subagents (and always on Codex) the analysis and security phases run inline against the same reference files, with the same result.
/promptgen <instructions> [--for claude|gpt|codex|generic] [--research light|deep] [--verbose] [--no-copy] [--examples] [--raw]
| Flag | Default | Purpose |
|---|---|---|
| (positional) | - | Rough instructions for what the prompt should do |
--for <model> | claude | Target: claude, gpt, codex, generic |
--research light|deep | off | Investigate codebase before generating |
--verbose | off | Show reasoning behind prompt decisions |
--no-copy | off | Output to chat only, skip clipboard |
--examples | off | Include few-shot examples in generated prompt |
--raw | off | Skip opinionated formatting preferences |
# Basic prompt generation (copies to clipboard)
/promptgen write technical docs for the auth module API endpoints
# GPT-targeted prompt
/promptgen refactor the database layer to use connection pooling --for gpt
# Codex-targeted coding-agent prompt
/promptgen fix flaky checkout tests and verify the failure mode --for codex
# Light research - checks config files first, then generates
/promptgen --research light refactor the database layer to use connection pooling
# Deep research - reads relevant source before generating
/promptgen --research deep add pagination to the user listing endpoint
# See the reasoning behind decisions
/promptgen --verbose investigate auth bypass vulnerabilities in the login flow
# Output to chat only, no clipboard
/promptgen --no-copy create a plan for migrating from REST to GraphQL
# Include few-shot examples in the generated prompt
/promptgen build a customer support chatbot that handles returns --examples
# Skip opinionated formatting preferences
/promptgen --raw write a migration guide for the new API version
The skill runs up to 7 phases:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub smykla-skalski/sai --plugin promptgenPlugins from other owners that cover similar ground