跳到正文
cccskills
免费在 GitHub 公开

obsidian

Use when working with Obsidian vaults, notes, tasks, properties, bases, plugins, or themes.

中文简介正在准备中。当前显示原文说明。

集成工具Obsidian
查看安装方法

包含的文件(8)

  • SKILL.md5.6 KB
  • references/CALLOUTS.md1.2 KB
  • references/EMBEDS.md861 B
  • references/FUNCTIONS_REFERENCE.md7.4 KB
  • references/obsidian-bases.md12.4 KB
  • references/obsidian-cli.md3.8 KB
  • references/obsidian-markdown.md4.9 KB
  • references/PROPERTIES.md1.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Obsidian

A single skill for everything Obsidian: the CLI, Bases (.base files), and Obsidian Flavored Markdown. Consolidates the former obsidian-cli, obsidian-bases, and obsidian-markdown skills.

Origin: derived from kepano/obsidian-skills (MIT). Obsidian must be running for any CLI or MCP command to work.

When to Use

  • Interact with a vault from the command line (create/read/search/manage notes, tasks, properties).

  • Build or edit a Base (database-like view over notes) with filters and formulas.

  • Author Obsidian Flavored Markdown (wikilinks, embeds, callouts, properties).

  • Develop or debug an Obsidian plugin or theme.

  • User asks or mentions this skill in English (e.g., "use /obsidian", "run obsidian").

  • O usuário pede ou menciona esta skill em português (ex.: "use /obsidian", "execute obsidian").

When NOT to Use

  • Do not use for generic Markdown files or note-taking tools that are not Obsidian.
  • Do not target a vault the user has not explicitly named.
  • Do not auto-install the mcp-obsidian-cli package or run the obsidian binary without user confirmation.

Security & Guardrails

  • Human confirmation first: confirm the target vault and any obsidian command with the user before execution.
  • No auto-execution: only run commands that read or modify the named vault; do not run system-wide commands or execute arbitrary plugins/themes without explicit consent.
  • MCP fallback is opt-in: if the obsidian CLI is missing, present mcp-obsidian-cli as an optional fallback and wait for the user to approve its installation.
  • Stay inside the vault: do not use Obsidian CLI to access files outside the vault root.

Three areas

1. CLI

Run obsidian against a running Obsidian instance — vault operations, plugin/theme dev, DOM/screenshot inspection. See the full command reference and quick-start examples in references/obsidian-cli.md.

Before running any obsidian command, verify which vault the user wants to target and confirm the command. Do not auto-install mcp-obsidian-cli or any Obsidian plugin without explicit user consent.

2. Bases

.base files are valid YAML defining filters, formulas, and views (table/cards/list/map) over notes. See references/obsidian-bases.md and the full function list in references/FUNCTIONS_REFERENCE.md.

filters:
  and:
    - file.hasTag("task")
    - 'file.ext == "md"'
formulas:
  days_until_due: 'if(due, (date(due) - today()).days, "")'
views:
  - type: table
    name: "Active Tasks"
    order: [file.name, status, formula.days_until_due]

3. Markdown (Obsidian Flavored)

Wikilinks [[Note]], embeds ![[note.png|300]], callouts > [!warning], properties/frontmatter, highlights ==text==, Mermaid, math. See references/obsidian-markdown.md, plus references/CALLOUTS.md, references/EMBEDS.md, references/PROPERTIES.md.

Workflows

Create an Obsidian note

  1. Add frontmatter/properties at the top (see references/PROPERTIES.md).
  2. Write content with standard Markdown + Obsidian syntax (wikilinks, embeds, callouts).
  3. Verify it renders in reading view.

Build a Base

  1. Create a .base file with valid YAML.
  2. Define filters (global/view) and optional formulas.
  3. Add one or more views (table/cards/list/map).
  4. Validate YAML (watch quoting rules); open in Obsidian to confirm rendering.

Register CLI / develop a plugin

  1. Guide the user to Settings → General → Command line interface → Register CLI; restart the terminal.
  2. After the user confirms code changes, run obsidian plugin:reload and obsidian dev:screenshot only for the explicitly named plugin.

Common Mistakes

MistakeSymptomFix
Obsidian not runningCLI/MCP commands failOpen the Obsidian app first
Unquoted special chars in .baseYAML errorQuote strings with :, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, !, %, @
Double quotes inside double quotes (formula)Parse errorWrap formula in single quotes: 'if(done, "Yes", "No")'
Duration without field access(now()-file.ctime).round(0) errorsAccess .days first: (now()-file.ctime).days.round(0)
Missing null checks in formulasCrash on empty propertyGuard with if(): if(due, (date(due)-today()).days, "")
Wikilink vs Markdown linkBroken external links[[Note]] for vault notes; [text](url) for external only

References

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Single owner of everything under docs/architecture/ — ADRs, architecture and design documents, and architecture diagrams. Routes each deliverable to the right engine: /mermaid-architecture for Markdown-native diagrams, /drawio-architecture for editable .drawio diagrams, and the optional archify skill for interactive standalone HTML diagrams (used only when already installed in the environment; never installed at runtime). Use whenever architecture documentation, ADRs, or architecture diagrams must be created or updated.

中文简介正在准备中。当前显示原文说明。

afonsoft/skills122026年10月16日 更新

Use when building a new MCP server in TypeScript, Python, or C# that exposes tools to LLMs.

中文简介正在准备中。当前显示原文说明。

afonsoft/skills122026年10月16日 更新

Use when reviewing code before it merges, whether written by an agent or a human.

中文简介正在准备中。当前显示原文说明。

afonsoft/skills122026年10月16日 更新

Use when the user asks to connect an AI agent to external apps via Composio, or when Composio CLI or MCP setup fails.

中文简介正在准备中。当前显示原文说明。

afonsoft/skills122026年10月16日 更新

Use when initializing or migrating an AI agent harness in a repository.

中文简介正在准备中。当前显示原文说明。

afonsoft/skills122026年10月16日 更新

Use when turning approved plans, specs, PRDs, or Epics into trackable GitHub Issues.

中文简介正在准备中。当前显示原文说明。

afonsoft/skills122026年10月16日 更新

查看 afonsoft 的全部技能

报告此技能的问题