Skip to content
Back to skills

Promptgen

ASecurity

Use when turning 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.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
toolsbash

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 7, 2026

npx -y skills add smykla-skalski/sai --skill promptgen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Promptgen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Promptgen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/smykla-skalski-promptgen-sai/badge)](https://www.skillsdirectory.com/skills/smykla-skalski-promptgen-sai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: promptgen
description: Use when turning 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.
argument-hint: "<prompt-description> [--for claude|gpt|codex|generic] [--research light|deep] [--verbose] [--no-copy] [--examples] [--raw]"
license: MIT
compatibility: Works in Claude Code, Codex, opencode and Copilot CLI. Clipboard copy needs bash plus pbcopy (macOS), clip (Windows), or wl-copy, xclip, xsel or clip.exe (Linux, WSL); without one the prompt is only printed.
allowed-tools: AskUserQuestion Bash Read Task
user-invocable: true
metadata:
  short-description: Turn rough asks into strong prompts
---


# Promptgen

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).

## Required guidance

Before taking any action, read [references/workflow.md](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. If argument substitution is unavailable or unresolved, take the input and flags from the user's request. When a named tool, agent, or interaction primitive is unavailable, use the workflow's compatibility fallback; never silently skip the behavior.

## Core flow

1. Agent compatibility
2. Arguments
3. Responsibility boundary
4. Workflow
5. Example invocations
6. Error handling

## Execution contract

- Resolve the target and flags before side effects.
- Execute every applicable workflow section in the listed order; headings are an index, not a replacement for the detailed instructions.
- Preserve explicit read gates: load each supporting reference immediately before the phase that needs it.
- Follow repository instructions and the user's authorized scope.
- Preserve validation, state-update, deduplication, adversarial-check, and output requirements exactly as defined in the workflow.
- Stop at every hard stop named by the workflow and state the required next action.

Files in this skill

  • SKILL.md6.5 KB
  • agents/openai.yaml296 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.