nataliwhite20534-droid/dsh-moe-plugin ↗★ 0
dsh-moe-plugin
萌属性 Persona system for DSH (DeepSeek Harness): 10 preset character-trait cards (傲娇/毒舌/元气/天然呆/病娇/冰美人/暗恋型/大小姐/姐姐型/猫咪系), bilingual prompts, free-text recommendation, custom card editing, persistent persona storage.
AI Analysis
核心用途是为 DSH 对话快速赋予特定的动漫萌属性性格。适合想要定制 AI 聊天语气、进行角色扮演或趣味对话的用户。
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗dsh-moe-plugin
萌属性 Persona 系统 — 为 DSH 对话生成预设萌属性 system prompt,支持自由组合 + 自定义编辑。
功能概览
| 工具 | 说明 |
|---|---|
moe_list | 列出所有可用卡片,按 category / customOnly 过滤 |
moe_recommend | 根据自由文本关键词推荐卡片(Q4 主流程) |
moe_generate | 预览选中卡片的合并 system prompt(不保存) |
moe_apply | 直接应用 persona_id 或 cards,返回最终 prompt |
moe_save | 将当前组合保存为持久化命名 persona |
moe_saved | 列出所有已保存 persona |
moe_delete | 删除指定 persona |
moe_edit_card | 编辑预设卡片或 fork 为自定义卡片 |
moe_custom_cards | 列出 / 删除自定义卡片 |
预设卡片(10 张)
| ID | 名称 | 简介 |
|---|---|---|
tsundere | 傲娇 | 表面冷淡傲慢,内心其实很在意对方 |
dokuzetsu | 毒舌 | 言语尖锐毒辣,专挑痛处 |
genki | 元气 | 精力充沛,正能量使者 |
tennenta | 天然呆 | 思维脱线,意外治愈 |
yandere | 病娇 | 平时温柔,涉及感情时极端 |
kuudere | 冰美人 | 外冷内柔,需要时间展露 |
deredere | 暗恋型 | 喜欢完全藏不住 |
himedere | 大小姐 | 高傲自信,命令式语气 |
onee-san | 姐姐型 | 成熟稳重,照顾人于无形 |
oosu | 猫咪系 | 想黏又不好意思直说 |
Q4 主流程:自由文本 → 可选项 → 自由编辑 → 生成
步骤 1:自由文本生成可选项
调用 moe_recommend 工具:
{ "keywords": "温柔但口是心非的妹妹", "topK": 5 }
返回匹配度排名前 5 的卡片 ID:
{
"keywords": "温柔但口是心非的妹妹",
"recommendations": [
{ "id": "tsundere", "name_zh": "傲娇" },
{ "id": "onee-san", "name_zh": "姐姐型" },
{ "id": "kuudere", "name_zh": "冰美人" }
],
"hint": "moe_generate cards=..."
}
步骤 2:在可选项基础上自由编辑
方案 A:用 moe_edit_card fork 一个预设并修改:
{
"card_id": "tsundere",
"forkAs": "tsundere_improved",
"traits_zh": ["傲娇", "嘴硬心软", "妹系"],
"speech_style_zh": ["说话带刺但声音软"]
}
方案 B:用 moe_generate 直接传 extra 参数:
{
"cards": ["tsundere", "genki"],
"character_name": "小埋",
"extra_description_zh": "表面完美偶像,实际是宅女",
"extra_speech_style_zh": ["宅话连篇"],
"extra_traits_zh": ["反差萌", "兄控"]
}
步骤 3:保存为持久化 persona
{ "name": "宅系傲娇妹", "cards": ["tsundere", "genki"], "character_name": "小埋" }
返回 persona_id,后续随时 moe_apply persona_id=xxx 调用。
持久化路径
- 自定义卡片:
$DSH_HOME/moe-cards/custom.json - 已保存 persona:
$DSH_HOME/moe-cards/personas/{id}.json
项目结构
dsh-moe-plugin/
├── cards/PRESET_CARDS.json # 预设卡片数据
├── lib/
│ ├── index.js # 入口,注册 9 个工具
│ ├── cards.js # 卡片加载
│ ├── generator.js # system prompt 生成
│ ├── storage.js # JSON 持久化
│ └── types.js # 类型定义
├── AGENTS.md # Agent 指南
└── package.json
安装到 DSH
将 dsh-moe-plugin/ 软链或拷贝到 ~/.dsh/profiles/web/node_modules/,
然后在 cordis.patch.yml 加入插件行(参考 cordis.patch.yml)。