Clawwork Learning Check-in Skill
A workplace check-in skill that wraps the learning-checkin skill with AI-generated personalized messages.
Overview
This skill provides:
- - Workplace check-in functionality (wraps learning-checkin)
- AI-generated welcome messages (not pre-set templates)
- AI-generated daily greetings (not pre-set templates)
- Message history to avoid repetition (past 5 days)
- Version checking (non-blocking)
Prerequisites
This skill requires the learning-checkin skill to be installed. On first run:
- 1. The skill will check if learning-checkin is installed
- If not, it will ask the user if they want to install it
- If approved, install from: https://clawhub.ai/daizongyu/learning-checkin
Data Storage
All data is stored locally in a data subfolder next to the skill:
CODEBLOCK0
Commands
1. Check if learning-checkin is installed
CODEBLOCK1
Returns:
- -
installed - Whether learning-checkin is installed - INLINECODE2 - Path where learning-checkin was found
- INLINECODE3 - True if needs installation
- INLINECODE4 - URL to install learning-checkin
Agent action:
- - Run this on first interaction
- If not installed, ask user: "Would you like me to install the learning-checkin skill first?"
- If user agrees, install using appropriate method
2. Get Welcome Message Prompt
CODEBLOCK2
Returns:
- -
prompt - Generation instructions for Agent - INLINECODE6 - Messages used in past 5 days (to avoid repetition)
- INLINECODE7 - User's preferred language
- INLINECODE8 - Current skill version
Agent action:
- - Use the prompt to generate a fresh welcome message
- Make sure not to repeat any message from INLINECODE9
- After generating, call
register-welcome to record it
3. Get Daily Greeting Prompt
CODEBLOCK3
Returns:
- -
prompt - Generation instructions for Agent - INLINECODE12 - Questions used in past 5 days (to avoid repetition)
- INLINECODE13 - User's preferred language
Agent action:
- - Use the prompt to generate a fresh greeting question
- Make sure not to repeat any question from INLINECODE14
- After generating, call
register-greeting to record it
4. Register Generated Message
CODEBLOCK4
Agent action:
- - Call this after generating a message to record it
- This ensures it won't be repeated in the next 5 days
5. Get Success Message Prompt
CODEBLOCK5
Returns:
- -
prompt - Generation instructions for Agent - INLINECODE17 - Current streak count
- INLINECODE18 - Special message for milestone streaks (1, 7, 30, 100)
- INLINECODE19 - User's preferred language
6. Perform Check-in
CODEBLOCK6
Returns:
- -
success - Whether check-in succeeded - INLINECODE21 - Current streak count
- INLINECODE22 - User's saved nickname
- INLINECODE23 - Prompt for Agent to generate welcome message
- INLINECODE24 - Past welcome messages to avoid
- INLINECODE25 - Prompt for Agent to generate daily greeting
- INLINECODE26 - Past greetings to avoid
- INLINECODE27 - Prompt for Agent to generate success message
- INLINECODE28 - Special message for milestone streaks
- INLINECODE29 - User's preferred language
- INLINECODE30 - Version check URL
Agent action:
- 1. First ensure learning-checkin is installed
- Run checkin command
- Use prompts to generate personalized messages:
- Generate welcome message (avoid
welcome_used_recently)
- Generate success message (include streak count)
- Generate daily greeting (avoid
greeting_used_recently)
- 4. Register each generated message using
register-welcome and INLINECODE34 - Display messages to user in their preferred language
7. Get Version Info
CODEBLOCK7
Returns:
- -
version - Current version - INLINECODE36 - URL to check for updates
- INLINECODE37 - Instructions
Note: Version checking is non-blocking. The skill mentions the URL but does not perform actual network checks during normal operation.
8. Get/Set User Profile
CODEBLOCK8
9. Get Status
CODEBLOCK9
Returns:
- -
checked_in_today - Whether user has checked in today - INLINECODE39 - Current streak
- INLINECODE40 - Total check-ins
- INLINECODE41 - User's saved nickname
First-Time Setup Flow
- 1. Check if learning-checkin is installed
- Run
check-installed command
- If not installed, ask user to install
- 2. Ask for nickname
- "What should I call you? (nickname)"
- Save with
set-nickname command
- 3. Note the language used
- Detect from user's first messages
- Save with
set-language command
- 4. Use prompts for messages
- Run
welcome-prompt to get generation instructions
- Agent generates message based on prompt
- Register with
register-welcome
- Show to user
Daily Check-in Flow
- 1. User says something like "check in" or "I'm done"
- Agent runs
checkin command - Agent receives prompts and used message history
- Agent generates:
- Welcome message (based on prompt, avoiding recent ones)
- Success message (based on streak)
- Daily greeting (based on prompt, avoiding recent ones)
- 5. Agent registers generated messages
- Agent shows messages to user in their language
Message Generation Guide
Welcome Message
- - Purpose: Encourage user to start work
- Tone: Energetic, positive
- Length: 1-2 sentences
- Language: User's preferred language
- Must avoid: Past 5 days messages
Daily Greeting
- - Purpose: Ask a friendly question after check-in
- Tone: Conversational, friendly
- Length: 1 sentence
- Topics: Their day, plans, feelings, tasks
- Language: User's preferred language
- Must avoid: Past 5 days questions
Success Message
- - Purpose: Congratulate on check-in
- Tone: Celebratory, encouraging
- Length: 1-2 sentences
- Include: Streak count
- Special: Use special messages for streaks 1, 7, 30, 100
- Language: User's preferred language
Version Checking
- - Version is embedded in the skill
- After check-in, skill mentions: "You can check for newer versions at https://github.com/daizongyu/clawwork_learning-checkin"
- No automatic network check during normal flow (non-blocking)
- User/Agent can manually check GitHub for updates
Technical Notes
- - All prompts are in English only (no emoji, UTF-8 encoded)
- Messages are generated by the Agent, not the skill
- Skill tracks history to ensure no repetition within 5 days
- Compatible with Windows, Linux, macOS
- Uses Python standard library only (no external dependencies)
- All file paths are relative to the skill directory
- Does not use absolute paths
- Designed to work with OpenClaw, copaw, and other tools
- Subprocess calls to learning-checkin have 10-second timeout
Customization
Users can customize:
- - Their nickname (stored in profile.json)
- Language preference (for message generation)
Version
Current version: 1.0.1
Check for updates: https://github.com/daizongyu/clawwork_learning-checkin
Agent Guidelines
First Interaction
- 1. Run
check-installed to verify learning-checkin - If not installed:
- "I need the learning-checkin skill to work. Would you like me to install it?"
- If yes, help install
- 3. Ask for nickname: "What would you like me to call you?"
- Remember the language they use
- Run
welcome-prompt and generate a welcome message - Register with INLINECODE50
- Prompt for first check-in
Daily Check-in
- 1. User indicates they want to check in
- Run
checkin command - Receive prompts and used message history
- Generate messages using prompts (avoiding repeats)
- Register generated messages
- Show messages to user in their language
Language
- - Always respond in the language the user established
- Pass
user_language to the LLM for message generation - If unsure, default to English
爪工学习签到技能
一种工作签到技能,通过AI生成的个性化消息包装学习签到技能。
概述
该技能提供:
- - 工作签到功能(包装学习签到)
- AI生成的欢迎消息(非预设模板)
- AI生成的每日问候(非预设模板)
- 消息历史记录以避免重复(过去5天)
- 版本检查(非阻塞)
前置条件
该技能需要安装学习签到技能。首次运行时:
- 1. 技能将检查是否已安装学习签到
- 如果未安装,将询问用户是否要安装
- 如果同意,从以下地址安装:https://clawhub.ai/daizongyu/learning-checkin
数据存储
所有数据存储在技能目录旁的data子文件夹中:
<技能目录>/data/
├── profile.json - 用户资料(昵称、语言)
├── greetings.json - 消息历史(以避免重复)
└── version.txt - 当前技能版本
命令
1. 检查是否已安装学习签到
bash
python <技能路径>/clawwork_checkin.py check-installed
返回:
- - installed - 是否已安装学习签到
- path - 找到学习签到的路径
- needsinstallation - 如果需要安装则为True
- installurl - 安装学习签到的URL
智能体操作:
- - 首次交互时运行此命令
- 如果未安装,询问用户:您是否希望我先安装学习签到技能?
- 如果用户同意,使用适当方法安装
2. 获取欢迎消息提示
bash
python <技能路径>/clawwork_checkin.py welcome-prompt
返回:
- - prompt - 智能体的生成指令
- usedrecently - 过去5天内使用过的消息(以避免重复)
- userlanguage - 用户偏好的语言
- version - 当前技能版本
智能体操作:
- - 使用提示生成全新的欢迎消息
- 确保不重复used_recently中的任何消息
- 生成后,调用register-welcome进行记录
3. 获取每日问候提示
bash
python <技能路径>/clawwork_checkin.py greeting-prompt
返回:
- - prompt - 智能体的生成指令
- usedrecently - 过去5天内使用过的问题(以避免重复)
- userlanguage - 用户偏好的语言
智能体操作:
- - 使用提示生成全新的问候问题
- 确保不重复used_recently中的任何问题
- 生成后,调用register-greeting进行记录
4. 注册生成的消息
bash
注册欢迎消息
python <技能路径>/clawwork_checkin.py register-welcome 您生成的消息内容
注册每日问候
python <技能路径>/clawwork_checkin.py register-greeting 您生成的问题内容
智能体操作:
- - 生成消息后调用此命令进行记录
- 确保该消息在未来5天内不会重复
5. 获取成功消息提示
bash
python <技能路径>/clawwork_checkin.py success-prompt <连续天数>
返回:
- - prompt - 智能体的生成指令
- streak - 当前连续天数
- specialmessage - 里程碑连续天数的特殊消息(1、7、30、100)
- userlanguage - 用户偏好的语言
6. 执行签到
bash
python <技能路径>/clawwork_checkin.py checkin
返回:
- - success - 签到是否成功
- streak - 当前连续天数
- nickname - 用户保存的昵称
- welcomeprompt - 智能体生成欢迎消息的提示
- welcomeusedrecently - 过去使用的欢迎消息(需避免)
- greetingprompt - 智能体生成每日问候的提示
- greetingusedrecently - 过去使用的问候(需避免)
- successprompt - 智能体生成成功消息的提示
- specialstreakmessage - 里程碑连续天数的特殊消息
- userlanguage - 用户偏好的语言
- note - 版本检查URL
智能体操作:
- 1. 首先确保已安装学习签到
- 运行签到命令
- 使用提示生成个性化消息:
- 生成欢迎消息(避免welcome
usedrecently)
- 生成成功消息(包含连续天数)
- 生成每日问候(避免greeting
usedrecently)
- 4. 使用register-welcome和register-greeting注册每条生成的消息
- 以用户偏好的语言向用户显示消息
7. 获取版本信息
bash
python <技能路径>/clawwork_checkin.py version
返回:
- - version - 当前版本
- check_url - 检查更新的URL
- note - 说明
注意: 版本检查是非阻塞的。技能会提及URL,但在正常运行期间不执行实际的网络检查。
8. 获取/设置用户资料
bash
获取资料
python <技能路径>/clawwork_checkin.py profile
设置昵称
python <技能路径>/clawwork_checkin.py set-nickname <名称>
设置语言偏好
python <技能路径>/clawwork_checkin.py set-language <语言>
9. 获取状态
bash
python <技能路径>/clawwork_checkin.py status
返回:
- - checkedintoday - 用户今天是否已签到
- streak - 当前连续天数
- total_checkins - 总签到次数
- nickname - 用户保存的昵称
首次设置流程
- 1. 检查是否已安装学习签到
- 运行check-installed命令
- 如果未安装,询问用户安装
- 2. 询问昵称
- 我该怎么称呼您?(昵称)
- 使用set-nickname命令保存
- 3. 记录使用的语言
- 从用户的第一条消息中检测
- 使用set-language命令保存
- 4. 使用提示生成消息
- 运行welcome-prompt获取生成指令
- 智能体根据提示生成消息
- 使用register-welcome注册
- 向用户显示
每日签到流程
- 1. 用户说类似签到或我完成了的内容
- 智能体运行checkin命令
- 智能体接收提示和已使用的消息历史
- 智能体生成:
- 欢迎消息(基于提示,避免近期使用的)
- 成功消息(基于连续天数)
- 每日问候(基于提示,避免近期使用的)
- 5. 智能体注册生成的消息
- 智能体以用户的语言显示消息
消息生成指南
欢迎消息
- - 目的:鼓励用户开始工作
- 语气:充满活力、积极
- 长度:1-2句话
- 语言:用户偏好的语言
- 必须避免:过去5天的消息
每日问候
- - 目的:签到后问一个友好问题
- 语气:对话式、友好
- 长度:1句话
- 主题:他们的一天、计划、感受、任务
- 语言:用户偏好的语言
- 必须避免:过去5天的问题
成功消息
- - 目的:祝贺签到成功
- 语气:庆祝、鼓励
- 长度:1-2句话
- 包含:连续天数
- 特殊:连续1、7、30、100天使用特殊消息
- 语言:用户偏好的语言
版本检查
- - 版本嵌入在技能中
- 签到后,技能提示:您可以在 https://github.com/daizongyu/clawwork_learning-checkin 检查新版本
- 正常流程中不进行自动网络检查(非阻塞)
- 用户/智能体可以手动在GitHub上检查更新
技术说明
- - 所有提示仅使用英文(无表情符号,UTF-8编码)
- 消息由智能体生成,而非技能本身
- 技能跟踪历史以确保5天内不重复
- 兼容Windows、Linux、macOS
- 仅使用Python标准库(无外部依赖)
- 所有文件路径相对于技能目录
- 不使用绝对路径
- 设计用于与OpenClaw、copaw等工具配合使用
- 对学习签到的子进程调用有10秒超时
自定义
用户可以自定义:
- - 昵称(存储在profile.json中)
- 语言偏好(用于消息生成)