Files
agent-skills/content-ops/content-ops-agent/references/meta-prompt-pattern.md
Hermes Agent ccc63d1e70 first commit
2026-05-10 13:52:46 +08:00

102 lines
3.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Meta-Prompt Pattern for Prompt Entries
When the user asks to organize/copy prompts from external sources, convert them to meta-prompt format before publishing to prompt.ephron.ren.
## What is a Meta-Prompt?
A meta-prompt is a **template that generates prompts**, not a static prompt itself. Users input their specific requirements, and the AI generates a tailored prompt.
## Conversion Workflow
1. **Extract** the original prompt from external platform (小黑盒, etc.)
2. **Remove personal specifics** — names (e.g., "Harry"), specific roles, hardcoded values
3. **Identify customizable dimensions** — what varies between users
4. **Restructure** into template + input fields
5. **Add "preset + custom" options** for visual/style parameters
6. **Publish** to prompt.ephron.ren with `is_template: true`
## Template Structure
```
你是一个专业的[领域]提示词生成器。根据用户提供的[输入类型],生成[输出类型]的完整提示词。
请按以下结构生成:
---
[Template body with {variable} placeholders]
---
用户提供的信息:
- [Core field 1]
- [Core field 2]
视觉风格:
- [Style param 1]预设A / 预设B / 预设C / 自定义____
- [Style param 2]预设A / 预设B / 预设C / 自定义____
```
## "Preset + Custom" Format for Style Parameters
Every visual/style parameter should offer presets plus a custom option:
```
- 背景色调:纯黑高级感 / 暖白干净风 / 深蓝冷调 / 木纹自然风 / 自定义____
- 整体配色:黑白金经典 / 暖色系食物色 / 冷色系高级灰 / 自定义____
- 灯光氛围:聚光灯突出主体 / 柔光温馨感 / 逆光通透感 / 自定义____
- 文字风格:金色衬线优雅 / 简约黑白现代 / 手写随性 / 自定义____
```
Benefits:
- Casual users pick from presets (low friction)
- Advanced users type custom values (full control)
- Presets teach users what's possible
## Example: 食材海报图
**Original prompt** (from @芝士大白兔 on 小黑盒):
```
这是一张展示中式鸡汤炖菜食材和成品的食品成分信息图。
图中采用了高端商业食品摄影风格,高对比度,干净的工作室合成,戏剧性的垂直布局。
背景为纯黑色,表面是深哑光黑色,带有微小的悬浮液滴和柔和的蒸汽。
...
```
**Converted meta-prompt:**
- Removed specific dish (中式鸡汤炖菜)
- Extracted reusable structure (layout, lighting, effects)
- Added customizable parameters (background, color palette, lighting style)
- Added preset options for each parameter
## Example: 领英感证件照
**Original prompt** had hardcoded:
- Name: [Harry]
- Title: [产品经理]
- Department: [产品管理部]
- Background: 纯白色素色
- Style: 深蓝色粗体大字号
**Converted meta-prompt:**
- Moved all personal info to input fields
- Made background, font style, layout style customizable
- Added presets for professional contexts (商务利落 / 学术自然 / 创意时尚)
## Publishing Checklist
When publishing meta-prompts to prompt.ephron.ren:
```json
{
"title": "[Prompt Name]",
"content": "[Full meta-prompt text]",
"description": "[What this meta-prompt generates]",
"category": "图像生成",
"tags": "[relevant tags, comma-separated]",
"is_template": true,
"variables": "[comma-separated variable names]",
"example_input": "[sample user input]",
"example_output": "[truncated sample output]",
"recommended_model": "[target model or 通用]"
}
```