prompt-forge

prompt-forge is a skill for Claude Code, Codex from tqnonline/agent-forge. It costs 135 tokens per session (2,195 once invoked), scanned A, original, BSD-3-Clause.

An interactive guide for turning a rough idea into a detailed prompt for an AI tool. It asks structured questions, chooses prompt-writing techniques, and adjusts the wording and voice.

In plain words
What is it for?
Use it to build prompts for tasks such as writing, coding, analysis, or creating documents. It can also shape the prompt's tone and add safeguards.
Why use it?
It helps uncover missing context and constraints before the prompt is written. This reduces vague instructions and makes the intended result clearer.

Skill for Claude CodeCodex

Part of the prompts plugin — 1 skill, 1 command, 1 agent shipped together

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.

agentmods
npx agentmods add skills/tqnonline/agent-forge/prompt-forge
Any agent
npx skills add tqnonline/agent-forge --skill prompt-forge
Clone the repo
git clone --depth 1 https://github.com/tqnonline/agent-forge

Made for: Claude Code, Codex.

Or install prompts, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/tqnonline/agent-forge/prompt-forge.svg)](https://agentmods.dev/skills/tqnonline/agent-forge/prompt-forge)
Your own site
<a href="https://agentmods.dev/skills/tqnonline/agent-forge/prompt-forge"><img src="https://agentmods.dev/badge/skills/tqnonline/agent-forge/prompt-forge.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00135 $0.02195
Opus 5 $0.00068 $0.01097
Sonnet 5 $0.00027 $0.00439
Haiku 4.5 $0.00014 $0.00219

Measured 5d ago against content hash 72f7b213fa1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

prompt-forge 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 5d 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.

plugins/prompts/skills/prompt-forge/SKILL.md · 175 lines

How it starts

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

Prompt Forge

You are an expert prompt architect. Guide the user through a structured dialogue to build a comprehensive, ready-to-use prompt. Each phase uses the AskUserQuestion tool. Adapt depth to task complexity — fewer questions for simple tasks, thorough exploration for complex ones.

Design philosophy (UNIX): Each phase does one thing well. Phases compose into a pipeline. Raw intent flows in, hardened prompt flows out.

Critical Rule: When the final prompt generates an artifact (DOCX, XLSX, PPTX, MD), you MUST include instructions to invoke the humanize skill with the chosen voice profile.

The Pipeline

Intent → Context → Technique (auto) → Hardening (auto) → Voice → Assembly
  │         │           │                   │               │        │
  ▼         ▼           ▼                   ▼               ▼        ▼
Phase 1   Phase 2    Phase 3            Phase 3b         Phase 4  Phase 5
(ask)     (ask)      (detect+select)    (auto-apply)     (ask*)   (build)

Phases marked (ask) use AskUserQuestion. Phase 4 only activates for artifacts. Phases 3 and 3b are automatic — the agent detects signals and selects, then explains its choice.

Phase 1: Intent Discovery

Ask ONE opening question via AskUserQuestion:

"What would you like to accomplish? Describe your goal in a few sentences — it can be anything: writing a document, building a feature, researching a topic, analyzing data, generating a report, or something else entirely."

Classify the response into a task category:

Category Artifact? Triggers Voice/Humanize?
Query/Answer No No
Research No by default Only if user wants MD/DOCX output
Artifact: Document Yes (DOCX/MD) Yes
Artifact: Spreadsheet Yes (XLSX) Yes
Artifact: Presentation Yes (PPTX) Yes
Artifact: Markdown Yes (MD) Yes
Code No No
Workflow/Automation No No

Ask a contextual follow-up to sharpen the intent. Tailor by category:

  • Research: "Should this produce a written deliverable (Markdown report, Word doc) or just a conversational answer? That'll determine how I structure the prompt."
  • Query/Answer: "Is there a specific angle or sub-question you care about most?"
  • Artifact: Document/Markdown: "Do you have a rough outline in mind, or should the prompt define the structure?"
  • Artifact: Spreadsheet: "What's the primary use — analysis, tracking, reporting, or a template for ongoing data entry?"
  • Artifact: Presentation: "What's the setting — board meeting, conference, team all-hands, client pitch?"
  • Code: "Is this greenfield or are you modifying something existing?"
  • Workflow/Automation: "What triggers this workflow and what's the end output?"

Read the full file on GitHub · 175 lines

Files

What ships with it

8 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. 5d ago First seen · 175 lines · 135 tokens per session scan A 72f7b213fa1a

Subscribe to this mod's changes

prompt-forge is a skill published in the GitHub repository tqnonline/agent-forge (2 stars, last pushed 3mo ago), licensed BSD-3-Clause. It adds 135 tokens to every session and 2,195 once invoked, about $0.0007 per session on Opus 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-08-31.

Related

Other skills, from other repositories

llm-app-patterns

Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

davila7/claude-code-templates · 54 tokens

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens

enhance-prompt

Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results.

google-labs-code/stitch-skills · 41 tokens

prompt-engineer

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot…

Jeffallan/claude-skills · 93 tokens

ideogram4

Prompting patterns for Ideogram 4 text-to-image — best-in-class in-image text rendering and exact color/layout control via structured JSON captions. Use when generating images that need legible on-image text (title cards, thumbnails, logos, signage, CTAs), precise brand colors, or controlled spatial layout. Triggers…

digitalsamba/claude-code-video-toolkit · 99 tokens

omh-model-optimization

This is a Hermes-native model-optimization workflow skill.

rlaope/oh-my-hermes · 82 tokens