/twinmind:enrichfrom twinmind
Enriches TwinMind vault cards by autonomously generating content across six dimensions: concept explanation, origin, examples, related terms, applications, and misconceptions.
Ships in twinmind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
從使用者輸入提取:
| 參數 | 必填 | 說明 |
|---|---|---|
target_card | ✓ | 卡片名稱或 slug(比對 title 或 path) |
target_status | 選填 | 目標狀態;預設升一級(seed→growing,growing→evergreen) |
focus | 選填 | 內容焦點方向,如「實踐步驟」、「神經科學機制」、「哲學含意」 |
從 vault/System/vault-index.json 定位 target_card(比對 title 或 path slug)。讀取對應的卡片檔案,取得當前內容、status、domain、現有連結。
若找不到卡片,告知使用者並結束。
讀取 vault/System/vault-index.json,掌握:
依照下方「六個內容維度」生成所有 section 的內容。
使用者有 focus 方向時,在對應維度加深處理;其他維度維持標準深度。
以完整內容重寫卡片檔案(全量覆寫,不是追加)。更新 frontmatter:
status:升格至 target_statusupdated:今天日期(YYYY-MM-DD)保留原有 id、created、type、domain、source、related_projects。
在 vault/System/vault-index.json 中更新 target_card 的 entry:
status:新狀態summary:根據新內容重寫(1–2 句,精確反映新增內容的重點)links_to:加入新連結卡片的 ID(來自 Connections section)link_count:重新計算(target_card 連接的 unique 節點數,links_to ∪ linked_from)stats.total_links:加上新增的 links_to 數量同時更新每張新連結卡片的 linked_from(加入 target_card ID)和 link_count。
一致性原則:target_card 的 links_to 更新,與每張新連結卡片的 linked_from 更新,必須在同一次 Edit 操作中完成。 Hook 在每次寫入後驗證雙向一致性——若分步寫入,會因瞬間不一致而被攔截。解法:將所有需要變更的 entry 合併成一個連續的 JSON 區塊,一次替換。
寫入順序:必須完成所有 vault-index.json 更新後,才能啟動 subagent。
在對應的 vault/Atlas/*.md MOC 檔案中,將該卡片條目的狀態 emoji 更新:
🌱 seed → 🌿 growing🌿 growing → 🌲 evergreen若找不到對應 MOC,略過此步驟(不強制建立)。
透過 Agent tool(run_in_background: true)啟動 post-op pipeline,立即回應使用者,不等待。
Post-op payload:
{
"task": "post-op",
"layer": "knowledge",
"event_type": "CARD_UPDATED",
"event_context": {
"card_id": "<id>",
"card_title": "<title>",
"card_path": "<path>",
"domains": ["<domain>"],
"status_change": "<old_status>→<new_status>"
},
"config": {
"moc_threshold_create": "<從 config.md 取值>",
"moc_threshold_split": "<從 config.md 取值>",
"recent_cards_count": "<從 config.md 取值>",
"vault_name": "<從 config.md 取值>"
},
"domain_counts": {
"<domain>": "<從 vault-index.json stats.domains 取值>"
},
"total_cards": "<從 vault-index.json stats.total_cards 取值>",
"recent_notes": [
{ "title": "...", "path": "...", "created": "YYYY-MM-DD", "status": "...", "type": "...", "domain": ["..."] }
],
"changelog_path": "vault/System/changelog-YYYY-MM.md",
"existing_moc_titles": ["Technology", "Learning"]
}
config、domain_counts、total_cards、recent_notes 從 main agent context 中已有的 config.md 和 vault-index.json 資料填充。changelog_path 由 main agent 取當前月份計算。existing_moc_titles 由 main agent 從 vault/Atlas/ 掃描取得。Subagent 執行 changelog(append-only 至 changelog-YYYY-MM.md)+ MOC 閾值檢查(使用 payload config 和 domain_counts)+ Home.md 重建(使用 payload recent_notes,不重新讀取 vault-index.json 取最新卡片)。
每次 enrich 必須覆蓋所有六個維度,每個維度對應卡片中一個 H2 section。目標:讀完這張卡片的人應能向他人解釋這個概念,知道它從哪來、有哪些具體案例、如何延伸探索、如何實際應用,以及有哪些常見的認知陷阱。
包含:
Section 標題:通常即為卡片主標題(H1),後接機制說明。或用 ## 核心機制 作為子節。
包含:誰提出或發現這個概念、何時、在什麼情境下、原本是為了解決什麼問題。不需要完整傳記,1–3 段即可。
若概念沒有明確的發現者(如自然現象或民間智慧),描述它是如何被系統化研究的。
Section 標題:## 由來與故事 或 ## 起源
提供 2–3 個具體案例,來自不同情境(如:學術研究 + 日常生活 + 專業應用)。案例是真實發生的實例或可觀察的現象,不是比喻。
Section 標題:## 案例
分三個探索層次,每層 2–6 個詞彙,每個詞彙附一句說明:
## 相關名詞
### 抽象層(往上)
這個概念屬於哪個更大的框架或理論?
- **名詞** — 為什麼值得往這個方向探索
- **[[已存在的卡片slug|名詞]]** — 說明(vault 中已有卡片,用 wikilink 標示)
### 橫向探索(同層)
有哪些兄弟概念,跟這個概念在同一個鄰近空間?
- **名詞** — 它跟本概念的關係或核心差異
### 拆解層(往下)
這個概念由哪些子元件或具體實作組成?
- **名詞** — 它是本概念的哪個部分
關鍵: 若某個相關名詞在 vault 中已有對應卡片(從 Step 2 的卡片清單比對),用 wikilink 標示:**[[slug|名詞]]**。這讓使用者能直接跳轉探索。
提供具體可操作的指引,不是泛泛建議。可包含:
Section 標題:## 應用方式 或 ## 應用與啟發
分兩個子節:
## 常見偏誤 vs 反直覺
### 常見偏誤
人們在理解或應用這個概念時最常犯什麼錯誤?
- **偏誤名稱** — 描述這個錯誤的具體形式,以及為什麼人容易掉進這個陷阱
### 反直覺洞見
這個概念中有哪些違反直覺、或讓人第一次聽到會覺得「這怎麼可能」的地方?
- **洞見陳述** — 為什麼這件事反直覺,以及為什麼它是真的
撰寫原則:
Section 標題:## 常見偏誤 vs 反直覺
保持在卡片最末尾。格式:
## Connections
- <符號> [[<slug>|<title>]] — 連結理由(具體說明這條連結的知識意義)
關係符號:~(相關)、→(啟發)、⇒(支持)、⊂(包含)
從「相關名詞」中識別出的 vault 既有卡片,若語意關係強,加入 Connections。不要把相關名詞全部加進來 — 只選有真實知識關聯的連結,每條連結都要能用一句話說清楚「為什麼這兩個概念有關係」。
✓ <card-title> 已升格為 <new-status>
**新增內容:**
- 由來:<一句話摘要>
- 案例:<n> 個(<情境1>、<情境2>...)
- 相關名詞:<n> 抽象 / <n> 橫向 / <n> 拆解
- 應用:<一句話摘要>
- 偏誤 vs 反直覺:<n> 個偏誤 / <n> 個反直覺洞見
**連結變更:** +<n> 個新連結
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/actionTwinMind action engine — manages standalone actions that aren't tied to any project. Use this skill when the user describes something they want to do that has a clear scope but doesn't belong to a project. Triggers: '建立行動', 'create action', '新增 action', '完成 action', 'action done', '做完了', '列出 actions', 'list actions', '升格為專案', 'promote to project', or when the user describes an executable goal like '研究 X', '設定 Y', '整理 Z'. Also use when the user says an action is getting too big and needs to become a project. Important: if the user mentions a specific project name, route to twinmind:project instead — that skill handles project-scoped actions./areaTwinMind area engine — manages Areas of ongoing responsibility (long-term focus domains with no end date). Use this skill when the user talks about a persistent life/work domain they want to track, like '健康管理', '職涯發展', '財務規劃', or when they want to group projects and cards under a theme. Triggers: '建立領域', 'create area', '新增 area', '停用 area', 'deactivate', '重新啟用', 'reactivate', '關聯到 area', 'link to area', '列出 areas', 'list areas', '關注領域', or any mention of ongoing responsibilities, life domains, or thematic grouping of projects. Important: Areas are different from Projects (which have end dates) and from card domains (which are metadata tags). An Area is a conscious commitment to track a life domain.npx claudepluginhub volderlu/twinmind --plugin twinmindOther plugins' skills for the same job