kid0317/cc_workspace_bot/task
Claude Code and agent skill by kid0317/cc_workspace_bot
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
当用户要求创建定时自动执行的任务(如每天推送简报、每周生成报告)时使用
Install
npx vskill@latest install kid0317/cc_workspace_bot/taskSKILL.md
Task Skill
本 skill 规范如何通过写入 YAML 文件来创建定时任务。
任务文件格式
任务文件路径:<tasks_dir>/<uuid>.yaml
创建任务流程
- 从 SESSION_CONTEXT.md 读取
Tasks dir和App ID - 从当前对话的
<system_routing>块解析默认发送目标:
- 私聊(p2p):
target_type: "p2p",target_id填写sender_id(ou_*格式的用户 open_id) - 群聊(group):
routing_key格式为group:{chat_id}→target_type: "group",target_id: "{chat_id}" created_by填写<system_routing>中的sender_id- ⚠️ 注意:
routing_key中p2p:后面的是chat_id(oc_*格式),不是open_id,不可用作target_id - 若用户明确指定了其他发送目标,以用户指定为准
- 生成一个 UUID 作为任务 ID 和文件名
- 确认用户的意图:cron 时间、执行内容(发送目标已从步骤 2 自动确定)
- 按上述格式写入
<tasks_dir>/<uuid>.yaml - 框架会自动检测文件变更并注册定时任务
cron 表达式速查
管理任务
- 禁用任务:将文件中的
enabled: false - 删除任务:删除对应 YAML 文件(框架自动注销)
- 修改任务:直接修改 YAML 文件(框架自动更新)
执行流程
任务触发后,框架的完整执行流程:
prompt 写作要点
- 写成任务指令,而不是普通聊天消息。例如:"请获取今日 A 股行情,生成简报并说明操作建议。"
- 避免在 prompt 中主动调用 feishu_ops 发送消息:框架会把 claude 的最终输出自动发一次,若 prompt 中又指示 claude 通过 feishu_ops 发送,会导致重复发送。如需发送富文本/文档,应在 prompt 中指示 claude 调用 feishu_ops,并在最终输出中只返回一个简短的完成确认,避免框架再次重复发送。
- prompt 中可以引用 memory/ 内容,使用绝对路径(从 SESSION_CONTEXT.md 读取)
注意事项
- tasks/ 目录中每个任务独立文件,无冲突
- app_id 必须与当前 SESSION_CONTEXT.md 中一致
- target_id 必须是有效的飞书 open_id 或 chat_id
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingworkspaces/_template/.claude/skills/task/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 2
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kid0317/cc_workspace_bot/task)