feat: Add 'One-Sentence Concept Explainer' and 'AI Task Instruction Generator' prompts, update prompt library documentation, and enforce language consistency.

This commit is contained in:
fujie
2026-03-23 01:01:52 +08:00
parent 1f9a5ac029
commit 2da254c6f4
12 changed files with 413 additions and 744 deletions

View File

@@ -0,0 +1,47 @@
# 🔧 AI Task Instruction
| By [Fu-Jie](https://github.com/Fu-Jie) · v1.0.0 | [⭐ Star this repo](https://github.com/Fu-Jie/openwebui-extensions) |
| :--- | ---: |
| ![followers](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_followers.json&label=%F0%9F%91%A5&style=flat) | ![points](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_points.json&label=%E2%AD%90&style=flat) | ![top](https://img.shields.io/badge/%F0%9F%8F%86-Top%20%3C1%25-10b981?style=flat) | ![contributions](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_contributions.json&label=%F0%9F%93%A6&style=flat) | ![downloads](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_downloads.json&label=%E2%AC%87%EF%B8%8F&style=flat) | ![saves](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_saves.json&label=%F0%9F%92%BE&style=flat) | ![views](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_views.json&label=%F0%9F%91%81%EF%B8%8F&style=flat) |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
Convert vague or unstructured requirements into precise, structured instructions optimized for AI agent execution.
## 📋 Info
- **Command**: `/ai-task-instruction`
- **Community Link**: [OpenWebUI Post](https://openwebui.com/posts/9bab8b37-5c43-48e6-988b-946564510b91)
## 🔥 What's New in v1.0.0
-**Task Architect Persona**: Directly refactors arbitrary description into modular specs.
- 🌍 **Language Consistency**: Automated response adapting based on your dynamic input payload language.
## ✨ Key Features
- 🎯 **Precise Structuring**: Builds distinct modules like context, role, atomic steps, and constraints.
- ⚙️ **Configurable variables**: Operates seamlessly with OpenWebUI dropdown and text areas configurations.
## 🚀 How to Use
1. Check out the prompt template: [ai-task-instruction.md](./ai-task-instruction.md)
2. **Copy** the full content.
3. In OpenWebUI, Go to **Workspace** -> **Prompts** and click **Create Prompt**.
4. Set title, and paste the template code into the content block.
5. In your standard chat, trigger via `/ai-task-instruction` and fill in the fields.
## ⚙️ Configuration (Variables)
The template contains dynamic variables supported by OpenWebUI prompts:
| Variable | Type | Options / Default | Description |
| :--- | :--- | :--- | :--- |
| **target_role** | `text` | `AI Assistant` | The persona or role the agent should adopt. |
| **complexity** | `select` | `Basic`, **`Intermediate`**, `Advanced` | Level of depth the output template should contain. |
| **output_style** | `select` | **`Markdown Template`**, `JSON`, `Step-by-Step` | Structured style for the resulting prompt framework. |
| **requirements** | `textarea`| Required | The unstructured tasks or instructions from the user. |
## ⭐ Support
If this prompt has been useful, a star on [OpenWebUI Extensions](https://github.com/Fu-Jie/openwebui-extensions) is a big motivation for me. Thank you for the support.

View File

@@ -0,0 +1,47 @@
# 🔧 AI Task Instruction (AI 任务指令生成器)
| 作者: [Fu-Jie](https://github.com/Fu-Jie) · v1.0.0 | [⭐ 给项目点个 Star](https://github.com/Fu-Jie/openwebui-extensions) |
| :--- | ---: |
| ![followers](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_followers.json&label=%F0%9F%91%A5&style=flat) | ![points](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_points.json&label=%E2%AD%90&style=flat) | ![top](https://img.shields.io/badge/%F0%9F%8F%86-Top%20%3C1%25-10b981?style=flat) | ![contributions](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_contributions.json&label=%F0%9F%93%A6&style=flat) | ![downloads](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_downloads.json&label=%E2%AC%87%EF%B8%8F&style=flat) | ![saves](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_saves.json&label=%F0%9F%92%BE&style=flat) | ![views](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2FFu-Jie%2Fdb3d95687075a880af6f1fba76d679c6%2Fraw%2Fbadge_views.json&label=%F0%9F%91%81%EF%B8%8F&style=flat) |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
将模糊的通用需求或无结构自然语言,转换为精确、结构化且高度优化的 AI 任务指令框架。
## 📋 基础信息
- **触发指令 (Command)**: `/ai-task-instruction`
- **社区链接 (Community Link)**: [OpenWebUI Post](https://openwebui.com/posts/9bab8b37-5c43-48e6-988b-946564510b91)
## 🔥 版本特性 v1.0.0
-**提示词架构师 Persona**: 将任何形式的语句解构为极其精细的指令模块。
- 🌍 **语言强制对齐**: 新增逻辑自适应模块,根据您的输入语言动态回溯对应语言输出。
## ✨ 核心优势
- 🎯 **精确结构化**: 输出带角色、目标、上下景深、拆解步骤、错误防御与输出规范格式。
- ⚙️ **完美挂载**: 完全利用 OpenWebUI 原生面板支持动态下拉菜单选择。
## 🚀 如何使用
1. 查看提示词文件:[ai-task-instruction.md](./ai-task-instruction.md)
2. **复制** 文件的完整内容。
3. 打开 OpenWebUI进入 **Workspace** -> **Prompts** 并点击 **Create Prompt**
4. 填写标题后,将复制的文本粘贴进内容。
5. 在日常会话中,键入 `/` 呼出提示词,选择该模板并填充对应字段后发送即可。
## ⚙️ 动态变量 (Variables)
该模板使用 OpenWebUI 官方原生支持的提示词动态变量规范:
| 变量名 | 类型 | 选项 / 默认值 | 描述说明 |
| :--- | :--- | :--- | :--- |
| **target_role** | `text` | `AI Assistant` | 目标 Agent 应扮演的专家角色。 |
| **complexity** | `select` | `Basic`, **`Intermediate`**, `Advanced` | 输出结果的拆解深度Basic 等)。 |
| **output_style** | `select` | **`Markdown Template`**, `JSON`, `Step-by-Step`| 提示词的结构化展示样式,如 Json/Md。 |
| **requirements** | `textarea`| 必填 | 用户输入的原始自然语言需求文本。 |
## ⭐ 支持
如果该提示词扩展对您有所帮助,欢迎在 GitHub 给 [OpenWebUI Extensions](https://github.com/Fu-Jie/openwebui-extensions) 点一个 Star这是我最大的动力

View File

@@ -0,0 +1,24 @@
# AI Task Instruction Generator
You are an expert Prompt Engineer and Task Architect. Your objective is to transform vague or unstructured natural language requirements into precise, structured instructions optimized for AI agent execution.
## Input Data
**Target Agent Role**: {{target_role | text:default="AI Assistant":placeholder="e.g., Senior Python Developer, Marketing Expert"}}
**Task Complexity**: {{complexity | select:options=["Basic","Intermediate","Advanced"]:default="Intermediate"}}
**Preferred Output Format**: {{output_style | select:options=["Markdown Template","JSON Protocol","Step-by-Step Guide"]:default="Markdown Template"}}
**Natural Language Requirements**:
"""
{{requirements | textarea:placeholder="Paste the raw task description or requirements here..."}}
"""
## Generation Guidelines
1. **Role Definition**: Assign a specific, expert persona suitable for the task.
2. **Objective Clarity**: Clearly state the primary goal.
3. **Contextualization**: Provide necessary background based on the input.
4. **Step-by-Step Execution**: Break the task down into logical, atomic steps.
5. **Constraints & Rules**: Explicitly list any negative constraints or formatting rules.
6. **Output Specification**: Define exactly what the final result should look like.
7. **Language Consistency**: You MUST generate the structured instructions in the same language as the natural language requirements input by the user (e.g., if the requirements are in Chinese, generate the response in Chinese).
Please generate the structured instructions now, strictly following the **{{output_style}}** format.