template-design
Creating reusable, parameterised prompt templates for consistent outputs.
适合你,如果需要为团队或项目统一提示词格式和内容
/ 通过 npx 安装 校验哈希
npx oh-my-skill add owl-listener/ai-design-skills/template-design/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- owl-listener/ai-design-skills/template-design/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify owl-listener/ai-design-skills/template-design安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
144GitHub stars
~520上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 f41b650 · 表述以原文为准它做什么
安装后,Claude 能指导你设计可重复使用的提示模板,包含固定文本、变量、条件段落和默认值。它会帮你命名变量、指定类型、设置边界,并提供任务、角色、格式等多种模板模式。
什么时候触发
当你需要创建或优化提示模板以确保输出一致性时触发。例如,要求“设计一个模板”或“创建可复用的提示结构”。
装好后可以这样说
Claude 会给出模板结构。
Claude 会提供角色模板。
Claude 会生成对应的分析框架。
技能原文 SKILL.md
Template Design
A prompt template is a reusable prompt structure with variable slots that get filled at runtime. Templates create consistency across similar tasks and make prompt management scalable.
Template Anatomy
A template has:
- Fixed text: The parts that stay the same every time (instructions, format, role)
- Variables: Slots that get filled with specific content (user input, retrieved data, configuration)
- Conditional sections: Parts that appear or disappear based on context
- Default values: What fills a variable if no specific value is provided
Designing Variables
Each variable should be:
- Named clearly:
{user_query}not{input1} - Typed: Is it free text, a selection from options, a number, a boolean?
- Bounded: What are valid values? What's the maximum length?
- Documented: What is this variable for? Where does its value come from?
- Defaulted: What happens if the value is missing?
Template Patterns
- Task template: A template for a specific type of task. Variables capture the task-specific details while instructions remain constant.
- Persona template: A template where the persona is variable but the task structure is fixed. Useful for multi-persona products.
- Format template: A template where the output format is variable but the analysis approach is fixed.
- Escalation template: A base template with additional sections that activate at higher complexity levels.
Template Composition
Complex prompts can be built from smaller templates:
- Base template: Core instructions that apply to everything
- Task overlay: Task-specific instructions layered on top
- Context injection: Retrieved information inserted at a specific point
- User preferences: Personal settings that modify behavior
Template Quality Criteria
- Consistency: The template produces reliably similar outputs for similar inputs
- Flexibility: The variables allow enough variation for diverse use cases
- Clarity: The template is easy to read, maintain, and modify
- Testability: You can verify the template works with a standard set of test inputs
- Maintainability: Changes to one part don't break other parts
Design Artefacts
- Template library with documentation
- Variable specifications per template
- Test input sets for each template
- Template versioning and change log
- Composition rules for combining templates
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…