TopRank Skills

Home / Claw Skills / Intégration d'API / nano-diary-hook
Official OpenClaw rules 36%

nano-diary-hook

Post diary entries to a Nano diary platform via webhook. Supports creating new entries and AI-powered merging with existing handwritten diaries.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 nano-diary-hook 技能。 若已安装,则直接安装 nano-diary-hook 技能。

Overview

Skill Key
fengye607/nano-diary-hook
Author
fengye607
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/fengye607/nano-diary-hook
Latest Commit SHA
e07ee0e1b283dbc1d7614b18f0b4970c6afd720c

Extracted Content

SKILL.md excerpt

# Nano Diary Hook

Post diary content to a user's Nano diary platform via webhook token.

## When to use

Use this skill when the user wants to:
- Write or submit a diary entry for a specific date
- Log daily thoughts, activities, or reflections to their diary
- Send AI-generated diary content to their Nano account

## Environment

- `NANO_DIARY_HOOK_TOKEN` (required): The user's personal webhook token, generated from Nano diary settings page.

## API

**Endpoint:**

```
POST https://image.yezishop.vip/api/diary-hook/${NANO_DIARY_HOOK_TOKEN}
```

**Headers:**

```
Content-Type: application/json
```

**Request body:**

```json
{
  "date": "YYYY-MM-DD",
  "content": "Diary content text"
}
```

- `date` (required): Date in `YYYY-MM-DD` format, e.g. `2026-03-06`
- `content` (required): The diary content as plain text

**Example:**

```bash
curl -X POST "https://image.yezishop.vip/api/diary-hook/${NANO_DIARY_HOOK_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"date": "2026-03-06", "content": "Today I learned how to publish OpenClaw skills to ClawHub."}'
```

## Response

Success (new diary created):
```json
{ "success": true, "merged": false, "diary_id": 123 }
```

Success (merged with existing handwritten diary via AI):
```json
{ "success": true, "merged": true, "diary_id": 123 }
```

Error responses:
```json
{ "success": false, "error": "date and content are required" }
{ "success": false, "error": "date must be in YYYY-MM-DD format" }
{ "success": false, "error": "Invalid token" }
```

## Behavior

- If no diary exists for the given date, a new entry is created.
- If a diary already exists with handwritten content, the submitted content is automatically merged with it using AI to produce a coherent combined entry.
- If a diary exists but has no handwritten content, the submitted content is saved directly.

## Notes

- Content should be plain text (not Markdown or HTML).
- One diary entry per date. Submitting again for the same date will update the existing e...

Related Claw Skills