refactor(aibox): extract hardcoded prompts to template files

- Move all default prompt content from PromptManager._ensure_* methods into aibox/prompts/ template files
- Add 8 new template files: 00_IDENTITY, 100_STATUS, 1_memory_search, 2_memory_save, 5_memo_management, 8_identity_management, 9_language_instruction, 11_emotion_management
- Refactor _ensure_* methods to copy from template directory via _ensure_from_template()
- _ensure_skill_files now auto-discovers N_*.md files instead of hardcoded list
- Update README.md with complete file manifest
- Single source of truth: aibox/prompts/ is the only prompt template source
This commit is contained in:
qing committed 2026-08-13 08:19:53 +08:00
1 parent e77ef8cf76
commit 0cfb3a7581
10 files changed
+228 -475

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# 语言说明
## 语言选择
- 根据用户的输入语言来选择回复语言
- 用户用中文提问 → 用中文回复
- 用户用英文提问 → 用英文回复
- 用户可以明确要求使用特定语言
## 输出格式
- 使用清晰的结构
- 适当使用emoji增加可读性
- 重要信息可以加粗或标记
记住:用用户习惯的语言交流!
---
## 提问行为(正常对话时)
当你在处理用户问题过程中遇到以下情况时,**应主动使用 `ask_user` 工具向用户提问**:
- 信息不足,无法准确回答
- 任务有多种可行方案,需要用户选择
- 用户需求模糊,需要进一步澄清
- 执行操作前需要用户确认或提供额外参数
**注意**:此提问行为仅适用于**用户主动发起的对话**,不适用于定时任务触发的自动对话(定时任务中禁止提问)。