본문으로 건너뛰기
Skillpedia
작업 및 프로젝트58k · #3233

cli-anything-obsidian

하는 일

이 스킬은 AI 에이전트가 보관함 안의 파일로 저장된 Obsidian 노트를 다루도록 합니다. 지식과 글을 Obsidian에 정리하는 사람에게 맞습니다.

사용하는 경우

  • ✓기존 노트에 요약이나 새 섹션을 추가하고 싶을 때.
  • ✓보관함에서 특정 주제에 관한 노트를 검색해야 할 때.
  • ✓나와 에이전트가 함께 쓴 초안으로 새 노트를 만들고 싶을 때.

스킬 링크

https://github.com/HKUDS/CLI-Anything/blob/main/obsidian/agent-harness/cli_anything/obsidian/skills/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/obsidian/agent-harness/cli_anything/obsidian/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Obsidian 보관함에서 예산 관련 노트를 검색하고, 월간 리뷰 노트에 요약을 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 컴퓨터에서 실행되는 Obsidian의 Local REST API에 요청을 보내 노트를 읽고, 쓰고, 검색합니다. Obsidian이 열려 있고 플러그인이 켜져 있어야 합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

cli-anything-obsidian

Knowledge management and note-taking via the Obsidian Local REST API. Designed for AI agents and power users who need to manage notes, search the vault, and execute commands without the GUI.

Installation

This CLI is installed as part of the cli-anything-obsidian package:

pip install cli-anything-obsidian

Prerequisites:

Usage

Basic Commands

# Show help
cli-anything-obsidian --help

# Start interactive REPL mode
cli-anything-obsidian

# List vault files
cli-anything-obsidian vault list

# Run with JSON output (for agent consumption)
cli-anything-obsidian --json vault list

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-obsidian
# Enter commands interactively with tab-completion and history

Command Groups

Vault

Vault file management commands.

Command Description
list List files in the vault or a subdirectory
read Read the content of a note
create Create a new note
update Overwrite an existing note
delete Delete a note from the vault
append Append content to an existing note

Search

Vault search commands.

Command Description
query Search using Obsidian query syntax
simple Plain text search across the vault

Note

Active note commands.

Command Description
active Get the currently active note in Obsidian
open Open a note in the Obsidian editor

Command

Obsidian command palette commands.

Command Description
list List all available Obsidian commands
execute Execute a command by its ID

Server

Server status and info commands.

Command Description
status Check if the Obsidian Local REST API is running

Session

Session state commands.

Command Description
status Show current session state

Examples

List and Read Notes

# List all vault files
cli-anything-obsidian vault list

# List files in a subdirectory
cli-anything-obsidian vault list "Daily Notes"

# Read a note
cli-anything-obsidian vault read "Projects/my-project.md"

Create and Update Notes

# Create a new note
cli-anything-obsidian vault create "Projects/new-project.md" --content "# New Project"

# Update (overwrite) a note
cli-anything-obsidian vault update "Projects/new-project.md" --content "# Updated Content"

# Append to a note
cli-anything-obsidian vault append "Projects/new-project.md" --content "\n## New Section"

Search

# Plain text search (GET /search/simple/)
cli-anything-obsidian search simple "meeting notes"

# Dataview DQL query — default --type dql, sent as
# application/vnd.olrapi.dataview.dql+txt
cli-anything-obsidian search query 'TABLE file.link FROM "Projects"'

# JsonLogic query — application/vnd.olrapi.jsonlogic+json
cli-anything-obsidian search query --type jsonlogic \
  '{"==":[{"var":"frontmatter.status"},"active"]}'

Commands

# List available commands
cli-anything-obsidian command list

# Execute a command by ID
cli-anything-obsidian command execute "editor:toggle-bold"

Interactive REPL Session

Start an interactive session for exploratory use.

cli-anything-obsidian
# Enter commands interactively
# Use 'help' to see available commands

API Key Configuration

# Via flag
cli-anything-obsidian --api-key YOUR_KEY vault list

# Via environment variable (recommended for agents)
export OBSIDIAN_API_KEY=YOUR_KEY
cli-anything-obsidian vault list

State Management

The CLI maintains lightweight session state:

  • API key: Configurable via --api-key or OBSIDIAN_API_KEY environment variable
  • Host URL: Defaults to https://localhost:27124; configurable via --host

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
# Human output
cli-anything-obsidian vault list

# JSON output for agents
cli-anything-obsidian --json vault list

Fo

자주 묻는 질문

작동하려면 무엇이 실행 중이어야 하나요?

Obsidian이 열려 있어야 하며, Local REST API 플러그인이 켜져 있어야 합니다.

노트를 삭제할 수도 있나요?

네. delete 명령으로 보관함에서 노트를 지울 수 있으므로 신중하게 사용해야 합니다.

Obsidian 명령을 실행할 수 있나요?

네. 설명에 따르면 시각적 앱 없이도 명령을 실행할 수 있습니다.

상세 정보

작성자의 원본 설명

Command-line interface for Obsidian — Knowledge management and note-taking via Obsidian Local REST API. Designed for AI agents and power users who need to manage notes, search the vault, and execute commands without the GUI.

repo: HKUDS/CLI-Anything

인기도

GitHub 스타
58k
순위
#3233
라이선스
Apache-2.0
업데이트
2026. 9. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬