heptabase-cli

在用户提到 Heptabase 或分享 app.heptabase.com 链接时使用本地 Heptabase CLI。通过正在运行的桌面应用读取和编辑笔记、日志、标签和属性;读取聊天、消息和文件;并操作白板结构与布局(包括分区、连接、思维导图、代码检查和示意图截图)。同时浏览 AI 导师的目标、课程与课程单元。除非用户明确要求,否则不要在代理浏览器中打开 Heptabase 链接。

仓库最近推送
GitHub Stars
159
Forks
12
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "heptabase-cli":https://skillpi.com/zh/skills/deepskill-a9211ca2c3f11931bd92e14daaf7e78f9b6f0f6cc56d951fa5ce699d5adc764f。安装前核对上游来源和版本:https://github.com/heptameta/heptabase-cli-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在用户提到 Heptabase 或分享 app.heptabase.com 链接时使用本地 Heptabase CLI。通过正在运行的桌面应用读取和编辑笔记、日志、标签和属性;读取聊天、消息和文件;并操作白板结构与布局(包括分区、连接、思维导图、代码检查和示意图截图)。同时浏览 AI 导师的目标、课程与课程单元。除非用户明确要求,否则不要在代理浏览器中打开 Heptabase 链接。

0 下载

介绍来源: third_party · heptameta · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
限制与区别
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: heptabase-cli
description: Use the local heptabase CLI whenever the user mentions Heptabase or shares an app.heptabase.com URL/deep link. Read and edit notes, journals, tags, and properties; read chats, messages, and files; import local images into notes; and work with whiteboard structure and layout through the running desktop app, including sections, connections, mind maps, lint, and schematic screenshots. Also browse AI Tutor goals, courses, and lessons. Do not open Heptabase links in an agent browser unless the user asks.
allowed-tools: Bash(heptabase *) Bash(jq *) Bash(mktemp *)
metadata:
  heptabase-cli-version-range: "0.7.x"

Prerequisites

  • CLI installed from the desktop app. The command is heptabase on macOS/Linux; Windows installs heptabase.cmd for cmd/PowerShell and a heptabase shim for POSIX shells.
  • Check version compatibility before use with heptabase --version. If the installed CLI version is outside this skill's compatibility range (0.7.x), you MUST stop and ask the user to update either the Heptabase desktop app or this skill package before continuing.

Command discovery

Run heptabase help to see all available top-level commands. This is always up to date. Each command supports --help for detailed usage:

heptabase help
heptabase note --help
heptabase note create --help

Common recipes

Use these as quick recipes for frequent requests. For less common flags or if a command fails, run heptabase help or <command> --help to discover the correct syntax.

  • Recent cards: heptabase card list --sort createdTime --direction descending --limit 20
  • Today's journal: heptabase journal read $(date +%Y-%m-%d)
  • Search cards by keyword: heptabase card list -q "<keyword>" --limit 20
  • Create a note from markdown: heptabase note create --content "# Title\n\nBody" (marks Created by AI by default; add --no-created-by-ai for human-owned content).
  • Create today's journal from markdown: heptabase journal create --content "Body" (marks Created by AI by default; add --no-created-by-ai for human-owned content).
  • Append markdown to a note: heptabase note append <cardId> --content "More content".
  • Edit note content with JSON save: first read references/card-content-schema.md, then use heptabase note read <cardId>, modify the returned ProseMirror JSON, and save with heptabase note save <cardId> --content-md5 <contentMd5> --content-file <path>.
  • Work with properties: use heptabase tag cards <tagId> --include-properties to list tagged cards with values, or heptabase card properties <cardIdOrDate> to inspect one card. Before writing, read references/property-values.md, inspect definitions with heptabase tag properties <tagId>, then use heptabase card set-property <cardIdOrDate> --property-id <propertyId> --value "Published" for strings/options or --json-value ... for typed JSON values.
  • Read parsed PDF content: first read references/pdf-reading.md, then use heptabase pdf metadata <pdfCardId> to discover totalPages, and read a page range with heptabase pdf read <pdfCardId> --start-page N --end-page N.
  • Read transcript content: first read references/transcript-reading.md, then use heptabase audio metadata <audioCardId> or heptabase video metadata <videoCardId> to discover transcriptStatus and durationSeconds, and read overlapping transcript entries in a time range with heptabase audio read <audioCardId> --start-seconds 0 --end-seconds 300 or heptabase video read <videoCardId> --start-seconds 0 --end-seconds 300.
  • Read an attached file: first read references/file-reading.md. If needed, find its ID with heptabase file list --card-id <cardId>, then run mktemp -d and heptabase file export <fileId> --output-dir <scratchDir>. Read the returned path with your native file-reading tool.
  • Add a local image to a note: first read references/image-import.md, then run heptabase file import <path> and add an image node through note read and note save: set fileId, and set originalWidth and originalHeight to the returned width and height.
  • Inspect a whiteboard: heptabase whiteboard read <whiteboardId> --mode structure, then heptabase whiteboard read-layout <whiteboardId>.
  • Read chat messages: Copy a chat ID from whiteboard read output, then use heptabase object read chat <chatId> --offset <n> --limit <n> to paginate non-removed messages with their displayed author, timestamp, quoted content, and message content. For a whiteboard chat-messages element, use heptabase object read chatMessagesElement <elementId> --offset <n> --limit <n>.
  • Check or view whiteboard layout: run heptabase whiteboard lint <whiteboardId>. For visual review, first read references/whiteboard.md, then use heptabase whiteboard screenshot <whiteboardId> --output <existingDirectory>/whiteboard.png and inspect the returned local path.
  • Change whiteboard layout or a mind map: first read references/whiteboard.md; for mind maps, also read references/mind-maps.md. Commands with nested or batch input use --input <path|-> and canonical JSON.

Heptabase URLs (Deep links)

When the user shares a Heptabase URL (aka. deep link), use the CLI to read it — do NOT open it in a browser if the user does not explicitly ask you to (the app requires authentication and browsers used by agents are typically not logged in).

URL patterns and how to handle them:

  • Journal card: https://app.heptabase.com/<workspaceId>/card/<YYYY-MM-DD> → heptabase journal read <YYYY-MM-DD>
  • Card by UUID: https://app.heptabase.com/<workspaceId>/card/<uuid> → first run heptabase card properties <uuid> to discover the card type, then read its content with the matching command (heptabase note read <uuid>, heptabase pdf metadata <uuid>, etc.).
  • Whiteboard: https://app.heptabase.com/<workspaceId>/whiteboard/<uuid> → run heptabase whiteboard read <uuid> --mode structure and heptabase whiteboard read-layout <uuid>. Read references/whiteboard.md before any layout mutation or visual judgment.

The <workspaceId> segment in the URL is not needed by the CLI — extract only the card/whiteboard ID.

Note and journal card content editing

Use create / append with Markdown for ordinary writing. Before calling heptabase note save / heptabase journal save with ProseMirror JSON, you MUST read references/card-content-schema.md. Also read it before generating Markdown that uses Heptabase-specific extensions such as card mentions, whiteboard mentions, dates, videos, math, or toggle/todo lists.

Created by AI marking

note create and journal create mark content as Created by AI by default. Before deciding whether to pass --no-created-by-ai, you MUST read references/created-by-ai.md.

Property editing

Before setting a property value, you MUST read references/property-values.md and inspect the target property with heptabase card properties <cardIdOrDate> and/or heptabase tag properties <tagId>. Property formats vary by type, and relation writes replace the full relation value. For relation properties, use heptabase tag properties <sourceTagId> to get the property definition's relationTargetTagId, then list valid related cards before writing.

File reading

Before reading/listing files or exporting a file, you MUST read references/file-reading.md.

Image import

Before importing an image or adding it to a note, you MUST read references/image-import.md.

PDF reading

Before reading parsed PDF content, you MUST read references/pdf-reading.md.

Transcript reading

Before reading parsed media transcripts, you MUST read references/transcript-reading.md.

Whiteboard work

Before deliberate placement, movement, arrangement, resizing, sectioning, connection work, removal, or visual verification, you MUST read references/whiteboard.md. It defines exact placement references, selection and destination shapes, read-before-write rules, and the verification loop.

For mind-map creation or structural edits, also read references/mind-maps.md. Read the current mind map again before updating it so stable structural node IDs are current.

The existing whiteboard cards, add-card, and remove-card commands are narrow legacy commands. Prefer whiteboard read, read-layout, and the canonical --input commands for structured whiteboard work.

The canonical mutation commands cover whiteboard hierarchy and shortcuts; object placement and cross-whiteboard moves; move, arrange, align, resize, color, and removal; Sections and connections; and mind-map creation and updates. Run heptabase whiteboard --help for the current list and read the linked references for nested input.

Canonical JSON input

Commands with nested or batch data accept --input <path|->; - reads JSON from stdin. Build JSON with jq or write it to a temporary file. Do not interpolate untrusted text into hand-built shell JSON.

Inspect every mutation result. A handled top-level status: "failed" is printed and exits with status 1. A successful top-level result exits with 0 even when item results contain failureReasonCode fields, so check them before reporting full success.

All output is JSON

Every command prints JSON to stdout. You can parse it with jq or pipe it to other tools. whiteboard screenshot writes the PNG to --output and prints metadata only; it never prints image bytes.

Troubleshooting

  • Desktop app must be running. The CLI communicates with a local server inside the app. If the app is closed, all commands fail. Run heptabase start to launch and wait for readiness.
  • Codex sandbox may block the local CLI server. If Heptabase starts but Codex says the CLI server is not ready, read references/codex-sandbox.md; retry heptabase commands outside the sandbox when Codex supports escalation.
  • Mutations are serialized. Write operations run one at a time to prevent conflicts. Reads are concurrent.
  • Request body size limit. The server rejects JSON request bodies larger than 1 MB. file import uploads can be up to 2000 MB.
  • Request timeout. The server times out JSON requests that take longer than 10 seconds to send their body.

Known limitations

  • Auto-enabling local server/CLI install not supported. If the local CLI server is disabled or CLI wiring is missing, the skill cannot repair it by itself; ask the user to enable Local CLI Server and CLI install from desktop settings first.
  • File export is local-file-only. heptabase file export works only when the file metadata and raw file are already available locally in the desktop app. It does not download missing files from cloud storage.
  • Only image import is supported. heptabase file import imports images (not HEIC, HEIF, or TIFF) for use in notes. It cannot import PDFs, audio, video, or other files, it does not create cards, and it cannot call media-processing APIs.
  • Whiteboard scope is intentionally bounded. The CLI cannot delete a whiteboard or underlying Card, move content across spaces, create arbitrary shapes, or perform one semantic whole-board auto-layout command. remove-objects removes canvas placements, not source Cards.
  • No CLI undo command or Agent history. Whiteboard mutations use the app's normal domain actions, but the CLI does not expose Agent chat undo, tool-call persistence, or the Agent screenshot checklist. Read first and verify the result yourself.
  • Whiteboard content is local. Whiteboard reads use content available in the running desktop app and do not run backend-only PDF, web, or YouTube enrichment. Use dedicated PDF and media commands for full source content. Full web card content is not available through the CLI; use the source URL in the whiteboard output.
  • Screenshots are schematic. They support spatial review but do not replace semantic reads or deterministic lint.
  • Property filtering not supported yet. You can read tag property schemas, read property values, and set one property value on a card, but you can't query cards by property value.

Warnings

  • Use the CLI as the only data access path. Never directly read, write, or modify Heptabase app data through local database files, app storage, cache files, internal endpoints, or any other non-CLI mechanism. If the CLI does not support the requested operation, stop and report that it is not supported.

版本历史

  1. v1.10.0 GitHub ↗
    原版更新说明

    ## What's Changed * feat: support CLI 0.10.0 and later (release v1.10.0) by @kyle979 in https://github.com/heptameta/heptabase-cli-skills/pull/35 **Full Changelog**: https://github.com/heptameta/heptabase-cli-skills/compare/v1.9.0...v1.10.0

  2. v1.9.0 GitHub ↗
    原版更新说明

    ## What's Changed * feat: support CLI 0.9.x (release v1.9.0) by @kyle979 in https://github.com/heptameta/heptabase-cli-skills/pull/33 ## New Contributors * @kyle979 made their first contribution in https://github.com/heptameta/heptabase-cli-skills/pull/33 **Full Changelog**: https://github.com/heptameta/heptabase-cli-skills/compare/v1.8.0...v1.9.0

  3. v1.8.0 GitHub ↗
    原版更新说明

    ## What's Changed * feat: support CLI 0.8.x (release v1.8.0) by @yeefun in https://github.com/heptameta/heptabase-cli-skills/pull/30 ## New Contributors * @yeefun made their first contribution in https://github.com/heptameta/heptabase-cli-skills/pull/30 **Full Changelog**: https://github.com/heptameta/heptabase-cli-skills/compare/v1.7.0...v1.8.0

  4. v1.7.0 GitHub ↗
    原版更新说明

    ## What's Changed * chore: make release skill explicit-only in Codex by @jack-hepta in https://github.com/heptameta/heptabase-cli-skills/pull/24 * chore: add skill maintenance checks by @jack-hepta in https://github.com/heptameta/heptabase-cli-skills/pull/25 * chore: refine skill metadata requirements by @jack-hepta in https://github.com/heptameta/heptabase-cli-skills/pull/26 * fix: hide maintainer skills from installation discovery by @jack-hepta in https://github.com/heptameta/heptabase-cli-skills/pull/27 * feat: add CLI image import guidance (bumping to v1.7.0) by @jack-hepta in https://github.com/heptameta/heptabase-cli-skills/pull/29 **Full Changelog**: https://github.com/heptameta/heptabase-cli-skills/compare/v1.6.0...v1.7.0

  5. v1.6.0 GitHub ↗
    原版更新说明

    ## What's Changed * feat: add CLI whiteboard and chat guidance by @jack-hepta in https://github.com/heptameta/heptabase-cli-skills/pull/23 **Full Changelog**: https://github.com/heptameta/heptabase-cli-skills/compare/v1.5.0...v1.6.0

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 提供与 Heptabase 桌面应用深度集成的 CLI 操作能力,涵盖笔记、日志、白板、文件、属性、AI 导师等高频刚需场景
  • 显著提升用户在知识管理和可视化思维工具中的效率
触发精准85/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层 frontmatter 中 description 为空,但 skill_body 内部有实质描述内容

    改进建议:将 description 内容移至顶层 frontmatter

亮点

  • 触发条件明确:用户提到 Heptabase 或分享 app.heptabase.com 的 URL/深度链接
结构规范90/100

待提升项

  • 文档过长 原报告严重程度:轻微

    文档约 180 行,虽未超 500 行限制但接近上限

    改进建议:考虑将部分参考文档内容移至独立文件并通过引用方式链接

亮点

  • 结构完整,包含 Prerequisites、Command discovery、Common recipes、URL 处理、各类操作规范、Troubleshooting、Known limitations、Warnings 等章节
  • 步骤清晰,有端到端示例,frontmatter 完整
执行可靠88/100

待提升项

  • 缺少显式的 'When to Use' 章节 原报告严重程度:轻微

    文档中未设置显式的 'When to Use' 章节,但 description 和 URL 处理部分已隐含使用场景

    改进建议:添加显式的 'When to Use' 章节以增强可读性

亮点

  • 工具来源明确(heptabase CLI),参数正确
  • 覆盖主要异常(版本兼容性、桌面应用状态、请求限制等)
  • 不可逆操作有确认机制(read-before-write、验证循环)
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • app.heptabase.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。