prompt-engineering

Standardize agent prompts with templates and explicit behavioral contracts.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/dzackgarza/ai --skill prompt-engineering-dzackgarza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/dzackgarza/ai/tree/main/opencode/skills/prompt-engineering
Command: npx skills add https://github.com/dzackgarza/ai --skill prompt-engineering-dzackgarza

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompts are the contract between humans and AI systems. This skill standardizes prompts to enforce explicit behavioral contracts, reduce ambiguity, and enable reliable, reusable agent behavior across multiple templates.

Core Features & Use Cases

  • Foundational Principles: audience targeting (agents), avoiding meta-commentary, research-based weekly updates, atomic edits, and version control.
  • Templates: ready-to-use builder-agent.md, research-agent.md, review-agent.md, and more to structure prompts for different roles.
  • Reference Materials: context-patterns, research-findings, and other reference patterns to guide prompt construction.
  • Operating Rules: action-first tool usage, exact parameter names, and parallel tool calls for efficient data gathering.
  • Workflow & 5-Layer Architecture: identity, context, task, process, and output structure to ground reasoning and outputs.
  • Guardrails: DRY, anti-pattern avoidance, and explicit constraints in prompts.

Quick Start

Craft a precise, rule-driven prompt using the available templates to guide your multi-agent task; begin by selecting a domain-specific template (e.g., Builder, Research, or Review) and tailor it to your scenario, then provide the prompt to your agent with explicit constraints and an expected output format.

Frequently Asked Questions about prompt-engineering

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

FAQPage Schema
How do I write system prompts that enforce explicit behavioral contracts for AI agents?

To write system prompts with explicit behavioral contracts, standardize instructions using a 5-layer architecture: identity, context, task, process, and output. This grounds agent reasoning and enforces repeatable, auditable behavior across builder, research, and review workflows.

What is the best way to structure multi-agent task definitions for repeatable behavior?

The best way to structure multi-agent task definitions is using ready-to-use templates like builder-agent.md, research-agent.md, and review-agent.md. These templates enforce action-first tool usage, exact parameter names, and parallel tool calls for reliable execution.

How do I avoid anti-patterns and meta-commentary when designing agent prompts?

Avoid anti-patterns and meta-commentary by applying guardrails such as DRY principles and explicit constraints within your prompts. Target the agent audience directly and enforce atomic edits to reduce ambiguity in the behavioral contract.

Do I need frontmatter requirements when building prompts for tool-centric agents?

Yes, you need frontmatter requirements specifying the name and description when building prompts for tool-centric agents. Satisfying these frontmatter fields ensures the prompt integrates correctly with templates and enables repeatable, auditable prompt construction.

How does a templates-driven prompt structure compare to ad-hoc prompt generation?

A templates-driven structure provides reference materials and operating rules to standardize outputs, whereas ad-hoc generation lacks repeatable constraints. Using domain-specific templates ensures reliable behavior across different agent roles without ambiguity.