Agent skill

Notes Export API

by zhaoolee in zhaoolee/notes

通过 Token 或首次使用的用户名与密码连接调用方明确配置的锤子便签服务,管理当前账号的云端工作区并导出内容。支持便签列表与全文查询、新增、更新 Markdown、软删除、回收站恢复、显式永久删除、文件夹分类、星标、置顶、生成可粘贴到微信公众号的富文本 HTML,以及把 Markdown 或本地 .md 文件导出为带图的锤子便签长图 PNG;导出支持 default…

Apache-2.0Auto-check: notesDocuments & Office

Install Notes Export API

skills CLI
$ npx skills add zhaoolee/notes --skill notes-export-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhaoolee/notes notes-export-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zhaoolee/notes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/notes-export-api .claude/skills/notes-export-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
notes-export-api
GitHub stars
195
Token cost
~1.1k tokens
SKILL.md length
197 words
Files
7 (incl. scripts, references)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

通过 Token 或首次使用的用户名与密码连接调用方明确配置的锤子便签服务,管理当前账号的云端工作区并导出内容。支持便签列表与全文查询、新增、更新 Markdown、软删除、回收站恢复、显式永久删除、文件夹分类、星标、置顶、生成可粘贴到微信公众号的富文本 HTML,以及把 Markdown 或本地 .md 文件导出为带图的锤子便签长图 PNG;导出支持 default…

  • Works in 7 steps: 优先使用 NOTES_API_TOKEN。Token 缺失时,用… → 先执行 list 或 folders,取得真实的便签 ID 和文件夹… → 对单张便签执行… → …
  • Tasks that involve Markdown
  • SKILL.md covers 配置服务, 选择工作流, 管理云端便签 and 导出便签长图, plus 1 more section
  • Runs Shell and JavaScript scripts from its folder; calls node; needs NOTES_API_PASSWORD and NOTES_API_TOKEN

What it does

Notes Export API is an agent skill from zhaoolee/notes. 通过 Token 或首次使用的用户名与密码连接调用方明确配置的锤子便签服务,管理当前账号的云端工作区并导出内容。支持便签列表与全文查询、新增、更新 Markdown、软删除、回收站恢复、显式永久删除、文件夹分类、星标、置顶、生成可粘贴到微信公众号的富文本 HTML,以及把 Markdown 或本地 .md 文件导出为带图的锤子便签长图 PNG;导出支持 default 暖白纸感、smartisan-dark 暗黑主题和自定义底部文案。用户提到锤子便签、用 AI 增删改查便签、便签查询或自动维护、分类、收藏、置顶、公众号复制格式、Markdown 转便签图片或批量长图导出时使用。服务地址没有默认值,调用方必须通过 .env 或命令行明确提供。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/workspace-api.md` and `scripts/export_note.sh`).

It sits in Documents & Office, covering Markdown. The repository describes itself as: 开源版锤子便签,复刻锤科美学,一键Docker私有化部署,支持skill调用,支持dsh plugin,支持多租户,一键生成公众号格式,支持导出便签为图片. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Markdown

Example prompts

  • “/notes-export-api”

Requirements

  • Node.js
  • A Bash shell
  • Docker
  • A credential in NOTES_API_TOKEN

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 优先使用 NOTES_API_TOKEN。Token 缺失时,用 NOTES_API_USERNAME 和
  2. 先执行 list 或 folders,取得真实的便签 ID 和文件夹 ID;不要猜测 ID。
  3. 对单张便签执行 get、update、delete、restore、classify、star、
  4. 新增或更新便签时优先使用 --markdown-file,避免多行 Markdown 的命令行转义
  5. 普通 delete 只移入回收站。仅在调用方明确要求不可恢复地删除时,才对回收站
  6. 读取脚本输出的 JSON;失败时把标准错误中的 error 原样反馈。
  7. 遇到同时写入冲突时允许脚本自动重读并重试,不要盲目覆盖整个工作区。

What it can do on your machine

Read from SKILL.md and the folder at commit d07a926. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell and JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • NOTES_API_PASSWORD
    • NOTES_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Notes Export API loads about 1.1k tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 197 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:3
    rkdown 转便签图片或批量长图导出时使用。服务地址没有默认值,调用方必须通过 .env 或命令行明确提供。
  • NoteMentions a .env fileSKILL.md:15
    到版本库的 `.env`:
  • NoteMentions a .env fileSKILL.md:23
    向 `/api/auth/skill-token` 申请 Token,原子更新 `.env`,并移除用户名和
  • NoteMentions a .env fileSKILL.md:29
    单人部署时,把项目根目录 `.env` 中 `SUPERADMIN` 和 `SUPERADMINPASSWORD` 的实际值
  • NoteMentions a .env fileSKILL.md:43
    没有 `.env` 时,给命令显式传入同名参数:
  • NoteMentions a .env fileSKILL.md:57
    如果 `.env` 和命令行都没有服务地址,停止执行并请调用方补充;不得自动探测本地
  • NoteMentions a .env fileSKILL.md:166
    - 命令行参数覆盖 `.env`;显式 `--env-file` 优先于调用进程和 Skill 目录 `.env`。
  • NoteMentions a .env fileSKILL.md:169
    后把 Token 写回 `.env`、移除账号密码。
  • NoteMentions a .env fileSKILL.md:172
    不要输出、记录或提交密码。优先通过环境变量或已被 Git 忽略的 `.env` 提供

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from zhaoolee/notes at commit d07a926, republished under its Apache-2.0 licence (© zhaoolee). 197 words, ~1,145 tokens.

Download SKILL.mdSave it as .claude/skills/notes-export-api/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
notes-export-api
description
通过 Token 或首次使用的用户名与密码连接调用方明确配置的锤子便签服务,管理当前账号的云端工作区并导出内容。支持便签列表与全文查询、新增、更新 Markdown、软删除、回收站恢复、显式永久删除、文件夹分类、星标、置顶、生成可粘贴到微信公众号的富文本 HTML,以及把 Markdown 或本地 .md 文件导出为带图的锤子便签长图 PNG;导出支持 default 暖白纸感、smartisan-dark 暗黑主题和自定义底部文案。用户提到锤子便签、用 AI 增删改查便签、便签查询或自动维护、分类、收藏、置顶、公众号复制格式、Markdown 转便签图片或批量长图导出时使用。服务地址没有默认值,调用方必须通过 .env 或命令行明确提供。

锤子便签 API

直接调用项目 API,不在本地重写工作区、公众号排版或长图渲染逻辑。

开源地址:https://github.com/zhaoolee/notes

配置服务

便签管理和长图导出统一使用同一个服务基础地址。推荐写入调用方自己保管、未提交 到版本库的 .env:

dotenv
NOTES_API_BASE_URL=http://127.0.0.1:18080
NOTES_API_TOKEN=notes_sk_v1.xxx

没有 Token 时,可临时填写 NOTES_API_USERNAME 和 NOTES_API_PASSWORD。管理脚本 首次运行会向 /api/auth/skill-token 申请 Token,原子更新 .env,并移除用户名和 密码。Token 已存在时不再读取账号密码。

如果服务部署在局域网主机或自有域名下,可改为实际地址,例如 http://192.168.1.20:18080 或 https://notes.example.com。

单人部署时,把项目根目录 .env 中 SUPERADMIN 和 SUPERADMINPASSWORD 的实际值 分别复制到 NOTES_API_USERNAME 和 NOTES_API_PASSWORD;不要写成变量引用。 普通多用户部署则填写目标普通用户的用户名/邮箱和密码。

两个脚本都可以读取该文件:

bash
node scripts/notes_api.mjs list --env-file /abs/path/notes-api.env
scripts/export_note.sh \
  --env-file /abs/path/notes-api.env \
  --markdown '正文' \
  --output /abs/path/note.png

没有 .env 时,给命令显式传入同名参数:

bash
node scripts/notes_api.mjs list \
  --base-url https://notes.example.com \
  --username your-account \
  --password your-password

scripts/export_note.sh \
  --base-url https://notes.example.com \
  --markdown '正文' \
  --output /abs/path/note.png

如果 .env 和命令行都没有服务地址,停止执行并请调用方补充;不得自动探测本地 端口,也不得回退到任何公网服务。

选择工作流

  • 查询、新增、分类、星标、置顶或生成公众号格式:使用 scripts/notes_api.mjs。
  • 把 Markdown 导出为锤子便签长图 PNG:使用 scripts/export_note.sh。

管理云端便签

  1. 优先使用 NOTES_API_TOKEN。Token 缺失时,用 NOTES_API_USERNAME 和 NOTES_API_PASSWORD 完成一次性授权;账号可以是用户名或邮箱。优先用 --env-file,避免密码进入 shell 历史和进程列表。
  2. 先执行 list 或 folders,取得真实的便签 ID 和文件夹 ID;不要猜测 ID。
  3. 对单张便签执行 get、update、delete、restore、classify、star、 pin 或 wechat。
  4. 新增或更新便签时优先使用 --markdown-file,避免多行 Markdown 的命令行转义 问题。
  5. 普通 delete 只移入回收站。仅在调用方明确要求不可恢复地删除时,才对回收站 便签再次执行 delete --permanent。
  6. 读取脚本输出的 JSON;失败时把标准错误中的 error 原样反馈。
  7. 遇到同时写入冲突时允许脚本自动重读并重试,不要盲目覆盖整个工作区。
bash
export NOTES_API_BASE_URL=http://127.0.0.1:18080
export NOTES_API_TOKEN=notes_sk_v1.xxx

node scripts/notes_api.mjs list

node scripts/notes_api.mjs list --category trash

node scripts/notes_api.mjs get --note-id NOTE_ID

node scripts/notes_api.mjs add \
  --markdown-file /abs/path/note.md

node scripts/notes_api.mjs update \
  --note-id NOTE_ID \
  --markdown-file /abs/path/note.md

node scripts/notes_api.mjs delete --note-id NOTE_ID

node scripts/notes_api.mjs restore --note-id NOTE_ID

node scripts/notes_api.mjs delete \
  --note-id NOTE_ID \
  --permanent

node scripts/notes_api.mjs folders

node scripts/notes_api.mjs folder-create --name 工作

node scripts/notes_api.mjs classify \
  --note-id NOTE_ID \
  --folder 工作

node scripts/notes_api.mjs star \
  --note-id NOTE_ID \
  --state on

node scripts/notes_api.mjs pin \
  --note-id NOTE_ID \
  --state off

node scripts/notes_api.mjs wechat \
  --note-id NOTE_ID \
  --output-html /abs/path/article.html

--folder 接受文件夹 ID 或精确名称;传 none 可移出自定义分类。 --state 接受 on、off、toggle,省略时为 on。详细参数和数据边界见 references/workspace-api.md。

Hermes 使用本 Skill 时,终端后端必须能看到 Skill 脚本和配置文件。local 后端可 直接使用本机路径;SSH、Docker 等隔离后端需要先把 Skill 与 env 文件同步到对应 执行环境,并使用该环境中的路径。不要假定 Hermes 会把宿主机环境变量自动转发到 远程终端。

导出便签长图

  1. 使用与便签管理相同的 NOTES_API_BASE_URL 或 --base-url。
  2. 传入 --markdown-file 或 --markdown。
  3. 传入绝对输出路径 --output。
  4. 使用 --markdown-file 时,让脚本自动扫描并上传相对路径、绝对路径或 file:// 本地图片,再回填同源 /api/images/import 返回的 URL。
  5. 只有调用方明确要求暗色时才传 --theme smartisan-dark;否则使用默认 default 暖白纸感,不要为主题额外追问。
  6. 只有调用方要求自定义署名时才传 --footer-brand 或 --footer-via。
bash
scripts/export_note.sh \
  --markdown-file /abs/path/note.md \
  --output /abs/path/note.png

scripts/export_note.sh \
  --markdown '## **0x01**\n正文内容' \
  --theme smartisan-dark \
  --footer-brand '由方圆小站发送' \
  --footer-via 'via Notes API' \
  --output /abs/path/note-dark.png

内联 --markdown 不解析本地相对路径图片;此模式只使用可访问 URL。文件模式若 发现本地图片不存在,应直接报错,不继续生成不完整长图。

配置规则

  • 两个脚本统一使用 NOTES_API_BASE_URL、--base-url 和 --env-file。
  • 命令行参数覆盖 .env;显式 --env-file 优先于调用进程和 Skill 目录 .env。
  • 管理命令优先读取 NOTES_API_TOKEN 或 --token。Token 缺失时才读取 NOTES_API_USERNAME、NOTES_API_PASSWORD,或对应的命令行参数,并在授权成功 后把 Token 写回 .env、移除账号密码。
  • 服务地址或认证信息缺失时直接报错,让调用方补充,不猜测默认值。

不要输出、记录或提交密码。优先通过环境变量或已被 Git 忽略的 .env 提供 凭据。

© zhaoolee, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in skills/notes-export-api of zhaoolee/notes.

  • SKILL.md
  • .env.example
  • agents/openai.yaml
  • references/workspace-api.md
  • scripts/export_note.sh
  • scripts/notes_api.mjs
  • skill-card.md

Open the folder on GitHubat commit d07a926

Compare with similar skills

Notes Export API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Notes Export API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Notes Export API this skillzhaoolee/notes195—~1.1kAutomated safety check: NotesApache-2.0
Markdown Article FormatterJimLiu/baoyu-skills26k7 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
Crosspostingwasp-lang/wasp19k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    26k GitHub starsUsed in 7 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Crossposting

    wasp-lang/wasp

    Crosspost Wasp blog articles (MDX) to DEV.to and Medium. An agent skill from wasp-lang/wasp.

    19k GitHub stars~1.1k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Review The Docs

    supabase/supabase

    Official

    Review Supabase docs changes locally in your supabase/supabase checkout — either an open PR (triage, classify, verify) or your own branch before opening a PR (local self-review).

    111k GitHub stars~4.6k tokensUpdated today
    Documents & OfficeAuto-check passed

More from zhaoolee/notes

  • Notes Workspace API

    zhaoolee/notes

    连接明确配置的锤子便签服务,查询和维护当前账号的云端工作区。支持便签列表、全文查询、新增、更新、软删除、恢复、显式永久删除、文件夹分类、星标和置顶;用户提到用 Hermes 或 AI 管理锤子便签、查找便签、写入 Markdown、整理分类、收藏、置顶或处理回收站时使用。优先使用 NOTESAPITOKEN;仅在 Token 缺失时用用户名和密码自动申请 Token 并安全更新 .env。

    195 GitHub stars~502 tokensUpdated today
    Auto-check: notes

Questions about Notes Export API

What does Notes Export API do?

通过 Token 或首次使用的用户名与密码连接调用方明确配置的锤子便签服务,管理当前账号的云端工作区并导出内容。支持便签列表与全文查询、新增、更新 Markdown、软删除、回收站恢复、显式永久删除、文件夹分类、星标、置顶、生成可粘贴到微信公众号的富文本 HTML,以及把 Markdown 或本地 .md 文件导出为带图的锤子便签长图 PNG;导出支持 default…. Notes Export API is an agent skill from zhaoolee/notes.

When should I use Notes Export API?

Notes Export API fits situations like: tasks that involve Markdown.

How do I install Notes Export API in Claude Code?

Run `npx skills add zhaoolee/notes --skill notes-export-api -a claude-code`. Or copy the skill folder (skills/notes-export-api in zhaoolee/notes) into .claude/skills/notes-export-api in your project. Claude Code loads it when a task matches its description.

How do I install Notes Export API in Codex?

Run `npx skills add zhaoolee/notes --skill notes-export-api -a codex`. Or copy the skill folder (skills/notes-export-api in zhaoolee/notes) into .agents/skills/notes-export-api in your project. Codex loads it when a task matches its description.

Can I use Notes Export API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhaoolee/notes --skill notes-export-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/notes-export-api, .gemini/skills/notes-export-api, .github/skills/notes-export-api and .opencode/skills/notes-export-api in your project.

What does Notes Export API need to run?

Going by SKILL.md and its folder, Notes Export API needs a shell and JavaScript for the scripts in its folder, the command-line tools its instructions call (node) and credentials named NOTES_API_PASSWORD and NOTES_API_TOKEN. Our summary lists: Node.js; A Bash shell; Docker; A credential in NOTES_API_TOKEN.

Does Notes Export API access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Notes Export API safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Notes Export API use?

Notes Export API is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Notes Export API use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 916 tokens, read only when the agent opens those files.

What are the alternatives to Notes Export API?

Skills that share tags, products or a category with Notes Export API: Markdown Article Formatter (JimLiu/baoyu-skills, 26k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and Gzh Design (isjiamu/gzh-design-skill, 3.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Notes Export API?

zhaoolee (a GitHub user) maintains it in zhaoolee/notes, which has 195 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 8, 2026.

Source: zhaoolee/notes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.