skills/setup/SKILL.md
Initialize a new TwinMind vault in the current directory. Creates TwinMind.md configuration and vault directory structure from templates. Use when starting a fresh knowledge vault or setting up TwinMind in a new project.
npx skillsauth add VolderLu/TwinMind setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Initialize a new TwinMind vault in the current working directory.
Before proceeding, check for existing installations:
.claude/skills/tm-* directories exist → Warn: "Detected old-style TwinMind installation (.claude/skills/tm-*). This plugin-based setup is separate. Consider removing old files to avoid confusion."<vault_dir>/ already exists with content. Setup will not overwrite existing vault data. Only missing structure files will be created."If all checks pass or user confirms, proceed.
Ask the user for customization (or accept defaults):
vaultzh-TWSetup needs the plugin's absolute path to copy templates from. Read <cwd>/.claude/twinmind/config.json with the Read tool and use its pluginRoot field as <plugin-root> in the steps below.
Cold-start fallback: if <cwd>/.claude/twinmind/config.json does not exist, the SessionStart hook has not run for this vault yet (TwinMind.md is required to trigger it). In that case:
<cwd>/TwinMind.md with minimal frontmatter (just vault_dir: vault\nvault_name: TwinMind\nlocale: zh-TW).exit 退出 Claude Code,然後 claude 重新啟動 session (讓 SessionStart hook 寫入 plugin 路徑),再次執行 /setup 完成餘下步驟。"<plugin-root>/templates/TwinMind.md to <cwd>/TwinMind.md.vault_dir, locale, domains).<plugin-root>/templates/vault/ directory structure to <cwd>/<vault_dir>/:
System/, Cards/, Sources/, Atlas/, PARA/Inbox/, PARA/Actions/, PARA/Projects/, PARA/Archive/, PARA/Areas/, PARA/Tasks/.System/vault-index.json, Home.md, PARA/Dashboard.md..gitignore in <cwd> if not exists, listing both .obsidian/ and .claude/twinmind/ (the latter holds plugin-generated shims that regenerate on every session start).Report:
<vault_dir>/testing
TwinMind task engine — manages standalone tasks (life chores, errands, quick todos). Use this skill when the user mentions a simple, concrete thing they need to do that doesn't belong to any project or action. Classic triggers: short imperative sentences like '買牛奶', '繳電費', '回覆 email', '預約牙醫', or explicit task operations like '加個待辦', 'add task', 'task done', '完成 task', '刪除 task', 'delete task', '列出 tasks', 'list tasks', '待辦清單'. The distinguishing feature of a standalone task is that it's too small for an Action and not tied to any project. If the user mentions a project name, route to twinmind:project. If it's a multi-step endeavor, consider twinmind:action instead.
development
Classifies user knowledge-base input into one of 9 intent categories (capture, inbox, query, project, action, task, area, review, connect) using signal words, priority rules, compound intent handling, and fuzzy fallback matching. Invoke BEFORE dispatching to any twinmind:* skill when the user provides knowledge-base input. Do NOT skip this step — the session startup skeleton only has a summary table; this skill has the complete rules needed for accurate classification.
development
TwinMind review and maintenance engine. Use for vault health checks, seed card review, index verification/rebuild, MOC management, and vault status summaries. Triggers on: 'vault status', '知識庫狀況', 'health report', '健康報告', 'verify index', '檢查索引', 'rebuild index', '重建索引', 'review seeds', '有哪些 seed', 'update MOC', or any request about knowledge base maintenance and overview.
data-ai
Searches stored cards by domain, type, status, or keyword. Recommends semantically related cards using AI language understanding. Queries inbox, action, task, area, and project data from the vault index. Use when the user asks to search, find, list, filter, or browse cards, or wants recommendations for related content. Triggers: '搜尋', '找', 'search', 'find', '列出', 'list', '有沒有', '跟X相關的', '有幾張', 'how many', '統計'.