返回顶部
h

hackmd

Work with HackMD documents. Use when reading, creating, updating, or deleting notes on HackMD. Supports change tracking to detect document modifications since last check. Supports personal and team workspaces.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
994
下载量
0
收藏
概述
安装方式
版本历史

hackmd

# HackMD Integration ## Requirements ```bash npm install -g @hackmd/hackmd-cli ``` ## Quick Reference ### Read Notes ```bash # List all personal notes hackmd-cli notes # Get note metadata (includes lastChangedAt) hackmd-cli notes --noteId=<id> --output json # Get note content (markdown) hackmd-cli export --noteId=<id> # List teams hackmd-cli teams # List team notes hackmd-cli team-notes --teamPath=<path> ``` ### Write Notes ```bash # Create note hackmd-cli notes create --content='# Title' # Create from file cat file.md | hackmd-cli notes create # Update note hackmd-cli notes update --noteId=<id> --content='# Updated' # Delete note hackmd-cli notes delete --noteId=<id> ``` ### Team Notes ```bash hackmd-cli team-notes create --teamPath=<path> --content='# Team Note' hackmd-cli team-notes update --teamPath=<path> --noteId=<id> --content='...' hackmd-cli team-notes delete --teamPath=<path> --noteId=<id> ``` ## Change Tracking Use `hackmd-track.js` (in `scripts/`) to detect document changes efficiently. ### Track a Note ```bash node scripts/hackmd-track.js add <noteId> ``` ### Check for Changes ```bash # Single note - outputs content only if changed node scripts/hackmd-track.js changes <noteId> # All tracked notes node scripts/hackmd-track.js changes --all # JSON output for parsing node scripts/hackmd-track.js changes <noteId> --json ``` ### Manage Tracking ```bash node scripts/hackmd-track.js list # Show tracked notes node scripts/hackmd-track.js remove <noteId> # Stop tracking node scripts/hackmd-track.js reset <noteId> # Reset (next check shows as changed) ``` ### How It Works 1. `hackmd-track.js add` stores note's `lastChangedAt` timestamp 2. `hackmd-track.js changes` compares current `lastChangedAt` with stored value 3. If changed: outputs content and updates stored timestamp 4. If unchanged: outputs nothing (use `--verbose` for status) State stored in `./.hackmd/tracked-notes.json` (current working directory) ## Note Metadata Fields When using `--output json`, notes include: | Field | Description | | ---------------- | ---------------------------------------- | | `lastChangedAt` | Unix timestamp of last modification | | `lastChangeUser` | `{name, userPath, photo}` of last editor | | `titleUpdatedAt` | When title changed | | `tagsUpdatedAt` | When tags changed | ## Rate Limits - 100 calls per 5 minutes - 2000 calls/month (10k on Prime plan)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 hackmd-1776337576 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 hackmd-1776337576 技能

通过命令行安装

skillhub install hackmd-1776337576

下载 Zip 包

⬇ 下载 hackmd v1.0.0

文件大小: 4.68 KB | 发布时间: 2026-4-17 15:42

v1.0.0 最新 2026-4-17 15:42
Initial release with HackMD document management and change tracking.

- Read, create, update, and delete personal and team notes using HackMD CLI.
- Supports listing notes, exporting content, and viewing note metadata.
- Provides utilities for tracking document changes (change detection via lastChangedAt).
- Includes command-line scripts for managing tracked notes and checking for updates.
- Supports rate limits and both personal and team workflows.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部