prompt-engineering

Define and optimize prompts for AI tools with YAML frontmatter in SKILL.md.

31|3|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/JeremyDev87/codingbuddy --skill prompt-engineering-jeremydev87
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/JeremyDev87/codingbuddy/tree/main/packages/rules/.ai-rules/skills/prompt-engineering
Command: npx skills add https://github.com/JeremyDev87/codingbuddy --skill prompt-engineering-jeremydev87

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams design precise, robust prompts for AI tools, reducing ambiguity and inconsistent outputs in MCP-driven workflows.

Core Features & Use Cases

  • Structured prompts: guides to build prompts with clear roles, contexts, tasks, and constraints.
  • Pattern catalog: includes common prompt patterns (Role+Task, Chain-of-Thought, Few-Shot) to accelerate prompt creation.
  • System & tool prompts: templates for agent system prompts and MCP tool descriptions to standardize usage.
  • Testing & safety: guidelines for prompt testing, evaluation rubrics, and safety considerations.

Quick Start

Review existing prompts and apply the Pattern catalog to rewrite them with explicit inputs, outputs, and evaluation criteria.

Frequently Asked Questions about prompt-engineering

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

FAQPage Schema
How do I write better system prompts for AI agents?

AI prompt engineering structures system prompts by defining explicit roles, contexts, tasks, and constraints. This reduces ambiguity and ensures reliable outputs from AI agents in MCP-driven workflows.

What are chain-of-thought prompts and when should I use them?

Chain-of-thought prompts guide AI models to articulate intermediate reasoning steps before producing a final answer. Use this pattern for complex tasks requiring logical deduction to improve output reliability and safety.

How do I create MCP tool descriptions for AI agents?

Create MCP tool descriptions by applying structured prompt templates that standardize usage and define explicit inputs, outputs, and constraints. This ensures AI agents correctly understand and invoke available tools.

What is the best way to test AI prompts for safety and reliability?

The best way to test AI prompts is to apply evaluation rubrics and testing guidelines specifically designed for prompt patterns. This verifies safety considerations and measures output consistency against defined criteria.

Does prompt engineering require a specific file format for agent systems?

Prompt engineering requires a SKILL.md file containing YAML frontmatter with name and description fields. This structured format provides the comprehensive prompt patterns and testing guidance needed for MCP-driven agent ecosystems.

Why do my AI prompts produce inconsistent outputs in agent workflows?

AI prompts produce inconsistent outputs due to missing explicit constraints, unclear roles, or ambiguous task definitions. Rewriting them using structured patterns like Few-Shot or Role+Task standardizes inputs and evaluation criteria.