Prompt Engineering

Design prompts that produce reliable, testable, and cost-efficient model outputs. Use when building AI workflows, reducing output variance, or improving instruction adherence.

nikopj01 Updated

File contents

Prompt Engineering

Workflow

  1. Define task objective, constraints, and success criteria explicitly.
  2. Provide structured context and unambiguous output format requirements.
  3. Use few-shot examples only when behavior needs anchoring.
  4. Add guardrails for refusal, uncertainty, and allowed actions.
  5. Evaluate outputs with fixed test cases and iterate systematically.

nikopj01/codex-skills/tree/main/prompt-engineering commit b7576a7bfd

Frequently asked questions

npx skillmds@latest add nikopj01/prompt-engineering