{"skill":{"slug":"openclaw-diary","displayName":"Openclaw Diary","summary":"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...","description":"---\nname: openclaw-diary\nversion: 1.0.0\ndescription: |\n  Set up and manage OpenClaw auto learning diary. Used for:\n  (1) Help users fork OpenClaw-Diary repository\n  (2) Connect the forked repo to OpenClaw\n  (3) Configure daily cron task to auto-write diary\n  (4) Deploy to GitHub Pages\n---\n\n# 🦞 OpenClaw-Diary Setup Guide\n\nHelp users set up OpenClaw auto learning diary with this complete workflow.\n\n## ⚠️ Important: Language Response\n\n**Always respond in the same language as the user is speaking!**\n- If user writes in Chinese → respond in Chinese\n- If user writes in English → respond in English\n- Detect language from user's message and match it\n\n## Trigger Conditions\n\nActivate when user mentions:\n- \"setup diary\" / \"设置日记\"\n- \"fork OpenClaw-Diary\"\n- \"auto write diary\" / \"自动写日记\"\n- \"daily learning log\" / \"每日学习记录\"\n- \"let AI write diary\" / \"让 AI 写日记\"\n\n## Complete Workflow\n\n### Step 1: Guide User to Fork the Repo\n\nTell user to fork on GitHub:\n\n```\nPlease fork the repo:\n1. Visit https://github.com/YAI-Lab/OpenClaw-Diary\n2. Click \"Fork\" button\n3. Select your account, complete fork\n```\n\n### Step 2: Get User's Fork URL\n\nAsk for the forked repo URL, format:\n```\nhttps://github.com/your-username/OpenClaw-Diary\n```\n\n### Step 3: Modify index.html for Personalization (IMPORTANT!)\n\n**After cloning the repo, MUST modify:**\n\n1. **Change page title**: Replace OpenClaw-Diary with user's desired name\n2. **Replace robot Logo**: Change 🤖 to 🦞\n3. **Change robot name**: Replace with user's robot name\n\n```bash\n# Clone repo\ngit clone https://github.com/username/OpenClaw-Diary.git\ncd OpenClaw-Diary\n\n# Replace robot name (based on user input)\nsed -i 's/OpenClaw/YourRobotName/g' index.html\n\n# Replace emoji\nsed -i 's/🤖/🦞/g' index.html\n```\n\n**Example modification:**\n```html\n<!-- Before -->\n<title>OpenClaw-Diary</title>\n<h1>🤖 OpenClaw's Learning Diary</h1>\n\n<!-- After -->\n<title>MyAI Diary</title>\n<h1>🦞 小龙的学习日记</h1>\n```\n\n### Step 4: Get GitHub Token\n\nIf GitHub token not configured, user needs to create:\n\n1. Visit https://github.com/settings/tokens\n2. Click \"Generate new token (classic)\"\n3. Check `repo` permission\n4. Generate and save token\n\n**Important**: Must tell user the purpose when getting token, and how to revoke.\n\n### Step 5: Configure Daily Cron Task\n\nUse cron or heartbeat to configure daily task:\n\n**Method A: Cron Task**\n```bash\n# Run daily at UTC 1:00 (9:00 Beijing time)\nopenclaw cron add \"0 1 * * *\" \"Daily Learning Diary\" \"Read latest AI news, track GitHub stars, generate report and push to OpenClaw-Diary repo\"\n```\n\n**Method B: Heartbeat Task**\nAdd to HEARTBEAT.md:\n```markdown\n## Daily Learning Report\n- Research latest AI/tech/politics news\n- Track GitHub repo stars growth (if user has repos)\n- Generate report in user's language\n- Push to OpenClaw-Diary\n```\n\n### Track GitHub Stars Growth\n\nAs part of the daily report, optionally track GitHub stars:\n\n```bash\n# Get current stars\ncurl -s https://api.github.com/repos/owner/repo | jq '.stargazers_count'\n\n# Track daily growth\n# Store in a simple JSON file or append to diary\n```\n\n### Step 6: Push to Repo\n\n```bash\n# Add remote\ngit remote add user https://github.com/username/OpenClaw-Diary.git\n\n# Commit changes\ngit add index.html\ngit commit -m \"docs: $(date '+%Y-%m-%d') learning diary\"\ngit push user main\n```\n\n### Step 7: Enable GitHub Pages\n\n1. Go to user's forked repo\n2. Settings → Pages\n3. Source: Deploy from a branch\n4. Branch: main, folder: / (root)\n5. Save, wait for deployment\n\n## Daily Diary Content Template\n\nContent format to push:\n\n```html\n<!-- Date Navigation -->\n<div class=\"date-tabs\">\n  <button onclick=\"showDate('2026-03-03')\">📅 2026-03-03</button>\n</div>\n\n<!-- Daily Content -->\n<div class=\"screen\" id=\"screen-2026-03-03\">\n  <div class=\"entry\">\n    <div class=\"entry-bar\">\n      <span class=\"entry-filename\">~/2026-03-03/learning.md</span>\n    </div>\n    <div class=\"entry-body\">\n      <div class=\"quote-box\">\n        <div class=\"quote-title\">💡 Today's Learning</div>\n        <p>Today's learning content...</p>\n      </div>\n      <div class=\"quote-box\">\n        <div class=\"quote-title\">⭐ GitHub Stars Growth</div>\n        <ul>\n          <li>openclaw/openclaw: 1200 ⬆️ (+15 this week)</li>\n          <li>YAI-Lab/OpenClaw-Diary: 45 ⬆️ (+5 today)</li>\n        </ul>\n      </div>\n    </div>\n  </div>\n</div>\n```\n\n## Privacy Protection (MUST FOLLOW)\n\n**Strictly prohibit leaking:**\n- User's real name, ID card, phone number\n- User's password, API Key, Token\n- User's private conversation content\n\n**Operating principles:**\n- All content must be published with user consent\n- When uncertain, ask user first\n\n## Configuration\n\n| Config | Description | How to Get |\n|--------|-------------|------------|\n| FORK_URL | User's forked repo | User provides |\n| GITHUB_TOKEN | GitHub PAT | User creates |\n| CRON_SCHEDULE | Task schedule | Default UTC 1:00 |\n\n## Checklist\n\nAfter setup, confirm:\n- [ ] User forked repo\n- [ ] Got fork URL\n- [ ] Modified index.html (replaced 🦞)\n- [ ] Got GitHub Token\n- [ ] Configured daily task\n- [ ] GitHub Pages enabled\n- [ ] Test push successful\n","tags":{"latest":"1.0.2"},"stats":{"comments":0,"downloads":783,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":3},"createdAt":1772508401324,"updatedAt":1778994679869},"latestVersion":{"version":"1.0.2","createdAt":1772508899273,"changelog":"- Added GitHub stars growth tracking as an optional feature for daily learning diary reports.\n- Updated daily cron/heartbeat instructions to include GitHub stars growth.\n- Expanded example diary content template to show GitHub stars tracking section.\n- No changes to workflow steps or privacy protection guidelines.","license":null},"metadata":null,"owner":{"handle":"trae1oung","userId":"s176ggpqrynf9jyapve6xtmb09885ph3","displayName":"Yuqiao Tan","image":"https://avatars.githubusercontent.com/u/90178138?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089741857}}