mcpField
P
prompt-creator

prompt-creator

github.com/hburaktasyurekAgent workflows043 installsUpdated 4w ago
Repository

About prompt-creator

An interview-driven skill for creating Claude prompts using Anthropic's stated best practices for current models. It gathers requirements one question at a time, selects relevant prompt sections, and presents the assembled prompt with rationale and a test suggestion.

Key features

  1. 01Interview users one question at a time
  2. 02Validate the proposed prompting approach
  3. 03Select sections with a decision matrix
  4. 04Use reference snippets for specialized sections
  5. 05Present prompt with rationale and test suggestion

Use cases

  1. 01Creating a prompt from an unclear initial goal
  2. 02Choosing prompt sections for a specific deployment
  3. 03Testing a prompt against an edge case

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hburaktasyurek/agent-skills-and-commands --skill prompt-creator

After installing, type/prompt-creatorin Claude Code to confirm it loaded.

Bundled filesreferences/best-practices-snippets.md

Details

From the project README

Prompt Creator

An interview-driven skill for building high-quality Claude prompts, grounded in Anthropic's official best practices for current models (Opus 4.x / Sonnet 4.x / Haiku 4.x).

Core Approach

Work through three phases in order. Ask one question at a time. Never list all questions upfront. Stop probing the moment you have enough to write.


Phase 1 — Goal & Approach Validation (1–3 questions max)

Step 1: Understand the goal

Ask one question first:

What should the prompt make Claude do — and what does a good output look like?

Wait for the answer before continuing.

Step 2: Validate approach before going deep

Once the goal is clear, assess whether the user's stated approach (if they named one) is actually the best fit. If a clearly better approach exists, name it directly — don't ask the user to figure it out.

Common mismatches to check:

User's stated approachBetter alternative if…
Add more instructions to make Claude think step-by-stepAPI-level thinking: adaptive + effort: high eliminates the need
Write a very long, detailed system promptXML-structured sections reduce length and improve parsing
Add few-shot examples for every caseOutput format is simple enough; examples would just add tokens
Tell Claude to "be concise / don't use bullets"A single short example outperforms paragraphs of format instructions
Add aggressive "MUST use this tool" languageCurrent models overtrigger on caps; plain language suffices
Chain of thought via instructionsThinking mode handles this more reliably
"Just make it longer / shorter"Explicit format section or verbosity instruction is more precise

State your assessment in one sentence. Offer the better path, explain the reason in one sentence, and confirm before proceeding. Do not interrogate — offer your read and let them confirm.

Step 3: Gather context (if not already clear)

If deployment context matters for section choices, ask one question:

Where will this run — Claude.ai chat, API system prompt, or Claude Code — and which model?


Phase 2 — Targeted Interview

With goal and approach confirmed, interview for details needed to build each section. Use the Decision Matrix (below) to know which sections will be in the final prompt — only ask about those.

Rules:

  • One question per turn
  • Stop asking when you have enough to write; do not probe for information that won't change the output
  • If the user's answer makes a previously planned section unnecessary, drop it silently
  • If an answer reveals a new required section, add it

Phase 3 — Assembly

Apply the Decision Matrix to select sections, then write the prompt. Before writing any specialized section (tool use, agentic, thinking, formatting), read references/best-practices-snippets.md and pull the relevant ready-to-use snippet rather than writing from scratch.

Present the finished prompt in a code block.

Follow it with:

  1. One-sentence rationale for each included section
  2. Sections explicitly skipped and why
  3. One concrete thing to test first (e.g., "test with an edge-case input that has no clear answer")

Offer to iterate.


Decision Matrix

Err on the side of omission — every unnecessary section adds noise and token cost.

SectionInclude whenSkip when
Role / PersonaTask has a clear domain (coding, legal, medical, creative) or tone mattersGeneral assistant tasks; conversational prompts
Context / BackgroundClaude needs facts it can't infer: company rules, custom terminology, codebase detailsWidely known domains; facts are in the input
InstructionsAlways — this is the coreNever skip
XML StructurePrompt mixes 3+ content types (instructions + examples + variable input), or input is a dynamic templateSimple single-purpose prompts
Few-Shot ExamplesOutput format is nuanced, tone must be specific, or edge cases are likely to trip ClaudeFormat is simple/self-evident; use 3–5 examples or none — 1–2 rarely help
Output Format / VerbositySpecific length, structure, markdown behavior, or LaTeX use is requiredFreeform output is fine
Tool Use GuidancePrompt involves tool calls; need to tune proactivity, parallelism, or safetyNo tools involved
Thinking / ReasoningComplex multi-step reasoning, math, coding, ambiguous inferenceSimple lookups; single-step tasks
Agentic PatternsMulti-step autonomous task, state tracking, long-horizon work, subagent orchestrationSingle-turn tasks
Long Context HandlingInput is 20k+ tokens or involves multiple documentsTypical-length inputs

Assembly Rules

  1. Section order:

    • Long-context prompts: documents first, instructions/query last (up to 30% better performance)
    • Everything else: role → context → instructions → examples → format spec
  2. XML tags when mixing 3+ content types. Wrap <instructions>, <context>, <examples>, <input> distinctly. Use consistent, descriptive tag names.

  3. Snippets over improvisation. For tool use, agentic patterns, thinking, formatting, and frontend design — pull from references/best-practices-snippets.md. These are tested against current models.

  4. Positive framing. State what Claude should do, not what it shouldn't:

    • ✓ "Write in flowing prose paragraphs"
    • ✗ "Don't use bullet points"
  5. Match prompt style to desired output style. Markdown in the prompt → more markdown in output. Plain prose prompt → plain prose output.

  6. One example beats three paragraphs for output format and tone. Prefer examples for nuanced formatting; prefer instructions for behavioral rules.

  7. Context behind instructions improves generalization. "Never use ellipses — this text will be read by a TTS engine" outperforms "NEVER use ellipses."

  8. For Claude Opus 4.7 / Sonnet 4.6: These models follow instructions more literally than older models. Be explicit about scope ("apply this to every section, not just the first"). Do not use aggressive caps-heavy language — current models overtrigger on it.


Reference Files

Read before writing any specialized section:

  • references/best-practices-snippets.md — Ready-to-use snippets for: tool use (proactive / conservative / parallel), thinking / reasoning, agentic patterns (autonomy, long-horizon, subagent orchestration, state tracking), output and formatting control, code review, frontend design, and anti-hallucination. Organized by Decision Matrix section.

Comments

Markdown supported