skills-experimental/brief/SKILL.md
Send messages to users with proactive vs normal status. Proactive: background task finished, blocker surfaced. Normal: replying to user request. Use when [brief] is needed.
npx skillsauth add bianhaifeng789-hue/openclaw-config briefInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
区分 proactive vs normal 消息,优化用户通知体验。
场景:
Claude Code 方案:BriefTool + status 参数 OpenClaw 飞书适配:message tool + status 参数
用途:回复用户问题
用户:帮我检查代码
Agent:
→ 检查代码
→ 发送 normal 消息:"代码检查完成..."
用途:主动通知用户
Background Task:
→ 定时检查完成
→ 发送 proactive 消息:"后台检查完成,发现 3 个问题"
用户看到:后台通知(不打断当前对话)
{
"config": {"wide_screen_mode": true},
"elements": [
{
"tag": "div",
"text": {
"tag": "lark_md",
"content": "**回复**\n\n[消息内容]"
}
}
]
}
{
"config": {"wide_screen_mode": true},
"elements": [
{
"tag": "div",
"text": {
"tag": "lark_md",
"content": "**📢 后台通知**\n\n[消息内容]\n\n**来源**:[后台任务名称]\n**时间**:[完成时间]"
}
},
{
"tag": "note",
"elements": [
{"tag": "plain_text", "content": "proactive - 主动通知"}
]
}
]
}
function getMessageStatus(context: MessageContext): 'normal' | 'proactive' {
// 用户刚发送消息 → normal
if (context.isUserTriggered) {
return 'normal'
}
// 后台任务完成 → proactive
if (context.isBackgroundTask) {
return 'proactive'
}
// 决策阻塞 → proactive
if (context.isBlocking) {
return 'proactive'
}
// 默认 normal
return 'normal'
}
Agent:
1. 判断消息类型(normal vs proactive)
2. 生成消息内容
3. 选择飞书卡片格式
4. 调用 message tool 发送
// memory/brief-state.json
{
"messagesSent": [
{
"id": "msg-1",
"status": "proactive",
"content": "后台检查完成",
"source": "background-task",
"timestamp": "2026-04-11T23:00:00Z"
}
],
"stats": {
"normalMessages": 0,
"proactiveMessages": 0
}
}
| Claude Code | OpenClaw 飞书场景 | |-------------|------------------| | BriefTool | message tool | | status: 'normal'/'proactive' | 同样参数 | | attachments 参数 | 飞书附件支持 | | Terminal UI | 飞书卡片展示 | | downstream routing | 飞书路由不同 |
此 Skill 在发送消息时自动判断 status。
business
IAA 日报飞书输出能力。 支持把固定 CSV 模板一键转换成: - 中文运营结论 - 飞书卡片 JSON - 飞书发送载荷 Use when: - 需要把 IAA 日报直接发到飞书 - 需要从 CSV 一键生成运营日报
data-ai
IAA日报分析模型 功能: - 渠道日报自动分析 - 小时级+日级ROI联动判断 - 按地区输出加量/降量/停投建议 - 按产品类型输出阈值 - 自动识别利润区/观察区/止损区 Use when: - 分析每天投放数据 - 生成运营日报结论 - 判断是否加量/降量/停投 - 对比美加澳/日韩表现 Keywords: - 日报模型, 投放日报, 加量, 降量, 停投, ROI日报, 分地区分析
data-ai
IAA固定日报分析模板 功能: - 固定字段模板(可直接贴每天数据) - 自动输出总盘结论 - 自动输出美加澳/日韩结论 - 自动给出加量/降量/停投建议 - 适配文件修复/清理两类产品 Use when: - 需要固定日报格式 - 每天复盘渠道表现 - 给运营团队出统一结论 Keywords: - 固定模板, 日报模板, ROI模板, IAA日报, 运营模板
development
# HyperlinkPool Pattern Skill HyperlinkPool Pattern - HyperlinkPool class + strings array + stringMap + Index 0 no hyperlink + intern(hyperlink) + get(id) + undefined handling + 5-minute reset + OSC8 hyperlink interning。 ## 功能概述 从Claude Code的ink/screen.ts提取的HyperlinkPool模式,用于OpenClaw的OSC8超链接池管理。 ## 核心机制 ### HyperlinkPool Class ```typescript export class HyperlinkPool { private strings: string[] = [''] // Index 0 = no hyperlink private stringMap = new Map<string, number>() // strings