baisama-cloud/dsh-galgame-generator
DeepSeek Harness (DSH) 的 Galgame 生成器:提供一份剧本文档 + 立绘/背景/音乐素材,即可生成一个可玩的视觉小说(Galgame)网页。 新增一个GalGame生成模式,在这个模式的工作区下提供一份剧本文档 + 立绘/CG/背景/音乐素材等,即可生成Galgame网页。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables users to generate playable visual novels (Galgames) directly within the DSH environment. To create a game, users only need to prepare a properly formatted markdown script and organize assets like character sprites, background images, background music, and CG animations into specific folders in their DSH workspace. The plugin outputs a single self-contained HTML file that stores all game assets internally, supports up to 20 save slots (9 by default), and can be shared and played directly by opening it in any modern browser. It also adds a sidebar button that lets users play the generated Galgame without leaving the DSH web interface.
After installation, the plugin automatically adds a "Galgame Generation Mode" agent preset to DSH. Users can select this preset when creating a new DSH session to get an automated workflow that guides the AI through the generation process. Once assets are organized correctly in the workspace, users only need to type "generate" to start the process, no extra steps are required. The AI will first run the built-in galgame_scan tool to locate the script and all assets, then run galgame_build to parse the script and output the finished game file directly to the user's workspace.
The plugin is released under the open source MIT license, so users can modify and redistribute it freely without any cost or restriction. To install the plugin, you first package it with pnpm pack, then copy the generated tarball to your DSH web profile directory and add it as a dependency with pnpm add, then restart the dsh web process. A built-in check script is available to run diagnostics on syntax, manifest, and bundle contracts if you run into issues during setup or generation. This tool is ideal for hobbyists and indie creators who want to quickly prototype visual novels without learning complex game engines.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,用于生成可玩的视觉小说(Galgame)。用户只要按照约定格式提供剧本文档和立绘、背景、音乐、CG 等素材,即可生成一个独立可玩的 Galgame 网页,支持9个存档槽,生成后双击就能在浏览器打开游玩,也可直接在 DSH 的网页界面内游玩。
安装后插件会自动在 DSH 中添加「Galgame 生成模式」预设,新建会话时选择该模式,放入按约定整理好的素材后,直接对 AI 说「生成」就可以启动流程。AI 会自动扫描定位素材、解析剧本语法、生成完整游戏文件,适合想要快速制作独立视觉小说的创作者和爱好者,也可用于快速测试剧情原型。
本插件采用 MIT 许可开源,项目自带脚本可自检语法、包契约配置,安装方式和其他 DSH 插件一致,打包后通过 pnpm 添加到 DSH 配置目录即可使用。剧本支持分支选项、条件变量、自定义标题页、CG动画等丰富功能,生成的产物独立可分发。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-galgame-generator(baisama-cloud/dsh-galgame-generator)
仓库:https://github.com/baisama-cloud/dsh-galgame-generator
本站详情页:https://www.yhbd.top/plugins/baisama-cloud-dsh-galgame-generator/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 13 · 最近提交 2026-09-10 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 13 stars - an early-stage project星标 13,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:baisama-cloud/dsh-galgame-generator
把 baisama-cloud/dsh-galgame-generator 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-galgame-generator
版本:0.4.1
DeepSeek Harness (DSH) 的 Galgame 生成器:提供一份剧本文档 + 立绘/背景/音乐素材,即可生成一个可玩的视觉小说(Galgame)网页。 新增一个GalGame生成模式,在这个模式的工作区下提供一份剧本文档 + 立绘/CG/背景/音乐素材等,即可生成Galgame网页。
剧本可根据格式md文件由ai直接生成。
生成物:
<标题>.galgame.html—— 自包含独立网页:双击即可在浏览器游玩,立绘/背景/音乐全部内嵌,9 槽位存档读档(localStorage),可发给别人玩;- 🎮 Galgame 侧边栏按钮 —— 在 DSH Web GUI 界面内直接游玩(刷新页面后出现)。
功能
- 剧本解析:角色/背景/台词/旁白/选项分支/跳转/结局/变量与 if 条件线(
[if 变量 >= 1] … [else] … [endif]) - 立绘自动跟随说话人:谁说话显示谁、旁白全隐藏、切换 0.35s 淡入淡出不闪;
[show 名字]/[hide 名字]可显式锁定 - 角色多张立绘:
名字·表情: 文件.png定义变体,剧本里[表情 名字 表情名]切换(表情随存档保存) - 背景音乐:
[bgm 音乐.mp3]播放(循环)、[bgm off]/[bgm stop]停止、[bgm 音乐.mp3 0.5]可调音量 - 动画与 CG:
[op]开局动画、[ed]结束动画、[cg]CG 插图动画(img_cg/,支持 gif / svg / mp4 / webm / avi) - 可配置存档数:
[存档 N]设置槽位数(1–20,默认 9);进度、立绘、表情、背景、BGM、变量全保存;标题页可直接进入读档 - 可自定义开始界面(标题页):剧本里的
## 开始界面区可设置标题背景/标题音乐、是否展示人物、布局(立绘大图站位 / 头像排)、出场人物与站位;不写则保持默认样式 - 播放器:打字机、自动/快进、历史记录、结局画面
- 两个模型工具:
galgame_scan(扫描素材)、galgame_build(解析生成)
素材约定(工作区根目录)
| 放什么 | 位置 |
|---|---|
| 剧本文档 | 工作区根目录任意 .md / .txt(如 夏日回忆.md) |
| 人物立绘 | img_human/(如 img_human/mei.png) |
| 背景图片 | img_bg/(如 img_bg/classroom.png) |
| 背景音乐 | audio/(如 audio/bgm.mp3) |
| 开局/结束动画、CG 插图 | img_cg/(如 img_cg/opening.gif、img_cg/cg1.gif、img_cg/ending.mp4) |
| 开始界面素材(标题背景/标题音乐) | img_ui/(可选,如 img_ui/title.png) |
剧本示例:
# 夏日回忆
## 角色
小美: img_human/mei.png @ right
小明: img_human/ming.png @ left
## 背景
教室: img_bg/classroom.png
天台: img_bg/rooftop.png
## 开始界面 ← 可选:自定义标题页(不写则用默认样式)
背景: img_ui/title.png
音乐: audio/title.mp3
布局: 立绘
人物: 小美 @ 右, 小明 @ 左
## 剧本
[bg 教室]
[bgm audio/bgm.mp3]
小美: 今天天气真好。
(旁白:立绘自动隐藏)
[选项]
- 一起去天台 → 天台线
### 天台线
[bg 天台]
[bgm audio/bgm2.mp3 0.5]
[变量 好感度 + 1]
[if 好感度 >= 1]
小美: 你果然愿意来。
[endif]
[结束 结局·天台上的诗]
支持图片 png/jpg/jpeg/webp/gif/svg,音乐 mp3/ogg/wav/m4a/mp4/flac。完整语法见 docs/剧本格式.md,可直接套用的示例剧本见 examples/夏日回忆.md(把 img_human/、img_bg/、audio/ 换成你的素材即可)。
自检
node scripts/check.mjs # 语法 + manifest + bundle 契约自检
安装
打包 tarball 后安装到你的 DSH web profile(与其他 dsh-* 插件一致):
pnpm pack
# 把 dsh-galgame-generator-*.tgz 复制到 web profile 并添加依赖:
# 例如在 ~/.dsh/profiles/web 下:pnpm add ../path/to/dsh-galgame-generator-0.4.1.tgz
# 然后重启 `dsh web`。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
yumimanji/dsh-ui-spec
nexu-io/open-design
liustack/modlens
omdsh-dev/dsh-browser
EthanYoQ/Invoice-Downloader
sunchaokun/PPT-Design-Skill