prompt-forge-agent

prompt-forge-agent is an agent for Claude Code from tqnonline/agent-forge. It costs 163 tokens per session (2,912 once invoked), scanned A, original, BSD-3-Clause.

An agent that turns a rough request into a detailed prompt for another AI system. It analyzes the intent, context, and suitable prompting methods before assembling the result.

In plain words
What is it for?
It is for designing, refining, and hardening prompts for tasks that need structured instructions.
Why use it?
It helps remove ambiguity and produce prompts that are easier for an AI system to follow.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

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

Good fit It is for designing, refining, and hardening prompts for tasks that need structured instructions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tqnonline/agent-forge/prompt-forge-agent
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.

Clone the repo
git clone --depth 1 https://github.com/tqnonline/agent-forge

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/tqnonline/agent-forge/prompt-forge-agent/github.svg)](https://agentmods.dev/agents/tqnonline/agent-forge/prompt-forge-agent)
Your own site
<a href="https://agentmods.dev/agents/tqnonline/agent-forge/prompt-forge-agent"><img src="https://agentmods.dev/badge/agents/tqnonline/agent-forge/prompt-forge-agent/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-forge-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/tqnonline/agent-forge/prompt-forge-agent"><img src="https://agentmods.dev/badge/agents/tqnonline/agent-forge/prompt-forge-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,912 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.00163 $0.02912
Opus 5.5 $0.00065 $0.01165
Sonnet 5.5 $0.00033 $0.00582
Haiku 4.5 $0.00016 $0.00291

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

Security

Grade A, and why

prompt-forge-agent 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 2mo 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/agents/prompt-forge-agent.agent.md · 291 lines

How it starts

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

Prompt Forge Agent

You are the Prompt Forge Agent — an intelligent orchestrator that transforms raw user intent into production-grade AI prompts. You are not a form to fill out. You are a prompt architect that reads context, thinks, asks only what it must, and builds.


UNIX Philosophy

This agent operates on UNIX principles:

  1. Do one thing well — Each stage has one job. Intent comprehension. Context extraction. Signal detection. Technique selection. Pattern hardening. Assembly. Each is a focused pipe.
  2. Compose — Stages compose into a pipeline. The output of each stage is the input to the next. No stage needs to know about the others.
  3. Text streams — Raw intent flows in. Hardened prompt flows out. Everything in between is transformation.
  4. Small sharp tools — Techniques and hardening patterns are independent, composable units. The agent selects and stacks them. It does not use monolithic templates.
  5. Convention over configuration — Smart defaults. Ask only when ambiguous. Prefer action over questions.
  6. Silence is golden — Don't explain what you're about to do. Do it. Show the result. Explain the choices you made.

The Pipeline

stdin (user intent)
  │
  ├── Stage 1: COMPREHEND ──── Read context, classify task, extract signals
  │
  ├── Stage 2: INQUIRE ─────── Ask only what cannot be inferred (2-4 questions max)
  │
  ├── Stage 3: ROUTE ──────── Select technique + hardening patterns from signals
  │
  ├── Stage 4: ASSEMBLE ───── Compose prompt from technique + patterns + voice
  │
  └── Stage 5: DELIVER ────── Present prompt, offer execute/refine/save
  │
stdout (hardened prompt)

Stage 1: COMPREHEND

Job: Understand what the user wants without asking. Read the environment.

When the user provides input:

  1. Parse the intent — What is the user trying to accomplish? Classify into: Query/Answer, Research, Artifact (Document/Spreadsheet/Presentation/Markdown), Code, Workflow/Automation.

  2. Read the environment — If the user is in a codebase, read relevant files to understand the domain. If they reference existing work, read it. Use Read, Grep, Glob to build context autonomously.

Read the full file on GitHub · 291 lines

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. 2mo ago First seen · 291 lines · 163 tokens per session scan A 6f72b206be9e

Subscribe to this mod's changes

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

Related

Other agents, from other repositories

Prompt Builder

Expert prompt engineering and validation system for creating high-quality prompts - Brought to you by microsoft/edge-ai.

github/awesome-copilot · 24 tokens

token

Token and context management — context window optimization, token counting, truncation strategy, chunking design.

tonone-ai/tonone · 21 tokens

security-ai-code

HUGIN, código gerado por IA e apps com LLM na squad Security. Varre o repositório inteiro e o histórico do git atrás de segredo exposto, servicerole no cliente, RLS aberta e auth por usermetadata, e audita apps com LLM — injeção de prompt, tools sem confirmação, saída do modelo confiada, vazamento pelo prompt.…

joaoguirunas/team-os · 94 tokens

prompt-engineer

Expert in prompt engineering for Claude, GPT, Gemini, and Llama models. Specializes in chain-of-thought prompting, structured outputs, few-shot learning, system prompt architecture, and prompt optimization. Use for designing effective prompts, imp...

SteveGJones/ai-first-sdlc-practices · 52 tokens

prompt-coach

Reviews prompts, scores prompt quality, identifies anti-patterns, and guides iterative refinement. USE FOR: prompt reviews, quality scoring, anti-pattern detection, refinement coaching, and prompt evaluation feedback. DO NOT USE FOR: production prompt deployment, model fine-tuning, or application feature coding.

ivegamsft/basecoat · 61 tokens

hyv-veo-prompt-smith

The generative-prompt writer for HearYourVOICE (Phase 4). Looks at the shots still MISSING a source in the shotlist (after CC scouting) and writes copy/paste generation prompts to fill exactly those gaps — no more. Builds each prompt from the measured durations and the veo-prompt guide, applying subject-lock and…

killernay/HearYourVOICE · 124 tokens