AgentSkillsCN

peil

提示词工程指导语言(PEIL)——为AI代理与LLM生成优化后的系统提示词。当您创建代理系统提示词、提升提示词质量、运用基于研究的提示技巧,或以角色、上下文、指令,以及期望输出为核心构建提示词时,可选用此工具。关键词:提示词工程、系统提示词、代理提示词、LLM优化、提示词生成。

SKILL.md
--- frontmatter
name: peil
description: Prompt Engineering Instructional Language (PEIL) - generates optimised system prompts for AI agents and LLMs. Use when creating agent system prompts, improving prompt quality, applying research-backed prompting techniques, or structuring prompts with role, context, instructions, and desired output. Keywords: prompt engineering, system prompt, agent prompt, LLM optimization, prompt generation.
license: MIT
metadata:
  author: Tim Haintz
  version: "0.2"
  source: https://arxiv.org/abs/2402.07927

Prompt Engineering Instructional Language (PEIL)

PEIL is a structured methodology for generating high-quality system prompts for AI agents and large language models.

When to Use This Skill

  • Creating system prompts for autonomous agents
  • Improving existing prompts for better LLM performance
  • Applying research-backed prompting techniques
  • Structuring complex instructions clearly

PEIL Template Structure

Use the following variables to construct effective prompts:

code
{Role} {ProvideClearContext} {BreakDownComplexQuestions} {ProvideSpecificInstructions} {DefineConciseness} {PromptingTechniques} {StateDesiredOutput}

Variable Definitions

VariablePurpose
RoleSpecify the persona or expertise the model should adopt
ProvideClearContextSet the domain and focus area for precise, tailored responses
BreakDownComplexQuestionsDecompose complex topics into manageable sub-questions
ProvideSpecificInstructionsDefine constraints, requirements, or rules
DefineConcisenessSet word limits or brevity requirements
PromptingTechniquesApply research-backed techniques (see TECHNIQUES.md)
StateDesiredOutputSpecify the expected format, structure, or content

Hybrid Prompt Structure

Based on research from arXiv:2503.06926, employ a hybrid structure:

  1. Opening Statement: Short sentence or paragraph stating role and goal
  2. Bullet Points: Specific rules, options, or constraints

Step-by-Step Instructions

  1. Define the Role: Start with "You are a [domain] expert" or similar
  2. Set Context: Explain the domain and what the model should focus on
  3. Break Down Questions: If complex, split into sub-questions
  4. Add Constraints: Include any specific rules or requirements
  5. Set Length: Define word limits if needed
  6. Choose Technique: Select from TECHNIQUES.md based on task type
  7. Specify Output: Define format (Markdown, JSON, bullet points, etc.)

Quick Reference: Technique Selection

Task TypeRecommended Technique
Reasoning & LogicChain-of-Thought (CoT), Tree-of-Thoughts
Reduce HallucinationRAG, Chain-of-Verification (CoVe)
Code GenerationScratchpad, Program of Thoughts (PoT)
New TasksZero-Shot or Few-Shot Prompting
Complex AnalysisDecomposed Prompting, Thread of Thought

See TECHNIQUES.md for the complete techniques table.

Example Prompt

code
You are a cybersecurity expert specializing in enterprise security architecture, focused on practical measures for protecting sensitive data in cloud environments.

When responding:
- Include at least three key components of a strong security strategy
- Provide specific examples of implementation
- Address both technical and human factors

Think through each security layer step by step. Provide a structured Markdown response with clear headings, limited to 300 words.

Categories

PEIL supports 24 prompt categories. See CATEGORIES.md for full definitions:

Argument, Assessment, Calculation, Categorising, Classification, Clustering, Comparison, Context Control, Contradiction, Cross Boundary, Decomposed Prompting, Error Identification, Hypothesise, Input Semantics, Logical Reasoning, Output Customisation, Output Semantics, Prediction, Prompt Improvement, Refactoring, Requirements Elicitation, Simulation, Summarising, Translation

Additional Resources

Research Sources