wiki-mode

GitHub

根据用户设定的笔记库方法论(如 PARA、LYT、Zettelkasten)读取配置并建议知识归档路径。支持路由查询与模式切换,确保路径安全校验,不直接写入内容。

skills/wiki-mode/SKILL.md AgriciDaniel/claude-obsidian

触发场景

设置 vault 模式 切换至 PARA 获取笔记归档建议 查询当前知识库方法

安装

npx skills add AgriciDaniel/claude-obsidian --skill wiki-mode -g -y
更多选项

不安装直接使用

npx skills use AgriciDaniel/claude-obsidian@wiki-mode

指定 Agent (Claude Code)

npx skills add AgriciDaniel/claude-obsidian --skill wiki-mode -a claude-code -g -y

安装 repo 全部 skill

npx skills add AgriciDaniel/claude-obsidian --all -g -y

预览 repo 内 skill

npx skills add AgriciDaniel/claude-obsidian --list

SKILL.md

Frontmatter
{
    "name": "wiki-mode",
    "description": "Read or configure the vault filing methodology and suggest destinations for planned knowledge creation under Generic, LYT, PARA, or Zettelkasten. Use for wiki mode, methodology mode, what is my vault mode, set vault mode, switch to PARA, use LYT, Zettelkasten setup, change mode, configure mode, or methodology routing. This skill does not save content or migrate notes."
}

Route by vault methodology

This skill returns filing suggestions. It does not write knowledge pages or move existing notes. If .vault-meta/mode.json is absent, use generic. If the file exists but is invalid, fail closed and repair it through a reviewed configuration operation before suggesting routes; never silently substitute Generic for corrupt user configuration.

Resolve the installed product root from this skill's own location, not from the vault or current working directory:

PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
CORE="$PRODUCT_ROOT/scripts/claude-obsidian.py"
MODE_HELPER="$PRODUCT_ROOT/scripts/wiki-mode.py"
test -f "$CORE" && test -f "$MODE_HELPER"

Every ../wiki/references/ link in this file resolves the same way, relative to this skill's own directory under $PRODUCT_ROOT, never relative to the selected vault's wiki/ directory.

Read and route safely

Always select the vault explicitly:

python3 "$MODE_HELPER" --vault "$VAULT" get
python3 "$MODE_HELPER" --vault "$VAULT" config
python3 "$MODE_HELPER" --vault "$VAULT" route concept "Concept name"
python3 "$MODE_HELPER" --vault "$VAULT" route source "Source title"

The helper validates the selected vault, confines paths, sanitizes names, and prints a suggestion only. A calling skill may override the suggestion when the user supplies a more specific project, area, MOC, or parent note, but it must still apply its eventual writes through one operation transaction.

Mode Routing intent
generic Type-based folders such as sources, entities, concepts, and sessions.
lyt Atomic notes under wiki/notes/, connected through MOCs.
para Projects, Areas, Resources, or Archives chosen by actionability.
zettelkasten Flat atomic notes with time-sortable, collision-resistant identifiers and explicit links.

Use the templates under templates/ as structural guidance, not authority to overwrite user conventions.

Change mode

A mode change is one configuration operation, dry-run first:

  1. Read the current .vault-meta/mode.json, or start from the helper's default config when it is absent.

  2. Validate the requested mode as exactly generic, lyt, para, or zettelkasten. Preserve the other mode-specific settings.

  3. Choose and retain a pinned UTC timestamp and operation ID for both commands.

  4. Preview the canonical configuration transaction; the command records the current target hash and limits the write to .vault-meta/mode.json:

    python3 "$CORE" mode set "$MODE" --vault "$VAULT" \
      --generated-at "$GENERATED_AT" --operation-id "$OPERATION_ID"
    
  5. Show the old mode, new mode, exact changed path, and complete preview. Copy its approved_plan_sha256 only after review.

  6. Apply by regenerating that exact vault-bound plan:

    python3 "$CORE" mode set "$MODE" --vault "$VAULT" \
      --generated-at "$GENERATED_AT" --operation-id "$OPERATION_ID" \
      --approved-plan-sha256 "$APPROVAL_SHA256" --apply
    

Follow the operation transaction contract. Do not use scripts/wiki-mode.py's legacy direct-write set action or a setup script to bypass this workflow.

Changing mode affects routing for future operations only. Never bulk-create folders, move notes, rewrite wikilinks, or migrate existing pages as a side effect. If migration is later requested, plan and review it as a distinct operation with its own hashes and transaction.

Checkpoint

Observe the user's current structure, think about how they retrieve and act on notes, verify a few proposed routes before changing configuration, and grow by revisiting the mode only when real filing friction appears.

版本历史

  • 32ac5a0 当前 2026-09-22 11:46

    修复 wiki 引用链接的路径解析规则,将其锚定至技能目录而非用户工作目录;添加包验证检查以镜像可执行助手规则。

  • 1c1bc49 2026-08-19 22:46

    v2.0.0 发布:公开版本升级

  • cb93ff6 2026-07-25 04:50

同 Skill 集合

skills/autoresearch/SKILL.md
skills/canvas/SKILL.md
skills/defuddle/SKILL.md
skills/obsidian-bases/SKILL.md
skills/obsidian-markdown/SKILL.md
skills/save/SKILL.md
skills/think/SKILL.md
skills/wiki-cli/SKILL.md
skills/wiki-fold/SKILL.md
skills/wiki-ingest/SKILL.md
skills/wiki-lint/SKILL.md
skills/wiki-query/SKILL.md
skills/wiki-retrieve/SKILL.md
skills/wiki/SKILL.md

元信息

文件数
0
版本
b0d8867
Hash
4862cce7
收录时间
2026-07-25 04:50

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 13:06
浙ICP备14020137号-1