/twinmind:queryfrom twinmind
Searches stored cards by domain, type, status, or keyword, and recommends semantically related cards via AI language understanding. Queries inbox, action, task, area, and project data from the vault index.
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.
None: SKILL.md is the whole skill.
TwinMind 查詢引擎。處理所有索引查詢和卡片推薦操作。
本 skill 為唯讀操作,不修改任何檔案,不需調用 /twinmind:post-op。
所有查詢操作皆從 vault-index.json 的記憶體內資料執行,不掃描檔案系統。共通模式:遍歷 notes → 篩選條件 → 回傳匹配欄位 → 空態提示。
當使用者要求列出特定領域的卡片時(如「列出所有 technology 領域的卡片」):
vault-index.json 的 notes 遍歷所有條目domain 陣列包含指定 domain 的 notesdomain 包含任一指定值即匹配title、type、status、path當使用者要求按類型或成熟度篩選卡片時(如「列出所有 seed 狀態的 concept」):
vault-index.json 的 notes 遍歷所有條目type 等於指定值(concept / insight / source / question)status 等於指定值(seed / growing / evergreen)title、type、status、path當使用者以關鍵字搜尋卡片時(如「搜尋跟 Rust 相關的筆記」):
vault-index.json 的 notes 遍歷所有條目title 和 summary 進行比對:
title 匹配的排在前面,僅 summary 匹配的排在後面title、type、status、path、summary當使用者詢問領域分佈(如「各領域有多少卡片?」)時:
vault-index.json 的 stats.domains 取得所有 domain 與計數stats.total_cards 總數stats.domains 為空物件:回報「目前尚無任何領域分類」當使用者要求推薦相關卡片時(如「跟 CAP 定理相關的卡片有哪些?」「有沒有跟記憶體管理相關的筆記?」),AI 執行以下步驟:
Step 1 — 判斷查詢來源
接收使用者的卡片 title 或自然語言描述作為查詢輸入。
vault-index.json 中某筆 note 的 title → 以該卡片為查詢錨點,記錄其 ID(用於自我排除和連結標示)Step 2 — 語意比對
遍歷 vault-index.json 中所有 notes,對每筆 note 進行語意比對:
title、summary、domain 進行語意比較(依賴 Claude 的語言理解能力判斷概念相似度,非向量嵌入)Step 3 — 自我排除
若 Step 1 確認查詢精確匹配某既有卡片,從比對結果中排除該卡片本身。
Step 4 — 已連結標示
若 Step 1 確認了查詢錨點卡片,對每筆推薦結果檢查:
links_to 或 linked_from 中## Connections 區塊,找出關係類型符號Step 5 — 回傳結果
取排序後的前 5 筆結果,每筆包含:
| 欄位 | 說明 |
|---|---|
| title | 卡片標題 |
| type | 卡片類型 |
| status | 成熟度 |
| path | 檔案路徑 |
| reason | 一句話說明為何相關 |
| linked | (選填)已連結標示,含關係類型符號 |
邊界情況:
notes 為空物件):回報「知識庫尚無卡片」所有行動層查詢從 vault-index.json 讀取,不掃描檔案。
當使用者詢問 Inbox 狀態時(如「inbox 有什麼待處理」「列出 inbox」):
inbox 篩選符合條件的項目(預設 status == "pending")created 降序排列當使用者詢問 Actions 時(如「列出 actions」「有哪些行動」):
standalone_actions 篩選(預設 status == "active",可指定 all/done)當使用者詢問獨立 Tasks 時(如「列出 tasks」「待辦清單」):
standalone_tasks 讀取當使用者詢問 Areas 時(如「列出 areas」「關注領域」):
areas 讀取,按 status 分組(active / inactive)當使用者詢問特定專案的 actions 或 tasks 時(如「build-blog 的 actions」):
projects[name].actions 讀取 action 列表projects[name].tasks_total / tasks_done 讀取統計PARA/Projects/<name>/actions.md 或 tasks.mdWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub volderlu/twinmind --plugin twinmind13 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./captureTwinMind card engine. Use this whenever the user shares a thought, idea, knowledge, question, or source reference that should be captured as a card. Also handles card updates and deletions. Covers the full lifecycle: type classification, duplicate detection, card creation, automatic link inference to existing cards, and index updates. If the user says something that looks like knowledge worth remembering — this is the skill to use. For vague or unformed thoughts, route to twinmind:inbox instead./connectTwinMind link engine for manual connections. Use when the user explicitly asks to link or unlink two specific cards (e.g. '把 X 和 Y 連起來', 'link X to Y', 'disconnect X from Y'). Handles relationship type classification, bidirectional link writing, and index updates. Not for automatic link inference during card creation — that's handled by twinmind:capture./enrichTwinMind card enrichment engine. Use this whenever the user wants to deepen, expand, or intellectually complete an existing vault card. Triggers on: 'enrich {card}', 'enrich {card} → growing', '完善 {card}', '深化 {card}', '把 {card} 發展成 growing', '補充 {card} 的概念', 'expand {card}', '讓 {card} 更完整'. The user provides only the card name and optional focus hints — the AI autonomously identifies content gaps and generates comprehensive content across six dimensions: concept explanation, origin/story, examples, related terms (abstraction/lateral/decomposition), practical applications, and common misconceptions vs counter-intuitive insights. Always use this skill when the user wants a card to grow intellectually, not just receive new facts./inboxTwinMind inbox engine — the safety net for half-formed thoughts. Use this skill whenever the user shares something vague, unstructured, or not yet ready to become a Card, Action, Task, or Project. Classic triggers: '突然想到...', '隨手記一下', '有個想法但還不確定', 'inbox', '升格', 'promote', 'dismiss', '清理 inbox', 'triage', '待處理'. Also use this when the user's input is ambiguous — if you can't tell whether it's knowledge, a task, or an action, it belongs in the Inbox. The key question: does the user know what this should become? If not → Inbox. Important: do NOT use this for inputs that are already clear — a fact goes to twinmind:capture, '買牛奶' goes to twinmind:task, a scoped action goes to twinmind:action.Other plugins' skills for the same job