From prompts
Interactive prompt engineering skill that guides users through structured dialogue to build comprehensive, optimized prompts with intelligent technique selection, automatic hardening patterns, and voice calibration. Use when a user wants to craft a high-quality prompt, says "build me a prompt", "help me write a prompt", "prompt forge", "craft a prompt", "forge a prompt", needs help articulating what they want an AI to do, or wants to generate a detailed brief for any task — research, coding, document creation, analysis, or artifact generation. Automatically integrates the humanize skill and voice profile selection when the output involves Word, Excel, PowerPoint, or Markdown artifacts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prompts:prompt-forgeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
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.
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.
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:
If Research produces an artifact (user says they want a Markdown report, Word doc, etc.), reclassify as the appropriate artifact category and proceed with voice/humanize in Phase 4.
Gather details that shape the prompt. Batch 2-3 related questions per AskUserQuestion call.
Always ask: audience, detail level, constraints (deadlines, format, scope).
Then ask category-specific questions. Load references/CATEGORY-QUESTIONS.md for the full question bank organized by task category.
While gathering context, detect signals for Phase 3. Note signals as you encounter them — don't ask the user about technique selection.
Load references/SIGNAL-ROUTER.md for the full signal detection and routing logic.
Do NOT ask the user which technique to use. Instead:
"I'm using [technique] because [one-sentence reason]. Does that sound right, or would you prefer a different approach?"
Load references/TECHNIQUES.md for the 10 technique definitions across three tiers:
If selecting Few-Shot, ask the user for 2-3 examples (or offer to generate them).
Load references/HARDENING-PATTERNS.md for the 10 composable hardening patterns.
Based on detected signals, auto-apply relevant hardening patterns from the auto-application matrix. These patterns layer on top of the selected technique:
Hardening cap: Maximum 4 patterns per prompt (Anchor is structural and doesn't count). If more than 4 trigger, prioritize: structural → quality gates → calibration → verification. Tell the user which were dropped and offer to add them back.
Tell the user which patterns you're applying and why, in one sentence:
"I'm also applying Confidence Gate and Assumption Audit since this is an analytical task where accuracy matters."
Only activates for artifact categories (Document, Spreadsheet, Presentation, Markdown, or Research reclassified as artifact). Skip for Query/Answer, Code, Workflow, and Research-without-artifact.
Ask via AskUserQuestion:
"Which voice profile would you like?
- OX — Oxford academic: measured, precise, authoritative
- SF — San Francisco tech: direct, energetic, conversational
- AB — Australian business: warm, pragmatic, clear
- ST — Southern storyteller: engaging, warm, narrative-driven
- Or describe your own voice preference."
Load references/VOICE-PROFILES.md for full profile descriptions, humanize integration rules, and voice-technique pairing recommendations.
Synthesize all gathered inputs into a single comprehensive prompt.
Load references/ASSEMBLY-RULES.md for the full 7-step assembly process, output envelope format, and delivery checklist.
Assembly pipeline: Role/context → Anchor (output format) → Objective → Hardening patterns (Constraint Stack, Persona Boundary, Failure Injection, Confidence Gate, Assumption Audit) → Technique structure → Step Separator (if applicable) → Specificity Ladder / Compression Command → Artifact/humanize instructions (if applicable) → Verification criteria → Reframe Test instruction (if applicable).
Present the prompt, then ask:
"Would you like me to: (1) Execute it now, (2) Refine it, or (3) Save it as a file?"
Scale the number of questions to task complexity:
Heuristic: If the user's initial description is under 2 sentences and the task category is clear, go Light. If they describe multiple deliverables, competing requirements, or say "it's complicated," go Deep. Default to Standard.
Every generated prompt must be: self-contained, include success criteria, specify output format, apply the correct technique pattern, include hardening patterns appropriate to the task, include humanize + voice for artifacts, and be specific enough for consistent results.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub tqnonline/agent-forge --plugin prompts