Galley Studio 是一个面向 Obsidian 的 AI 文章排版与 HTML 编辑插件。它可以将 Markdown 文章交给 OpenAI-compatible 模型、Codex CLI 或 Claude CLI, 结合内置排版 Skill 生成适合微信公众号等场景的 HTML,并在 Obsidian 中完成预览、可视化编辑、源码编辑和复制导出。
.html 文件会显示在 Obsidian 文件管理器中。.html 文件,也兼容 .galley.html 文件。在 Obsidian 仓库中创建目录:
.obsidian/plugins/galley-studio/
将以下文件复制到该目录:
main.js
manifest.json
styles.css
重新加载 Obsidian。
在“设置 → 第三方插件”中启用 Galley Studio。
需要 Node.js 和 npm:
npm ci
npm run build
构建完成后,将根目录中的 main.js、manifest.json 和 styles.css
复制到 .obsidian/plugins/galley-studio/。
打开“Galley Studio 设置”并选择生成 Agent。
Plugin。插件设置只保存 Secret ID,不会把 API Key 写入普通配置文件。
Desktop 端可以选择:
Codex CLIClaude CLI确保对应命令可以从 Obsidian 进程访问,必要时在设置中填写可执行文件路径。
在 Obsidian 中打开一篇 Markdown 文章。
点击侧边栏报纸图标,或运行命令:
Galley Studio: Open console / 打开控制台
选择主题并开始生成。
在“生成对话”中查看提示词、模型输出和任务状态。
生成完成后,直接从 Obsidian 文件管理器打开 HTML。
在工作台中切换“预览 / 编辑 / 源码”,保存或复制最终 HTML。
assets/ 内置生成与导出配置
docs/ 设计说明和实施记录
src/
ai/ 模型和本地 CLI 客户端
console/ Galley Studio 控制台
generation/ 生成任务、Skill 驱动流程和 HTML 提取
documents/ HTML 文档会话、保存和恢复
editor/ 可视化编辑器与源码编辑器
preview/ 安全 HTML 预览
themes/ 主题仓库
workbench/ 预览、编辑、源码工作台
tests/ 单元、集成、安全和发布测试
tools/ 构建、审计和发布脚本
npm run dev
npm test
npm run build
npm run audit:licenses
npm run audit:package
npm run audit:static
npm run release
npm run release 会构建并校验发布包,包括版本、移动端边界、许可证和
敏感信息扫描。
如果 Galley Studio 对你有帮助,可以通过爱发电支持后续开发:
https://ifdian.net/a/kinrochen
Galley Studio 使用 GNU Affero General Public License v3.0 or later。 完整许可证见 LICENSE,第三方依赖与内置 Skill 的来源和许可证 见 THIRD_PARTY_NOTICES.md。
Galley Studio is an AI-assisted article formatting and HTML editing plugin for Obsidian. It sends Markdown articles to an OpenAI-compatible model, Codex CLI, or Claude CLI, applies the bundled publishing Skill, and produces editable HTML for WeChat Official Accounts and other publishing workflows. The resulting document can be previewed, visually edited, source-edited, saved, and copied without leaving Obsidian.
.html files directly in the Obsidian file explorer after installation..html files and legacy .galley.html files.Create the following directory inside your Obsidian vault:
.obsidian/plugins/galley-studio/
Copy these files into the directory:
main.js
manifest.json
styles.css
Reload Obsidian.
Enable Galley Studio under Settings → Community plugins.
Node.js and npm are required:
npm ci
npm run build
After the build finishes, copy main.js, manifest.json, and styles.css
from the project root into .obsidian/plugins/galley-studio/.
Open Galley Studio settings and select a generation agent.
Plugin.Galley Studio persists only the Secret ID. It does not write the raw API key to its ordinary settings data.
Desktop supports:
Codex CLIClaude CLIMake sure the selected command is available to the Obsidian process. Configure an explicit executable path when automatic discovery is not sufficient.
Open a Markdown article in Obsidian.
Select the newspaper ribbon icon or run:
Galley Studio: Open console / 打开控制台
Select a theme and start generation.
Monitor the prompt, model output, and task state on the Generation page.
Open the generated HTML directly from the Obsidian file explorer.
Switch between Preview, Edit, and Source, then save or copy the final HTML.
assets/ Bundled generation and export profiles
docs/ Design notes and implementation records
src/
ai/ Provider and local CLI clients
console/ Galley Studio console
generation/ Tasks, Skill-driven generation, and HTML extraction
documents/ HTML sessions, persistence, and recovery
editor/ Visual and source editors
preview/ Safe HTML preview
themes/ Theme repositories
workbench/ Preview, Edit, and Source workbench
tests/ Unit, integration, security, and release tests
tools/ Build, audit, and release scripts
npm run dev
npm test
npm run build
npm run audit:licenses
npm run audit:package
npm run audit:static
npm run release
npm run release builds and verifies the release archive, including version
metadata, Mobile boundaries, licenses, and secret scanning.
If Galley Studio is useful to you, you can support continued development through Afdian:
https://ifdian.net/a/kinrochen
Galley Studio is licensed under the GNU Affero General Public License v3.0 or later. See LICENSE for the complete license and THIRD_PARTY_NOTICES.md for bundled dependency and Skill attribution.