← 返回
数据分析 Key 中文

Memos

Manage memos via the Memos API: create, retrieve, delete, and list memos with visibility and pagination support, requiring MEMOS_URL and MEMOS_TOKEN.
通过 Memos API 管理备忘录:支持创建、获取、删除及列表展示,包含可见性和分页功能,需配置 MEMOS_URL 和 MEMOS_TOKEN。
fty4
数据分析 clawhub v0.1.1 1 版本 99730 Key: 需要
★ 7
Stars
📥 6,139
下载
💾 254
安装
1
版本
#latest

概述

SKILL.md for the Memos skill

Purpose

This skill provides a simple interface to the Memos API (https://usememos.com/docs/api). It lets you create, read, delete, and list memos from OpenClaw.

How it works

  • The skill is implemented in Python and uses the requests library.
  • It requires two environment variables:
  • MEMOS_URLREQUIRED. Base URL of your Memos instance (e.g., https://demo.usememos.com).
  • MEMOS_TOKENREQUIRED. Personal access token for authentication.
  • If either MEMOS_URL or MEMOS_TOKEN is not set, the skill will abort with a clear error.

Commands

CommandDescriptionUsage examplecd
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
create [visibility]Create a new memo. visibility defaults to PUBLIC (options: PRIVATE, PROTECTED, PUBLIC). The tag #openclaw is appended automatically.openclaw skill-run create "Hello world" "PUBLIC"
get Retrieve a memo by its ID. ID can be in format memos/123 or just 123.openclaw skill-run get 123
delete [force]Delete a memo. Optional force (true/false) will delete even if it has associated data.openclaw skill-run delete 123 true
list [pageSize]List memos with pagination. pageSize defaults to 20 (max 1000).openclaw skill-run list 50

Direct Python Usage

You can also run the commands directly with Python:

# Create a memo
python3 skills/memos/memos.py create "My memo content" "PUBLIC"

# Get a memo by ID
python3 skills/memos/memos.py get j9THXDmYtueosTTeHcC5NA

# Delete a memo
python3 skills/memos/memos.py delete j9THXDmYtueosTTeHcC5NA

# Delete with force
python3 skills/memos/memos.py delete j9THXDmYtueosTTeHcC5NA true

# List memos (default 20)
python3 skills/memos/memos.py list

# List with custom page size
python3 skills/memos/memos.py list 50

All commands return JSON output on success and JSON error messages on stderr when errors occur.

Referencing Memos in OpenClaw

When you create or retrieve a memo, the API returns a memo object with a uid field. To reference a memo in OpenClaw's output, format it as a markdown link:

[memo description](https://demo.usememos.com/memos/{uid})

Example:

If the API returns {"uid": "ABC123xyz", "name": "memos/ABC123xyz", ...}, reference it as:

Created [your memo](https://demo.usememos.com/memos/ABC123xyz)

The URL format is: {MEMOS_URL}/memos/{uid} where uid is extracted from the response.

Error handling

The skill includes comprehensive error handling:

  • API Errors: Returns detailed error messages including HTTP status codes and API response details
  • Network Errors: Handles timeouts (30s default) and connection failures
  • Validation: Validates parameters before making API calls (e.g., visibility options, pageSize range)
  • Exit codes: Returns 0 on success, 1 on error when run from command line
  • Error output: All errors are output as JSON to stderr for easy parsing

Example error responses:

{
  "error": "Memos API Error",
  "message": "HTTP 404: Not Found - Memo not found",
  "status_code": 404
}

Extending the skill

  • Add new commands by following the pattern of existing ones.
  • If the Memos API adds new endpoints, you can create corresponding functions.

NOTE: This skill is meant for personal use; never share your MEMOS_TOKEN publicly.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-28 19:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,104
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,932
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,774