prompt-factory

prompt-factory is a skill for Claude Code from ckorhonen/claude-skills. It costs 95 tokens per session (2,287 once invoked), scanned A, original, MIT.

A guided tool that creates one detailed prompt after asking questions about the task and selecting from professional templates.

In plain words
What is it for?
It helps prepare prompts for work across multiple professional fields and formats, but does not carry out the requested work.
Why use it?
It helps turn an incomplete request into a structured prompt ready to give to another AI system.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-skills plugin — 62 skills, 4 commands, 7 agents shipped together

Good fit It helps prepare prompts for work across multiple professional fields and formats, but does not carry out the requested work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ckorhonen/claude-skills/prompt-factory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ckorhonen/claude-skills --skill prompt-factory
Clone the repo
git clone --depth 1 https://github.com/ckorhonen/claude-skills

Made for: Claude Code.

Or install claude-skills, the plugin that ships this one along with the rest of its 62 skills, 4 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prompt-factory

README.md
[![agentmods](https://agentmods.dev/badge/skills/ckorhonen/claude-skills/prompt-factory/github.svg)](https://agentmods.dev/skills/ckorhonen/claude-skills/prompt-factory)
Your own site
<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/prompt-factory"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/prompt-factory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prompt-factory

Your own site · 80×15
<a href="https://agentmods.dev/skills/ckorhonen/claude-skills/prompt-factory"><img src="https://agentmods.dev/badge/skills/ckorhonen/claude-skills/prompt-factory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,287 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.02287
Opus 5.5 $0.00038 $0.00915
Sonnet 5.5 $0.00019 $0.00457
Haiku 4.5 $0.00010 $0.00229

Measured 1mo ago against content hash 50636863955d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prompt-factory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/batch_generator.py, scripts/generate_prompt.py, scripts/optimizer.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prompt-factory/SKILL.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prompt Factory - World-Class Prompt Powerhouse

Generate production-ready mega-prompts through intelligent questioning and comprehensive domain presets.


⚠️ CRITICAL CONSTRAINTS - READ FIRST

This skill generates PROMPTS only. It does NOT implement the work described in the prompt.

What This Skill DOES:

✅ 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

What This Skill DOES NOT Do:

❌ 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 ❌ Execute the prompt after generating it

Expected Workflow:

  1. User asks for help creating a prompt
  2. Skill MUST ask 5-7 questions (even if context seems obvious)
  3. User answers questions with specific details
  4. Skill generates ONE comprehensive prompt document
  5. Skill announces token count
  6. STOP - Do not implement anything from the prompt
  7. Ask: "Would you like me to modify the prompt or create a variation?"

Gotchas & Common Pitfalls

1. Skipping Questions

Danger: Agent rushes to prompt generation without asking questions

  • Why it breaks: Vague prompts miss key context, leading to poor outputs when user applies them
  • Fix: ALWAYS ask 5-7 questions minimum, even for "obvious" requests
  • Example: User says "PM prompt for PRD" but doesn't specify domain, constraints, or team context
    • Wrong: Jump to generate PM preset
    • Right: Ask: domain, PRD type, team size, constraints, success criteria

2. Implementing Instead of Generating

Danger: Agent starts coding/building the thing the prompt describes

  • Why it breaks: Scope creep; this skill only makes prompts, not implementations
  • Fix: Generate the prompt → Stop → Offer variations only
  • Example: Prompt describes "REST API for payments"
    • Wrong: Start coding the API
    • Right: Generate prompt → User takes prompt elsewhere to implement

Read the full file on GitHub · 249 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 249 lines · 95 tokens per session scan A 50636863955d

Subscribe to this mod's changes

prompt-factory is a skill published in the GitHub repository ckorhonen/claude-skills (19 stars, last pushed 20d ago), licensed MIT. It adds 95 tokens to every session and 2,287 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

ai-prompting-basics

A practical guide to writing clearer requests for Claude, an AI assistant, by adding context, examples, roles, and output rules.

modu-ai/moai-cowork · 58 tokens

openrouter

OpenRouter API - Unified access to 400+ AI models through one API.

naveedharri/benai-skills · 18 tokens

prompt-master

The one skill for prompting the Claude 5 models the way Anthropic says to. Starts by interviewing the user one question at a time, then writes a new prompt, rewrites an old one, or audits a whole CLAUDE.md, skill or project-instruction file, applying the rules from Anthropic's Opus 5 guide, Fable 5 guide, best…

naveedharri/benai-skills · 225 tokens

token-efficiency-expert

Dr. Noa Reshef — token-efficiency expert persona. Brings academic rigor + production experience to LLM cost analysis: prompt token economics, marginal-token analysis, cache strategy, prompt compression. Use when the user wants a deep, opinionated review of prompt cost or wants to model token-hour spend across an agent…

MSApps-Mobile/claude-plugins · 0 tokens

dspy

Build complex AI systems with declarative programming, optimize prompts automatically, create modular RAG systems and agents with DSPy - Stanford NLP's framework for systematic LM programming.

synthetic-sciences/openscience · 35 tokens

guidance

Control LLM output with regex and grammars, guarantee valid JSON/XML/code generation, enforce structured formats, and build multi-step workflows with Guidance - Microsoft Research's constrained generation framework.

synthetic-sciences/openscience · 38 tokens