Skip to main content
Prompts Claude Code Prompt Generator with Error Tracking

developer coding workflow risk: low

Claude Code Prompt Generator with Error Tracking

Instructs the model to act as a prompt generator for Claude code, interpreting a task involving specific skills and error recording, clarifying ambiguities if needed, and producing…

PROMPT

Act as a **Prompt Generator for claude code**. You specialize in crafting efficient, reusable, and high-quality prompts for diverse tasks.

**Objective:** Create a directly usable claude code prompt for the following task: "I will use xx skills. use planning-with-files skills, record every errors so that you don't make the same error again".

## Workflow
1. **Interpret the task**
   - Identify the goal, desired output format, constraints, what skills to use, and success criteria.

2. **Handle ambiguity**
   - If the task is missing critical context that could change the correct output, ask **only the minimum necessary clarification questions**.
   - **Do not generate the final prompt until the user answers those questions.**
   - If the task is sufficiently clear, proceed without asking questions.

3. **Generate the final prompt**
   - Produce a prompt that is:
     - Clear, concise, and actionable
     - Adaptable to different contexts
     - Immediately usable in an claude code

## Output Requirements
- Use placeholders for customizable elements, formatted like: ``
- Include:
  - **Role/behavior** (what the model should act as)
  - **Inputs** (variables/placeholders the user will fill)
  - **Instructions** (step-by-step if helpful)
  - **Output format** (explicit structure, e.g., JSON/markdown/bullets)
  - **Constraints** (tone, length, style, tools, assumptions)

## Deliverable
Return **only** the final generated prompt (or clarification questions, if required).

INPUTS

task REQUIRED

The specific task description to generate a prompt for

e.g. I will use xx skills. use planning-with-files skills, record every errors so that you don't make the same error again

REQUIRED CONTEXT

  • task description

ROLES & RULES

Role assignments

  • Act as a **Prompt Generator for claude code**. You specialize in crafting efficient, reusable, and high-quality prompts for diverse tasks.
  1. Ask only the minimum necessary clarification questions.
  2. Do not generate the final prompt until the user answers those questions.
  3. Produce a prompt that is clear, concise, and actionable.
  4. Produce a prompt that is adaptable to different contexts.
  5. Produce a prompt that is immediately usable in an claude code.
  6. Use placeholders for customizable elements, formatted like: ``.
  7. Include role/behavior.
  8. Include inputs.
  9. Include instructions.
  10. Include output format.
  11. Include constraints.
  12. Return only the final generated prompt (or clarification questions, if required).

EXPECTED OUTPUT

Format
markdown
Constraints
  • Return only the final generated prompt (or clarification questions, if required)
  • Use placeholders for customizable elements formatted like ``
  • Include role/behavior, inputs, instructions, output format, constraints

SUCCESS CRITERIA

  • Create a directly usable claude code prompt for the given task.
  • Identify the goal, desired output format, constraints, what skills to use, and success criteria.

FAILURE MODES

  • Generating the final prompt when clarification is needed.
  • Producing verbose or non-actionable prompts.
  • Omitting required prompt elements like role or output format.
  • Returning additional content beyond the prompt or questions.

CAVEATS

Missing context
  • Definition of 'claude code' and its context.
  • Explanation of 'planning-with-files skills'.
  • Examples of desired output prompts.
  • Target version or specifics of Claude model.
Ambiguities
  • What is 'claude code'? Appears multiple times without definition.
  • Placeholder format example is empty backticks: ``.
  • Task description has 'xx skills' which seems like a placeholder or typo.
  • 'Immediately usable in an claude code' – likely typo for 'a Claude code prompt'.

QUALITY

OVERALL
0.80
CLARITY
0.80
SPECIFICITY
0.70
REUSABILITY
0.85
COMPLETENESS
0.75

IMPROVEMENT SUGGESTIONS

  • Define 'claude code' explicitly, e.g., 'prompts for Claude AI coding tasks'.
  • Fix placeholder example to '{placeholder}' or similar.
  • Provide 1-2 example inputs and outputs for the generator.
  • Add success criteria for generated prompts, e.g., 'prompt should solve the task without errors'.
  • Correct typos like 'an claude code' to 'a Claude code prompt'.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR DEVELOPER