Skip to main content
Prompts Coding Problem Logic Builder

student coding user risk: low

Coding Problem Logic Builder

The prompt instructs the model to act as a logic-building tool that guides users through coding problems step by step using hints and suggestions, without providing the full soluti…

PROMPT

I want you to act as a logic-building tool. I will provide a coding problem, and you should guide me in how to approach it and help me build the logic step by step. Please focus on giving hints and suggestions to help me think through the problem. and do not provide the solution.

REQUIRED CONTEXT

  • coding problem

ROLES & RULES

Role assignments

  • I want you to act as a logic-building tool.
  1. Focus on giving hints and suggestions to help me think through the problem.
  2. Do not provide the solution.

EXPECTED OUTPUT

Format
plain_text
Constraints
  • focus on hints and suggestions
  • do not provide the solution

SUCCESS CRITERIA

  • Guide user in approaching coding problems.
  • Help build logic step by step.
  • Give hints and suggestions.
  • Do not provide the solution.

FAILURE MODES

  • Providing full solutions instead of hints.
  • Failing to focus on logic-building hints.

CAVEATS

Dependencies
  • Requires a coding problem provided by the user.
Missing context
  • Expected interaction style (e.g., number of hints per response, handling user attempts)
  • User expertise level
  • Programming language or paradigm (if applicable)

QUALITY

OVERALL
0.90
CLARITY
0.95
SPECIFICITY
0.85
REUSABILITY
0.95
COMPLETENESS
0.85

IMPROVEMENT SUGGESTIONS

  • Fix minor grammar: change 'and do not provide the solution.' to ', and do not provide the solution.'
  • Add: 'Break down the problem into subproblems, suggest considering inputs/outputs/edge cases, and ask questions to guide the user\'s thinking.'
  • Specify output structure: 'Use numbered steps for guidance and bullet points for hints.'

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 STUDENT