openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Obsidian Official CLI Headless

Install and adapt the official Obsidian CLI for headless Linux servers by using a non-root user, Xvfb virtual display, ACL-based vault access, and an obs wra...

开发与 DevOps

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 0 · 150 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :可疑 · OpenClaw :良性

Package:darinrowe/obsidian-official-cli-headless

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :良性

OpenClaw 评估

The skill's files and runtime instructions are coherent with its stated purpose (adapting the official Obsidian CLI for headless Debian/Ubuntu-like systems) but require root and will modify system state — review before running on production.

目的

The scripts implement exactly what the name/description promise: install the official Obsidian .deb, create a dedicated non-root user, provide an Xvfb-based wrapper, configure the official CLI JSON, and set ACLs for a vault (including vaults under /root). The workflow and required system changes are proportionate to the stated goal. Minor metadata omission: the package/script runtime expects utilities like apt-get, curl, setfacl, xvfb-run and …

说明范围

SKILL.md and the scripts stay within the described scope: they instruct an admin to run the provided install/configure/verify scripts as root to enable a headless adaptation. The scripts read/write system paths (/usr/local/bin, /home/obsidian, /root) and write the wrapper and config files as intended. Note: the wrapper and configure scripts embed configured paths/usernames into a su -c command; these values are set at install time (root) but s…

安装机制

Install uses apt-get to install dependencies and downloads the Obsidian .deb from the official GitHub releases URL (github.com/obsidianmd/obsidian-releases), then installs the .deb. This is an expected, traceable mechanism for installing the official desktop package on Debian-like systems; it requires root and will install system packages.

证书

The skill does not request secrets or service credentials (no AWS/third-party tokens). Scripts accept optional environment variables (OBSIDIAN_VERSION, OBSIDIAN_USER, WRAPPER_PATH, OBS_CMD) to customize behavior, but these env-vars are not declared in registry metadata — this is reasonable but should be documented for operators because changing them can alter install targets and runtime binaries.

持久

The skill does not request 'always:true' or autonomous elevation, but it requires root to run and will create a system user, write a wrapper to /usr/local/bin, set ACLs (including traversal on /root), and install packages. Those are necessary for the stated goal but are high-privilege operations; the skill will persist on the system until removed.

综合结论

This skill appears to do what it says: adapt the official Obsidian desktop package for headless servers. Before installing, be aware it must be run as root and will: install system packages, download and install a .deb from GitHub releases, create a system user 'obsidian', write a wrapper to /usr/local/bin, and modify ACLs (possibly granting traversal on /root). Recommended steps: - Review the three scripts line-by-line (you were provided them…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Obsidian Official CLI Headless」。简介:Install and adapt the official Obsidian CLI for headless Linux servers by using…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/darinrowe/obsidian-official-cli-headless/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: obsidian-official-cli-headless
description: Install and adapt the official Obsidian CLI for headless Linux servers by using a non-root user, Xvfb virtual display, ACL-based vault access, and an obs wrapper command. Use when the user wants the official Obsidian CLI (not notesmd-cli) on a Debian/Ubuntu-like machine without a normal desktop session, or when root/GUI/display constraints break native CLI use.
---

# Obsidian Official CLI Headless

Treat the official Obsidian CLI as a **desktop-first app adaptation problem**, not a normal CLI install.

## Core rules

- Use this skill only for the **official** Obsidian CLI.
- Assume headless Linux needs a dedicated non-root user, `Xvfb`, and a wrapper command.
- Prefer ACLs over ownership changes when the vault lives under `/root`.
- Prefer one target vault.
- Keep the user away from `su - obsidian` and display details by exposing `/usr/local/bin/obs`.

## Fast path

1. Confirm the vault path. Default to `/root/obsidian-vault` only if the user does not specify another path.
2. Run `scripts/install_official_obsidian.sh` as root.
3. Run `scripts/configure_official_cli.sh <vault_path>` as root.
4. Run `scripts/verify_official_cli.sh [vault_path]`.
5. Report the wrapper path, active vault, verified commands, and remaining caveats.

## What this skill owns

- Official Obsidian `.deb` install
- Headless runtime dependencies needed for field use
- Dedicated `obsidian` user
- Official CLI enablement via `~/.config/obsidian/obsidian.json`
- Vault access via ACLs
- `/usr/local/bin/obs` wrapper
- Verification of `help`, `vault`, `daily:path`, `daily:append`, `daily:read`, and `search`

## What not to do

- Do not use this skill for `notesmd-cli` or lightweight markdown-only workflows.
- Do not expand into plugins, sync setup, theme tuning, or full desktop environment work unless the user explicitly asks.
- Do not broaden permissions more than needed.

## Wrapper model

The wrapper should effectively run:

```bash
su - obsidian -c 'cd <vault> && xvfb-run -a /usr/bin/obsidian --disable-gpu ...'
```

That is the stable operating model on a headless host.

## Verification commands

Use at minimum:

```bash
obs help
obs vault
obs daily:path
obs daily:append content="skill verification"
obs daily:read
obs search query="skill verification"
```

## References

- Read `references/architecture.md` when you need the rationale for non-root user, Xvfb, ACLs, or wrapper design.
- Read `references/troubleshooting.md` when the install works partially but CLI behavior still fails.

## Report format

Keep the result short:
- installed version
- wrapper path
- active vault path
- verified commands
- remaining limits