The SKILL.md below is reproduced from
Raccoon-Office/Box-Agent (commit
df679b5) under the
MIT license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright 2025 MiniMax (original Mini-Agent). License:
LICENSE. Only the instructions file is shown; see the original repository for any scripts.
Obsidian 笔记助手
当用户明确要求把内容写入、导出、保存、追加或打开到 Obsidian 时,使用本 skill,并优先调用 Box-Agent 的原生 obsidian_* 工具。
何时使用
出现这些信号就进入本流程:
- “导出到 Obsidian”
- “保存到 Obsidian”
- “写入 Obsidian”
- “追加到某篇 Obsidian 笔记”
- “生成今天的 todo 到 Obsidian”
- “打开 / 更新 / 覆盖 Obsidian 笔记”
工具选择
- 新建普通笔记:调用
obsidian_create_note。
- 追加、前置或覆盖已有笔记:调用
obsidian_update_note。
- 今天的 Daily Note / todo / 日记:调用
obsidian_daily_note。
引用上下文写回
当 prompt 中存在 <obsidian_context ... path="...">,表示 officev3 已从 Vault 原文件读取该笔记内容作为上下文。
- 只读问题(提问、总结、统计、分析)直接参考
obsidian_context 回答。
- 如果用户明确要求修改、保存、追加、前置或覆盖这篇被引用的 Obsidian 笔记,必须使用 context 中的 Vault 相对
path 调用 obsidian_update_note。
- 不要修改 workspace 文件、
.data-sources 副本或自行复制出的 Markdown 文件;Obsidian 写回以 Vault 原文件为准。
路径规则
path 必须是 Vault 相对路径,例如 Projects/AI 周报.md。
- 不要传绝对路径。
- 不要使用
..。
- 写入目标必须是
.md 文件。
Bash 边界
可以用 bash 做诊断:
obsidian version
obsidian help
which obsidian
不要用 bash 直接执行写入或打开类命令,例如:
obsidian create ...
obsidian append ...
obsidian prepend ...
obsidian open ...
obsidian daily ...
这些操作必须走 obsidian_* 原生工具,因为工具会处理 Vault 配置、路径校验、权限确认、CLI 参数转义和失败提示。
示例
用户:“帮我生成今天的 todo 项到 Obsidian。”
做法:整理 todo 内容后调用:
obsidian_daily_note(action="append", content="<Markdown todo>", open_after=true)
用户:“把这份报告导出为 Obsidian 笔记。”
做法:调用:
obsidian_create_note(title="报告标题", content="<Markdown report>", open_after=true)
View full license text (MIT)
MIT License
Copyright (c) 2025 MiniMax (original Mini-Agent)
Copyright (c) 2025 Raccoon Office (Box-Agent modifications)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.