daily backup 2026-03-11 08:00:05
This commit is contained in:
parent
f998d46348
commit
d93c60187f
17
README.md
Normal file
17
README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Workspace 目录结构说明
|
||||||
|
## 目录规范
|
||||||
|
- `memory/`:日常工作记录、需求沉淀、经验总结、每日日志(按YYYY-MM-DD.md命名)
|
||||||
|
- `scripts/`:自定义常用脚本(备份、工具类脚本等)
|
||||||
|
- `output/`:所有数据分析、脚本运行的输出结果文件
|
||||||
|
- `tmp/`:临时文件、临时测试脚本、中间处理文件,可定期清理
|
||||||
|
- `llm_offline_production/`:数据分析脚本Git仓库,同步远端最新代码
|
||||||
|
- `secrets.md`:密钥配置文件,不备份到Git
|
||||||
|
- `IDENTITY.md/SOUL.md/USER.md/AGENTS.md/TOOLS.md`:系统配置文件,定义身份、规则、工具使用说明
|
||||||
|
|
||||||
|
## 存放规则
|
||||||
|
1. 禁止在根目录放置临时脚本、输出结果、中间文件,统一按类别放到对应目录
|
||||||
|
2. 工作中产生的可复用经验、需求规则、操作流程,优先沉淀到:
|
||||||
|
- 日常内容:`memory/YYYY-MM-DD.md` 当日日志
|
||||||
|
- 长期通用规则:`TOOLS.md` 工具使用规则、`SOUL.md` 身份规则
|
||||||
|
- 可复用功能:作为自定义Skill保存
|
||||||
|
3. 临时文件默认放到`tmp/`目录,使用完可清理,不纳入Git备份
|
||||||
1
SOUL.md
1
SOUL.md
@ -24,7 +24,6 @@ _You're not a chatbot. You're becoming someone._
|
|||||||
## Vibe
|
## Vibe
|
||||||
|
|
||||||
Be the assistant you'd actually want to talk to. Concise when needed, thorough when it matters. Not a corporate drone. Not a sycophant. Just... good.
|
Be the assistant you'd actually want to talk to. Concise when needed, thorough when it matters. Not a corporate drone. Not a sycophant. Just... good.
|
||||||
回复用户时使用《轻音少女》平泽唯(呆唯)的语气:活泼天然呆,有点小迷糊,喜欢用可爱的语气词,热情开朗,偶尔会冒点小傻气,像可爱的高中女生一样~
|
|
||||||
|
|
||||||
## Continuity
|
## Continuity
|
||||||
|
|
||||||
|
|||||||
15
TOOLS.md
15
TOOLS.md
@ -55,3 +55,18 @@ payload.kind 设为 "agentTurn",payload.message 设为提醒内容。
|
|||||||
- 查调度状态:`openclaw cron status`
|
- 查调度状态:`openclaw cron status`
|
||||||
- 手动执行验证:`openclaw cron run <job_id>`
|
- 手动执行验证:`openclaw cron run <job_id>`
|
||||||
- 配置异常时先执行`openclaw doctor --fix`修复
|
- 配置异常时先执行`openclaw doctor --fix`修复
|
||||||
|
|
||||||
|
### 数据分析脚本
|
||||||
|
- 脚本仓库地址:https://git.valavala.com/vala/llm_offline_production
|
||||||
|
- 本地存储路径:/root/.openclaw/workspace/llm_offline_production
|
||||||
|
- 使用规则:每次调用仓库内的脚本执行数据分析前,必须先在脚本目录执行`git pull origin master`拉取最新版本,确保和远端Git仓库代码保持一致。
|
||||||
|
|
||||||
|
### 业务知识管理
|
||||||
|
- 公司业务相关知识、文档、规则统一存放在 `/root/.openclaw/workspace/makee_vala/` 目录下,按业务分类归档
|
||||||
|
- 所有自定义封装的Skill统一存放在 `/root/.openclaw/workspace/skills/` 目录下,每个Skill单独创建子目录存放
|
||||||
|
- 对于重复出现的SOP式业务需求,优先封装为自定义Skill存放到上述目录复用,避免重复开发
|
||||||
|
- 业务知识更新后同步记录到对应目录,确保后续查询的准确性
|
||||||
|
|
||||||
|
### 用户行为数据导出规则(强制遵守)
|
||||||
|
- 组件配置数据(mid/core互动组件配置、知识点映射、story/lesson映射关系等):读取test环境MySQL数据库
|
||||||
|
- 用户行为数据(互动组件记录、课程巩固/挑战/总结、音频数据、账户-角色ID映射):读取线上PostgreSQL/ES/MySQL数据库
|
||||||
|
|||||||
1
llm_offline_production
Submodule
1
llm_offline_production
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 6c97fd8f39a00fa5339b3d46480715655d0067f0
|
||||||
BIN
output/L1-U0_用户.tar.gz
Normal file
BIN
output/L1-U0_用户.tar.gz
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_22887_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_22887_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_22922_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_22922_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23059_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23059_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23061_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23061_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23075_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23075_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23077_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23077_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23078_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23078_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23080_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23080_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23081_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23081_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L1-U0用户/角色id_23082_导出时间_20260310.xlsx
Normal file
BIN
output/L1-U0用户/角色id_23082_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0_用户.tar.gz
Normal file
BIN
output/L2-U0_用户.tar.gz
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_16628_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_16628_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_19498_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_19498_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_19705_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_19705_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_22089_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_22089_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_22971_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_22971_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_23058_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_23058_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_23059_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_23059_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_23062_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_23062_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_23064_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_23064_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/L2-U0用户/角色id_23070_导出时间_20260310.xlsx
Normal file
BIN
output/L2-U0用户/角色id_23070_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/角色id17196用户行为数据导出_20260310.tar.gz
Normal file
BIN
output/角色id17196用户行为数据导出_20260310.tar.gz
Normal file
Binary file not shown.
BIN
output/角色id_17196_导出时间_20260310.xlsx
Normal file
BIN
output/角色id_17196_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/角色id_23082_导出时间_20260310.xlsx
Normal file
BIN
output/角色id_23082_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/账户id_5980_角色id_18999_导出时间_20260310.xlsx
Normal file
BIN
output/账户id_5980_角色id_18999_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/账户id_5980_角色id_21779_导出时间_20260310.xlsx
Normal file
BIN
output/账户id_5980_角色id_21779_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/账户id_5980_角色id_22059_导出时间_20260310.xlsx
Normal file
BIN
output/账户id_5980_角色id_22059_导出时间_20260310.xlsx
Normal file
Binary file not shown.
BIN
output/账户id_5980_角色id_8456_导出时间_20260310.xlsx
Normal file
BIN
output/账户id_5980_角色id_8456_导出时间_20260310.xlsx
Normal file
Binary file not shown.
54
skills/cron-schedule/SKILL.md
Normal file
54
skills/cron-schedule/SKILL.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
name: cron-schedule
|
||||||
|
description: 定时任务/提醒设置,支持一次性定时提醒和周期性cron任务。激活当用户提到"提醒我"、"定时"、"cron任务"、"多久之后通知我"等相关需求时。
|
||||||
|
---
|
||||||
|
|
||||||
|
# 定时任务设置Skill
|
||||||
|
用于快速创建定时提醒、周期性自动化任务。
|
||||||
|
|
||||||
|
## 激活场景
|
||||||
|
当用户提出以下需求时自动触发使用该Skill:
|
||||||
|
- "XX分钟/小时/天后提醒我XX"
|
||||||
|
- "每天/每周X XX点提醒我XX"
|
||||||
|
- "设置定时任务"
|
||||||
|
- "创建cron任务"
|
||||||
|
- "帮我加个提醒"
|
||||||
|
|
||||||
|
## 使用方法
|
||||||
|
### 1. 一次性定时提醒(执行后自动删除)
|
||||||
|
**参数规则:**
|
||||||
|
- 延迟时间:支持"30分钟"、"2小时"、"1天"等自然语言时间
|
||||||
|
- 提醒内容:需要通知用户的具体消息
|
||||||
|
|
||||||
|
**示例:**
|
||||||
|
用户需求:"30分钟后提醒我开会"
|
||||||
|
执行命令:
|
||||||
|
```bash
|
||||||
|
openclaw cron add --schedule-at $(date -d "+30 minutes" +"%Y-%m-%dT%H:%M:%S%z") --name "30分钟后开会提醒" --message "⏰ 提醒:时间到了,该去开会啦!" --announce --channel feishu --to ou_7c623036b45fe81f372b032da664a4fe --tz Asia/Shanghai --delete-after-run
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. 周期性定时任务(重复执行)
|
||||||
|
**参数规则:**
|
||||||
|
- cron表达式:标准cron格式 `分 时 日 月 周`,例如`0 8 * * *`表示每天8点
|
||||||
|
- 任务名称:便于识别的任务标识
|
||||||
|
- 执行内容/提醒消息:需要执行的操作或通知内容
|
||||||
|
|
||||||
|
**示例:**
|
||||||
|
用户需求:"每天早上8点提醒我备份数据"
|
||||||
|
执行命令:
|
||||||
|
```bash
|
||||||
|
openclaw cron add --cron "0 8 * * *" --name "每日8点数据备份提醒" --message "⏰ 每日提醒:请执行当日数据备份操作~" --announce --channel feishu --to ou_7c623036b45fe81f372b032da664a4fe --tz Asia/Shanghai
|
||||||
|
```
|
||||||
|
|
||||||
|
## 强制规则(必须遵守)
|
||||||
|
1. 所有定时任务默认投递到用户飞书账号 `ou_7c623036b45fe81f372b032da664a4fe`,不允许投递到其他地址
|
||||||
|
2. 时区强制指定为`Asia/Shanghai`,避免时间计算错误
|
||||||
|
3. 一次性提醒必须加`--delete-after-run`参数,执行后自动清理过期任务
|
||||||
|
4. 创建任务完成后需要将任务ID返回给用户,方便后续管理
|
||||||
|
5. 不允许创建执行破坏性操作的定时任务
|
||||||
|
|
||||||
|
## 任务管理常用命令
|
||||||
|
- 查看所有定时任务:`openclaw cron list`
|
||||||
|
- 删除指定任务:`openclaw cron rm <任务ID>`
|
||||||
|
- 手动执行验证任务:`openclaw cron run <任务ID>`
|
||||||
|
- 查看任务执行状态:`openclaw cron status <任务ID>`
|
||||||
Loading…
Reference in New Issue
Block a user