diff --git a/.claude/memory/MEMORY.md b/.claude/memory/MEMORY.md index 0698272..fe0252a 100644 --- a/.claude/memory/MEMORY.md +++ b/.claude/memory/MEMORY.md @@ -1,9 +1,9 @@ # Memory Index -> _Last synced: 2026-05-01 | Base commit: `0c46ed0`_ +> _Last synced: 2026-05-08 | Base commit: `9c91382`_ | 文件 | 描述 | 类型 | 引用 | Commit | |------|------|------|------|--------| -| decisions.md | 关键架构决策:无版本号/userConfig/Bearer Token/SKILL.md规范 | project | 1 | 0c46ed0 | -| project_overview.md | 项目定位、目录结构、插件规范、发布流程 | project | 1 | 0c46ed0 | +| decisions.md | 关键架构决策:无版本号/userConfig/Bearer Token/SKILL.md规范/路径锁定 | project | 1 | 9c91382 | +| project_overview.md | 项目定位、目录结构、插件规范、发布流程(huanxi/memcore/obsidian) | project | 1 | 9c91382 | | feedback_plugin_dev.md | 插件开发协作规范:同步四处/路径解析/工具签名对照 | feedback | 0 | 0c46ed0 | | lint_report.md | memory-lint 最新执行结果 | lint | 0 | 0c46ed0 | diff --git a/.claude/memory/decisions.md b/.claude/memory/decisions.md index 34bb171..2aaab4c 100644 --- a/.claude/memory/decisions.md +++ b/.claude/memory/decisions.md @@ -2,8 +2,8 @@ name: 架构决策 description: Marketplace 设计中的关键技术决策及其原因 type: project -last_updated: 2026-05-01 -commit: 0c46ed0 +last_updated: 2026-05-08 +commit: 9c91382 --- # 关键架构决策 @@ -51,6 +51,18 @@ commit: 0c46ed0 --- +## memcore memory-update/lint 路径锁定:禁止写入系统自动记忆路径 + +**结论**:`memory-update` 和 `memory-lint` 的唯一操作路径锁定为 `$PROJECT_DIR/.claude/memory/`;严禁写入 `~/.claude/projects/*/memory/`;两个技能执行期间不触发 auto memory 系统写入。 + +**Why**:Claude Code 的 auto memory 是 system-level 指令,在技能执行期间始终有效。若技能只在 description 中说"不推送远程"而无显式路径约束,AI 会在执行 memory-update/lint 时被 auto memory 指令并发触发,将内容写入系统级路径(`~/.claude/projects/xxx/memory/`),背离"项目本地 .claude/memory/ 是唯一权威"的初衷。 + +**How to apply**:两个技能均在正文最前加"⚠ 路径锁定"块(含禁止路径清单 + 执行前断言代码),memory-sync 的 Phase 3 加方向锁定注释(Phase 10 是唯一远程写入窗口)。未来新增操作本地记忆的技能也应遵循同等约束。 + +**See Also**:[[project_overview.md#已发布插件]] + +--- + ## SKILL.md frontmatter 只保留 name 和 description **结论**:SKILL.md frontmatter 只写 `name` 和 `description` 两个字段,去掉 `version`。 diff --git a/.claude/memory/lint_report.md b/.claude/memory/lint_report.md index aec2926..0a35e96 100644 --- a/.claude/memory/lint_report.md +++ b/.claude/memory/lint_report.md @@ -2,28 +2,27 @@ name: 记忆健康检查报告 description: memory-lint 最新一次执行的检查结果与待处理项 type: lint -last_updated: 2026-05-01 +last_updated: 2026-05-08 --- # 记忆健康检查报告 -> _执行时间: 2026-05-01 | Base commit: `0c46ed0` | Last synced: 2026-05-01_ +> _执行时间: 2026-05-08 | Base commit: `9c91382` | Last synced: 2026-05-08_ ## 健康概览 | 检查项 | AUTO-FIX | NEED-HUMAN | |--------|---------|-----------| -| 1 孤儿 / 2 幽灵 / 3A 引用 / 3B 双链 | 0 / 0 / 0 / 1 | — / — / 0 / 0 | +| 1 孤儿 / 2 幽灵 / 3A 引用 / 3B 双链 | 0 / 0 / 0 / 0 | — / — / 0 / 0 | | 4 矛盾 / 5 过期 / 6 污染 | — | 0 / 0 / 0 | -**AUTO-FIX 已执行 1 项 | NEED-HUMAN 待处理 0 项** +**AUTO-FIX 已执行 0 项 | NEED-HUMAN 待处理 0 项** --- ## AUTO-FIX 已执行清单 -- [x] 补入反向链接:`project_overview.md → ## 已发布插件` 末尾追加 `See Also: [[decisions.md#...]]` -- [x] MEMORY.md「引用」列已刷新(3 文件,按引用倒序) +无 --- diff --git a/.claude/memory/project_overview.md b/.claude/memory/project_overview.md index 8578cdc..d28afb3 100644 --- a/.claude/memory/project_overview.md +++ b/.claude/memory/project_overview.md @@ -2,8 +2,8 @@ name: 项目概述 description: yixiong-claude-marketplace 的定位、目录结构、插件规范和发布流程 type: project -last_updated: 2026-05-01 -commit: 0c46ed0 +last_updated: 2026-05-08 +commit: 9c91382 --- # 蚁熊内部 Claude Code Marketplace @@ -62,6 +62,7 @@ description: "触发描述(用户实际口语,不用内部视角)" |------|------|------| | `huanxi` | 6 个(report/leader/task/weekly/org/shared) | userConfig Bearer Token + MCP Server | | `memcore` | 3 个(memory-sync/lint/update) | 纯技能,无 MCP | +| `obsidian` | 9 个(obsidian/bases/daily/history/meta/plugins/search/tasks/workflow-pkm) | 纯技能,无 MCP | **See Also**:[[decisions.md#huanxi plugin 使用 userConfig 而非环境变量传 Token]] diff --git a/CLAUDE.md b/CLAUDE.md index 27513e2..0716d2f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,4 +1,4 @@ - + # CLAUDE.md This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. @@ -78,6 +78,7 @@ description: 一句话说明该技能的用途(Claude 用此判断何时触发 |------|------|------| | `huanxi` | `/huanxi-shared` `/huanxi-report` `/huanxi-leader` `/huanxi-task` `/huanxi-weekly` `/huanxi-org` | 寰汐企业管理系统完整工作流,含 MCP Server 自动配置 | | `memcore` | `/memory-sync` `/memory-update` `/memory-lint` | 项目记忆体系核心引擎 | +| `obsidian` | `/obsidian` `/obsidian-bases` `/obsidian-daily` `/obsidian-history` `/obsidian-meta` `/obsidian-plugins` `/obsidian-search` `/obsidian-tasks` `/obsidian-workflow-pkm` | Obsidian 知识库完整工作流(9 个技能) | ### memcore 技能调用关系