Creative Partner

unlisted

by Creative Partner

AI 写作陪练:假定一个结局/核心问题就开始写,用成熟的叙事方法论给出诊断式反馈,不代笔、不要求提前设计完整世界观。

Updated 1mo agoMIT
View on GitHub

Creative Partner

License: MIT Obsidian Plugin

中文 | English


中文

即使人工智能能够生成万千答案,人类依然拥有某种无法被穷尽的光。 这种光,叫作创意。

Creative Partner 是一个跑在 Obsidian 里的个人小说创作陪练插件(前身为 NovelOS)。它不是代笔工具,而是一个写作教练:只分析、提问、解释、给修改方向,最终的创作权永远留在作者手里。

三条原则

  1. 不预先设计完整世界观/人物表。 先假定一个结局或核心问题,开始写,新人事物随故事自然出现,逐步形成因果,走向结局。
  2. 反馈有理论依据,不是凭感觉打分。 AI Editor 的分析框架来自成熟的叙事方法论——人物欲望、价值变化、冲突升级、危机/高潮/结局、结构诊断,以及叙述者可靠性、叙述距离、信息控制、隐含作者。这套方法论不提供唯一正确答案,只提供诊断工具和多个可选的修改方向——具体怎么改,由作者决定。插件内置了这套方法论和一套固定的反馈分类(装完就能用,不用自己配),如果 vault 根目录下有你自己的 novel-editor/SKILL.md,插件会优先用你那份、覆盖内置版本。
  3. AI 后台可插拔,账户归你自己。 自己填任意 Provider 的 API Key(OpenAI 兼容 / Anthropic / Gemini / DeepSeek / 完全自定义),插件不内置任何厂商、不代你保管账号,Key 只存在本地的插件数据文件里,不会被提交到 git。

为什么每次反馈都是"重新理解"而不是"凭记忆应付"

每一次 Analyze Current Chapter 或 Send,插件都会:

  • 现场重新读取当前 Chapter 文件此刻的正文(不是缓存某次分析时的旧版本);
  • 现场重新读取编辑原则/理论框架文档和作者反复出现的写作模式(Writing Profile);

再把这些拼进当次 prompt 发给 AI。哪怕作者完全没采纳上一次的建议、按自己的想法继续写,下一次分析依然基于他现在真正写出来的文字重新判断,而不是复述上一轮的记忆。唯一跨章节延续的记忆,是对作者长期写作模式的归纳(Writing Profile)——这是有意的设计,用来让反馈更懂这个作者,而不是用来替代每一次的重新理解。

安装

方式一:BRAT(推荐,之后能自动检查更新)

  1. 在 Obsidian 里装官方社区插件 BRAT(Settings → Community plugins → Browse → 搜索 "BRAT"),装完记得在插件列表里把它启用(开关打开)。
  2. 按 Ctrl+P(Mac 是 Cmd+P)打开命令面板,输入 BRAT,选中 "BRAT: Add a beta plugin for testing"(不同版本的 BRAT,设置页里的按钮文案可能不一样,命令面板这条路最稳妥)。
  3. 在弹出的输入框里填仓库地址 syLionchen/-obsidian-creative-partner,回车确认。
  4. BRAT 装完后,去 Settings → Community plugins,找到 "Creative Partner" 并启用。

方式二:手动安装

  1. 去仓库的 Releases 页面,下载最新版本的 main.js、manifest.json、styles.css 三个文件(如果还没有 Release,就 clone 本仓库后自己 npm install && npm run build,用生成的 main.js 加上 manifest.json、styles.css)。
  2. 在你的 vault 里新建文件夹 <你的vault>/.obsidian/plugins/creative-partner/,把这三个文件放进去。
  3. 重启 Obsidian 或刷新插件列表,去 Settings → Community plugins 启用 "Creative Partner"。

启用后的第一步设置:配置 AI Provider

插件默认用的是 Mock(假数据,不联网,不花钱),要接真的 AI,得自己加一个 Provider:

  1. 打开插件设置,点"新增 Provider",选一种请求格式——这是协议,不是厂商,同一种格式可能有好几个厂商在用:

    请求格式适用的服务URL 怎么填Model 举例
    OpenAI 兼容OpenAI 官方、DeepSeek、Moonshot/Kimi、Qwen、本地 Ollama 等不带 /chat/completions,如 https://api.deepseek.com/v1deepseek-chat
    AnthropicClaude 官方 API不带 /v1/messages,如 https://api.anthropic.com具体型号名查 Anthropic 文档
    GeminiGoogle Gemini不带路径,如 https://generativelanguage.googleapis.comgemini-2.0-flash
    自定义不符合上面任何一种格式的 API完整地址,原样发送看你的请求体模板
  2. 为什么 URL 必填:插件本身不内置任何厂商的地址,它只知道"你选的这种协议该怎么拼 URL"(比如 OpenAI 格式会自动在你填的地址后面拼上 /chat/completions)。URL 留空,插件连请求该发去哪都不知道,所以界面会标红提示,这个 Provider 没法用。

  3. 举个例子(接 DeepSeek 官方 API):

    • 请求格式选 OpenAI 兼容格式
    • URL 填 https://api.deepseek.com/v1
    • Model 填 deepseek-chat
    • API Key 填你在 platform.deepseek.com 申请的 key(形如 sk-xxxxxxxxxxxxxxxx)

    填完后插件实际发出的请求会是 POST https://api.deepseek.com/v1/chat/completions,带 Authorization: Bearer sk-xxxxxxxxxxxxxxxx。

  4. 加完后回到"当前使用的后台"下拉框,把它从默认的 Mock 切换成刚加的这个 Provider(不会自动切)。

  5. 插件认章节的方式是看笔记 frontmatter 里是否有 type: chapter——打开一篇带这个字段的笔记,右侧栏里的 "AI Editor" 面板才会显示 Chat / Feedback 功能。

开发

npm install
npm run dev     # watch 模式
npm run build   # 一次性构建

改完后在 Obsidian 里重载插件(禁用再启用,或 Ctrl+P → "Reload app without saving")。


English

Even if artificial intelligence can generate a thousand answers, humans still hold a light that can never be exhausted. That light is called creativity.

Creative Partner is a personal novel-writing companion plugin for Obsidian (formerly NovelOS). It is not a ghostwriter — it's a writing coach: it only analyzes, questions, explains, and suggests directions for revision. The creative authority always stays with the author.

Three principles

  1. No upfront world-building or character bible. Start from an assumed ending or a core question, begin writing, and let new people and things emerge naturally from the story, building causality step by step toward that ending.
  2. Feedback is grounded in theory, not gut feeling. The AI Editor's analysis framework comes from established narrative-craft methodology — character desire, value shifts, escalating conflict, crisis/climax/resolution, structural diagnosis, as well as narrator reliability, narrative distance, information control, and the implied author. This methodology doesn't hand you a single correct answer — it only offers diagnostic tools and several possible directions for revision. How to actually revise is always the author's call. This framework and a fixed feedback taxonomy ship built into the plugin (works out of the box, nothing to configure); if your vault has its own novel-editor/SKILL.md at the vault root, the plugin uses that instead, letting you override the built-in version.
  3. The AI backend is pluggable, and the account is yours. Supply your own API key for any provider (OpenAI-compatible / Anthropic / Gemini / DeepSeek / fully custom) — the plugin doesn't bundle any vendor or hold your account for you. Keys are stored only in the plugin's local data file and are never committed to git.

Why every round of feedback is "re-understanding," not "working from memory"

Every time you run Analyze Current Chapter or Send, the plugin:

  • Re-reads the current Chapter file's text fresh, on the spot (never a cached snapshot from a previous analysis);
  • Re-reads the editing-principles/theory-framework document and the author's recurring writing patterns (Writing Profile), also fresh;

and only then assembles all of this into the prompt sent to the AI. Even if the author completely ignores the previous suggestion and keeps writing their own way, the next analysis is still based on what they actually wrote just now — not a replay of the last round's memory. The only memory that persists across chapters is the author's long-term writing-pattern summary (Writing Profile) — this is an intentional design choice, meant to make feedback understand the author better over time, not to replace fresh re-understanding each time.

Installation

Option 1: BRAT (recommended — gets you automatic update checks)

  1. Install the official community plugin BRAT (Settings → Community plugins → Browse → search "BRAT"), then make sure it's enabled (toggled on) in your plugin list.
  2. Open the command palette (Ctrl+P, or Cmd+P on Mac), type BRAT, and select "BRAT: Add a beta plugin for testing" (BRAT's settings-tab button label varies between versions, so the command palette is the most reliable path).
  3. In the prompt that appears, enter the repo syLionchen/-obsidian-creative-partner and confirm.
  4. Once BRAT installs it, go to Settings → Community plugins and enable "Creative Partner".

Option 2: Manual installation

  1. Go to the repo's Releases page and download main.js, manifest.json, and styles.css from the latest release (if there's no release yet, clone the repo and run npm install && npm run build yourself, then use the generated main.js together with manifest.json and styles.css).
  2. Create a folder <your-vault>/.obsidian/plugins/creative-partner/ and put those three files in it.
  3. Restart Obsidian (or refresh the plugin list) and enable "Creative Partner" under Settings → Community plugins.

First-time setup after enabling: configure an AI Provider

The plugin defaults to Mock (fake data, no network, no cost). To get real AI feedback, add a Provider yourself:

  1. Open the plugin settings and click "Add Provider", then pick a protocol shape — this selects a wire format, not a vendor; the same shape is shared by several vendors:

    ShapeCoversHow to fill the URLModel example
    OpenAI-compatibleOpenAI, DeepSeek, Moonshot/Kimi, Qwen, local Ollama, etc.No trailing /chat/completions, e.g. https://api.deepseek.com/v1deepseek-chat
    AnthropicClaude's official APINo trailing /v1/messages, e.g. https://api.anthropic.comcheck Anthropic's docs for the exact model name
    GeminiGoogle GeminiNo trailing path, e.g. https://generativelanguage.googleapis.comgemini-2.0-flash
    CustomAny API that doesn't match the three shapes aboveThe full request URL, sent as-isdepends on your body template
  2. Why the URL is required: the plugin doesn't bundle any vendor's address — it only knows how to complete the URL for the shape you picked (e.g. the OpenAI shape appends /chat/completions to whatever you enter). Leave it blank and the plugin has nowhere to send the request, so the settings UI flags it and that Provider can't be used.

  3. A worked example (DeepSeek's official API):

    • Shape: OpenAI-compatible
    • URL: https://api.deepseek.com/v1
    • Model: deepseek-chat
    • API Key: the key you get from platform.deepseek.com, looks like sk-xxxxxxxxxxxxxxxx

    With those filled in, the plugin actually sends POST https://api.deepseek.com/v1/chat/completions with Authorization: Bearer sk-xxxxxxxxxxxxxxxx.

  4. Go back to "Current backend" and switch it from the default Mock to the Provider you just added — it won't switch automatically.

  5. The plugin recognizes a chapter by checking whether a note's frontmatter has type: chapter — open a note with that field for the "AI Editor" panel in the side pane to show Chat / Feedback.

Development

npm install
npm run dev     # watch mode
npm run build   # one-off build

After making changes, reload the plugin inside Obsidian (disable then re-enable it, or Ctrl+P → "Reload app without saving").

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.