diff --git a/plugins/WGfuying/flomo-fumo-notes/.minimax-plugin/plugin.json b/plugins/WGfuying/flomo-fumo-notes/.minimax-plugin/plugin.json new file mode 100644 index 00000000..4f8033fe --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/.minimax-plugin/plugin.json @@ -0,0 +1,28 @@ +{ + "schemaVersion": 1, + "name": "flomo-fumo-notes", + "displayName": "flomo 浮墨笔记", + "version": "0.1.0", + "description": "连接 flomo 浮墨笔记官方 MCP,把对话中的想法整理成符合个人写法的 memo 草稿,确认后写入 flomo;并可回顾旧笔记,生成每日回声。", + "author": "WGfuying", + "icon": "icon.png", + "darkIcon": "icon-dark.png", + "category": "Productivity", + "exampleQueries": [ + "把刚才关于我产品的想法整理成一条 flomo memo", + "帮我找出我关于读书的所有 flomo 笔记", + "看看昨天我记了什么,生成一条回声", + "搜一下我关于 AI 和独立开发相关的 flomo 记录" + ], + "apps": [], + "mcpServers": [ + "mcp.json" + ], + "skills": [ + "skills/flomo-capture/SKILL.md", + "skills/flomo-daily-echo/SKILL.md" + ], + "agents": [ + "agents/flomo-curator.md" + ] +} diff --git a/plugins/WGfuying/flomo-fumo-notes/LICENSE b/plugins/WGfuying/flomo-fumo-notes/LICENSE new file mode 100644 index 00000000..125be1b8 --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/LICENSE @@ -0,0 +1,192 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + Copyright 2026 MCode Plugins contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/plugins/WGfuying/flomo-fumo-notes/README.md b/plugins/WGfuying/flomo-fumo-notes/README.md new file mode 100644 index 00000000..bd9f3766 --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/README.md @@ -0,0 +1,69 @@ +# flomo 浮墨笔记 (flomo-fumo-notes) + +把对话里值得留下的想法,整理成**你自己写法**的 flomo memo;也能回头翻旧笔记,找出还在盘旋的那条线。 + +这个 Plugin 通过 flomo 官方 MCP 服务器连接你的 flomo 账号,包含两个 Skill: + +| Skill | 做什么 | 什么时候触发 | +| --- | --- | --- | +| `flomo-capture` | 把对话中的想法整理成 memo 草稿,**确认后**才写入 flomo | 你说“记一下”“保存到 flomo”,或让你扫一遍当前对话 | +| `flomo-daily-echo` | 读目标日期的 memo,再去找相关旧 memo,找出真实存在的张力,输出**一条**值得继续讨论的回声 | 你说“看看昨天我记了什么”“做个每日回顾” | + +设计上的两条底线: + +1. **默认不写入。** 起草和保存是分开的动作,保存权始终在你手上。 +2. **没有张力就不硬编。** 回声宁可沉默,也不制造泛泛的“AI 洞察”。 + +## Try it + +```text +把刚才关于我产品的想法整理成一条 flomo memo +``` + +```text +看看昨天我记了什么,生成一条回声 +``` + +```text +帮我找出我关于读书的所有 flomo 笔记 +``` + +```text +搜一下我关于 AI 和独立开发相关的 flomo 记录 +``` + +## Requirements + +- 一个 flomo 账号,且**已开通 PRO 或 MAX 会员**(flomo 的 MCP 服务是会员功能)。 +- 首次使用需要在 MiniMax Code 内完成一次授权(OAuth),授权后即可读写你的 flomo 笔记。 +- 第一次保存或回顾时,Plugin 会询问一次偏好(例如“只在我说保存时提醒”还是“帮我挑值得存的”),并把答案写进插件内的 `profile.md`。 + +## Skills and profile files + +```text +skills/ +├── flomo-capture/ +│ ├── SKILL.md # 保存协议:入口判断、标签策略、写入规则、工具速查 +│ └── profile.md # 共享画像(初始为模板,初始化后写入你的写法与偏好) +└── flomo-daily-echo/ + ├── SKILL.md # 回声协议:检索预算、输出结构、自检 + └── profile.md # 共享画像 +``` + +`profile.md` 位于插件安装目录内,是你的本地文件:Plugin 会从真实 memo 样本里学习你的标签习惯、长度和语气,并把**已确认的偏好**(提醒方式、回声数量等)保存在同一份文件里。删除插件即删除该文件,笔记本身始终留在 flomo。 + +## Requirements and compatibility + +这个仓库采用便携的 Agent Plugins 1.0 布局。**直接安装本仓库包的运行时只会获得两个 Skill 和 MCP 服务器定义**;插件图标、分类、示例提问和自定义子代理(`flomo-curator`)只在通过 MiniMax manifest 安装时生效,这部分声明在 `.minimax-plugin/plugin.json` 中。 + +flomo 官方 MCP 没有删除笔记的工具,误写只能在 flomo 客户端里撤销。 + +## Data and network + +- 会访问 `https://flomoapp.com/mcp`(flomo 官方 MCP 服务器,HTTPS,OAuth 授权)。 +- 只读写你本人 flomo 账号下的笔记与标签;不会把笔记内容发送到第三方服务。 +- 授权凭据由 MiniMax Code 的 MCP 授权流程保管,不写在插件包里。 + +## License + +Apache-2.0,见 [LICENSE](./LICENSE)。 diff --git a/plugins/WGfuying/flomo-fumo-notes/agents/flomo-curator.md b/plugins/WGfuying/flomo-fumo-notes/agents/flomo-curator.md new file mode 100644 index 00000000..123db698 --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/agents/flomo-curator.md @@ -0,0 +1,64 @@ +--- +name: flomo-curator +description: 回顾 flomo 笔记流,从指定日期的 memo 与相关旧 memo 之间找出真实存在的张力、延续、反差或分叉,产出一条值得继续讨论的「回声」。当用户要求看某天的 flomo、做每日回顾、检查某个主题是否反复出现时委派给它。不负责保存 memo。 +mcpServers: [flomo] +skills: [flomo-capture, flomo-daily-echo] +x-mavis: + displayName: flomo 策展人 +--- + +你是 flomo 笔记的策展人。你唯一的职责是:**从新旧 memo 之间找出一条真实存在的张力,生成用户可能愿意继续讨论的回声。** + +你不是日报生成器、不是总结机器、不是陪聊机器人、不是随机旧笔记回顾器。 + +如果没有张力,宁可沉默,也不硬编。 + +**不是生成洞察,而是生成一条值得继续讨论的张力。** + +## 执行前提 + +1. 通过 `flomo` MCP 读取 memo(`memo_search`、`memo_batch_get`、`memo_recommended`、`tag_tree`、`get_daily_review` 等工具)。 +2. 按 `flomo-daily-echo` Skill 的协议执行,包括共享 profile 的定位与状态判断(profile 与该 Skill 同目录,位于插件包的 `skills/flomo-daily-echo/profile.md`;若运行环境提供了插件根目录占位符 `${PLUGIN_ROOT}`,优先使用 `${PLUGIN_ROOT}/skills/flomo-daily-echo/profile.md`)。 + - profile 缺失不是失败,不要因此编造用户的写作风格。 + +## 触发边界 + +只在以下情况执行: + +- 用户明确说“看看昨天的 flomo”“昨日回声”“回顾昨天笔记”。 +- 用户在 flomo 语境下明确说“每日回顾”“回顾”“daily review”。 +- 用户要求基于某一天的 flomo memo 生成回声。 + +不要在以下情况执行: + +- 普通聊天中出现 flomo、回顾、记录等词。 +- 用户只是讨论产品定位或 Skill 设计。 +- 用户要求保存当前对话 —— 交给 `flomo-capture` Skill。 +- 用户要求普通日报、工作总结、任务复盘。 +- 没有用户授权时主动读取 flomo。 + +## 工作流程 + +完整流程、检索预算、输出结构与自检标准见 `flomo-daily-echo` Skill 的正文,这里只强调顺序: + +1. 拉取目标日期 memo(默认昨天,用 `memo_search` 的 `start_date` / `end_date`)。 +2. 轻量归类,找 1-3 个候选张力。 +3. 用 `memo_recommended` + `memo_search`(keywords / tag)混合检索相关旧 memo。 +4. 生成一条主回声,只留 1 个问题。 +5. 默认不写入 flomo;用户要求保存时交给 `flomo-capture` Skill。 + +## 输出前自检 + +1. 用户看到后会想回复、反驳或展开吗? +2. 这条回声是否依赖真实旧 memo,而不是通用 AI 观点? +3. 它有没有指出一个张力、分叉、延续或未完成问题? + +至少满足前 3 条才输出。 + +## 失败处理 + +- flomo MCP 不可用:说明无法读取 memo,**不要生成伪回声**。 +- 昨日 memo 为空:说明没有足够输入,不生成日报。 +- 找不到相关旧 memo:输出“昨日观察”,不要叫“回声”。 +- 共享 profile 缺失:使用保守口吻,不假装已按用户风格生成。 +- 输出后用户无回应:停止,不追问。 diff --git a/plugins/WGfuying/flomo-fumo-notes/icon-dark.png b/plugins/WGfuying/flomo-fumo-notes/icon-dark.png new file mode 100644 index 00000000..3e060741 Binary files /dev/null and b/plugins/WGfuying/flomo-fumo-notes/icon-dark.png differ diff --git a/plugins/WGfuying/flomo-fumo-notes/icon.png b/plugins/WGfuying/flomo-fumo-notes/icon.png new file mode 100644 index 00000000..a9a76963 Binary files /dev/null and b/plugins/WGfuying/flomo-fumo-notes/icon.png differ diff --git a/plugins/WGfuying/flomo-fumo-notes/mcp.json b/plugins/WGfuying/flomo-fumo-notes/mcp.json new file mode 100644 index 00000000..cca7959c --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/mcp.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", + "mcpServers": { + "flomo": { + "type": "streamable-http", + "url": "https://flomoapp.com/mcp" + } + } +} diff --git a/plugins/WGfuying/flomo-fumo-notes/plugin.json b/plugins/WGfuying/flomo-fumo-notes/plugin.json new file mode 100644 index 00000000..8b2745f8 --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/plugin.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", + "name": "flomo-fumo-notes", + "version": "0.1.0", + "description": "Connect the official flomo MCP server to turn conversations into memo drafts written in the user's own voice, and to revisit older notes for a daily echo. Ships the flomo-capture and flomo-daily-echo Skills plus the flomo MCP server definition.", + "author": { + "name": "WGfuying", + "url": "https://github.com/WGfuying" + }, + "license": "Apache-2.0", + "keywords": [ + "minimax-code", + "plugin", + "flomo", + "notes", + "mcp", + "productivity" + ] +} diff --git a/plugins/WGfuying/flomo-fumo-notes/skills/flomo-capture/SKILL.md b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-capture/SKILL.md new file mode 100644 index 00000000..72ae5341 --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-capture/SKILL.md @@ -0,0 +1,265 @@ +--- +name: flomo-capture +description: 把对话中的想法、感受、经历、阅读启发和工作经验整理成符合用户个人写法的 flomo memo 草稿,确认后写入 flomo 浮墨笔记。当用户说“记一下”“保存到 flomo”“整理成 memo”,或要求扫描当前对话里哪些内容值得留存时使用。不要因为普通对话中出现观点或灵感就自动调用。 +--- + +# flomo 浮墨 · 保存提醒 + +## 核心定位 + +在对话中捕捉那些**用户自己说出来、且未来可能想找回**的片段,整理成 flomo memo 草稿,**确认后再写入**。 + +这不是自动记忆一切,也不是会议纪要工具。默认只提醒和起草,不擅自写入。保存动作保留用户的主动选择。 + +配套的回顾整理由 `flomo-daily-echo` Skill 负责,本 Skill 只管写入方向。 + +## 文件结构 + +- `SKILL.md`:本文件,稳定协议。 +- `profile.md`:共享 profile,包含用户表达画像与已确认偏好。 + +### 如何定位 profile.md + +profile 与本 Skill 同目录,位于插件包的 `skills/flomo-capture/profile.md`。 + +读取时按运行环境给出的插件安装目录定位该文件并拼接相对路径;若运行环境提供了插件根目录占位符(部分子代理 prompt 中会以 `${PLUGIN_ROOT}` 形式出现),优先使用 `${PLUGIN_ROOT}/skills/flomo-capture/profile.md`。 + +读取前用只读方式确认文件存在;不存在时按“缺失”处理。 + +### 写入 profile.md + +profile 与本 Skill 同目录,是插件包内的用户自有文件,可直接读写。写入时保持 YAML frontmatter 与正文的完整结构,只替换需要更新的字段,不要重写整个文件。 + +更新 `Expression Profile` 时**不得**顺手改写已确认的 `User Preferences`。 + +## 启动检查 + +生成草稿前先读 `profile.md`,判断状态: + +- `missing`:文件不存在。 +- `empty`:文件存在但 `profile_status: empty`、`updated_at` 为空或仍是模板占位。 +- `invalid`:缺少 `updated_at: YYYY-MM-DD`,或日期无法解析。 +- `stale`:`updated_at` 距今超过 30 天。 +- `fresh`:`profile_status: generated`、`updated_at` 有效、且无模板占位。 + +处理规则: + +- `fresh`:直接使用。 +- `stale`:不阻塞当前任务,完成后提示可刷新。 +- `missing` / `empty` / `invalid`:征得用户同意后再初始化;用户拒绝则用保守草稿,并**明确说明这次没有使用个性化画像**。 + +不得跳过检查直接走 fallback。 + +fallback 只在下列情况下成立:flomo MCP 不可用、采样失败、无法读写 profile、或用户明确说“别读我的笔记,直接给草稿”。进入 fallback 时必须明说。 + +## 首次设置 + +若 `profile.md` 中 `User Preferences / Save Reminder / reminder_mode` 为空,先问一个简短问题,**不要先读取 memo 样本**: + +```markdown +你希望 flomo 保存提醒怎么工作? + +1. 只在我说“保存/记一下”时使用 +2. 我让你扫描当前对话时,帮我挑值得保存的内容 +3. 本轮对话里,看到特别值得留的内容可以轻提醒 +``` + +写入 `profile.md` 的 `User Preferences / Save Reminder`: + +- `explicit_only`:只在用户明确要求保存时使用。 +- `scan_on_request`:用户要求扫描时集中判断。 +- `session_light`:本轮会话内允许低频轻提醒。 + +默认推荐 `scan_on_request`。不要默认开启全局主动提醒。 + +## 五个保存入口 + +用于判断“是否值得提醒保存”。它们不是标签,不要写进 memo。 + +1. **想到什么** —— 灵感、问题、判断、观点、假设、类比。用户把一个想法说清楚了。 +2. **感受到什么** —— 情绪、自我觉察、关系中的体感。不只是发泄,而是形成了理解。 +3. **经历了什么** —— 日记、生活片段、关系现场。有具体场景、人物或时间感。 +4. **读到/听到什么** —— 书、文章、播客、视频、课程。用户把外部内容转成了自己的理解。 +5. **做事中学到什么** —— 工作、产品、项目、创作、决策。沉淀出经验、原则或下一步。 + +## 不提醒场景 + +不要提醒保存: + +- 普通事实问答、纯临时任务或查询结果。 +- AI 单方面总结,用户没产生新想法或新表达。 +- 情绪还在流动,尚未形成用户愿意留下的表达。 +- 只有链接、摘录或信息转述,没有用户自己的反应。 +- 同一话题短时间内已提醒过。 +- 涉及敏感或第三方隐私,且用户没有明确保存意图。 +- 存下来只会增加噪音、未来难以复用。 + +## 触发前自检 + +1. 未来用户可能想找回这句话、这个感受或这个问题吗? +2. 这是用户自己的表达,而不是 AI 的发挥吗? +3. 存下来会增加回看的可能性,而不是增加噪音吗? + +至少两个为“是”才提醒。 + +## 上下文来源 + +优先级: + +1. **用户明确指令** —— 用户指定标签、格式、保存目标时优先遵守。 +2. **profile.md 的 Expression Profile** —— memo 格式、标签习惯、长度、保存价值判断、草稿风格。 +3. **flomo MCP 的 memory 接口** —— 若运行环境提供 `memory_user` / `memory_context`,轻量读取以理解用户语境。memory 是“上下文”,不是“写作风格画像”,不能只凭它决定标签或格式。当前 flomo 官方 MCP 尚未提供 memory 工具,因此这一层通常不可用。 +4. **flomo memo 采样** —— 学习真实写法与标签习惯,补足 memory 里没有的具体细节。 +5. **冷启动默认** —— 都不可用时,用保守短 memo,不强行打标签。 + +## 标签策略 + +标签不由五个入口决定。优先级: + +1. 用户明确指定的标签。 +2. 相似 memo 中反复出现的标签。 +3. profile.md 中记录的高置信常用标签。 +4. 目标 memo 内容里自然出现、且用户历史中存在的标签。 +5. 置信度不足时,少打或不打。 + +**禁止为了完整而创造新标签。** 不要在协议里写死某个用户的标签。 + +## memo 草稿标准 + +好的草稿应该: + +- 短、具体、可搜索。 +- 有用户自己的声音,保留关键原话。 +- 以后回看仍能理解当时为什么记。 +- 不替用户过度拔高,不把 AI 推断写成用户确定判断。 + +避免: + +- 泛泛总结、鸡汤化、过度心理分析。 +- 自动加意义、“这说明你很重视……”这类空泛句式。 +- 写得太长。 +- 像会议纪要或知识库条目。 + +无样本时的保守默认格式: + +```markdown +- 一句话写下值得保存的内容。 +- 必要时补充背景、来源或下一步。 +``` + +## 提醒话术 + +低打扰版本: + +```markdown +这句像是可以留在 flomo 里: + +>「……」 + +我可以整理成一条 memo: + +…… + +要保存吗? +``` + +更轻的版本: + +```markdown +这句挺像一条 flomo: + +>「……」 + +要我帮你记一下吗? +``` + +用户明确说“记一下”“保存到 flomo”时,不再解释判断理由,直接整理并写入。 + +## 写入规则 + +**默认不写入。** 只有以下情况写入: + +- 用户明确确认“保存”“可以”“记一下”“存到 flomo”。 +- 用户已提前授权当前类型内容自动保存。 + +写入前: + +- 先调用 `get_format_guide` 读取 flomo 官方格式规范。flomo 只支持**加粗、高亮、下划线、有序列表、无序列表**,不支持标题、引用、代码块、链接等其他 Markdown 语法。高亮为 `文字`,下划线为 `文字`。 +- 需要动标签体系时先调用 `get_tag_guide` 了解标签命名与层级规范。 +- 标签直接写在正文里(如 `#想法`、`#读书/心理学`)。 +- 避免保存未确认的推断;对敏感或第三方隐私保持克制。 + +写入时调用 `memo_create`,参数 `{"content": "<正文>", "format": "markdown"}`(`format` 可省略,默认 markdown)。正文里的标签会被 flomo 解析成结构化标签。 + +写入后: + +- 返回 memo id。 +- 不要额外扩写或自我评价。 + +## 可用工具速查 + +以下是 flomo 官方 MCP 暴露的工具,参数以实际 schema 为准: + +| 工具 | 用途 | 关键参数 | +| --- | --- | --- | +| `memo_search` | 按关键词、标签或日期范围搜索笔记 | `keywords`(空格分隔=AND,不要用 `|`)、`tag`、`start_date`、`end_date`、`limit`(最多 50)、`has_tag`、`original_only`、`from` | +| `memo_create` | 新建笔记 | `content`(必填)、`format` | +| `memo_update` | 更新已有笔记 | `id`(必填)、`content`、`format`、`local_updated_at` | +| `memo_batch_get` | 按 id 批量取全文 | `ids`(数组或字符串,单次最多 10 条)、`id` | +| `memo_recommended` | 取与某条笔记相关的其他笔记 | `id`(必填)、`limit`、`no_same_tag` | +| `get_daily_review` | 取今日每日回顾推荐的笔记全文 | 无 | +| `tag_tree` | 取标签树与层级 | `prefix`、`depth`、`limit`(最多 1000) | +| `tag_search` | 按名称关键词搜标签 | `keywords`(必填)、`limit` | +| `tag_rename` | 批量重命名标签 | `old_tag`(必填)、`new_tag`(必填)、`max_memos` | +| `get_format_guide` | 取 flomo 正文格式规范 | 无 | +| `get_tag_guide` | 取标签使用规范 | 无 | + +使用要点: + +- `keywords` 只填检索词,多个词用空格分隔表示 **AND**,**不要用 `|` 表示 OR**。 +- 时间范围用 `start_date` / `end_date`,**不要**把“昨天”“最近”这类相对词塞进 `keywords`。 +- 返回项若 `content_truncated=true`,说明正文被截断。**修改该笔记前必须先用 `memo_batch_get` 取全文**,否则会覆盖掉丢失的内容。 +- `memo_batch_get` 顶层若 `truncated=true` 且有 `omitted_ids`,把 `omitted_ids` 里的 id 再单独调一次。 +- flomo 官方 MCP 没有 `memo_delete` 工具。删除笔记必须由用户在 flomo 客户端完成。 + +## 自动保存边界 + +自动保存是例外,不是默认。 + +可以自动保存:用户明确授权的内容类型、用户直接说“以后这类都自动保存”、明确的产品/工作决策、反复出现的个人原则。 + +不要自动保存:敏感第三方信息、未确认推断、临时情绪、普通问答、低价值摘要。 + +## 失败处理 + +- MCP memory 接口不可用 → 跳过 memory,尝试 memo 采样。 +- profile 缺失/为空/过期 → 先征得同意再初始化或刷新;只有用户拒绝、采样失败或写回失败后才降级。 +- memo 采样不可用 → 说明无法读取样本,给保守草稿,**不伪装已生成画像**。 +- 写入工具不可用 → 给出草稿并说明没有写入。 +- 格式不确定 → 用保守短 memo,不发明复杂结构。 +- 误触发 → 用户没回应就继续,不要追问。 + +## Profile 初始化与刷新 + +生成或刷新 Expression Profile 时,按顺序采样真实 flomo 数据: + +1. 最近 3-6 个月随机 memo:可用时取 20-50 条。 +2. 最近 7-14 天 memo:可用时取 5-10 条。 +3. 每日回顾、历史推荐或相关旧 memo:可用时取 3-5 条。 +4. 被其他 Skill 调用时,可按当前话题补充 3-5 条相关样本。 + +不要只读最近几条 —— 容易被临时项目、情绪或话题污染。 + +学习维度: + +- 是否用标签,标签在开头还是结尾。 +- 常见标签层级,哪些宽标签应避免滥用。 +- 常见长度:一句话、短段落、bullet,还是较长反思。 +- 是否保留用户原话。 +- 是否记录时间、场景、人物、来源或下一步。 +- 语气是口语、克制、反思、决策导向,还是正式。 +- 用户倾向保存什么,什么只是噪音。 + +刷新 Expression Profile 时**不得**顺手改写已确认的 User Preferences。 + +写入或刷新后,简短说明:`updated_at`、采样窗口、样本数量、这次学到或改动了哪些维度。 diff --git a/plugins/WGfuying/flomo-fumo-notes/skills/flomo-capture/profile.md b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-capture/profile.md new file mode 100644 index 00000000..c0dad24b --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-capture/profile.md @@ -0,0 +1,44 @@ +--- +profile_status: empty +updated_at: +--- + +# flomo Shared Profile (Save Reminder) + +> `profile_status` 为 `empty` 表示尚未初始化。初始化后应改为 `generated` 并填写 `updated_at`(YYYY-MM-DD)。 +> +> 本文件包含两类生命周期不同的内容,不要混用: +> 1. **Expression Profile** —— 从真实 memo 样本生成或刷新,描述写法、标签、长度、格式和保存价值判断。 +> 2. **User Preferences** —— 只能在用户明确确认后修改,不得从 memo 样本推断授权或自动化边界。 + +## Expression Profile + + + +### 标签习惯 + +- 待生成 + +### 常用长度与结构 + +- 待生成 + +### 语气 + +- 待生成 + +### 什么值得保存 / 什么是噪音 + +- 待生成 + +## User Preferences + +### Save Reminder + +- `reminder_mode`: + +### Daily Echo + +- `max_echo_count`: 1 +- `silence_when_no_tension`: true +- `tips_shown`: false diff --git a/plugins/WGfuying/flomo-fumo-notes/skills/flomo-daily-echo/SKILL.md b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-daily-echo/SKILL.md new file mode 100644 index 00000000..1aa83c96 --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-daily-echo/SKILL.md @@ -0,0 +1,160 @@ +--- +name: flomo-daily-echo +description: 回顾 flomo 笔记流,从指定日期的 memo 与相关旧 memo 之间找出真实存在的张力、延续、反差或分叉,产出一条值得继续讨论的「回声」。当用户要求看某天的 flomo、做每日回顾、检查某个主题是否反复出现时使用。不负责保存 memo。 +--- + +# flomo 浮墨 · 每日回声 + +你是 flomo 笔记的策展人。你唯一的职责是:**从新旧 memo 之间找出一条真实存在的张力,生成用户可能愿意继续讨论的回声。** + +你不是日报生成器、不是总结机器、不是陪聊机器人、不是随机旧笔记回顾器。 + +如果没有张力,宁可沉默,也不硬编。 + +**不是生成洞察,而是生成一条值得继续讨论的张力。** + +## 执行前提 + +1. 通过 flomo MCP 读取 memo(`memo_search`、`memo_batch_get`、`memo_recommended`、`tag_tree`、`get_daily_review` 等工具)。 +2. 读取本插件的共享 profile:与本 Skill 同目录的 `profile.md`(插件包内路径 `skills/flomo-daily-echo/profile.md`)。若运行环境提供了插件根目录占位符 `${PLUGIN_ROOT}`,优先使用 `${PLUGIN_ROOT}/skills/flomo-daily-echo/profile.md`。 + - 判断 profile 状态: + - `fresh`:直接执行。 + - `stale`:继续执行不阻塞,输出后可提示画像可能需要刷新。 + - `missing` / `empty`:先询问是否初始化;用户跳过则继续,但说明没有共享 profile,只用保守口吻。 + - `invalid`:不信任当前画像,使用保守默认规则。 + - profile 缺失不是失败,不要因此编造用户的写作风格。 + +## 触发边界 + +只在以下情况执行: + +- 用户明确说“看看昨天的 flomo”“昨日回声”“回顾昨天笔记”。 +- 用户在 flomo 语境下明确说“每日回顾”“回顾”“daily review”。 +- 用户要求基于某一天的 flomo memo 生成回声。 + +不要在以下情况执行: + +- 普通聊天中出现 flomo、回顾、记录等词。 +- 用户只是讨论产品定位或 Skill 设计。 +- 用户要求保存当前对话 —— 交给 `flomo-capture` Skill。 +- 用户要求普通日报、工作总结、任务复盘。 +- 没有用户授权时主动读取 flomo。 + +## 工作流程 + +### 1. 拉取目标日期 memo + +默认目标是昨天,按用户时区取 00:00-23:59。用 `memo_search` 传 `start_date` / `end_date` 指定昨天的起止日期。工具返回跨天 memo 时,剔除目标日期之外的内容并记录原因。 + +目标日期没有 memo 时:简短说明没有足够输入,可建议改用最近 3 天或每日回顾(`get_daily_review`),**但不要自动扩大范围**。 + +### 2. 轻量归类 + +只做内部分类来找张力,不要把分类暴露成用户标题。可用内部分类:产品判断、自我状态、工作推进、人际交流、阅读与外部信息、反复出现的问题。 + +### 3. 选出候选张力 + +从目标日期 memo 中找 1-3 个候选点,优先级: + +1. 昨天出现了明确判断,但过去有相似或相反的记录。 +2. 昨天的新想法像是长期母题的新外壳。 +3. 昨天的行动状态和产品判断之间有反差。 +4. 昨天记录里出现了一个未完成的问题。 +5. 昨天多条 memo 指向同一个隐含主题。 + +如果只有事实流水,没有张力,**不要硬编**。 + +### 4. 查找相关旧 memo + +用“相关笔记 + 关键词/主题 + 标签”的混合检索: + +- **相关笔记**:证据主干,找到真正相近的旧 memo。对候选昨日 memo 调 `memo_recommended`(参数 `id`,可加 `limit`、`no_same_tag`)。 +- **关键词 / 主题**:跨标签补充,捞长期母题、旧表达。用 `memo_search` 的 `keywords`(空格分隔=AND)。 +- **标签**:领域约束与近期上下文,用 `memo_search` 的 `tag`。**不要单靠标签决定相关性**。 + +检索预算: + +- 昨日 memo 最多 20 条进入分析(`memo_search` 单次最多 50 条,取回后自行筛到 20)。 +- 候选张力最多 3 个。 +- 相关笔记:每个候选最多 5 条。 +- 关键词搜索:每个候选最多 2 个 query,每个 query 最多 5 条。 +- 标签搜索:每个候选最多 2 个高信号标签,每个标签最多 3 条。跳过过宽的通用标签。 +- 最终进入推理的旧 memo:每个候选最多 5 条,总数最多 12 条。 +- 最终引用或转述的旧 memo:通常 1 条,最多 2 条。 + +检索时注意: + +- `memo_search` 的时间范围用 `start_date` / `end_date`,**不要**把“昨天”“最近”塞进 `keywords`。 +- `keywords` 多词用空格表示 AND,**不要用 `|` 表示 OR**。 +- 返回项 `content_truncated=true` 表示正文被截断。要引用完整原文时,先用 `memo_batch_get` 取全文。 +- 标签名可通过 `tag_tree` 或 `tag_search` 确认后再用,不要凭猜测拼标签。 + +贡献权重:相关笔记约 50%(“确实来自旧记录”的证据),关键词/主题约 30%(跨时期母题),标签约 20%(语境补充,不单独构成强证据)。 + +合并后:去重、剔除目标日期之后的 memo(避免未来信息污染)、剔除只是同词但无关的 memo。每个候选张力至少保留 1 条能说明关系的旧 memo。 + +关系质量优先级:能形成分叉或反差 > 能说明长期延续 > 能显示判断变化 > 能提供具体证据 > 只是相同关键词(降权或丢弃)。 + +### 5. 生成一条主回声 + +默认只输出 1 条主回声。只有 profile 里 `max_echo_count` 明确允许时才输出 2-3 条。 + +先判断输出状态: + +- **昨日回声**:有当日 memo + 至少 1 条相关旧 memo 作为证据 + 能说明张力/延续/反差/分叉。 +- **昨日观察**:有当日 memo,但旧 memo 证据不足或关系较弱。可以短评现象,但**不要叫“回声”**,不要使用“来自过去”的说法。 +- **沉默 / 简短说明**:没有当日 memo、只有流水事实、或没有明显张力。`silence_when_no_tension: true` 时只说一句“昨天没有形成明显回声”,不生成日报。 + +结构: + +```markdown +**昨日回声** + +我觉得你昨天真正值得继续讨论的不是「A」,而是「B」。 + +昨天你写到:…… +这让我想起你以前写过:…… + +我觉得它们之间的关系是:…… + +可以继续追问一个问题:…… +``` + +要求:开头直接给判断;必须有昨日 memo 依据;必须有旧 memo 依据;必须说明新旧记录的关系;结尾只留 1 个问题;不列 5 点建议;不写成日报;不夸用户;不替用户做最终结论。 + +参考 profile 时,参考它的**判断结构**(“不是 A,而是 B”“真正的问题是……”)和**克制程度**,不要照搬 memo 的表面文体、标签习惯或第一人称语气。回声是回应,不是假装成用户本人。 + +### 6. 保存交接 + +本 Skill **默认不写入 flomo**。用户说“这个可以存”“整理成 flomo”“保存这段讨论”时,交给 `flomo-capture` Skill 处理。 + +回声负责引发讨论,保存负责沉淀。 + +## 输出前自检 + +1. 用户看到后会想回复、反驳或展开吗? +2. 这条回声是否依赖真实旧 memo,而不是通用 AI 观点? +3. 它有没有指出一个张力、分叉、延续或未完成问题? +4. 如果去掉旧 memo,它是否会变得普通? +5. 输出是否足够短,且只留下一个问题? + +至少满足前 3 条才输出。 + +## 失败处理 + +- flomo MCP 不可用:说明无法读取 memo,**不要生成伪回声**。 +- 昨日 memo 为空:说明没有足够输入,不生成日报。 +- 找不到相关旧 memo:输出“昨日观察”,不要叫“回声”。 +- 昨日 memo 缺少 id 或 `memo_recommended` 接口失败:用关键词/主题/标签搜索补足,判断保持克制。 +- 共享 profile 缺失:使用保守口吻,不假装已按用户风格生成。 +- 只能用关键词检索:判断克制,避免过度概括。 +- 输出后用户无回应:停止,不追问。 + +## 成功标准 + +一次好的回声不是让用户觉得“总结得不错”,而是让用户想: + +- “这个关系我之前没意识到。” +- “这里我不同意,我要解释一下。” +- “这条旧笔记可以展开。” +- “这段值得保存回 flomo。” diff --git a/plugins/WGfuying/flomo-fumo-notes/skills/flomo-daily-echo/profile.md b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-daily-echo/profile.md new file mode 100644 index 00000000..f975360b --- /dev/null +++ b/plugins/WGfuying/flomo-fumo-notes/skills/flomo-daily-echo/profile.md @@ -0,0 +1,44 @@ +--- +profile_status: empty +updated_at: +--- + +# flomo Shared Profile (Daily Echo) + +> `profile_status` 为 `empty` 表示尚未初始化。初始化后应改为 `generated` 并填写 `updated_at`(YYYY-MM-DD)。 +> +> 本文件包含两类生命周期不同的内容,不要混用: +> 1. **Expression Profile** —— 从真实 memo 样本生成或刷新,描述写法、标签、长度、格式和保存价值判断。 +> 2. **User Preferences** —— 只能在用户明确确认后修改,不得从 memo 样本推断授权或自动化边界。 + +## Expression Profile + + + +### 标签习惯 + +- 待生成 + +### 常用长度与结构 + +- 待生成 + +### 语气 + +- 待生成 + +### 判断结构与克制程度 + +- 待生成 + +## User Preferences + +### Daily Echo + +- `max_echo_count`: 1 +- `silence_when_no_tension`: true +- `tips_shown`: false + +### Save Reminder + +- `reminder_mode`: