prompt-generator

prompt-generator is a skill for Claude Code from catlog22/Claude-Code-Workflow. It costs 88 tokens per session (4,704 once invoked), scanned A, original, MIT.

A generator and converter for Claude Code command, skill, and agent prompt files.

In plain words
What is it for?
It helps create command orchestrators, skills, and agent role definitions, or restyle existing prompt files.
Why use it?
It reduces the work of designing these files and helps convert existing ones while preserving their content and applying a consistent structure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Good fit It helps create command orchestrators, skills, and agent role definitions, or restyle existing prompt files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catlog22/claude-code-workflow/prompt-generator
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 catlog22/Claude-Code-Workflow --skill prompt-generator
Clone the repo
git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow

Made for: Claude Code.

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-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/catlog22/claude-code-workflow/prompt-generator/github.svg)](https://agentmods.dev/skills/catlog22/claude-code-workflow/prompt-generator)
Your own site
<a href="https://agentmods.dev/skills/catlog22/claude-code-workflow/prompt-generator"><img src="https://agentmods.dev/badge/skills/catlog22/claude-code-workflow/prompt-generator/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-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/catlog22/claude-code-workflow/prompt-generator"><img src="https://agentmods.dev/badge/skills/catlog22/claude-code-workflow/prompt-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,704 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.00088 $0.04704
Opus 5.5 $0.00035 $0.01882
Sonnet 5.5 $0.00018 $0.00941
Haiku 4.5 $0.00009 $0.00470

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

Security

Grade A, and why

prompt-generator 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.

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.

.claude/skills/prompt-generator/SKILL.md · 464 lines

How it starts

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

  • Create command — new orchestration workflow at .claude/commands/ or ~/.claude/commands/
  • Create skill — new skill file at .claude/skills/*/SKILL.md (progressive loading, no @ refs)
  • Create agent — new role + expertise file at .claude/agents/
  • Convert — restyle existing command/skill/agent to GSD conventions with zero content loss

Content separation principle (from GSD): commands/skills own orchestration flow; agents own domain knowledge. Skills are a variant of commands but loaded progressively inline — they CANNOT use @ file references.

Invoked when user requests "create command", "new command", "create skill", "new skill", "create agent", "new agent", "convert command", "convert skill", "convert agent", "prompt generator", or "优化".

<required_reading>

  • @.claude/skills/prompt-generator/specs/command-design-spec.md
  • @.claude/skills/prompt-generator/specs/agent-design-spec.md
  • @.claude/skills/prompt-generator/specs/conversion-spec.md
  • @.claude/skills/prompt-generator/templates/command-md.md
  • @.claude/skills/prompt-generator/templates/agent-md.md </required_reading>

1. Determine Artifact Type

Parse $ARGUMENTS to determine what to generate.

Signal Type
"command", "workflow", "orchestrator" in args command
"skill", "SKILL.md" in args, or path contains .claude/skills/ skill
"agent", "role", "worker" in args agent
"convert", "restyle", "refactor", "optimize", "优化" + file path in args convert
Ambiguous or missing Ask user

Convert mode detection: If args contain a file path (.md extension) + conversion keywords, enter convert mode. Extract $SOURCE_PATH from args. Auto-detect source type from path:

  • .claude/commands/ → command
  • .claude/skills/*/SKILL.md → skill
  • .claude/agents/ → agent

Skill vs Command distinction: Skills (.claude/skills/*/SKILL.md) are loaded progressively inline into the conversation context. They CANNOT use @ file references — only Read() tool calls within process steps. See @specs/command-design-spec.md → "Skill Variant" section.

If ambiguous:

AskUserQuestion(
  header: "Artifact Type",
  question: "What type of prompt file do you want to generate?",
  options: [
    { label: "Command", description: "New orchestration workflow — process steps, user interaction, agent spawning" },
    { label: "Skill", description: "New skill file — progressive loading, no @ refs, inline Read() for external files" },
    { label: "Agent", description: "New role definition — identity, domain expertise, behavioral rules" },
    { label: "Convert", description: "Restyle existing command/agent/skill to GSD conventions (zero content loss)" }
  ]
)

Store as $ARTIFACT_TYPE (command | skill | agent | convert).

Read the full file on GitHub · 464 lines

Files

What ships with it

5 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 · 464 lines · 88 tokens per session scan A 073829608515

Subscribe to this mod's changes

prompt-generator is a skill published in the GitHub repository catlog22/Claude-Code-Workflow (2,124 stars, last pushed 4mo ago), licensed MIT. It adds 88 tokens to every session and 4,704 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

spawn-agent

Spawn worker agents (Gemini CLI or Codex CLI) to keep main context clean. Use for implementation, codebase research, context gathering, or any scoped work that would pollute the orchestrator's context.

khanhbkqt/spawn-agent · 46 tokens

newsroom-style

Apply AP Style and common newsroom conventions when writing or editing news articles, briefs, and headlines. Use when drafting publishable copy, editing contributor submissions, or converting informal notes into news-ready language.

jamditis/mooc-starter-kit · 43 tokens

beat-brief

Draft a short daily beat briefing from a folder of incoming source documents. Use when the reporter wants a five-bullet summary of the day's material with attribution flags and follow-up actions.

jamditis/mooc-starter-kit · 40 tokens

first-skill

Minimal skill template that students copy and customize to create their first Claude Code skill. Use this as the starting point when building a new custom skill for a specific beat or workflow.

jamditis/mooc-starter-kit · 39 tokens

skill-dispatcher

Universal MCP skill dispatcher for AI coding agents. Loads Claude Code, OpenCode, Cursor, Gemini-style, command, plain markdown, and GitHub-hosted skills on demand. Includes agent routing, active skill lifecycle tracking, external repo import, nested skill discovery, origin filtering, and hardened parsing for secure…

farhanic017/dynamic-skill-loader · 68 tokens

audit

Audit local Claude Code transcript usage and summarize likely token hotspots. Use when the user asks where Claude Code tokens are going or wants evidence before optimizing.

ictechgy/context-guard · 29 tokens