prompt-engineer

Design XML-tagged structured prompts for Claude with output formats.

1|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/jingtaozf/emacs-claude-agent --skill prompt-engineer-jingtaozf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-engineer
Source: https://github.com/jingtaozf/emacs-claude-agent/tree/main/.claude/skills/prompt-engineer
Command: npx skills add https://github.com/jingtaozf/emacs-claude-agent --skill prompt-engineer-jingtaozf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams and solo practitioners design reliable, structured prompts for Claude to reduce hallucinations, improve accuracy, and enforce safety across tasks.

Core Features & Use Cases

  • Core prompting basics: assign roles, clear outputs, and XML-structured prompts.
  • Advanced patterns: chain-of-thought, multishot prompting, and prompt chaining for complex workflows.
  • References integration: leverage core_prompting.md, advanced_patterns.md, and quality_improvement.md to tailor prompts for quality, safety, and reliability.
  • Use cases: designing system prompts for AI copilots, debugging prompting failures, and producing reproducible prompts for production-grade assistants.

Quick Start

Create a structured, XML-tagged prompt for Claude that assigns a system role, provides context, and requests a formatted output.

Frequently Asked Questions about prompt-engineer

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

FAQPage Schema
How do I write structured prompts for Claude to reduce hallucinations?

To reduce hallucinations, design structured Claude prompts using XML tags to assign system roles, provide context, and specify clear output formats for reproducible results.

What is prompt chaining and when should I use it for complex workflows?

Prompt chaining is an advanced pattern that links multiple prompts sequentially to execute complex workflows. Use it when single prompts lack the reasoning depth needed for multi-step tasks.

How do I debug Claude prompt failures in production-grade assistants?

Debug Claude prompt failures by reviewing XML-tagged structures for missing context, verifying chain-of-thought steps, and consulting quality improvement references to isolate reasoning errors.

Does multishot prompting work better than chain-of-thought for enforcing safety?

Multishot prompting provides behavioral examples to guide outputs, while chain-of-thought enforces step-by-step reasoning. Combining both techniques within XML-structured prompts maximizes safety and reliability.

What are the limitations of using XML-tagged prompts for Claude?

XML-tagged prompts require strict structural adherence to function correctly. Limitations include potential parsing overhead and the need for precise tag nesting, which can complicate debugging if outputs deviate from defined formats.

Why does Claude ignore my system role assignments in prompt engineering?

Claude ignores system role assignments when XML-tagged prompts lack clear structural separation between role definitions, context, and output formats, requiring prompt optimization to enforce boundaries.