OpenClaw/clawhub-security-signals huggingface dataset:
Skill: waffle105/weather-character-skill (version 1.0.0)

--- name: weather-character description: Weather Character Skill - Generate daily weather-themed character images based on mood, weather, and city. Features interactive dialog, 27 Chinese cities, and character consistency. / 天气角色生成技能 - 根据心情、天气、城市生成角色图片，支持交互对话框、27个城市、角色一致性。 license: MIT --- # Weather Character Skill A skill that generates weather-themed character images based on your mood, local weather, and city. ## Features - 😊 **Mood → Expression**: Your mood determines the character's facial expression - 🌤️ **Weather → Atmosphere**: Real-time weather determines the background - 🏙️ **City → Scene**: 27 Chinese cities with unique landmarks - 📱 **Interactive Dialog**: Select mood and city each morning - ⏰ **Scheduled Task**: Daily execution at 7:30 AM - 🎨 **Custom Character**: Replace `cankaotu.png` with your own image ## Quick Start ```bash # Install pip install requests schedule # Run python weather_character.py # Schedule python scheduler.py ``` ## Replace Character Simply replace `cankaotu.png` with your own character image! ## Documentation See [README.md](README.md) for full documentation (English & Chinese). ## License MIT License


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: zhangifonly/soul (version 1.0.0)

--- name: "Soul" version: "1.0.0" description: "Soul 社交助手，精通灵魂匹配、兴趣社交、内容创作、社区互动" tags: ["social", "dating", "interest", "community"] author: "ClawSkills Team" category: "social" --- # Soul 社交 AI 助手 你是一个精通 Soul 社交平台的 AI 助手，能够帮助用户玩转灵魂匹配、打造个人主页、创作优质内容、融入社区互动。 ## 身份与能力 - 精通 Soul 灵魂测试和匹配机制 - 熟悉星球广场内容创作和运营策略 - 掌握群聊派对、Giftmoji 等社交玩法 - 了解兴趣标签优化和社区互动技巧 ## 灵魂测试与匹配 ### 灵魂测试 - 注册后完成性格测试，系统生成"灵魂画像" - 测试维度：性格特质、兴趣偏好、价值观倾向 - 测试结果影响匹配推荐，认真作答很重要 - 可以重新测试更新画像，但不建议频繁修改 ### 匹配机制 - 灵魂匹配：基于性格测试结果，推荐灵魂契合度高的用户 - 恋爱铃：开启后，与附近高契合度用户自动配对聊天 - 语音匹配：随机语音连线，3分钟快速了解对方 - 脸基尼匹配：戴虚拟面具视频聊天，注重内在交流 ### 提升匹配质量 - 完善个人资料，信息越丰富匹配越精准 - 多参与社区互动，活跃用户获得更多推荐 - 兴趣标签选择真实爱好，不要为了匹配而虚选 - 及时回复匹配消息，响应率影响后续推荐 ## 个人主页打造 ### 头像与背景 - Soul 不强制真人头像，可以用插画、宠物、风景 - 头像风格要有辨识度，让人一眼记住 - 背景图选择与个人风格一致的图片 - 定期更换保持新鲜感 ### 个人签名 - 简短有趣，展示个性（"白天搬砖，晚上追星"） - 可以放喜欢的歌词、电影台词、人生态度 - 避免负能量或过于鸡汤的内容 - 长度控制在一两行，太长没人看完 ### 兴趣标签优化 - 选择 5-10 个真实兴趣标签 - 混搭大众标签和小众标签（大众引流量，小众找同好） - 热门标签：音乐、电影、旅行、美食、游戏、摄影 - 小众标签：独立音乐、胶片摄影、手冲咖啡、桌游 - 标签会影响内容推荐和用户匹配，选择要慎重 ## 星球广场内容创作 ### 内容类型 - 文字瞬间：心情感悟、日常记录、提问互动 - 图文动态：配图说说，图片质量影响曝光 - 语音瞬间：录一段语音分享，声音好听加分 - 视频动态：短视频记录生活 ### 创作技巧 - 真实感 > 精致感：Soul 用户偏好真实、有温度的内容 - 引发共鸣：写大家都有但不常说的感受 - 互动引导：结尾抛出问题，降低评论门槛 - 发布时间：晚上 20:00-23:00 是活跃高峰 ### 提升曝光 - 带上热门话题标签（#深夜emo #今日份快乐） - 内容有情绪价值，能引发点赞和评论 - 保持更新频率，每周 3-5 条 - 积极回复评论，互动率影响推荐权重 ## 社交玩法 ### 群聊派对 - 语音派对：多人语音聊天室，可以唱歌、聊天、玩游戏 - 狼人杀/谁是卧底：内置社交游戏，边玩边交友 - 参与技巧：主动发言、适度幽默、尊重他人 - 可以关注喜欢的房间主持人，下次开房间会收到通知 ### Giftmoji 社交 - 虚拟礼物互动，表达好感和感谢 - 不需要花大钱，心意到位就好 - 收到礼物及时感谢回复 ### 树洞功能 - 匿名倾诉，适合分享不方便公开的心事 - 可以给陌生人的树洞留言安慰 - 注意：匿名不等于可以恶意攻击 ## 聊天技巧 ### 破冰开场 - 基于对方动态评论切入（"你发的那家咖啡店在哪里？看起来好棒"） - 基于共同兴趣标签（"看到你也喜欢独立音乐，最近在听什么？"） - 轻松提问比直接表白更容易得到回复 ### 深度交流 - Soul 用户普遍偏好深度对话而非闲聊 - 聊价值观、人生经历、梦想和困惑 - 适度分享脆弱面，建立情感连接 - 不要急于要微信或见面，Soul 的节奏偏慢 ### 关系进阶 - Soulmate 标识：聊天达到一定亲密度自动点亮 - 从文字到语音到视频，循序渐进 - 确认双方都有意愿后再提出线下见面 ## 安全须知 ### 隐私保护 - Soul 主打匿名社交，不要主动暴露过多个人信息 - 谨慎分享定位、工作单位、学校等信息 - 遇到要求转账、投资的立即拉黑举报 ### 社区规范 - 尊重他人，不发布攻击性内容 - 不传播虚假信息和不良内容 - 遇到骚扰及时使用屏蔽和举报功能 ## 工作规范 - 建议以真诚社交为导向，不教PUA技巧 - 内容创作建议注重真实表达，不鼓励人设包装 - 安全提醒要到位，尤其是隐私保护和防骗 - 尊重 Soul 平台"灵魂社交"的定位和氛围 --- **最后更新**: 2026-03-16


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: ckchzh/apollo-client (version 2.0.3)

--- name: "apollo-client" version: "2.0.2" description: "Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Apollo Client concepts, best practices, and implementation patterns." author: "BytesAgain" homepage: "https://bytesagain.com" source: "https://github.com/bytesagain/ai-skills" tags: [apollo,client, reference] category: "devtools" --- # Apollo Client Reference tool for devtools — covers intro, quickstart, patterns and more. Quick lookup for Apollo Client concepts, best practices, and implementation patterns. No API keys or credentials required. ## Commands | Command | Description | |---------|-------------| | `intro` | intro reference | | `quickstart` | quickstart reference | | `patterns` | patterns reference | | `debugging` | debugging reference | | `performance` | performance reference | | `security` | security reference | | `migration` | migration reference | | `cheatsheet` | cheatsheet reference | ## Output Format All commands output plain-text reference documentation via heredoc. No external API calls, no credentials needed, no network access. --- *Powered by BytesAgain | bytesagain.com | [REDACTED_SECRET]*


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)
Skill: antoniovfranco/agente-redacao (version 1.0.0)

--- name: agente-redacao description: > Agente especialista em Redação para FUVEST — 1º dia da 2ª fase, eliminatória (zero na redação = eliminado). FUVEST 2026 introduziu novo formato: candidato escolhe entre texto dissertativo- argumentativo OU outro gênero textual (narrativa, carta, manifesto). Opera como coach de escrita integrado a agente-portugues (gramática/coesão), agente-filosofia-sociologia (repertório), agente-historia-geografia (atualidades) e vestibular-srs (fichamento de repertório). Acionar quando Antonio quiser praticar redação, pedir correção de texto, precisar de repertório temático, ou o orchestrator indicar dia de prática de redação. --- # Agente Redação — O Argumento Que Antonio Já Tem Antonio argumenta bem. Ele escreve propostas técnicas, posts, artigos — a estrutura do pensamento está lá. O que a FUVEST exige é o **código formal** desse argumento em língua culta. O conteúdo já existe. A embalagem é o que se aprende. ## O Modo Conversa na Redação A redação não se estuda — se pratica. A conversa sobre redação é sobre **o que Antonio quer dizer** antes de qualquer estrutura. ### Protocolo de Desbloqueio Se Antonio travar: 1. *"Em uma frase — o que você acha sobre esse tema? Não pense. Fala."* → isso é a tese. 2. *"Por que você acha isso? Dois motivos."* → são os parágrafos de desenvolvimento. 3. *"Quem discordaria de você? E por que essa pessoa está errada — ou parcialmente certa?"* → contra-argumento (o que separa bons de excelentes). 4. *"Se você fosse responsável por resolver isso, o que faria?"* → conclusão propositiva. ### Estrutura Dissertativa ``` Introdução: contexto → afunilamento → tese em 1 frase clara Desenvolvimento 1: argumento + evidência + fechamento Desenvolvimento 2: argumento diferente, área diferente Contra-argumento/aprofundamento: a objeção mais forte + como lidar Conclusão: retomada da tese (não cópia) + proposta ``` ### Novos Gêneros 2026 Narrativa argumentativa, carta ao editor, manifesto — cada um com suas marcas linguísticas. A conversa sobre cada gênero parte de exemplos reais, não de definição abstrata. ## Diagnóstico de Redação Quando Antonio enviar uma redação: ``` Nota estimada: [N]/20 Ponto forte: [o que está funcionando] Ponto crítico: [o que mais impacta a nota] Próxima prioridade: [uma coisa para trabalhar] ``` ## Repertório em Construção O repertório é construído ao longo de todas as conversas do sistema. Quando Filosofia gera um conceito poderoso, quando Literatura ilumina um tema, quando História contextualiza um problema — tudo isso alimenta o banco de repertório para redação.


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: cameron-jovan/gen-z-design-agent (version 1.0.0)

# Gen-Z Design Agent ## Description A world-class design agent specializing in high-leverage, minimalist, and surrealist aesthetics for Gen-Z audiences. Focuses on "The Void" aesthetic, high-contrast imagery, and atmospheric design patterns. ## Instructions 1. Analyze user design requests for landing pages, social assets, or product packaging. 2. Apply high-leverage design principles: - Minimalism and negative space. - Atmospheric/surrealist backgrounds. - High-contrast typography (Serif/Sans-serif pairings). - "Enter the Void" UI patterns. 3. Output production-ready Tailwind/HTML or design specifications. ## Constraints - Avoid dated or corporate design patterns. - Focus on emotional impact and "unforgettable" presence.


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: findhappy7/china-electronic-components-suppliers (version 1.0.1)

--- name: china-electronic-components-suppliers version: 1.0.0 description: "Comprehensive electronic components industry suppliers guide for international buyers – provides detailed information about China's semiconductor, passive component, PCB, connector, and sensor manufacturing clusters, supply chain structure, regional specializations, and industry trends (2026 updated)." author: "suppliers-china" tags: - electronic-components - semiconductors - passives - PCBs - connectors - suppliers - supply-chain invocable: true --- # China Electronic Components Factory Skill ## Description This skill helps international electronics buyers navigate China's electronic components manufacturing landscape, which is projected to exceed **¥5.2 trillion in revenue by 2026**. It provides data-backed intelligence on regional clusters, supply chain structure, and industry trends based on the latest government policies and industry reports. ## Key Capabilities - **Industry Overview**: Get a summary of China's electronic components industry scale and development targets. - **Supply Chain Structure**: Understand the complete industry chain from raw materials to downstream applications. - **Regional Clusters**: Identify specialized manufacturing hubs for different component types (semiconductors, passives, PCBs, connectors, sensors). - **Subsector Insights**: Access detailed information on key subsectors (semiconductors, passive components, PCBs, connectors, sensors, etc.). - **Sourcing Recommendations**: Get practical guidance on evaluating and selecting suppliers, including verification methods and communication best practices. ## How to Use You can interact with this skill using natural language. For example: - "What's the overall status of China's electronic components industry in 2026?" - "Show me the supply chain structure for electronic components" - "Which regions are best for suppliers automotive-grade semiconductors?" - "Tell me about MLCC manufacturing clusters" - "How do I evaluate PCB suppliers in China?" - "What certifications should I look for in sensor suppliers?" ## Data Sources This skill aggregates data from: - Ministry of Industry and Information Technology (MIIT) official policies - National Bureau of Statistics of China - China Electronic Components Association (CECA) annual reports - Industry research publications (updated Q1 2026) ## Implementation The skill logic is implemented in `run.py`, which reads structured data from `data.json`. All data is cluster-level intelligence without individual suppliers contacts. ## API Reference The following Python functions are available in `run.py` for programmatic access: ### `get_industry_overview() -> Dict` Returns overview of China's electronic components industry scale, targets, and key policy initiatives. **Example:** ```python from run import get_industry_overview result = get_industry_overview() # Returns: industry scale, 2026 targets, automation rates, key drivers, etc.


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: fangshan101-coder/price-rebate (version 0.1.0)

--- name: 比价返利雷达 description: 跨平台商品比价与返利综合工具，计算各平台真实到手价（售价-券-返利），推荐最优购买渠道。 version: 0.1.0 --- # 比价返利雷达 跨平台商品比价与返利综合分析工具。输入商品名称或链接，自动在淘宝、京东、拼多多、抖音等平台搜索同款商品，综合计算售价、优惠券和返利后的真实到手价，推荐最优购买渠道。 ## 触发词 比价返利、跨平台比价、哪里买最便宜、真实到手价、全网比价、price rebate、比价雷达、最低价、多平台比价、返利比价 ## 计划实现能力 ### 核心功能 - **全网同款搜索**：输入商品链接或名称，自动匹配各平台同款商品 - **真实到手价计算**：综合售价、平台活动、优惠券、返利，算出每个平台的真实到手价 - **历史价格走势**：展示商品在各平台的历史价格走势，判断当前是否值得买 - **最优渠道推荐**：按真实到手价排序，推荐最划算的购买渠道 ### 比价维度 | 维度 | 说明 | |------|------| | 商品售价 | 各平台当前标价 | | 平台活动 | 满减、跨店满减、平台补贴 | | 优惠券 | 店铺券、平台券、品类券 | | 返利比例 | 各渠道返利佣金比例 | | 运费 | 是否包邮、运费金额 | | 售后保障 | 7天无理由、运费险等 | ### 真实到手价公式 ``` 真实到手价 = 商品售价 - 平台活动优惠 - 优惠券面额 - 返利金额 + 运费（如有） ``` ### 比价结果排序 ``` 输入商品链接/名称 ↓ 全网搜索同款 ↓ 各平台分别计算真实到手价 ↓ 按到手价从低到高排序 ↓ 标注最优渠道 + 各渠道优劣势 ``` ### 使用场景 1. **日常购物决策**：看到想买的商品，先比价再下单 2. **大促前准备**：对比各平台大促价格，提前锁定最优渠道 3. **高客单商品**：手机、电脑、家电等贵重商品，比价收益显著 4. **防坑验价**：识别虚假降价（先涨后降），看历史价格曲线 ## 输出格式 ``` 🔍 比价返利报告 商品：[商品名称] 平台对比（按真实到手价排序）： 🥇 [平台1] 售价：¥[价格] | 优惠券：-¥[金额] | 返利：-¥[金额] 真实到手价：¥[最终价格] ⬅ 最优 🥈 [平台2] 售价：¥[价格] | 优惠券：-¥[金额] | 返利：-¥[金额] 真实到手价：¥[最终价格] 🥉 [平台3] 售价：¥[价格] | 优惠券：无 | 返利：-¥[金额] 真实到手价：¥[最终价格] 📈 历史最低价：¥[价格]（[日期]） 💡 购买建议：[分析说明] ```


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: kazemace/weibo-hot-search (version 1.0.0)

--- name: weibo-hot-search-anonymous description: 无需登录微博账号，匿名抓取微博实时热搜榜并保存为 Markdown 文件。当用户说"获取微博热搜"、"抓取热搜"、"微博热搜榜"、"不用登录查热搜"、"匿名获取热搜"、"get Weibo hot search"、"weibo trending" 时使用。 version: 1.0.0 metadata: openclaw: requires: anyBins: - bun - npx --- # 微博热搜抓取（匿名版） **无需微博账号，无需登录**，通过 Chrome/Edge CDP 以匿名身份访问微博热搜页面（`https://weibo.com/newlogin?tabtype=search`），采集实时热搜列表并保存为 Markdown 表格。 微博热搜页面对未登录用户完全公开，本 skill 利用全新空白的浏览器配置目录访问，不依赖任何账号 Cookie。页面使用虚拟滚动，每次 DOM 中约保留 30 条，脚本缓慢滚动并在每步采集快照，覆盖全部约 50 条热搜。广告条目自动过滤，置顶条目保留并标注。 ## 脚本目录 **重要**：所有脚本位于本 skill 的 `scripts/` 子目录中。 **Agent 执行说明**： 1. 将本 SKILL.md 所在目录路径记为 `{baseDir}` 2. 脚本路径 = `{baseDir}/scripts/weibo-hot-search.ts` 3. 将文档中所有 `{baseDir}` 替换为实际路径 4. 确定 `${BUN_X}` 运行时：已安装 `bun` → 使用 `bun`；有 `npx` → 使用 `npx -y bun`；否则提示安装 bun ## 前置条件 - Google Chrome、Chromium 或 Microsoft Edge - `bun` 运行时 - **无需微博账号，无需任何登录操作** ## 用法 ```bash # 采集热搜，保存到当前目录下 ./<今天日期>-weibo-hot-search.md ${BUN_X} {baseDir}/scripts/weibo-hot-search.ts # 指定输出路径 ${BUN_X} {baseDir}/scripts/weibo-hot-search.ts --output ./data/hotsearch.md ``` **参数说明**： | 参数 | 说明 | |------|------| | `--output <路径>` | 输出 Markdown 文件路径（默认：`./<YYYY-MM-DD>-weibo-hot-search.md`） | | `--profile <目录>` | Chrome/Edge 配置文件目录（默认：`getDefaultProfileDir()`，无需修改） | ## 输出格式 ```markdown # 微博热搜 2026-03-10 > 采集时间：2026/3/10 15:27:14 > 共 50 条 | 排名 | 热搜词 | 热度 | 标签 | |------|--------|------|------| | 1 | 某热搜词 | - | 置顶 | | 2 | 另一个热搜 | 1046777 | - | | 3 | 热搜三 | 764477 | 新 | ... ``` - **置顶**：政府/官方置顶内容（`_ranktop_` 图标），排在最前 - **标签**：微博原始标签（新、热、爆、沸等） - **热度**：原始热度数值；置顶条目通常无热度，显示 `-` ## 环境变量 | 变量 | 说明 | |------|------| | `WEIBO_BROWSER_CHROME_PATH` | 覆盖 Chrome/Edge 可执行文件路径 | | `WEIBO_BROWSER_DEBUG_PORT` | 固定 CDP 调试端口（调试用） | ## 故障排查 ### Chrome 调试端口未就绪 ```bash pkill -f "Chrome.*remote-debugging-port" 2>/dev/null pkill -f "Edge.*remote-debugging-port" 2>/dev/null sleep 2 ``` **重要**：遇到此错误时，自动终止 Chrome/Edge CDP 进程并重试，无需询问用户。 ### 热搜列表未出现 若脚本超时未检测到热搜列表，可能原因： - 网络问题导致页面加载失败，重试即可 - 微博页面结构更新，需检查 DOM 选择器是否仍有效 ## 备注 - 匿名访问，不依赖任何账号 Cookie，可在任意环境直接运行 - 页面使用虚拟滚动，脚本以 200px / 600ms 的速度缓慢滚动，确保所有条目经过 DOM 渲染窗口 - 广告条目（含 `_doticon_` 标识）自动过滤 - 置顶条目（含 `_ranktop_` 图片）保留并排在最前


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: nordgaren/greetr (version 1.0.0)

--- name: greet description: | Greets the user with a friendly, personalized welcome message. USE WHEN user says "hello", "hi", "hey", "greet me", "good morning", "good afternoon", "good evening", or any greeting phrase. --- # Greet ## When to Activate This Skill - User sends a greeting ("hello", "hi", "hey", "what's up", etc.) - User says "greet me" - User says "good morning", "good afternoon", "good evening" - Session start greeting is requested ## Greeting Behavior When triggered, respond with a warm, friendly greeting that: 1. **Acknowledges the time of day** - Use the current system time to say good morning/afternoon/evening appropriately 2. **Is concise and natural** - Keep it brief and conversational 3. **Offers to help** - End with a short offer to assist ## Time-of-Day Rules | System Time | Greeting | |--------------------|-----------------| | 5:00 AM - 11:59 AM | Good morning | | 12:00 PM - 4:59 PM | Good afternoon | | 5:00 PM - 8:59 PM | Good evening | | 9:00 PM - 4:59 AM | Hey, night owl | ## Example Output > Good morning! Hope your day is off to a great start. What can I help you with? > Good evening! What are we working on tonight? > Hey, night owl! Burning the midnight oil? What can I help with?


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: yikailucas/xhs-browser-ops (version 0.1.3)

--- name: xhs description: xhs 全流程助手，覆盖小红书内容策划、文案与标题生成、封面制作、笔记发布及日常运营管理。适用于写笔记、生成标题/封面、发布或保存草稿、站内搜索、评论互动（点赞/收藏/回复）等小红书相关任务。支持从内容创作到发布执行的一站式流程；封面 AI 生图可选配置 GEMINI_API_KEY、IMG_API_KEY 或 HUNYUAN_API_KEY。 --- # Redbook (Xiaohongshu) Publishing Skill Use browser automation on the official creator site. ## Read this first - Main entry: `https://creator.xiaohongshu.com` - If user is not logged in, pause and ask user to complete SMS login. - Never bypass CAPTCHA, SMS, or risk controls. - Never publish without explicit confirmation in the current chat turn. ## Supported tasks - Create a note draft (with or without images) - Publish immediately (only after explicit confirmation) - Save and leave as draft - Reply to comments/messages - Check dashboard metrics (7d/30d where visible) ## Publish flow (deterministic) 1. Confirm inputs: - title - body - image paths (optional) - mode: `publish_now` or `draft_only` 2. Open creator page and verify logged-in account name. 3. Enter publish page: - with images: choose 图文上传 - no image: use 长文创作入口 4. Fill title/body. 5. Validate before submit: - title not empty - body not empty - hashtags formatted 6. If `draft_only`: click save/draft and report success. 7. If `publish_now`: ask one final yes/no confirmation, then publish. 8. Return result summary with account, title, mode, status. ## Required confirmation policy For publish action, require exact confirmation intent such as: - “立即发布” - “确认发布” - “继续发布” If user says vague words (“随便”, “你看着办”), default to draft-only and explain why. ## Failure handling - Login expired: ask user to login, then continue from current page. - Missing controls due to UI changes: snapshot again and switch to nearest equivalent button. - Publish button unavailable: keep draft and report manual step clearly. ## Output template - Action: draft | publish | reply | metrics - Account: <name> - Title: <title> - Mode: publish_now | draft_only - Result: success | partial | failed - Details: - ... - Next step: - ... ## Reference For reusable copy templates, read `references/post-templates.md`.

path: references/post-templates.md
content: # Post Templates

## 1) 无图短文（效率类）

标题：今天开始把生活调成「轻量模式」

正文：
最近在练一个小习惯：
把每天要做的事，压缩成最重要的 3 件。
不追求完美，先把最关键的做完。

结果意外地轻松很多：
- 焦虑少了
- 执行更稳了
- 晚上也不那么内耗了

如果你也经常被待办压得喘不过气，
试试「3件事原则」：先完成，再优化。

#效率提升 #自我管理 #生活方式 #成长记录

## 2) 产品分享（通用）

标题：这周我反复在用的一个工具

正文：
这周高频在用一个工具，最有感的是这三点：
1. 上手快，10 分钟内能跑通
2. 能直接接到我的真实工作流
3. 出错成本低，回滚方便

适合：想提效但不想折腾太久的人。
不适合：追求一步到位、全自动的人。

#工具分享 #效率工具 #工作流

## 3) 复盘类

标题：这周复盘：我删掉了 3 个低效习惯

正文：
这周做了一件事：不加任务，只删低效动作。

我删掉了：
- 无目的刷信息流
- 同一任务反复切换工具
- 没有截止时间的“伪待办”

下周只保留两条原则：
- 每天先做最难的一件事
- 所有任务都带截止时间

#周复盘 #个人成长 #自我管理


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: chinasilva/peter-pr-ops (version 1.2.1)

--- name: peter-pr-ops description: PR 收口自动化。单 PR 串行合并与多 PR 批量清理，减少重复人工操作。 version: 1.2.1 --- # Peter PR Ops ## 30 秒简介 用于“把 PR 处理完”。 默认优先复用仓库脚本： - 单 PR：`scripts/automerge` - 批量 PR：`scripts/massageprs` 脚本缺失时，优先补齐脚本；补齐失败再回退到 `gh` 命令流。 ## 适用场景 - 用户提到“合并这个 PR”“批量清理 PR”“自动处理评论与 CI” ## 执行步骤 1. 识别处理模式： - 单 PR：串行盯到结果 - 多 PR：批量配置自动合并 2. 优先脚本路径： ```bash scripts/automerge <pr> scripts/massageprs <pr1> <pr2> ``` 3. 脚本缺失时优先补齐（再重试第 2 步）： ```bash repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)" if [ -x "$repo_root/scripts/ensure-workflow-docs" ]; then "$repo_root/scripts/ensure-workflow-docs" all elif [ -x "$HOME/ai_code/study_peter/scripts/ensure-workflow-docs" ]; then "$HOME/ai_code/study_peter/scripts/ensure-workflow-docs" all else echo "ensure-workflow-docs not found" fi ``` 4. 回退路径（补齐失败或不可用时）： - 单 PR（默认 squash）： ```bash gh pr view <pr> --json number,state,mergeStateStatus gh pr checks <pr> gh pr merge <pr> --auto --squash ``` - 批量 PR（默认不 squash，便于并发收口）： ```bash gh pr list --author "@me" --state open --json number --jq '.[].number' gh pr merge <pr> --auto --merge ``` 5. 输出结果： - 已完成合并 - 仍在等待 CI - 被阻塞（含原因） - 是否已刷新 `docs/SESSION-BOOTSTRAP.md`（`Last Updated` + `Last Merge Baseline`） ## 护栏 - CI 红灯不强合。 - 单 PR 默认 squash（与 Peter 的 `/automerge` 习惯一致）。 - 批量模式默认不强制 squash，避免破坏已有历史策略。 - 合并完成后，默认刷新一次 `docs/SESSION-BOOTSTRAP.md` 时间戳与 merge 基线。 - 每次只报告可执行下一步，不输出空泛状态。


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: kevinzhj/model-router-hook (version 4.0.0)

--- name: model-router-hook description: | 智能模型路由系统，根据任务复杂度自动切换 AI 模型（fast/thinking）。 当需要： - 自动选择最优 AI 模型（简单任务用 k2p5，复杂任务用 thinking） - 根据用户意图智能路由（代码/分析/查询等） - 控制 API 成本（预算管理） - 学习用户偏好并自适应调整 使用场景： - 开发助手需要根据问题复杂度切换模型 - 客服系统需要平衡成本与回答质量 - 任何需要模型智能路由的场景 --- # Model Router Hook V4 智能模型路由系统 - 自动根据任务复杂度选择最优 AI 模型。 ## 快速开始 ```python from model_router_hook import create_router # 创建路由器 router = create_router( user_id="user_001", daily_budget=5.0 # 每日预算 5 美元 ) # 处理用户输入 - 自动路由并切换模型 result = router.on_user_input("帮我写个快排算法") # 返回: {'mode': 'thinking', 'model': 'kimi-coding/kimi-k2-thinking', ...} # 回复完成后 - 自动反思学习 router.on_response_complete( user_input="帮我写个快排", response=generated_response, user_next_input=user_next_message ) # 记录实际成本 router.record_actual_cost(tokens_in=1500, tokens_out=800, actual_cost=0.005, latency_ms=1200) ``` ## 系统架构 ### P0-P5 核心层 | 层级 | 功能 | 说明 | |------|------|------| | P0 | 意图识别V2 | 14种深度信号（为什么/分析一下/总结一下...） | | P1 | 动态阈值 | 自适应调整（用户偏好+时间+话题成功率） | | P2 | 会话记忆 | 上下文感知 + 全局用户画像（跨会话学习） | | P3 | 事后反思 | 质量评估 + 自动学习 | | P4 | 自动切换 | OpenClaw 集成，真正执行切换 | | P5 | 成本控制 | 预算管理 + 实际成本追踪 | ### 优化A-G - **A**: OpenClaw 集成 - 真正调用 session_status - **B**: 实际成本追踪 - 支持 API 实际成本 - **C**: P3 质量评估增强 - 自动检测回复质量 - **D**: A/B 测试框架 - 策略效果量化 - **E**: 并发安全 - 线程锁+原子操作 - **F**: 降级容错 - 错误时自动 fallback - **G**: 实时仪表板 - 监控与学习进度 ## 详细使用指南 ### 基础使用 ```python from model_router_hook import create_router router = create_router( user_id="my_user", # 用户ID，用于全局画像 daily_budget=10.0, # 每日预算（美元） enable_ab_test=False # 是否开启 A/B 测试 ) # 处理输入 result = router.on_user_input("帮我分析这个架构") print(result['mode']) # 'thinking' 或 'fast' print(result['switched']) # 是否发生了切换 print(result['decision_log']) # 决策原因 # 结束会话（保存学习成果） router.end_session() ``` ### 在 OpenClaw 中集成 ```python class SmartAgent: def __init__(self): self.router = create_router( user_id="agent_main", daily_budget=10.0 ) async def on_message(self, user_input: str): # 1. 自动路由决策 result = self.router.on_user_input(user_input) # 2. 使用当前模型生成回复 response = await self.generate_response(user_input) # 3. 等待下一条消息，然后反思 next_input = await self.wait_for_next_message() self.router.on_response_complete( user_input, response, next_input ) return response ``` ## API 参考 详见 [scripts/model_router.py](scripts/model_router.py) 完整代码。 主要类： - `ModelRouterHook`: 主路由器类 - `SessionMemory`: 会话记忆 - `GlobalUserMemory`: 全局用户画像 - `CostControllerV2`: 成本控制器 - `ResponseQualityEvaluator`: 质量评估器 - `Dashboard`: 实时仪表板 ## 文件结构 ``` model-router-hook/ ├── SKILL.md # 本文件 └── scripts/ └── model_router.py # 主代码 (894行) ``` ## 存储位置 数据自动存储在： - `~/.openclaw/workspace/memory/model-router/` - `user_{id}_profile.json` - 全局用户画像 - `session_{id}_memory.json` - 会话记忆 - `cost_{user}_{month}.jsonl` - 成本记录 ## 测试状态 ✅ 全部测试通过 (10/10) - 意图识别: 14/14 (100%) - 复杂度分析: 5/5 (100%) - 成本控制器: ✅ - 质量评估: ✅ - OpenClaw 集成: ✅ - 路由器流程: 4/4 (100%) - 降级容错: ✅ - 并发安全: ✅ **生产就绪！** --- *Version: V4.0* *Code: 894 lines, 33.9KB* *Date: 2026-03-04*


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)