AI-powered writing assistant for Obsidian vaults. Uses Yunwu AI's Gemini via the obsidian-textgenerator-plugin for content generation, summarization, and knowledge synthesis. Integrates with git-notes-memory for context awareness.
AI-powered writing assistant for Obsidian vaults using the Text Generator Plugin and Yunwu AI's Gemini.
| 方案 | 优点 | 缺点 |
|---|---|---|
| Text Generator Plugin | 成熟开源、多 AI 支持、模板引擎、社区活跃 | 需要 Obsidian 安装 |
| 从头开发 CLI | 完全控制 | 需要维护、功能重复 |
结论: 使用成熟的 Text Generator Plugin,通过 Yunwu AI 配置即可使用。
方法 A: Obsidian 社区插件(推荐)
方法 B: 手动安装
cd /path/to/your-vault/.obsidian/plugins
git clone https://github.com/nhaouari/obsidian-textgenerator-plugin.git
cd obsidian-textgenerator-plugin
pnpm install
pnpm build
在 Obsidian 中打开 Text Generator 设置:
配置选项:
https://yunwu.ai/v1sk-6vUtyDKZHLtFuRGRJSuua8hk7GF9Xli3k19VyhzVurkfTU93gemini-3-flash-preview或使用 Frontmatter(在笔记开头添加):
---
tg_provider: Google
tg_api_url: https://yunwu.ai/v1
tg_api_key: sk-6vUtyDKZHLtFuRGRJSuua8hk7GF9Xli3k19VyhzVurkfTU93
tg_model: gemini-3-flash-preview
---
---
tg_prompt: "Generate 3 ideas for my daily note about AI trends"
tg_model: gemini-3-flash-preview
---
# 2026-01-30
## 今日想法
<!-- AI 生成的想法会出现在这里 -->
---
tg_prompt: "Summarize the key points of this note in 100 words"
tg_type: summarization
---
[你的笔记内容]
---
tg_prompt: "Expand each bullet point into a paragraph"
tg_type: expansion
---
- AI 正在改变写作方式
- 个性化内容成为可能
- 效率大幅提升
利用 Obsidian 的双向链接:
---
tg_prompt: "Synthesize insights from this note and related notes about [[AI Agents]] and [[Automation]]"
tg_context: linked
---
# AI 发展趋势
Obsidian vault/.obsidian/textgenerator-templates/
daily-ideas.md:
Generate 3 creative ideas for today's note based on:
- Current date: {{date}}
- Recent topics: {{linked_tags}}
Focus on: {{input}}
summarize.md:
Summarize the following content in {{length|200}} words:
{{content}}
expand.md:
Expand each bullet point into a detailed paragraph:
{{content}}
访问 Text Generator Templates 获取社区共享模板。
# 同步当前上下文
python3 /home/zous/clawd/skills/git-notes-memory/memory.py -p $VAULT sync --start
# 记住写作决策
python3 /home/zous/clawd/skills/git-notes-memory/memory.py -p $VAULT remember \
'{"decision": "Use Gemini for fast drafting", "reason": "Speed vs quality"}' \
-t writing,ai -i h
当 triple-memory 启用时:
---
tg_default_model: gemini-3-flash-preview
tg_models:
fast: gemini-3-flash-preview
balanced: gemini-3-pro-preview
creative: gpt-4o
---
---
tg_provider: Google
tg_api_url: https://yunwu.ai/v1
tg_fallback:
- provider: OpenAI
api_url: https://api.openai.com/v1
api_key: env:OPENAI_API_KEY
---
---
tg_context:
include:
- current_note
- linked_notes
- tags: #AI, #writing
exclude:
- tags: #private, #draft
---
| 操作 | 建议 |
|---|---|
| 生成速度 | 使用 gemini-3-flash-preview |
| 内容质量 | 使用 gemini-3-pro-preview |
| 批量生成 | 使用 tg_type: batch |
| 长文本 | 启用 tg_stream: true |
# 测试 API 连接
curl https://yunwu.ai/v1/models \
-H "Authorization: Bearer sk-6vUtyDKZHLtFuRGRJSuua8hk7GF9Xli3k19VyhzVurkfTU93"
tg_temperature (0.1-1.0)