cli-anything-siyuan
하는 일
이 스킬은 AI 에이전트가 지식 베이스를 만드는 로컬 메모 앱 SiYuan을 다루도록 합니다. SiYuan에 노트를 보관하고 에이전트가 정리와 검색을 도와주기를 원하는 사람에게 맞습니다.
사용하는 경우
- ✓SiYuan에서 새 노트북이나 새 문서를 만들고 싶을 때.
- ✓지식 베이스 전체에서 한 주제에 관한 노트를 검색해야 할 때.
- ✓기존 문서에 있는 텍스트 블록을 바꾸거나 추가하고 싶을 때.
스킬 링크
https://github.com/HKUDS/CLI-Anything/blob/main/siyuan/agent-harness/cli_anything/siyuan/skills/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“SiYuan 노트에서 봄 프로젝트에 관한 내용을 검색하고, 요약을 새 문서로 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 API 토큰을 사용해 컴퓨터의 SiYuan 앱에 로컬 API로 연결합니다. 노트북, 문서, 블록을 읽고 씁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
cli-anything-siyuan
CLI harness for SiYuan (思源笔记), a local-first knowledge management and note-taking application.
This CLI connects to a running SiYuan kernel via its HTTP API
(http://127.0.0.1:6806) and provides structured access to notebooks,
documents, blocks, search, and export.
Prerequisites
- SiYuan must be running (Settings → About shows the API token)
- Python 3.10+
- Install:
pip install cli-anything-siyuanorpip install -e .from agent-harness/
Command Groups
notebook — Notebook management
| Subcommand | Description |
|---|---|
list |
List all notebooks |
create <name> |
Create a new notebook |
rename <id> <name> |
Rename a notebook |
remove <id> |
Delete a notebook |
open <id> |
Open a notebook |
doc — Document management
| Subcommand | Description |
|---|---|
create <notebook> <path> [--md "content"] |
Create a document |
list <notebook> [path] |
List documents |
tree <notebook> [--path / --depth] |
Show doc tree |
get <id> |
Get document path by ID |
rename <id> <title> |
Rename a document |
remove <id> |
Delete a document |
block — Block operations
| Subcommand | Description |
|---|---|
insert <data> [--previous / --parent] |
Insert a block |
update <id> <data> |
Update a block |
delete <id> |
Delete a block |
get <id> |
Get block kramdown source |
children <id> |
Get child blocks |
Other commands
| Command | Description |
|---|---|
sql <stmt> |
Execute SQL on the block database |
search <query> |
Full-text search across blocks |
export md <doc-id> |
Export document as Markdown |
tag list |
List all tags |
version |
Show SiYuan kernel version |
status |
Show connection and session status |
repl |
Start interactive REPL |
Agent Guidance
- Always use
--jsonfor machine-readable output - Power search: use
sql "SELECT * FROM blocks WHERE content LIKE '%keyword%'"for SQL-level access - Document IDs look like
20210817205410-2kvfpfn(timestamp-based) - API token can be found in SiYuan Settings → About
- Connection defaults:
http://127.0.0.1:6806
Examples
# List notebooks (JSON)
cli-anything-siyuan --json notebook list
# Create a document with Markdown (--md flag, watch shell escaping)
cli-anything-siyuan doc create nb1 /projects/new --md "## Title\n\nContent"
# Create a document — pipe Markdown via stdin (avoids shell escaping)
# PowerShell here-string (literal, no escaping needed):
@'
## Title
Content with `backticks` and (parentheses) and "quotes"
'@ | cli-anything-siyuan doc create nb1 /projects/new --md -
# Bash heredoc:
# cat <<'EOF' | cli-anything-siyuan doc create nb1 /projects/new --md -
# ## Title
# Content with `backticks` and (parentheses)
# EOF
# SQL search
cli-anything-siyuan sql "SELECT id, content FROM blocks WHERE content LIKE '%meeting%' LIMIT 5"
# Export
cli-anything-siyuan export md doc123
# Enter REPL
cli-anything-siyuan
Error Handling
- Connection errors: check that SiYuan is running and the API token is correct
- API errors: returned as
{"code": N, "msg": "..."}— check the message field - Auth errors: verify the token in
~/.siyuan-cli.jsonorSIYUAN_TOKENenv var
자주 묻는 질문
SiYuan이 실행 중이어야 하나요?
네. SiYuan 커널이 실행 중이어야 하며, API 토큰은 설정의 About 항목에서 찾을 수 있습니다.
노트를 내보낼 수 있나요?
네. 문서를 내보내는 옵션이 포함되어 있습니다.
노트를 삭제할 수 있나요?
네. 노트북과 문서를 제거하는 명령이 있으니 신중하게 사용해야 합니다.
상세 정보
작성자의 원본 설명
SiYuan (思源笔记) CLI — manage notebooks, documents, blocks, and search your knowledge base from the terminal.
repo: HKUDS/CLI-Anything
인기도
- GitHub 스타
- 58k
- 순위
- #3247
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
cli-anything-3mf
58k에이전트가 3D 프린팅 파일을 검사하고 고치도록 돕습니다. 둥근 구멍 찾기, 크기 조정, 메시 수리, 두 파일 비교가 가능합니다.
cli-anything-qgis
58k에이전트가 터미널에서 QGIS 지도 프로젝트를 열고 편집하고 내보내도록 돕습니다. 레이어, 피처, 인쇄 레이아웃, 처리 도구를 포함합니다.
cli-anything-adguardhome
58k에이전트가 네트워크 전체의 광고 차단기인 AdGuard Home을 관리하도록 돕습니다. 필터, DNS 재작성, 클라이언트, 쿼리 로그를 포함합니다.
cli-anything-anygen
58k에이전트가 AnyGen 서비스를 이용해 글로 된 프롬프트로 슬라이드, 문서, 웹사이트, 다이어그램을 만들도록 돕습니다.