微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Openclaw Diary

Openclaw Diary · v1.0.1
安全 unknown 级 作者 trae1oung 公开目录收录
1k 下载 0 安装 2.7k 收藏 0 浏览

简介

Openclaw Diary

原始描述

Set up and manage OpenClaw auto learning diary. Used for: (1) Help users fork OpenClaw-Diary repository (2) Connect the forked repo to OpenClaw (3) Configure...

通过你的 Agent 添加

安装目录:openclaw-diary/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/openclaw-diary/
Codex CLI~/.codex/skills/openclaw-diary/
DeepSeek Harness~/.agents/skills/openclaw-diary/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: openclaw-diary version: 1.0.0 description: | Set up and manage OpenClaw auto learning diary. Used for: (1) Help users fork OpenClaw-Diary repository (2) Connect the forked repo to OpenClaw (3) Configure daily cron task to auto-write diary (4) Deploy to GitHub Pages

🦞 OpenClaw-Diary Setup Guide

Help users set up OpenClaw auto learning diary with this complete workflow.

⚠️ Important: Language Response

Always respond in the same language as the user is speaking!

  • If user writes in Chinese → respond in Chinese
  • If user writes in English → respond in English
  • Detect language from user's message and match it

Trigger Conditions

Activate when user mentions:

  • "setup diary" / "设置日记"
  • "fork OpenClaw-Diary"
  • "auto write diary" / "自动写日记"
  • "daily learning log" / "每日学习记录"
  • "let AI write diary" / "让 AI 写日记"

Complete Workflow

Step 1: Guide User to Fork the Repo

Tell user to fork on GitHub:

Please fork the repo:
1. Visit https://github.com/YAI-Lab/OpenClaw-Diary
2. Click "Fork" button
3. Select your account, complete fork

Step 2: Get User's Fork URL

Ask for the forked repo URL, format:

https://github.com/your-username/OpenClaw-Diary

Step 3: Modify index.html for Personalization (IMPORTANT!)

After cloning the repo, MUST modify:

  1. Change page title: Replace OpenClaw-Diary with user's desired name
  2. Replace robot Logo: Change 🤖 to 🦞
  3. Change robot name: Replace with user's robot name
# Clone repo
git clone https://github.com/username/OpenClaw-Diary.git
cd OpenClaw-Diary

# Replace robot name (based on user input)
sed -i 's/OpenClaw/YourRobotName/g' index.html

# Replace emoji
sed -i 's/🤖/🦞/g' index.html

Example modification:

<!-- Before -->
<title>OpenClaw-Diary</title>
<h1>🤖 OpenClaw's Learning Diary</h1>

<!-- After -->
<title>MyAI Diary</title>
<h1>🦞 小龙的学习日记</h1>

Step 4: Get GitHub Token

If GitHub token not configured, user needs to create:

  1. Visit https://github.com/settings/tokens
  2. Click "Generate new token (classic)"
  3. Check repo permission
  4. Generate and save token

Important: Must tell user the purpose when getting token, and how to revoke.

Step 5: Configure Daily Cron Task

Use cron or heartbeat to configure daily task:

Method A: Cron Task

# Run daily at UTC 1:00 (9:00 Beijing time)
openclaw cron add "0 1 * * *" "Daily Learning Diary" "Read latest AI news, generate Chinese report and push to OpenClaw-Diary repo"

Method B: Heartbeat Task Add to HEARTBEAT.md:

## Daily Learning Report
- Research latest AI/tech/politics news
- Generate report in user's language
- Push to OpenClaw-Diary

Step 6: Push to Repo

# Add remote
git remote add user https://github.com/username/OpenClaw-Diary.git

# Commit changes
git add index.html
git commit -m "docs: $(date '+%Y-%m-%d') learning diary"
git push user main

Step 7: Enable GitHub Pages

  1. Go to user's forked repo
  2. Settings → Pages
  3. Source: Deploy from a branch
  4. Branch: main, folder: / (root)
  5. Save, wait for deployment

Daily Diary Content Template

Content format to push:

<!-- Date Navigation -->
<div class="date-tabs">
  <button onclick="showDate('2026-03-03')">📅 2026-03-03</button>
</div>

<!-- Daily Content -->
<div class="screen" id="screen-2026-03-03">
  <div class="entry">
    <div class="entry-bar">
      <span class="entry-filename">~/2026-03-03/learning.md</span>
    </div>
    <div class="entry-body">
      <div class="quote-box">
        <div class="quote-title">💡 Today's Learning</div>
        <p>Today's learning content...</p>
      </div>
    </div>
  </div>
</div>

Privacy Protection (MUST FOLLOW)

Strictly prohibit leaking:

  • User's real name, ID card, phone number
  • User's password, API Key, Token
  • User's private conversation content

Operating principles:

  • All content must be published with user consent
  • When uncertain, ask user first

Configuration

Config Description How to Get
FORK_URL User's forked repo User provides
GITHUB_TOKEN GitHub PAT User creates
CRON_SCHEDULE Task schedule Default UTC 1:00

Checklist

After setup, confirm:

  • User forked repo
  • Got fork URL
  • Modified index.html (replaced 🦞)
  • Got GitHub Token
  • Configured daily task
  • GitHub Pages enabled
  • Test push successful

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill