用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Achuan-2/siyuan-plugin-copilot --skill sql命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | sql |
| description | Read-only SQL on SiYuan's database. Action: query(stmt) — SELECT only. |
SELECT only.
| 参数名 | 类型 | 必填 | 描述 | 可选值 |
|---|---|---|---|---|
stmt | string | 是 | SQL SELECT statement | - |
sql({
"action": "query",
"stmt": "SELECT * FROM blocks WHERE content LIKE '%key%' LIMIT 10"
})
Asset management. Actions: upload(id, files=comma-separated absolute paths), unused(), clean(path?), stat(path).
Block custom-attribute operations. Actions: get(id), set(id, attrs object), batch-get(ids comma-separated).
Block operations. Actions: get(id), get_kramdown(id), get_children(id), tree_stat(id, by document), dom(id), insert(data, dataType, parentID?, nextID?, previousID?), append(data, dataType, parentID) / prepend(...) add a NEW child — use after block.update when both modifying and adding, update(id, data, dataType) replaces ONE block only (no append), delete(id), move(id, parentID, previousID?), breadcrumb(id), batch_get(ids) / batch_kramdown(ids) where ids is comma-separated.
基于 SOC 职业分类