返回 Skill 列表
extension
分类: AI Agent 能力无需 API Key

prompt-template-design

结构化提示模板创建,包括变量、格式化和版本控制

person作者: jakexiaohubgithub

Prompt Template Design Skill

Capabilities

  • Create structured prompt templates with variables
  • Implement prompt formatting with different styles
  • Design system/user/assistant message templates
  • Handle dynamic context injection
  • Implement prompt versioning and management
  • Create reusable prompt components

Target Processes

  • prompt-engineering-workflow
  • system-prompt-guardrails

Implementation Details

Template Patterns

  1. LangChain PromptTemplate: Variable-based templates
  2. ChatPromptTemplate: Message-based templates
  3. FewShotPromptTemplate: With example selection
  4. PipelinePromptTemplate: Composed templates

Configuration Options

  • Variable names and defaults
  • Input validation rules
  • Output format specification
  • Partial variable handling
  • Template inheritance

Best Practices

  • Clear variable naming conventions
  • Structured output instructions
  • Version control for templates
  • Testing with edge cases
  • Documentation of template purpose

Dependencies

  • langchain-core