prompt-engineering

Design and refine prompts for Claude, GPT, Gemini, and Copilot.

3|4|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/jamestorrevillas/dev-skills --skill prompt-engineering-jamestorrevillas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/jamestorrevillas/dev-skills/tree/main/.github/skills/prompt-engineering
Command: npx skills add https://github.com/jamestorrevillas/dev-skills --skill prompt-engineering-jamestorrevillas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Writing, improving, and debugging prompts for AI models across Claude, GPT, Gemini, and Copilot to ensure clear goals, contexts, and outputs. The skill also enables plan-before-execute workflows, verification patterns, and self-improvement loops to structure AI instructions for maximum clarity and reliability.

Core Features & Use Cases

  • Prompt construction patterns (ROLE, GOAL, CONTEXT, OUTPUT) for consistent AI behavior.
  • Verification techniques (plan-before-execute, stepwise checks, self-evaluation) to improve accuracy.
  • Templates and patterns for multi-model prompting, few-shot learning, and system/instruction engineering.
  • Use Case: design a robust prompt to generate a structured code review or design rationale with explicit evaluation criteria.

Quick Start

Draft a prompt using ROLE, GOAL, CONTEXT, and OUTPUT and test its effectiveness with a simple verification step.

Frequently Asked Questions about prompt-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure prompts for consistent behavior across Claude, GPT, Gemini, and Copilot?

To structure prompts for consistent behavior, use defined patterns like ROLE, GOAL, CONTEXT, and OUTPUT to ensure clear instructions across Claude, GPT, Gemini, and Copilot. This framework maximizes output quality by satisfying explicit requirements for formatting and context.

What is the plan-before-execute workflow in prompt engineering?

The plan-before-execute workflow is a verification pattern that structures AI instructions to improve accuracy. It requires the model to formulate a plan and perform stepwise checks before generating final outputs, reducing errors in complex tasks.

How do I create a prompt for structured code reviews with explicit evaluation criteria?

To create a prompt for structured code reviews, apply few-shot learning and verification techniques within the ROLE, GOAL, CONTEXT, and OUTPUT template. This ensures the AI generates design rationales with explicit evaluation criteria and self-evaluation checks.

Can I use few-shot learning and self-improvement loops to improve AI output quality?

Yes, you can use few-shot learning and self-improvement loops to maximize AI output quality. These techniques enable the model to learn from examples and iteratively refine its responses through self-evaluation and verification patterns.

What's the best way to debug AI prompts that produce unclear or unformatted outputs?

The best way to debug AI prompts is to refine them using structured templates and robust error handling. Ensure your prompt explicitly defines the ROLE, GOAL, CONTEXT, and OUTPUT formatting requirements to eliminate ambiguity and correct unformatted responses.

When do I need to add verification patterns and stepwise checks to my prompts?

You need to add verification patterns and stepwise checks to your prompts when completing complex tasks requiring high accuracy. These patterns enforce self-evaluation and structured workflows, ensuring reliable results across diverse AI challenges.