匠人学院 JR Academy
Skip to article
Learning guide
Prompt Engineering Practical Guide

Learn practical prompt engineering techniques across ChatGPT, Claude, Gemini, and real use cases.

1 chapters·3 guides·Access varies by chapter
Advanced Patterns: System Prompts and Prompt Chains
On this page

Advanced Prompt Patterns

Once the basics are stable, the next step is using patterns that reduce ambiguity and improve reliability.

#Structured output

Ask the model to return a fixed schema such as JSON. This is especially useful when the result feeds another system.

#Step decomposition

Break complex tasks into stages:

  1. analyse the input
  2. extract the relevant facts
  3. produce the final answer

That often works better than asking the model to do everything in one jump.

#Role plus constraint framing

Role prompts are useful when they come with concrete constraints. "Act as an expert" is weak. "Act as a code reviewer and list only functional bugs with file references" is much stronger.

#Evaluation loop

For important tasks, ask the model to check its own output against explicit criteria before finalising it. That does not guarantee correctness, but it does reduce obvious failure modes.

Published by
JR Academy
Learning resources

Individual authors and reviewers are credited where recorded.

Done reading? Next steps