cli-anything-siyuan

cli-anything-siyuan is a skill for Claude Code, Codex from HKUDS/CLI-Anything. It costs 34 tokens per session (954 once invoked), scanned A, original, Apache-2.0.

A command-line interface for SiYuan, a local-first note-taking and knowledge-management application. It manages notebooks, documents, blocks of content, searches, and exports through SiYuan's local service.

In plain words
What is it for?
Use it to create, list, rename, open, and remove notebooks and documents, inspect document trees, search content, and export notes.
Why use it?
It lets scripts and coding agents find and update a personal knowledge base without manually navigating the note-taking application.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create, list, rename, open, and remove notebooks and documents, inspect document trees, search content, and export notes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hkuds/cli-anything/cli-anything-siyuan
About the project

CLI-Anything turns software and services into command-line interfaces that AI agents can use to perform tasks and produce artifacts. It is intended for people building or using agent workflows with tools such as coding assistants, design software, and other applications. The catalogue entries are skills, commands, a plugin, and a rule for working with CLI-Anything.

HKUDS/CLI-Anything · 68,193 stars · on GitHub · clianything.cc

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HKUDS/CLI-Anything --skill cli-anything-siyuan
Clone the repo
git clone --depth 1 https://github.com/HKUDS/CLI-Anything

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-anything-siyuan

README.md
[![agentmods](https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-siyuan/github.svg)](https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-siyuan)
Your own site
<a href="https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-siyuan"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-siyuan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli-anything-siyuan

Your own site · 80×15
<a href="https://agentmods.dev/skills/hkuds/cli-anything/cli-anything-siyuan"><img src="https://agentmods.dev/badge/skills/hkuds/cli-anything/cli-anything-siyuan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 954 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00954
Opus 5.5 $0.00014 $0.00382
Sonnet 5.5 $0.00007 $0.00191
Haiku 4.5 $0.00003 $0.00095

Measured 2mo ago against content hash 39386142fb84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli-anything-siyuan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cli-anything-siyuan/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on 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-siyuan or pip 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 --json for 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

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 107 lines · 34 tokens per session scan A 39386142fb84

Subscribe to this mod's changes

cli-anything-siyuan is a skill published in the GitHub repository HKUDS/CLI-Anything (68,193 stars, last pushed 10d ago), licensed Apache-2.0. It adds 34 tokens to every session and 954 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

cli-anything-siyuan compared with skills from other repositories

cli-anything-siyuan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-anything-siyuanHKUDS/CLI-AnythingSkill68k10d agoApache-2.0A34Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code