obsidian-integration
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "obsidian-integration" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-60ea60f062a833f8fb0d31907ab239c5de0694cde330faf7fc3d63e9fc36f3c3. Verify the upstream source and version against https://skillhub.cn/skills/user_3cdd1ed9/obsidian-integration before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Turn an Obsidian vault into an automated service that WorkBuddy can read and write. Includes tutorial and toolkit: install the Local REST API and Advanced URI plugins, discover the real port, authenticate with a Bearer Token, read/write/search notes over HTTPS, and use Advanced URI to trigger arbitrary Obsidian commands (including community plugin commands such as notetweet).
Introduction source: third_party · user_3cdd1ed9 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- User says "connect Obsidian", "save this to my vault", "read my Obsidian notes", etc. User wants to trigger an Obsidian plugin command from outside the app. User wants to automate posting to X/Twitter from notes (notetweet / x-post-saver plugins).
- Inputs and outputs
- ``` Use whichever port is LISTENING (here **27124**). Store it as `BASE` in scripts.
- Software, accounts and paid services
- 1. **Install Local REST API** — Settings → Community plugins → Browse → "Local REST API". Enable it, then open its settings and click **Generate Token**. Note the token and the port (default **27123**, but the real port is often different — see Step 1). 2. **Install Advanced URI** — same browse flow, search "Advanced URI", enable it. 3. (Optional, for posting) Install **notetweet** or **x-post-saver** and configure X API keys in their settings (stored in Obsidian's encrypted Secret Storage). Obsidian must be **running** for both the REST API and URI commands to work.
- Testing
- Not tested
Browse files
Frontmatter
name: obsidian-integration
description: 把 Obsidian 笔记库变成可被 WorkBuddy 读写的自动化服务。教程 + 工具包:安装 Local REST API 与 Advanced URI 两个插件,发现真实端口、用 Bearer Token 鉴权,通过 HTTPS 读写/搜索笔记,并用 Advanced URI 触发任意 Obsidian 命令(含 notetweet 发推等社区插件命令)。Obsidian Integration (Tutorial + Toolkit)
Overview
This skill turns an Obsidian vault into an addressable, automatable service. Two community plugins provide complementary capabilities:
- Local REST API — a secure HTTPS REST interface for file operations (read, write, create, delete, search notes). It does NOT execute plugin commands.
- Advanced URI — extends the
obsidian://protocol so external callers can trigger any Obsidian command (including community-plugin commands such as posting a tweet).
Together they let WorkBuddy: save bookmarks/notes into the vault, read/analyze notes, and fire in-Obsidian actions (e.g. the notetweet plugin's "post file as thread" command).
The combination is the answer to "Local REST API can't run commands" — Advanced URI supplies exactly the command-execution piece that Local REST API is missing.
When To Use
- User says "connect Obsidian", "save this to my vault", "read my Obsidian notes", etc.
- User wants to trigger an Obsidian plugin command from outside the app.
- User wants to automate posting to X/Twitter from notes (notetweet / x-post-saver plugins).
Prerequisites (one-time, inside Obsidian)
- Install Local REST API — Settings → Community plugins → Browse → "Local REST API". Enable it, then open its settings and click Generate Token. Note the token and the port (default 27123, but the real port is often different — see Step 1).
- Install Advanced URI — same browse flow, search "Advanced URI", enable it.
- (Optional, for posting) Install notetweet or x-post-saver and configure X API keys in their settings (stored in Obsidian's encrypted Secret Storage).
Obsidian must be running for both the REST API and URI commands to work.
Step 1 — Discover the real API port
The default port (27123) is frequently occupied, and Obsidian picks another on launch. Find it:
netstat -ano | grep -E "2712[0-9]"
# Example output: TCP 127.0.0.1:27124 0.0.0.0:0 LISTENING 34448
Use whichever port is LISTENING (here 27124). Store it as BASE in scripts.
Step 2 — Authenticate
The token from Local REST API settings is used as a Bearer token on every HTTPS request:
Authorization: Bearer <token>
The API serves over HTTPS with a self-signed certificate — clients must disable cert
verification (curl --insecure, or ssl.CERT_NONE in Python). Plain HTTP returns HTTP 000.
Step 3 — Verify the connection
Read any existing note (URL-encode the filename):
curl -s -H "Authorization: Bearer <token>" \
"https://127.0.0.1:27124/vault/%E6%AC%A2%E8%BF%8E.md" --insecure
HTTP 200 with note body = success.
Core Capability A — File operations (Local REST API)
| Action | Method + Path | Notes |
|---|---|---|
| Read note | GET /vault/<file> |
URL-encode filename |
| Write/create note | PUT /vault/<file> |
Body = markdown, Content-Type: text/markdown |
| Append | POST /vault/<file> |
|
| Delete | DELETE /vault/<file> |
|
| List vault | GET /vault/ |
Returns JSON {"files":[...]} |
| Search | GET /search/?query=<q> |
Full-text |
See scripts/obsidian_helper.py for a ready-to-run client.
Core Capability B — Trigger commands (Advanced URI)
Format (note the adv-uri host, not obsidian):
obsidian://adv-uri?vault=<vault>&filepath=<file>&commandid=<command-id>
commandidis recommended overcommandname(stable). Find a plugin's command id in its sourcemanifest.json/ command registration.- Optional
confirm=trueauto-clicks the first modal button. - Opening a file + running a command: include
filepathso the command targets that note.
Windows launch gotcha: PowerShell blocks URIs containing %VAR%-style segments (URL-encoded
non-ASCII like %E6%AC%A2). Pass the raw (un-encoded) filename instead:
Start-Process "obsidian://adv-uri?vault=test1&filepath=欢迎.md&commandid=editor:save-file"
From Bash/Git Bash use cmd /c start "" "<uri>" or call PowerShell as above.
Common Workflows
Save arbitrary content into the vault
Write a note via PUT /vault/<filename> (Capability A). Filename from title/source; append
metadata (source, timestamp, tags) as YAML frontmatter or a --- footer.
Read & analyze a note
GET /vault/<file>, then summarize / extract / cross-link as requested.
Post a tweet/thread from a note
- Write the note with
THREAD START/THREAD ENDmarkers (notetweet format). - Trigger the plugin command via Advanced URI, e.g.
commandid=<notetweet-post-file-as-thread-id>. - Always confirm with the user before any real external post — it is a public action.
Troubleshooting
| Symptom | Cause / Fix |
|---|---|
HTTP 000 on HTTPS |
Wrong port, or Obsidian not running. Re-check netstat. |
HTTP 000 on HTTP |
API is HTTPS-only. Use https:// + --insecure. |
401 |
Bad/expired token. Regenerate in plugin settings. |
| PowerShell refuses URI | %-encoded non-ASCII in URI. Use raw Chinese filename. |
| Command did nothing | Obsidian not focused/running, or wrong commandid. Verify plugin installed. |
Resources
scripts/obsidian_helper.py— runnable client:read,write,search,list,cmd.references/api_reference.md— endpoint details and Python/PowerShell snippets.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Obsidian 笔记库的自动化读写与命令触发能力,解决用户将本地知识库接入 WorkBuddy 的实际痛点
- 支持通过 Local REST API 进行文件操作,通过 Advanced URI 触发任意 Obsidian 命令,功能互补性强
Highlights
- 触发词精准完整,覆盖多种变体(connect Obsidian, save to vault, read notes, trigger command),边界清晰
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 为空,实际内容位于 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter
-
文档过长 Reported severity: Minor
skill_body 内容约 600 行,超出建议长度
Recommendation: 考虑将部分细节移至引用文件,保持主文档简洁
Highlights
- 文档结构完整,包含 Overview、When To Use、Prerequisites、Step-by-step 指南、Core Capabilities、Workflows、Troubleshooting、Resources
- 提供端到端示例(curl/PowerShell),frontmatter 完整
Highlights
- 工具来源明确(Local REST API、Advanced URI 插件),参数说明详细(端口发现、Bearer Token、HTTPS+自签名证书处理)
- 覆盖主要异常(端口占用、证书验证、PowerShell URI 编码问题、命令未执行),不可逆操作(发推)明确要求用户确认
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Invoke commands or scripts
Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.
Mentioned in main document · lines 103
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- 127.0.0.1
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
1. **Install Local REST API** — Settings → Community plugins → Browse → "Local REST API". Enable it, then open its settings and click **Generate Token**. Note the token and the port (default **27123**, but the real port is often different — see Step 1). 2. **Install Advanced URI** — same browse flow, search "Advanced URI", enable it. 3. (Optional, for posting) Install **notetweet** or **x-post-saver** and configure X API keys in their settings (stored in Obsidian's encrypted Secret Storage). Obsidian must be **running** for both the REST API and URI commands to work.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.