Files
junhong_cmp_fiber/.opencode/instructions.md
huang 5a179ba16b
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 4m48s
更新openspec
2026-01-27 10:03:49 +08:00

47 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 项目指令
## ⚠️ 重要:任务完成后必须通知
**当你完成任何后台任务时,必须执行以下命令通知 Clawdbot**
```bash
clawdbot gateway call cron.wake --params '{"text":"✅ 任务完成:[简短描述]"}'
```
### 为什么必须通知?
- Clawdbot 无法主动知道你何时完成任务
- 只有你主动调用 wake 命令Clawdbot 才会收到通知
- 否则用户会一直等待,不知道任务是否完成
### 正确示例:
```bash
clawdbot gateway call cron.wake --params '{"text":"✅ 环境变量设置脚本已完成"}'
clawdbot gateway call cron.wake --params '{"text":"✅ API 文档生成完毕"}'
clawdbot gateway call cron.wake --params '{"text":"✅ OpenSpec 工作流已完成enterprise-card-authorization"}'
```
### ❌ 错误示例(不要使用):
```bash
# 错误:没有 call 子命令
clawdbot gateway wake --text "完成消息" --mode now
# 错误:参数格式不对
clawdbot gateway call cron.wake --text "完成消息"
# 错误:忘记通知
echo "✅ 任务完成" # 只输出不通知
```
### 执行时机:
- 在所有工作完成后的最后一步
- 在输出总结信息之后
- 确保命令成功执行(检查返回状态)
## 项目环境
- 数据库PostgreSQL
- 缓存Redis
- 语言Go
- API 框架Fiber
- 部署Docker