From 3ada55af40707bb983cade32165651e17660e823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Tue, 26 May 2026 17:43:12 +0800 Subject: [PATCH 1/2] merge --- .../rag-retrieve/.claude-plugin/plugin.json | 3 +- .../rag-retrieve/.claude-plugin/plugin.json | 3 +- .../data-dashboard/.claude-plugin/plugin.json | 1 + skills/common/docx/SKILL.md | 1 + skills/common/imap-smtp-email/SKILL.md | 1 + .../common/mcp-ui/.claude-plugin/plugin.json | 8 +- skills/common/pdf/SKILL.md | 1 + skills/common/pptx/SKILL.md | 1 + skills/common/r2-upload/SKILL.md | 1 + .../schedule-job/.claude-plugin/plugin.json | 3 +- skills/common/schedule-job/SKILL.md | 1 + skills/common/skill-creator/SKILL.md | 1 + skills/common/xlsx/SKILL.md | 1 + skills/developing/ai-ppt-generator/SKILL.md | 86 +++++++ .../.claude-plugin/plugin.json | 3 +- .../.claude-plugin/plugin.json | 8 +- skills/developing/managing-scripts/SKILL.md | 1 + .../developing/nfc-medicine-lookup/SKILL.md | 180 +++++++++++++++ .../novare-context/.claude-plugin/plugin.json | 3 +- .../pmda-drug-info/.claude-plugin/plugin.json | 3 +- skills/developing/ppt-outline/SKILL.md | 57 +++++ skills/developing/rag-retrieve-cli/SKILL.md | 1 + .../.claude-plugin/plugin.json | 3 +- skills/developing/static-hosting/SKILL.md | 1 + .../.claude-plugin/plugin.json | 7 +- skills/developing/z-card-image/SKILL.md | 91 ++++++++ .../baidu-search/.claude-plugin/plugin.json | 14 ++ skills/linggan/baidu-search/SKILL.md | 53 +++++ skills/linggan/bot-self-modifier/SKILL.md | 191 +++++++++++++++ skills/linggan/caiyun-weather/SKILL.md | 103 +++++++++ skills/linggan/competitor-news-intel/SKILL.md | 217 ++++++++++++++++++ .../contract-document-generator/SKILL.md | 188 +++++++++++++++ .../financial-report-generator/SKILL.md | 182 +++++++++++++++ .../linggan/market-academic-insight/SKILL.md | 195 ++++++++++++++++ .../ragflow-loader/.claude-plugin/plugin.json | 23 ++ skills/linggan/sales-decision-report/SKILL.md | 203 ++++++++++++++++ skills/linggan/seedream/SKILL.md | 106 +++++++++ skills/linggan/static-hosting/SKILL.md | 30 +++ skills/linggan/static-site-deploy/SKILL.md | 154 +++++++++++++ skills/linggan/voice-notification/SKILL.md | 58 +++++ skills/linggan/weather-china/SKILL.md | 74 ++++++ skills/onprem/kfs-answer/SKILL.md | 1 + .../.claude-plugin/plugin.json | 3 +- .../board-meeting-pack-helper/SKILL.md | 1 + skills/support/customer-reply-tone/SKILL.md | 1 + skills/support/exec-brief-1pager/SKILL.md | 1 + .../support/incident-postmortem-ja/SKILL.md | 1 + .../support/japan-compliance-checker/SKILL.md | 1 + .../support/japanese-business-writer/SKILL.md | 1 + skills/support/japanese-pii-redactor/SKILL.md | 1 + skills/support/kfs-answer/SKILL.md | 1 + .../support/meeting-minutes-action/SKILL.md | 1 + skills/support/proposal-rfp-writer/SKILL.md | 1 + skills/support/quotation-sow-drafter/SKILL.md | 1 + .../.claude-plugin/plugin.json | 3 +- skills/support/sales-followup/SKILL.md | 1 + skills/support/stakeholder-update/SKILL.md | 1 + skills/support/static-hosting/SKILL.md | 1 + 58 files changed, 2267 insertions(+), 15 deletions(-) create mode 100644 skills/developing/ai-ppt-generator/SKILL.md create mode 100644 skills/developing/nfc-medicine-lookup/SKILL.md create mode 100644 skills/developing/ppt-outline/SKILL.md create mode 100644 skills/developing/z-card-image/SKILL.md create mode 100644 skills/linggan/baidu-search/.claude-plugin/plugin.json create mode 100644 skills/linggan/baidu-search/SKILL.md create mode 100644 skills/linggan/bot-self-modifier/SKILL.md create mode 100644 skills/linggan/caiyun-weather/SKILL.md create mode 100644 skills/linggan/competitor-news-intel/SKILL.md create mode 100644 skills/linggan/contract-document-generator/SKILL.md create mode 100644 skills/linggan/financial-report-generator/SKILL.md create mode 100644 skills/linggan/market-academic-insight/SKILL.md create mode 100644 skills/linggan/ragflow-loader/.claude-plugin/plugin.json create mode 100644 skills/linggan/sales-decision-report/SKILL.md create mode 100755 skills/linggan/seedream/SKILL.md create mode 100644 skills/linggan/static-hosting/SKILL.md create mode 100644 skills/linggan/static-site-deploy/SKILL.md create mode 100644 skills/linggan/voice-notification/SKILL.md create mode 100644 skills/linggan/weather-china/SKILL.md diff --git a/skills/autoload/onprem/rag-retrieve/.claude-plugin/plugin.json b/skills/autoload/onprem/rag-retrieve/.claude-plugin/plugin.json index a929aa6..4633057 100644 --- a/skills/autoload/onprem/rag-retrieve/.claude-plugin/plugin.json +++ b/skills/autoload/onprem/rag-retrieve/.claude-plugin/plugin.json @@ -18,5 +18,6 @@ "{bot_id}" ] } - } + }, + "category": "Data & Retrieval" } diff --git a/skills/autoload/support/rag-retrieve/.claude-plugin/plugin.json b/skills/autoload/support/rag-retrieve/.claude-plugin/plugin.json index a929aa6..4633057 100644 --- a/skills/autoload/support/rag-retrieve/.claude-plugin/plugin.json +++ b/skills/autoload/support/rag-retrieve/.claude-plugin/plugin.json @@ -18,5 +18,6 @@ "{bot_id}" ] } - } + }, + "category": "Data & Retrieval" } diff --git a/skills/common/data-dashboard/.claude-plugin/plugin.json b/skills/common/data-dashboard/.claude-plugin/plugin.json index a7c0b8a..4deb6cc 100644 --- a/skills/common/data-dashboard/.claude-plugin/plugin.json +++ b/skills/common/data-dashboard/.claude-plugin/plugin.json @@ -1,6 +1,7 @@ { "name": "data-dashboard", "description": "Renders data as an interactive dashboard card UI using the mcp-ui protocol.", + "category": "Data & Retrieval", "hooks": { "PrePrompt": [ { diff --git a/skills/common/docx/SKILL.md b/skills/common/docx/SKILL.md index 6646638..8f04a28 100644 --- a/skills/common/docx/SKILL.md +++ b/skills/common/docx/SKILL.md @@ -2,6 +2,7 @@ name: docx description: "Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks" license: Proprietary. LICENSE.txt has complete terms +category: Document Processing --- # DOCX creation, editing, and analysis diff --git a/skills/common/imap-smtp-email/SKILL.md b/skills/common/imap-smtp-email/SKILL.md index b61ca3e..713b320 100644 --- a/skills/common/imap-smtp-email/SKILL.md +++ b/skills/common/imap-smtp-email/SKILL.md @@ -16,6 +16,7 @@ metadata: - node - npm primaryEnv: SMTP_PASS +category: Communication --- # IMAP/SMTP Email Tool diff --git a/skills/common/mcp-ui/.claude-plugin/plugin.json b/skills/common/mcp-ui/.claude-plugin/plugin.json index bb8ca06..5825549 100644 --- a/skills/common/mcp-ui/.claude-plugin/plugin.json +++ b/skills/common/mcp-ui/.claude-plugin/plugin.json @@ -13,7 +13,11 @@ "mcp_ui": { "transport": "stdio", "command": "python", - "args": ["./ui_render_server.py", "{bot_id}"] + "args": [ + "./ui_render_server.py", + "{bot_id}" + ] } - } + }, + "category": "Data & Retrieval" } diff --git a/skills/common/pdf/SKILL.md b/skills/common/pdf/SKILL.md index f6a22dd..52a8cf8 100644 --- a/skills/common/pdf/SKILL.md +++ b/skills/common/pdf/SKILL.md @@ -2,6 +2,7 @@ name: pdf description: Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale. license: Proprietary. LICENSE.txt has complete terms +category: Document Processing --- # PDF Processing Guide diff --git a/skills/common/pptx/SKILL.md b/skills/common/pptx/SKILL.md index 03107c4..fad4906 100644 --- a/skills/common/pptx/SKILL.md +++ b/skills/common/pptx/SKILL.md @@ -2,6 +2,7 @@ name: pptx description: "Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks" license: Proprietary. LICENSE.txt has complete terms +category: Document Processing --- # PPTX creation, editing, and analysis diff --git a/skills/common/r2-upload/SKILL.md b/skills/common/r2-upload/SKILL.md index ddd167b..8272e8e 100644 --- a/skills/common/r2-upload/SKILL.md +++ b/skills/common/r2-upload/SKILL.md @@ -5,6 +5,7 @@ compatibility: Requires Python 3.8+ and PyYAML. Uses AWS SigV4 signing (no exter metadata: author: foundra version: "2.1" +category: Web Services --- # R2 Upload diff --git a/skills/common/schedule-job/.claude-plugin/plugin.json b/skills/common/schedule-job/.claude-plugin/plugin.json index 0e19806..d59bc15 100644 --- a/skills/common/schedule-job/.claude-plugin/plugin.json +++ b/skills/common/schedule-job/.claude-plugin/plugin.json @@ -8,5 +8,6 @@ "command": "python scripts/schedule_manager.py list --format brief" } ] - } + }, + "category": "Task Scheduling" } diff --git a/skills/common/schedule-job/SKILL.md b/skills/common/schedule-job/SKILL.md index 16d645e..92be694 100644 --- a/skills/common/schedule-job/SKILL.md +++ b/skills/common/schedule-job/SKILL.md @@ -1,6 +1,7 @@ --- name: schedule-job description: Scheduled Task Management - Create, manage, and view scheduled tasks for users (supports cron recurring tasks and one-time tasks) +category: Task Scheduling --- # Schedule Job - Scheduled Task Management diff --git a/skills/common/skill-creator/SKILL.md b/skills/common/skill-creator/SKILL.md index 942bfe8..de48aa0 100644 --- a/skills/common/skill-creator/SKILL.md +++ b/skills/common/skill-creator/SKILL.md @@ -1,6 +1,7 @@ --- name: skill-creator description: Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. +category: Developer Tools --- # Skill Creator diff --git a/skills/common/xlsx/SKILL.md b/skills/common/xlsx/SKILL.md index 22db189..403a45e 100644 --- a/skills/common/xlsx/SKILL.md +++ b/skills/common/xlsx/SKILL.md @@ -2,6 +2,7 @@ name: xlsx description: "Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas" license: Proprietary. LICENSE.txt has complete terms +category: Document Processing --- # Requirements for Outputs diff --git a/skills/developing/ai-ppt-generator/SKILL.md b/skills/developing/ai-ppt-generator/SKILL.md new file mode 100644 index 0000000..ef4277f --- /dev/null +++ b/skills/developing/ai-ppt-generator/SKILL.md @@ -0,0 +1,86 @@ +--- +name: ai-ppt-generator +description: Generate PPT with Baidu AI. Smart template selection based on content. +metadata: { "openclaw": { "emoji": "📑", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY" } } +category: Document Processing +--- + +# AI PPT Generator + +Generate PPT using Baidu AI with intelligent template selection. + +## Smart Workflow +1. **User provides PPT topic** +2. **Agent asks**: "Want to choose a template style?" +3. **If yes** → Show styles from `ppt_theme_list.py` → User picks → Use `generate_ppt.py` with chosen `tpl_id` and real `style_id` +4. **If no** → Use `random_ppt_theme.py` (auto-selects appropriate template based on topic content) + +## Intelligent Template Selection +`random_ppt_theme.py` analyzes the topic and suggests appropriate template: +- **Business topics** → 企业商务 style +- **Technology topics** → 未来科技 style +- **Education topics** → 卡通手绘 style +- **Creative topics** → 创意趣味 style +- **Cultural topics** → 中国风 or 文化艺术 style +- **Year-end reports** → 年终总结 style +- **Minimalist design** → 扁平简约 style +- **Artistic content** → 文艺清新 style + +## Scripts +- `scripts/ppt_theme_list.py` - List all available templates with style_id and tpl_id +- `scripts/random_ppt_theme.py` - Smart template selection + generate PPT +- `scripts/generate_ppt.py` - Generate PPT with specific template (uses real style_id and tpl_id from API) + +## Key Features +- **Smart categorization**: Analyzes topic content to suggest appropriate style +- **Fallback logic**: If template not found, automatically uses random selection +- **Complete parameters**: Properly passes both style_id and tpl_id to API + +## Usage Examples +```bash +# List all templates with IDs +python3 scripts/ppt_theme_list.py + +# Smart automatic selection (recommended for most users) +python3 scripts/random_ppt_theme.py --query "人工智能发展趋势报告" + +# Specific template with proper style_id +python3 scripts/generate_ppt.py --query "儿童英语课件" --tpl_id 106 + +# Specific template with auto-suggested category +python3 scripts/random_ppt_theme.py --query "企业年度总结" --category "企业商务" +``` + +## Agent Steps +1. Get PPT topic from user +2. Ask: "Want to choose a template style?" +3. **If user says YES**: + - Run `ppt_theme_list.py` to show available templates + - User selects a template (note the tpl_id) + - Run `generate_ppt.py --query "TOPIC" --tpl_id ID` +4. **If user says NO**: + - Run `random_ppt_theme.py --query "TOPIC"` + - Script will auto-select appropriate template based on topic +5. Set timeout to 300 seconds (PPT generation takes 2-5 minutes) +6. Monitor output, wait for `is_end: true` to get final PPT URL + +## Output Examples +**During generation:** +```json +{"status": "PPT生成中", "run_time": 45} +``` + +**Final result:** +```json +{ + "status": "PPT导出结束", + "is_end": true, + "data": {"ppt_url": "https://image0.bj.bcebos.com/...ppt"} +} +``` + +## Technical Notes +- **API integration**: Fetches real style_id from Baidu API for each template +- **Error handling**: If template not found, falls back to random selection +- **Timeout**: Generation takes 2-5 minutes, set sufficient timeout +- **Streaming**: Uses streaming API, wait for `is_end: true` before considering complete \ No newline at end of file diff --git a/skills/developing/catalog-search-agent/.claude-plugin/plugin.json b/skills/developing/catalog-search-agent/.claude-plugin/plugin.json index 5c0db89..8d4cfcb 100644 --- a/skills/developing/catalog-search-agent/.claude-plugin/plugin.json +++ b/skills/developing/catalog-search-agent/.claude-plugin/plugin.json @@ -8,5 +8,6 @@ }, "skills": [ "./skills/catalog-search-agent" - ] + ], + "category": "Data & Retrieval" } diff --git a/skills/developing/ecommerce-storefront/.claude-plugin/plugin.json b/skills/developing/ecommerce-storefront/.claude-plugin/plugin.json index 37d6d8e..ba91756 100644 --- a/skills/developing/ecommerce-storefront/.claude-plugin/plugin.json +++ b/skills/developing/ecommerce-storefront/.claude-plugin/plugin.json @@ -13,7 +13,11 @@ "ecommerce_storefront": { "transport": "stdio", "command": "python", - "args": ["./ecommerce_server.py", "{bot_id}"] + "args": [ + "./ecommerce_server.py", + "{bot_id}" + ] } - } + }, + "category": "Developer Tools" } diff --git a/skills/developing/managing-scripts/SKILL.md b/skills/developing/managing-scripts/SKILL.md index 2288722..05f5ace 100644 --- a/skills/developing/managing-scripts/SKILL.md +++ b/skills/developing/managing-scripts/SKILL.md @@ -1,6 +1,7 @@ --- name: managing-scripts description: Manages shared scripts repository for reusable data analysis tools. Check scripts/README.md before writing, design generalized scripts with parameters, and keep documentation in sync. +category: Data & Retrieval --- # Managing Scripts diff --git a/skills/developing/nfc-medicine-lookup/SKILL.md b/skills/developing/nfc-medicine-lookup/SKILL.md new file mode 100644 index 0000000..451464e --- /dev/null +++ b/skills/developing/nfc-medicine-lookup/SKILL.md @@ -0,0 +1,180 @@ +--- +name: nfc-medicine-lookup +description: 药品检索技能,通过NFC芯片ID或药品名称查询药品信息。当用户提交NFC芯片ID、扫描药品标签、提到药品名称想了解用法、或提到"NFC"+"药"相关词汇时使用此技能。以语音助手身份向老人介绍药名、用途和用法用量。 +category: Developer Tools +--- + +# NFC 药品检索 + +## Skill Structure + +``` +nfc-medicine-lookup/ +├── SKILL.md # Core instruction file (this file) +├── skill.yaml # Skill metadata +├── scripts/ +│ └── nfc_medicine_lookup.py # Main lookup script +``` + +## Overview + +通过 **NFC芯片ID** 或 **药品名称** 查询对应的药品信息。本技能面向老年用户,以**语音助手**的身份,用简洁、亲切、易懂的语言告知: + +1. 药品名称 +2. 这个药是干什么的 +3. 具体用法用量 +4. 注意事项 + +## 查询方式 + +支持两种查询入口,**至少提供一种**即可: + +| Parameter | Description | Type | Required | +|-----------|-------------|------|----------| +| **nfc_id** | NFC芯片ID(如 100000) | string | 二选一 | +| **name** | 药品名称,支持模糊匹配(如"阿莫西林") | string | 二选一 | + +## Quick Start + +```bash +# 方式一:通过NFC ID查询 +scripts/nfc_medicine_lookup.py --nfc-id "100000" + +# 方式二:通过药品名称查询 +scripts/nfc_medicine_lookup.py --name "阿莫西林" +``` + +## 查询流程 + +请严格按照以下流程执行: + +### Step 1: 本地数据库查询 + +运行脚本查询本地药品库: + +```bash +# 有NFC ID时 +scripts/nfc_medicine_lookup.py --nfc-id "{nfc_id}" + +# 有药品名称时 +scripts/nfc_medicine_lookup.py --name "{药品名称}" +``` + +### Step 2: 判断查询结果 + +- **查到了** → 跳到 Step 4(语音回复) +- **输出包含 `NOT_FOUND`** → 进入 Step 3(网络搜索兜底) + +### Step 3: 网络搜索兜底(本地未命中时) + +当本地药品库中查不到时,使用 WebSearch 工具搜索该药品的信息: + +``` +WebSearch: "{药品名称} 用法用量 注意事项 说明书" +``` + +从搜索结果中提取以下信息: +- 药品全称 +- 药品类别 +- 主要功效/适应症 +- 用法用量 +- 关键注意事项 + +**重要**:网络搜索到的信息,回复时必须在末尾加上免责提醒: +> 以上信息来自网络搜索,仅供参考。具体用药请遵医嘱,或咨询药师确认。 + +### Step 4: 以语音助手身份回复 + +无论信息来自本地库还是网络搜索,都按照下方「语音助手回复规范」进行回复。 + +## 语音助手回复规范 + +查询到药品后,你需要以**关怀老人的语音助手**身份回复。请遵循以下规范: + +### 回复模板 + +``` +您好,这个药叫**{药品名称}**,属于{药品类别}。 + +**它的作用是**:{简洁描述药品用途} + +**怎么吃**:{用法用量,用口语化表达} + +**要注意**:{关键注意事项} + +如果有任何不舒服,一定要及时告诉家人或去看医生哦。 +``` + +### 语言风格要求 + +- 使用口语化、亲切的表达,像家人在旁边叮嘱一样 +- 避免专业术语,用老人能听懂的话 +- 关键信息(药名、用量)要**重点强调** +- 结尾加上一句关心的话 +- 整段回复控制在150字以内,适合语音播报 + +### 示例回复 + +**示例1:NFC ID查询命中** + +输入: NFC ID = 100000 + +> 您好,这个药叫**阿莫西林胶囊**,是一种消炎药。 +> +> **它的作用是**:用来治疗细菌引起的感染,比如嗓子发炎、咳嗽有痰这些情况。 +> +> **怎么吃**:每次吃1粒,每天吃3到4次,每次间隔6到8个小时。记得在饭后吃,用温水把整粒药吞下去,不要嚼碎。 +> +> **要注意**:如果您对青霉素过敏,这个药就不能吃。另外,医生让吃几天就吃几天,不要觉得好了就自己停药。 +> +> 如果吃药后有任何不舒服,一定要及时告诉家人或去看医生哦。 + +**示例2:药品名称查询命中** + +输入: name = "布洛芬" + +> 您好,这个药叫**布洛芬缓释胶囊**,是一种止痛退烧药。 +> +> **它的作用是**:用来缓解头痛、牙痛、关节痛,感冒发烧也可以吃。 +> +> **怎么吃**:每次吃1粒,早晚各一次,饭后用温水整粒吞下去。 +> +> **要注意**:有胃病的人要小心,连续吃不要超过5天,要是还疼就去看医生。 +> +> 如果吃药后有任何不舒服,一定要及时告诉家人或去看医生哦。 + +**示例3:本地未命中,网络搜索兜底** + +输入: name = "氯雷他定"(本地库没有) + +> 您好,这个药叫**氯雷他定片**,是一种抗过敏药。 +> +> **它的作用是**:用来缓解过敏引起的打喷嚏、流鼻涕、皮肤发痒这些症状。 +> +> **怎么吃**:每次吃1片,每天吃1次就行,饭前饭后都可以。 +> +> **要注意**:吃了这个药可能会有点犯困,吃药后尽量别开车。 +> +> 以上信息来自网络搜索,仅供参考。具体用药请遵医嘱,或咨询药师确认。 +> +> 如果有任何不舒服,一定要及时告诉家人或去看医生哦。 + +## NFC ID 药品对照表 + +| NFC ID | 药品名称 | 类别 | +|--------|---------|------| +| 100000 | 阿莫西林胶囊 | 抗生素 | +| 100001 | 硝苯地平控释片 | 降压药 | +| 100002 | 二甲双胍片 | 降糖药 | +| 100003 | 阿司匹林肠溶片 | 抗血小板药 | +| 100004 | 辛伐他汀片 | 降脂药 | +| 100005 | 氨氯地平片 | 降压药 | +| 100006 | 美托洛尔缓释片 | 降压药/心率控制 | +| 100007 | 奥美拉唑肠溶胶囊 | 胃药 | +| 100008 | 氯吡格雷片 | 抗血小板药 | +| 100009 | 螺内酯片 | 利尿药 | +| 100010 | 复方丹参滴丸 | 心血管中成药 | +| 100011 | 蒙脱石散 | 止泻药 | +| 100012 | 布洛芬缓释胶囊 | 解热镇痛药 | +| 100013 | 碳酸钙D3片 | 补钙药 | +| 100014 | 甲钴胺片 | 营养神经药 | diff --git a/skills/developing/novare-context/.claude-plugin/plugin.json b/skills/developing/novare-context/.claude-plugin/plugin.json index 01f0307..dd093df 100644 --- a/skills/developing/novare-context/.claude-plugin/plugin.json +++ b/skills/developing/novare-context/.claude-plugin/plugin.json @@ -8,5 +8,6 @@ "command": "python hooks/pre_prompt.py" } ] - } + }, + "category": "Developer Tools" } diff --git a/skills/developing/pmda-drug-info/.claude-plugin/plugin.json b/skills/developing/pmda-drug-info/.claude-plugin/plugin.json index aa1055c..c709e99 100644 --- a/skills/developing/pmda-drug-info/.claude-plugin/plugin.json +++ b/skills/developing/pmda-drug-info/.claude-plugin/plugin.json @@ -17,5 +17,6 @@ "./pmda_server.py" ] } - } + }, + "category": "Developer Tools" } diff --git a/skills/developing/ppt-outline/SKILL.md b/skills/developing/ppt-outline/SKILL.md new file mode 100644 index 0000000..01940cc --- /dev/null +++ b/skills/developing/ppt-outline/SKILL.md @@ -0,0 +1,57 @@ +--- +name: ppt-outline +description: "PPT outline and HTML presentation generator. PPT大纲、PPT模板、演示文稿、presentation、PowerPoint、幻灯片、slides、HTML演示文稿、HTML slides、浏览器演示、商业路演、pitch deck、BP商业计划书、business plan、工作汇报PPT、培训课件、课件大纲、产品介绍PPT、产品发布、keynote、演讲稿、述职PPT、答辩PPT、竞品分析PPT、毕业答辩、论文答辩、项目复盘、迭代复盘。Generate PPT outlines and standalone HTML presentations (open directly in browser, no dependencies). Use when: (1) creating PPT/presentation outlines, (2) building pitch deck/BP structures, (3) preparing work report slides, (4) designing training course outlines, (5) creating thesis defense PPT outlines, (6) building project review/retrospective PPTs, (7) generating HTML slide decks for browser-based presentations, (8) any PowerPoint/Keynote/Google Slides planning. 适用场景:做PPT大纲、写路演BP、汇报PPT结构、培训课件大纲、毕业答辩PPT、项目复盘PPT、述职答辩PPT、生成HTML演示文稿(浏览器直接打开,支持dark/light/tech/minimal四种风格)。" +category: Document Processing +--- + +# ppt-outline + +PPT大纲和演示文稿结构生成器。商业路演、工作汇报、产品介绍、培训课件。 + +## 为什么用这个 Skill? / Why This Skill? + +- **场景化大纲**:路演BP有固定结构(痛点→方案→市场→团队→融资),汇报有汇报的逻辑,不是万能模板 +- **每页要点**:不只给标题,每页都有2-4个要点提示,拿来直接填内容 +- **页数控制**:`--slides 10` 控制总页数,按需伸缩 +- Compared to asking AI directly: scenario-specific slide structures (pitch vs report vs training), per-slide talking points, and slide count control + +## Usage + +Run the script at `scripts/ppt.sh`: + +| Command | Description | +|---------|-------------| +| `scripts/ppt.sh outline "主题" [--slides 10]` | 生成PPT大纲(每页标题+要点) | +| `scripts/ppt.sh pitch "项目名"` | 商业路演BP大纲 | +| `scripts/ppt.sh report "汇报主题"` | 工作汇报PPT大纲 | +| `scripts/ppt.sh training "课程主题"` | 培训课件大纲 | +| `scripts/ppt.sh defense "论文题目"` | 毕业答辩PPT大纲 | +| `scripts/ppt.sh review "项目名"` | 项目复盘PPT大纲 | +| `scripts/ppt.sh html "主题" [--style S]` | 生成HTML演示文稿(浏览器直接打开) | +| `scripts/ppt.sh help` | 显示帮助信息 | + +## Examples + +```bash +# 通用PPT大纲(指定页数) +bash scripts/ppt.sh outline "人工智能在医疗领域的应用" --slides 12 + +# 商业路演 +bash scripts/ppt.sh pitch "智能客服SaaS平台" + +# 工作汇报 +bash scripts/ppt.sh report "2024年Q4部门工作总结" + +# 培训课件 +bash scripts/ppt.sh training "新员工入职培训-公司文化" + +# 毕业答辩 +bash scripts/ppt.sh defense "社交媒体对消费行为的影响研究" + +# 项目复盘 +bash scripts/ppt.sh review "双十一大促活动" + +# 生成HTML演示文稿(浏览器直接打开) +bash scripts/ppt.sh html "AI在医疗的应用" --style tech +# 支持风格:dark(默认深色科技) | light(白色商务) | tech(渐变科技) | minimal(极简) +``` diff --git a/skills/developing/rag-retrieve-cli/SKILL.md b/skills/developing/rag-retrieve-cli/SKILL.md index 4584796..f5a7a1a 100644 --- a/skills/developing/rag-retrieve-cli/SKILL.md +++ b/skills/developing/rag-retrieve-cli/SKILL.md @@ -1,6 +1,7 @@ --- name: rag-retrieve description: RAG retrieval skill for querying and retrieving relevant documents from knowledge base. Use this skill when users need to search documentation, retrieve knowledge base articles, or get context from a vector database. Supports semantic search with configurable top-k results. +category: Data & Retrieval --- # RAG Retrieve diff --git a/skills/developing/rag-retrieve-no-citation/.claude-plugin/plugin.json b/skills/developing/rag-retrieve-no-citation/.claude-plugin/plugin.json index 64100ad..5cfef81 100644 --- a/skills/developing/rag-retrieve-no-citation/.claude-plugin/plugin.json +++ b/skills/developing/rag-retrieve-no-citation/.claude-plugin/plugin.json @@ -18,5 +18,6 @@ "{bot_id}" ] } - } + }, + "category": "Data & Retrieval" } diff --git a/skills/developing/static-hosting/SKILL.md b/skills/developing/static-hosting/SKILL.md index c208a00..f664003 100644 --- a/skills/developing/static-hosting/SKILL.md +++ b/skills/developing/static-hosting/SKILL.md @@ -1,6 +1,7 @@ --- name: static-hosting description: Serve static HTML/CSS/JS/images from robot project directories via the built-in FastAPI static file server. Use when generating web pages, reports, or interactive content for a bot. +category: Web Services --- # Static Hosting diff --git a/skills/developing/user-context-loader/.claude-plugin/plugin.json b/skills/developing/user-context-loader/.claude-plugin/plugin.json index 67d3a85..6caddd1 100644 --- a/skills/developing/user-context-loader/.claude-plugin/plugin.json +++ b/skills/developing/user-context-loader/.claude-plugin/plugin.json @@ -30,8 +30,11 @@ "mcpServers": { "user-context-example": { "command": "echo", - "args": ["Example MCP server for user context loader"], + "args": [ + "Example MCP server for user context loader" + ], "comment": "这是一个示例 MCP 配置,实际使用时替换为真实的 MCP 服务器" } - } + }, + "category": "Developer Tools" } diff --git a/skills/developing/z-card-image/SKILL.md b/skills/developing/z-card-image/SKILL.md new file mode 100644 index 0000000..4f96250 --- /dev/null +++ b/skills/developing/z-card-image/SKILL.md @@ -0,0 +1,91 @@ +--- +name: z-card-image +version: 1.1.0 +description: 生成配图、封面图、卡片图、文字海报、公众号文章封面图、微信公众号头图、X 风格帖子分享图、帖子长图、社媒帖子长图。适用于帖子类型数据、post data、social posts、tweet/thread、转发推文、转发帖子、小绿书配图、图片封面、card image。 +metadata: + openclaw: + requires: + bins: + - python3 + - google-chrome +category: Creative Generation +--- + +# z-card-image + +将用户提供的文案渲染成 PNG 卡片图。 +支持短文案封面图、长文分页图、X 风格帖子分享长图,以及公众号文章封面图。只要输入是“帖子类型数据”并希望导出成 X 风格长图,都应走 `x-like-posts`。 + +## 环境要求 + +- Python 3 +- Google Chrome(macOS:`/Applications/Google Chrome.app`;Linux:`chromium` 需修改脚本路径) + +## 执行流程 + +0. **环境提示**(用户触发时检测一次,有问题给提示,不中止流程): + - `python3 --version` → 失败则告知:「⚠️ 未检测到 Python 3,渲染可能失败」 + - 检查 Chrome 路径 → 失败则提示安装 + +1. **识别场景**: + - 短文案封面图 → `poster-3-4` + - 长文分页图 → `article-3-4` + - X 风格帖子分享图 / 帖子长图 / 帖子类型数据 → `x-like-posts` + - 公众号文章封面图 → `wechat-cover-split` +2. **查模板规则**:根据模板在「模板索引」中找到对应规范文档,读取后按其规则处理文案和参数。**如用户要求高亮:整行用 `--hl1/hl2/hl3`,按词用 `--highlight-words`(逗号分隔),两者可同时使用,不能忽略** +3. **确认署名**:先询问用户底部署名文字(`--footer`),如:「请告诉我你的署名,例如"公众号 · 你的名字"」。用户未回答或要求跳过时,使用脚本默认值。 +4. **确定配色**:拿到署名后,再确定配色方案: + - 用户提到"小红书配图" → 推荐方案 B(热情红) + - 用户提到"小绿书"或"公众号配图" → 推荐方案 A(清新绿) + - 用户提到"推特长图"/"X 风格" → 使用 `render_x_like_posts.py` 自带默认值(Twitter 蓝白灰) + - 其他场景 → 询问用户选择下方配色方案: + + | 方案 | 风格 | `--bg` | `--highlight` | 适用场景 | + |------|------|--------|--------------|---------| + | A. 清新绿 | 公众号/小绿书 | `#e6f5ef` | `#22a854` | 公众号配图、小绿书 | + | B. 热情红 | 小红书 | `#fdecea` | `#e53935` | 小红书配图 | + | C. 科技蓝 | 知乎/技术 | `#e8f4fd` | `#1976d2` | 技术文章、知乎 | + | D. 暖橙黄 | 活力/营销 | `#fff8e1` | `#f57c00` | 活动海报、营销 | + | E. 优雅紫 | 时尚/文艺 | `#f3e5f5` | `#7b1fa2` | 文艺、时尚类 | + | F. 经典黑白 | 极简 | `#f5f5f5` | `#212121` | 极简风格 | + + 用户也可自定义 `--bg` 和 `--highlight`。用户未回答或要求跳过时,使用脚本默认值,不做额外覆盖。 +5. **渲染输出**: + - `poster-3-4` → 执行 `render_card.py` + - `article-3-4` → 执行 `render_article.py` + - `x-like-posts` → 执行 `render_x_like_posts.py` + - `wechat-cover-split` → 执行 `render_card.py` + - 默认 `--out` 填 `tmp/...png`;如用户指定导出位置,可直接传绝对路径或相对路径 +6. **输出产物**:生成 PNG 到指定路径,供后续发送、裁切或复用;如需给外部工具上传,仍应避免写入系统 `/tmp/` + +## x-like-posts 导航 + +`x-like-posts` 用于“帖子类型数据 → X 风格分享长图”。 + +当命中这条路线时,继续读取: + +- [references/x-like-posts.md](references/x-like-posts.md):输入 JSON 格式、可显示字段、时间规则、导出规则 +- [references/tweet-thread.md](references/tweet-thread.md):旧命名兼容说明 + +## 输入校验 + +- **比例不存在**:驳回请求,告知当前支持的比例列表,询问是否新增模板 +- **文案超出模板字数上限**:先自动拆分/缩写后再渲染,不要直接塞入 +- **帖子过多**:按规范拆成多张 `Part 1 / Part 2`,不要把超长内容强行塞进一张 +- **公众号封面标题过长**:先压缩成 2~3 行短标题,再渲染,不能把完整长标题硬塞进模板 + +## 模板索引 + +| 模板名 | 比例 | 尺寸 | 用途 | 规范文档 | +|--------|------|------|------|---------| +| `poster-3-4` | 3:4 | 900×1200 | 文字海报(金句/大字报/封面) | [references/poster-3-4.md](references/poster-3-4.md) | +| `article-3-4` | 3:4 | 900×1200 | 长文分页卡片 | [references/article-3-4.md](references/article-3-4.md) | +| `x-like-posts` | 自适应长图 | 900px 宽 | X 风格帖子分享长图 | [references/x-like-posts.md](references/x-like-posts.md) | +| `wechat-cover-split` | 335:100 | 1340×400 | 公众号文章封面长条图(左标题右 icon) | [references/wechat-cover-split.md](references/wechat-cover-split.md) | + +## 新增模板 + +1. 新建 `assets/templates/.html` +2. 在 `render_card.py` 的 `size_map` 里注册尺寸 +3. 在上方模板索引中添加一行 +4. 创建对应 `references/.md`,记录该模板的参数、字数上限、配图选取规则 diff --git a/skills/linggan/baidu-search/.claude-plugin/plugin.json b/skills/linggan/baidu-search/.claude-plugin/plugin.json new file mode 100644 index 0000000..ff61703 --- /dev/null +++ b/skills/linggan/baidu-search/.claude-plugin/plugin.json @@ -0,0 +1,14 @@ +{ + "name": "baidu-search", + "description": "百度搜索服务", + "mcpServers": { + "web-search-mcp-server": { + "transport": "http", + "url": "https://qianfan.baidubce.com/v2/tools/web-search/mcp", + "headers": { + "Authorization": "Bearer {BAIDU_API_KEY}" + } + } + }, + "category": "Search & Intelligence" +} diff --git a/skills/linggan/baidu-search/SKILL.md b/skills/linggan/baidu-search/SKILL.md new file mode 100644 index 0000000..22847b6 --- /dev/null +++ b/skills/linggan/baidu-search/SKILL.md @@ -0,0 +1,53 @@ +--- +name: baidu-search +description: Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics. +metadata: { "openclaw": { "emoji": "🔍︎", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY" } } +category: Search & Intelligence +--- + +# Baidu Search + +Search the web via Baidu AI Search API. + +## Usage + +```bash +python3 skills/baidu-search/scripts/search.py '' +``` + +## Request Parameters + +| Param | Type | Required | Default | Description | +|-------|------|----------|---------|-------------| +| query | str | yes | - | Search query | +| count | int | no | 10 | Number of results to return, range 1-50 | +| freshness | str | no | Null | Time range, two formats: format one is ”YYYY-MM-DDtoYYYY-MM-DD“, and format two includes pd, pw, pm, and py, representing the past 24 hours, past 7 days, past 31 days, and past 365 days respectively | + +## Examples + +```bash +# Basic search +python3 scripts/search.py '{"query":"人工智能"}' + +# Freshness first format "YYYY-MM-DDtoYYYY-MM-DD" example +python3 scripts/search.py '{ + "query":"最新新闻", + "freshness":"2025-09-01to2025-09-08" +}' + +# Freshness second format pd、pw、pm、py example +python3 scripts/search.py '{ + "query":"最新新闻", + "freshness":"pd" +}' + +# set count, the number of results to return +python3 scripts/search.py '{ + "query":"旅游景点", + "count": 20, +}' +``` + +## Current Status + +Fully functional. diff --git a/skills/linggan/bot-self-modifier/SKILL.md b/skills/linggan/bot-self-modifier/SKILL.md new file mode 100644 index 0000000..6435d8b --- /dev/null +++ b/skills/linggan/bot-self-modifier/SKILL.md @@ -0,0 +1,191 @@ +--- +name: bot-self-modifier +description: | + Bot 自修改技能,允许当前 bot 在对话过程中通过 API 读取和修改自身的全部配置。 + 使用场景: + - 用户要求 bot 调整行为或切换人设时(如"把你的角色改成英语老师"、"在系统提示词里加上XXX规则") → 修改系统提示词 + - 用户要求 bot 更换头像、修改自我介绍、设置开场建议问题时(如"把你的头像换成这个链接"、"更新你的描述") → 修改头像/描述/建议问题 + - 用户要求 bot 接入新工具或移除已有工具时(如"帮我接入 Jina 搜索"、"把那个 MCP 服务器删掉") → 添加/删除 MCP 服务器 + - 用户要求 bot 安装、启用、禁用或卸载技能时(如"帮我装上这个技能包"、"把 XX 技能关掉") → 管理技能列表 + - 用户要求 bot 配置 API 密钥或运行参数时(如"把 JINA_API_KEY 设置成 xxx") → 修改环境变量 + - bot 需要自主进化、动态调整自身能力边界的自动化场景 +category: Developer Tools +--- + +# Bot Self-Modifier + +## Skill Structure + +``` +bot-self-modifier/ +├── SKILL.md # Core instruction file (this file) +├── scripts/ +│ └── bot_modifier.py # Main bot modification script +``` + +## Overview + +支持以下功能: +1. **系统提示词** - 读取和修改 +2. **Bot 基本信息** - 头像、描述、建议问题的读取和修改 +3. **MCP 服务器** - 列表查看、添加和删除 +4. **技能列表** - 读取、上传、启用、禁用、删除 +5. **环境变量** - 读取和修改 + +## Quick Start + +所有操作都通过 `scripts/bot_modifier.py` 脚本执行,使用 `--action` 参数指定操作。 + +### 系统提示词操作 + +```bash +# 读取当前系统提示词 +scripts/bot_modifier.py --action get_prompt + +# 修改系统提示词 +scripts/bot_modifier.py --action set_prompt --value "你是一个专业的客服助手" +``` + +### Bot 基本信息操作 + +```bash +# 读取当前 bot 基本信息(名称、头像、描述、建议问题) +scripts/bot_modifier.py --action get_info + +# 修改 bot 标题名称 +scripts/bot_modifier.py --action set_name --value "智能客服助手" + +# 设置头像(URL) +scripts/bot_modifier.py --action set_avatar --value "https://example.com/avatar.png" + +# 设置描述 +scripts/bot_modifier.py --action set_description --value "这是一个智能客服助手" + +# 设置建议问题(JSON 数组) +scripts/bot_modifier.py --action set_suggestions --value '["你能做什么?", "帮我查一下订单", "如何退款"]' +``` + +### MCP 服务器操作 + +```bash +# 列出所有 MCP 服务器 +scripts/bot_modifier.py --action list_mcp + +# 添加 MCP 服务器(config 为 JSON 字符串) +scripts/bot_modifier.py --action add_mcp --name "my-server" --mcp-type "sse" --config '{"url": "https://example.com/sse"}' + +# 删除 MCP 服务器 +scripts/bot_modifier.py --action delete_mcp --mcp-id "" +``` + +### 技能操作 + +```bash +# 列出所有技能 +scripts/bot_modifier.py --action list_skills + +# 上传技能(zip 文件) +scripts/bot_modifier.py --action upload_skill --file /path/to/skill.zip + +# 启用技能(逗号分隔的技能名) +scripts/bot_modifier.py --action enable_skill --value "skill-name-1,skill-name-2" + +# 禁用技能(从已启用列表中移除) +scripts/bot_modifier.py --action disable_skill --value "skill-name-to-remove" + +# 删除已上传的技能 +scripts/bot_modifier.py --action delete_skill --value "skill-name" +``` + +### 环境变量操作 + +```bash +# 读取当前环境变量 +scripts/bot_modifier.py --action get_env + +# 修改环境变量(JSON 格式) +scripts/bot_modifier.py --action set_env --value '{"API_KEY": "xxx", "SECRET": "yyy"}' +``` + +## Script Usage + +### bot_modifier.py + +主脚本,通过 HTTP API 与服务端交互。 + +```bash +scripts/bot_modifier.py [OPTIONS] +``` + +**Options:** + +| Option | Required | Description | Default | +|--------|----------|-------------|---------| +| `--action` | Yes | 操作类型(见下方列表) | - | +| `--value` | Depends | 操作值(提示词内容/技能名/环境变量 JSON) | - | +| `--name` | For add_mcp | MCP 服务器名称 | - | +| `--mcp-type` | For add_mcp | MCP 服务器类型 (sse/streamable-http) | sse | +| `--config` | For add_mcp | MCP 服务器配置 JSON | - | +| `--mcp-id` | For delete_mcp | MCP 服务器 ID | - | +| `--file` | For upload_skill | Skill zip 文件路径 | - | + +**Available Actions:** + +| Action | Description | +|--------|-------------| +| `get_prompt` | 读取系统提示词 | +| `set_prompt` | 修改系统提示词(需要 --value) | +| `get_info` | 读取 bot 基本信息(名称、头像、描述、建议问题) | +| `set_name` | 修改 bot 标题名称(需要 --value) | +| `set_avatar` | 设置头像 URL(需要 --value) | +| `set_description` | 设置描述(需要 --value) | +| `set_suggestions` | 设置建议问题(需要 --value,JSON 数组) | +| `list_mcp` | 列出 MCP 服务器 | +| `add_mcp` | 添加 MCP 服务器(需要 --name, --config) | +| `delete_mcp` | 删除 MCP 服务器(需要 --mcp-id) | +| `list_skills` | 列出所有技能 | +| `upload_skill` | 上传技能 zip(需要 --file) | +| `enable_skill` | 启用技能(需要 --value,逗号分隔技能名) | +| `disable_skill` | 禁用技能(需要 --value,技能名) | +| `delete_skill` | 删除已上传技能(需要 --value) | +| `get_env` | 读取环境变量 | +| `set_env` | 修改环境变量(需要 --value,JSON 格式) | + +## Common Workflows + +### 工作流 1: 查看并修改 Bot 配置 + +```bash +# 1. 先查看当前配置 +scripts/bot_modifier.py --action get_prompt +scripts/bot_modifier.py --action get_info +scripts/bot_modifier.py --action get_env +scripts/bot_modifier.py --action list_mcp +scripts/bot_modifier.py --action list_skills + +# 2. 修改需要的配置 +scripts/bot_modifier.py --action set_prompt --value "新的提示词内容" +``` + +### 工作流 2: 添加新 MCP 服务器并配置环境变量 + +```bash +# 1. 添加 MCP 服务器 +scripts/bot_modifier.py --action add_mcp --name "jina-search" --mcp-type "sse" --config '{"url": "https://mcp.jina.ai/sse"}' + +# 2. 配置需要的环境变量 +scripts/bot_modifier.py --action set_env --value '{"JINA_API_KEY": "jina_xxx"}' +``` + +### 工作流 3: 上传并启用新技能 + +```bash +# 1. 上传技能包 +scripts/bot_modifier.py --action upload_skill --file /path/to/my-skill.zip + +# 2. 启用技能 +scripts/bot_modifier.py --action enable_skill --value "my-skill" + +# 3. 配置技能所需的环境变量 +scripts/bot_modifier.py --action set_env --value '{"SKILL_API_KEY": "xxx"}' +``` diff --git a/skills/linggan/caiyun-weather/SKILL.md b/skills/linggan/caiyun-weather/SKILL.md new file mode 100644 index 0000000..f5ab38f --- /dev/null +++ b/skills/linggan/caiyun-weather/SKILL.md @@ -0,0 +1,103 @@ +--- +name: caiyun-weather +description: "通过彩云天气 API 查询天气数据 — 实时天气、逐小时/一周预报、历史天气和天气预警。当用户询问任何城市的天气、温度、空气质量、天气预报、降雨概率、历史天气或天气预警时使用此技能。需要设置 CAIYUN_WEATHER_API_TOKEN 环境变量。Use when: user asks about current weather, temperature, air quality, forecast, rain, historical weather, or alerts for any city." +metadata: + { + "openclaw": + { + "requires": + { + "bins": ["python3"], + "env": ["CAIYUN_WEATHER_API_TOKEN"], + }, + "primaryEnv": "CAIYUN_WEATHER_API_TOKEN", + }, + } +category: Weather +--- + +# 彩云天气 (Caiyun Weather) + +通过彩云天气 API 查询天气数据。支持直接使用城市名称(中文或英文),无需提供经纬度。 + +## 前置条件 + +使用前需设置环境变量: + +```bash +export CAIYUN_WEATHER_API_TOKEN="你的API密钥" +``` + +免费申请 API 密钥:https://docs.caiyunapp.com/weather-api/ + +## 何时使用 + +✅ **使用此技能:** +- "北京现在天气怎么样?" +- "上海明天会下雨吗?" +- "深圳未来一周天气预报" +- "广州空气质量如何?" +- "杭州过去24小时的天气" +- "成都有没有天气预警?" +- "What's the weather in Beijing?" +- 用户询问任何城市的天气、温度、空气质量、预报或预警 + +❌ **不要使用此技能:** +- 气候趋势分析或长期历史数据 +- 航空/航海专业气象(METAR、TAF) +- 用户未配置彩云天气 API Token + +## 命令 + +使用 `--city` 加城市名称(中文或英文)。如需精确定位,可使用 `--lng` 和 `--lat`。 + +### 实时天气 + +```bash +python3 "{{skill_path}}/scripts/caiyun_weather.py" realtime --city "北京" +``` + +### 逐小时预报(72小时) + +```bash +python3 "{{skill_path}}/scripts/caiyun_weather.py" hourly --city "上海" +``` + +### 一周预报(7天) + +```bash +python3 "{{skill_path}}/scripts/caiyun_weather.py" weekly --city "深圳" +``` + +### 历史天气(过去24小时) + +```bash +python3 "{{skill_path}}/scripts/caiyun_weather.py" history --city "杭州" +``` + +### 天气预警 + +```bash +python3 "{{skill_path}}/scripts/caiyun_weather.py" alerts --city "成都" +``` + +### 使用坐标(可选) + +对于无法通过城市名识别的地点: + +```bash +python3 "{{skill_path}}/scripts/caiyun_weather.py" realtime --lng 116.4074 --lat 39.9042 +``` + +## 内置城市(即时查询) + +北京、上海、广州、深圳、杭州、成都、武汉、南京、重庆、西安、天津、苏州、郑州、长沙、青岛、大连、厦门、昆明、贵阳、哈尔滨、沈阳、长春、福州、合肥、济南、南昌、石家庄、太原、呼和浩特、南宁、海口、三亚、拉萨、乌鲁木齐、兰州、西宁、银川、香港、澳门、台北、珠海、东莞、佛山、无锡、宁波、温州 + +英文名和其他全球城市通过在线地理编码自动解析。 + +## 说明 + +- 脚本仅使用 Python 标准库,无需 pip 安装 +- 内置城市即时解析,其他城市通过 OpenStreetMap 地理编码 +- API 对中国地区数据最为精准 +- 有频率限制,请避免短时间内频繁请求 diff --git a/skills/linggan/competitor-news-intel/SKILL.md b/skills/linggan/competitor-news-intel/SKILL.md new file mode 100644 index 0000000..9758cad --- /dev/null +++ b/skills/linggan/competitor-news-intel/SKILL.md @@ -0,0 +1,217 @@ +--- +name: competitor-news-intel +description: Research competitor news, organize developments by company and theme, and produce actionable competitive intelligence with impact assessment and follow-up recommendations. Use when the user asks for competitor monitoring, competitor news tracking, market watch summaries, or business intelligence from external updates. 中文触发词包括:竞品跟踪、竞对情报、竞品新闻、市场监听、舆情观察、竞品周报、最近竞品有什么动作。 +category: Search & Intelligence +--- + +# Competitor News Intelligence + +## Overview + +This skill monitors and synthesizes competitor-related news into actionable business intelligence. + +It is appropriate when the user needs more than a list of links. The output should explain: +- what happened +- why it matters +- who it affects +- what to monitor next + +## Quick Start + +When the user asks for competitor research or monitoring: + +1. Confirm the competitor set +2. Confirm the time range and region +3. Clarify what kinds of events matter +4. Retrieve or review relevant information +5. Organize it into a structured intelligence brief with impact assessment + +### 中文任务映射 +- “跟踪一下最近竞品动态” → `collect` 或 `run` +- “做一份竞对周报” → `run` +- “最近竞品有什么动作” → `collect` +- “帮我长期监控这几个竞品” → `plan-recurring` + `schedule-job` +- “看下竞品最近有没有融资/发布新产品” → `collect` + category filtering + + +## Input Requirements + +| Field | Required | Description | +|-------|----------|-------------| +| competitors | yes | Company names, brands, or product lines | +| objective | yes | Monitoring, weekly digest, event scan, strategic watch | +| time range | no | Today, past 7 days, month, quarter, custom | +| geography | no | Country, region, or market | +| event categories | no | Product launch, pricing, partnership, hiring, financing, regulation, PR, channel | +| output depth | no | Brief scan / standard intelligence / detailed watch | +| audience | no | Founder, strategy team, sales, product, leadership | + +## Workflow Decision Tree + +### Quick Monitoring Brief +Use this for short competitor update summaries. + +### Standard Intelligence Brief +Use this for grouped event analysis with implications. + +### Strategic Watch +Use this when the user wants patterns, momentum, and what to watch next. + +### Recurring Monitoring +Use this when the user wants periodic competitor watch outputs. Pair with `schedule-job`. + +## Instructions + +### Step 1: Define monitoring scope +Clarify: +- which competitors matter most +- which kinds of events matter most +- what decision the monitoring should support + +### Step 2: Gather evidence +Use available search skills such as `baidu-search` when current information is needed. + +For each relevant update, capture: +- competitor +- date +- event type +- short description +- source + +### Step 3: Classify events +Typical categories: +- product / feature launch +- pricing or packaging change +- partnership or channel move +- hiring or org change +- financing or M&A +- regulatory or compliance issue +- brand or PR movement + +### Step 4: Assess impact +For each important event, explain: +- likely business impact +- urgency level +- affected function (sales, product, strategy, marketing) +- whether follow-up monitoring is needed + +### Step 5: Produce intelligence output +Do not stop at listing news. Synthesize patterns across competitors when possible. + +## Scripts + +### CLI Usage + +Use the following commands when you need stable structured outputs: + +```bash +poetry run python skills/competitor-news-intel/scripts/intel_cli.py collect --input-json '' +poetry run python skills/competitor-news-intel/scripts/intel_cli.py analyze --input-json '' --output json +poetry run python skills/competitor-news-intel/scripts/intel_cli.py run --input-json '' --output json +poetry run python skills/competitor-news-intel/scripts/intel_cli.py plan-recurring --input-json '' +``` + +### Recommended Uses +- `collect` - gather candidate competitor developments +- `analyze` - classify, deduplicate, and assess impact from collected events +- `run` - complete end-to-end intelligence generation +- `plan-recurring` - generate a schedule-ready monitoring message for `schedule-job` +- Real-time collection requires `BAIDU_API_KEY` + +```markdown +# Competitor News Intelligence Brief + +## Summary +[Short overview of the competitive landscape during the period] + +## Monitoring Scope +- Competitors: +- Time range: +- Geography: +- Key event categories: + +## Key Developments +### [Competitor / Event] +- Date: +- Category: +- What happened: +- Why it matters: +- Impact level: Low / Medium / High +- Suggested follow-up: + +## Cross-Competitor Patterns +- [Pattern] + +## Risks and Opportunities for Us +- [Implication] + +## Watch List +- [Item to keep monitoring] + +## Source Log +- [Source] - [Date] - [Competitor] - [Headline or key point] +``` + +## Quality Checklist + +Before finalizing, verify: +- the scope matches the requested competitors and timeframe +- event categories are consistent +- impact labels are justified, not arbitrary +- links or sources are attributable +- repeated news is de-duplicated +- the brief includes implications, not just headlines + +## Fallback Strategy + +If the evidence is sparse: +- return a lighter monitoring brief +- highlight missing visibility +- recommend additional competitors, keywords, or sources to track + +## Related Skills + +- `skills/baidu-search/SKILL.md` - retrieve current external information +- `skills/auto-daily-summary/SKILL.md` - condense larger result sets into shorter periodic summaries +- `skills/schedule-job/SKILL.md` - automate recurring competitor monitoring +- `skills/market-academic-insight/SKILL.md` - use when the task broadens into industry or technology research + +## Examples + +**User**: "帮我跟踪一下最近一周几家竞品的新闻" + +Expected output: +- structured competitor brief +- event categorization +- impact assessment +- watch list + +**User**: "做一份竞对情报周报" + +Expected output: +- weekly summary +- grouped developments +- cross-competitor patterns +- implications for our team + +**User**: "最近竞品有什么动作?" + +Expected output: +- recent developments +- event categories +- impact notes + +**User**: "帮我长期监控这几个竞品" + +Expected output: +- monitoring structure +- recommendation to combine with `schedule-job` +- suggested recurring payload + +**User**: "看下竞品最近有没有融资或者发新品" + +Expected output: +- filtered developments +- impact assessment +- follow-up watch list + diff --git a/skills/linggan/contract-document-generator/SKILL.md b/skills/linggan/contract-document-generator/SKILL.md new file mode 100644 index 0000000..a76c1aa --- /dev/null +++ b/skills/linggan/contract-document-generator/SKILL.md @@ -0,0 +1,188 @@ +--- +name: contract-document-generator +description: Draft contracts and formal business documents, rewrite clauses, identify risks, and organize negotiation-ready language. Use when the user asks for contract drafting, clause revision, legal-style document generation, formal agreement structuring, or document-ready policy and terms content. 中文触发词包括:合同起草、协议生成、条款修改、风险审查、保密协议、正式文档撰写。 +category: Writing & Reporting +--- + +# Contract & Document Generator + +## Overview + +This skill handles the **content layer** of contracts and formal documents: +- drafting and rewriting clauses +- structuring agreements +- highlighting risks and ambiguities +- preparing negotiation-ready revisions + +It does **not** replace file-format skills. Use `docx` and `pdf` for the final document container when needed. + +## Quick Start + +When the user asks for a contract or formal document: + +1. Identify the document type +2. Clarify the governing context and required clauses +3. Confirm whether the task is drafting, editing, summarizing, or risk review +4. Produce a structured output with clear labels for assumptions and unresolved items +5. If the user needs a file, pass the final content to `docx` or `pdf` + +### 中文任务映射 +- “起草一份合同” → new draft +- “改一下这段条款” → clause revision +- “审一下风险” → risk review +- “整理成正式文件” → draft + docx/pdf handoff + + +## Input Requirements + +| Field | Required | Description | +|-------|----------|-------------| +| document type | yes | NDA, service agreement, employment clause, terms, policy, notice, memo | +| objective | yes | Drafting, revision, review, comparison, simplification | +| parties / stakeholders | no | The involved entities or roles | +| jurisdiction / governing law | no | Legal or regional context | +| must-have clauses | no | Required provisions | +| prohibited or risky clauses | no | Clauses to avoid or watch | +| tone / style | no | Formal, plain language, business-friendly, negotiation-ready | +| output format | no | Clause list, full draft, risk memo, redline guidance | + +## Workflow Decision Tree + +### New Draft +Use when the user wants a first version of a contract or formal document. + +### Clause Revision +Use when the user wants to rewrite specific language, tighten wording, or simplify terms. + +### Risk Review +Use when the user wants to understand what is risky, ambiguous, one-sided, or incomplete. + +### Comparison / Negotiation Support +Use when the user wants a position memo, fallback language, or issue-by-issue negotiation guidance. + +## Instructions + +### Step 1: Define document role +Clarify what the document is supposed to do: +- bind parties +- allocate risk +- state responsibilities +- define process +- provide internal or external communication + +### Step 2: Identify the minimum structure +Typical sections may include: +- parties and definitions +- scope +- payment or consideration +- obligations +- confidentiality +- IP ownership +- term and termination +- liability and indemnity +- dispute resolution +- notices + +Only include sections relevant to the user’s objective. + +### Step 3: Mark assumptions explicitly +If party names, law, numbers, dates, or scope are missing, mark them as placeholders instead of inventing them. + +### Step 4: Review for risk and ambiguity +Check for: +- undefined terms +- missing triggers or deadlines +- one-sided liability allocation +- vague performance obligations +- inconsistent terms across sections + +### Step 5: Package the output for the user’s goal +Depending on the request, return one of: +- full draft +- clause alternatives +- risk memo +- revision guidance +- negotiation checklist + +## Output Format + +### Full Draft Mode +```markdown +# [Document Title] + +## Draft Notes +- Purpose: +- Assumptions: +- Jurisdiction status: + +## Draft +[Full structured document] + +## Open Items +- [Missing information] +``` + +### Risk Review Mode +```markdown +# Contract Risk Review + +## Summary +[Short overall view] + +## Key Risks +### 1. [Risk] +- Clause / section: +- Why it matters: +- Suggested revision: + +## Missing Terms +- [Item] + +## Negotiation Suggestions +- [Suggestion] +``` + +## Quality Checklist + +Before finalizing, verify: +- placeholders are clearly marked +- legal assumptions are not presented as confirmed facts +- obligations, timing, and consequences are clear +- defined terms are used consistently +- risk comments are concrete and actionable +- document structure matches the user’s purpose + +## Fallback Strategy + +If legal context is unclear: +- provide a business draft +- mark jurisdiction-specific items as requiring legal review +- avoid pretending to give definitive legal advice + +## Related Skills + +- `skills/docx/SKILL.md` - generate a formal `.docx` document or tracked-change revision +- `skills/pdf/SKILL.md` - extract, archive, or distribute final documents in PDF + +## Examples + +**User**: "帮我起草一份软件服务合同" + +Expected output: +- structured draft +- placeholders for missing commercial terms +- open items section + +**User**: "把这段保密条款改得更平衡一些" + +Expected output: +- revised clause +- explanation of changes +- negotiation rationale if useful + +**User**: "审一下这份合同有哪些风险" + +Expected output: +- risk summary +- clause-by-clause risks +- suggested revisions diff --git a/skills/linggan/financial-report-generator/SKILL.md b/skills/linggan/financial-report-generator/SKILL.md new file mode 100644 index 0000000..95425ef --- /dev/null +++ b/skills/linggan/financial-report-generator/SKILL.md @@ -0,0 +1,182 @@ +--- +name: financial-report-generator +description: Generate management-friendly financial reporting outputs from structured financial data, including KPI summaries, variance analysis, risk notes, and reporting narratives. Use when the user asks for financial reports, management reporting, monthly or quarterly performance summaries, or finance-oriented document generation. 中文触发词包括:财务月报、财务季报、经营分析、管理层汇报、董事会报告、财务简报。 +category: Writing & Reporting +--- + +# Financial Report Generator + +## Overview + +This skill turns financial data into a reporting package that is readable, auditable, and decision-oriented. + +It is **not** a replacement for the underlying spreadsheet skill. Instead, it sits above spreadsheet handling and focuses on: +- metric interpretation +- variance explanation +- management reporting structure +- finance-oriented narrative output + +## Quick Start + +When the user asks for a financial report: + +1. Confirm the reporting period and reporting objective +2. Identify the source data format (`xlsx`, `csv`, exported tables, manual numbers) +3. Confirm the reporting audience (operator, finance lead, management, board, investor) +4. If spreadsheets need to be read or generated, reuse the `xlsx` skill +5. Produce a finance brief that explains **what changed**, **why it matters**, and **what to do next** + +### 中文任务映射 +- “做一份财务月报” → standard financial report +- “整理成董事会简报” → board / management narrative +- “看下本月经营数据有什么异常” → KPI summary + variance analysis + + +## Input Requirements + +| Field | Required | Description | +|-------|----------|-------------| +| reporting objective | yes | Why this report is needed | +| reporting period | yes | Month, quarter, year, or custom date range | +| data source | yes | File, table, pasted data, or existing workbook | +| currency / unit | no | Currency and scale such as RMB, USD, thousands, millions | +| key metrics | no | Revenue, gross margin, burn, CAC, payback, cashflow, etc. | +| comparison basis | no | vs budget, vs last month, vs last quarter, vs last year | +| audience | no | Finance, management, board, investor | +| output format | no | Markdown, HTML outline, DOCX-ready outline, XLSX companion | + +## Workflow Decision Tree + +### KPI Summary Only +Use this when the user only needs a concise performance snapshot. + +### Standard Financial Report +Use this when the user needs: +- core metrics +- variance analysis +- business interpretation +- risk notes +- recommendations + +### Board / Management Narrative +Use this when the user needs a report suitable for leadership review, not just raw data output. + +## Instructions + +### Step 1: Normalize the reporting frame +Clarify: +- reporting period +- comparison basis +- unit and currency +- whether numbers are actuals, budget, forecast, or scenario assumptions + +### Step 2: Identify core metrics +Select the metrics that matter for the objective. Typical categories: +- revenue and growth +- cost and margin +- expense structure +- cash and runway +- customer economics +- forecast vs actual variance + +### Step 3: Explain movements +For material changes, answer: +- what changed +- compared with what +- likely driver +- business significance + +Do not just restate percentages without interpretation. + +### Step 4: Separate data from commentary +Keep these layers distinct: +- reported numbers +- derived observations +- management interpretation +- recommendation or follow-up + +### Step 5: Recommend output packaging +If the user needs a file artifact: +- use `xlsx` for workbook generation or structured tables +- use `docx` for formal reporting documents +- use `pdf` for final distribution or archival + +## Output Format + +```markdown +# [Financial Report Title] + +## Executive Summary +[Short summary of performance, movement, and implications] + +## Reporting Scope +- Period: +- Comparison basis: +- Currency / unit: +- Audience: + +## KPI Snapshot +| Metric | Current | Comparison | Variance | Comment | +|--------|---------|------------|----------|---------| + +## Key Drivers +### 1. [Driver] +- What changed: +- Why it changed: +- Business implication: + +## Risks and Watch Items +- [Risk] + +## Recommended Actions +1. [Action] +2. [Action] + +## Data Notes +- Assumptions: +- Missing fields: +- Confidence / caveats: +``` + +## Quality Checklist + +Before finalizing, verify: +- units and currency are explicit +- actuals, budget, and forecast are not mixed without labeling +- large variances are explained, not merely listed +- missing assumptions are disclosed +- conclusions are tied to metrics +- output is understandable for the stated audience + +## Fallback Strategy + +If the data is incomplete: +- provide a partial report with clear caveats +- mark where assumptions were required +- list the missing fields needed for a full report + +## Related Skills + +- `skills/xlsx/SKILL.md` - spreadsheet analysis, workbook generation, formula discipline +- `skills/docx/SKILL.md` - create formal management or board documents +- `skills/pdf/SKILL.md` - generate or process final PDF outputs + +## Examples + +**User**: "根据这份月度财务表,帮我做一份管理层月报" + +Expected output: +- KPI summary +- major variances +- business interpretation +- risk notes +- action recommendations + +**User**: "把这份季度经营数据整理成董事会能看的报告结构" + +Expected output: +- executive summary +- KPI snapshot +- key drivers +- watch items +- recommended action framing diff --git a/skills/linggan/market-academic-insight/SKILL.md b/skills/linggan/market-academic-insight/SKILL.md new file mode 100644 index 0000000..0f775b7 --- /dev/null +++ b/skills/linggan/market-academic-insight/SKILL.md @@ -0,0 +1,195 @@ +--- +name: market-academic-insight +description: Generate structured market research and academic insight briefs with clear evidence, trends, risks, and opportunities. Use when the user asks for industry research, market trends, literature review, academic progress tracking, or evidence-based insight synthesis. 中文触发词包括:行业洞察、市场研究、学术综述、论文进展、趋势分析、研究简报。 +category: Search & Intelligence +--- + +# Market & Academic Insight + +## Overview + +This skill produces structured research briefs for two closely related scenarios: + +1. **Market insight** - industry trends, company landscape, competitor movement, regional opportunity, policy impact +2. **Academic insight** - literature scan, research progress summary, topic synthesis, evidence comparison, research gaps + +Use this skill when the user needs **research synthesis and judgment**, not just raw search results. + +## Quick Start + +When the user requests research or insight generation: + +1. Identify whether the request is primarily **market**, **academic**, or **hybrid** +2. Clarify the topic, time range, geography, audience, and output depth +3. If live information is required, use existing search skills such as `baidu-search` +4. Synthesize findings into a structured brief with **evidence separated from conclusions** + +### 中文任务映射 +- “做一份行业洞察” → market +- “总结一下论文进展” → academic +- “分析这个技术的产业机会” → hybrid +- “整理成研究简报” → standard brief + + +## Input Requirements + +Collect the following information before producing the final brief: + +| Field | Required | Description | +|-------|----------|-------------| +| topic | yes | Research topic, industry, company, or academic theme | +| mode | yes | `market` / `academic` / `hybrid` | +| objective | yes | What decision or understanding this research should support | +| time range | no | Recent month, quarter, year, or custom range | +| geography | no | Country, region, or market scope | +| audience | no | Executive, product team, investor, researcher, student | +| output language | no | Language for the final brief | +| depth | no | Quick brief / standard report / deep dive | +| +If information is missing, ask only for the fields that materially change the output. + +## Workflow Decision Tree + +### Market Insight Workflow +Use this path when the user asks about: +- market trends +- industry landscape +- competitor movement +- customer demand shifts +- regulatory or policy effects +- opportunity and risk assessment + +### Academic Insight Workflow +Use this path when the user asks about: +- literature review +- paper synthesis +- research frontier +- evidence comparison +- methodology trends +- open questions or research gaps + +### Hybrid Workflow +Use this path when the user wants both: +- market adoption + academic progress +- commercial relevance of a research area +- industry impact of an emerging technology + +## Instructions + +### Step 1: Define scope +Restate the research target in a precise sentence: +- what is being studied +- why it matters +- what decision it should support + +### Step 2: Gather evidence +Prefer recent, attributable sources. If live retrieval is needed, use `baidu-search` or other enabled search tools. + +For each key source, capture: +- source name +- date +- relevant claim or data point +- confidence or limitation + +### Step 3: Separate facts from interpretation +Always distinguish: +- **Evidence**: reported facts, data, quotes, findings +- **Analysis**: what those facts imply +- **Speculation**: what may happen next + +Never present an assumption as a confirmed fact. + +### Step 4: Synthesize by theme +Group findings into 3-6 themes such as: +- growth drivers +- demand shifts +- technology maturity +- methodological differences +- adoption barriers +- competitive positioning + +### Step 5: Produce conclusions +End with concise insight statements that answer the user’s objective, not just summarize materials. + +## Output Format + +Use the following structure by default: + +```markdown +# [Title] + +## Executive Summary +[3-6 sentence summary] + +## Research Scope +- Topic: +- Mode: +- Time range: +- Geography: +- Audience: + +## Key Findings +### 1. [Theme] +- Evidence: +- Interpretation: +- Implication: + +### 2. [Theme] +- Evidence: +- Interpretation: +- Implication: + +## Risks and Uncertainties +- [Risk / limitation] + +## Opportunities or Next Steps +- [Actionable recommendation] + +## Evidence Log +- [Source] - [Date] - [Key point] +``` + +## Quality Checklist + +Before finalizing, verify: +- conclusions directly answer the user’s goal +- evidence and judgment are clearly separated +- time range and geography are explicit when relevant +- contradictory evidence is acknowledged +- outdated or weak evidence is labeled as such +- no fabricated citations or unverified claims are included + +## Fallback Strategy + +If evidence is limited: +- say what is known +- say what remains uncertain +- suggest what additional sources or validation would improve confidence + +Do not invent detail to make the brief look complete. + +## Related Skills + +- `skills/baidu-search/SKILL.md` - retrieve current external information +- `skills/auto-daily-summary/SKILL.md` - condense a large evidence set into a recurring summary +- `skills/competitor-news-intel/SKILL.md` - competitor-focused monitoring and intelligence + +## Examples + +**User**: "帮我做一份中国 AI Agent 市场趋势洞察" + +Output should include: +- market scope and timeframe +- major players and movement +- demand signals +- risks and opportunities +- evidence log + +**User**: "总结一下多模态检索近一年的学术进展" + +Output should include: +- research scope +- major themes +- representative findings +- open research gaps +- evidence log diff --git a/skills/linggan/ragflow-loader/.claude-plugin/plugin.json b/skills/linggan/ragflow-loader/.claude-plugin/plugin.json new file mode 100644 index 0000000..e106987 --- /dev/null +++ b/skills/linggan/ragflow-loader/.claude-plugin/plugin.json @@ -0,0 +1,23 @@ +{ + "name": "ragflow-loader", + "description": "知识库检索服务", + "hooks": { + "PrePrompt": [ + { + "type": "command", + "command": "python hooks/pre_prompt.py" + } + ] + }, + "mcpServers": { + "rag_retrieve": { + "transport": "http", + "url": "http://host.docker.internal:9382/mcp/", + "headers": { + "api_key": "ragflow-utqbVQDtWDeOumJEsqItG_X4PCckeIOghNXcU37K8Hs", + "X-Dataset-Ids": "{dataset_ids}" + } + } + }, + "category": "Data & Retrieval" +} diff --git a/skills/linggan/sales-decision-report/SKILL.md b/skills/linggan/sales-decision-report/SKILL.md new file mode 100644 index 0000000..b4aedc0 --- /dev/null +++ b/skills/linggan/sales-decision-report/SKILL.md @@ -0,0 +1,203 @@ +--- +name: sales-decision-report +description: Analyze sales data and produce decision-oriented reports with KPI summaries, anomaly explanation, channel and region analysis, and HTML-ready report structure. Use when the user asks for sales analysis, management dashboards, sales summaries, or decision reports from business data. 中文触发词包括:销售分析、经营分析、销售周报、销售月报、数据决策报告、HTML 报表。 +category: Writing & Reporting +--- + +# Sales Decision Report + +## Overview + +This skill turns sales data into a decision report for operators, managers, and leadership teams. + +It focuses on: +- KPI interpretation +- trend and anomaly analysis +- region / channel / product comparisons +- action-oriented reporting +- HTML-ready report structure for later automation + +## Quick Start + +When the user asks for a sales analysis report: + +1. Confirm the business objective +2. Confirm the source data and dimensions +3. Clarify comparison logic and reporting period +4. Analyze the data into findings, not just tables +5. Package the result as a structured report, optionally in HTML outline form + +### 中文任务映射 +- “做销售周报/销售月报” → quick summary 或 standard report +- “分析一下为什么业绩下滑” → diagnostic analysis +- “生成一个 HTML 报表结构” → HTML report structure +- “做经营分析和行动建议” → decision report + + +## Input Requirements + +| Field | Required | Description | +|-------|----------|-------------| +| business objective | yes | What decision the report should support | +| reporting period | yes | Daily, weekly, monthly, quarterly, custom | +| source data | yes | CSV, XLSX, pasted table, dashboard export | +| dimensions | no | Region, channel, product, team, customer segment | +| target / benchmark | no | Budget, target, last period, YoY, MoM | +| key KPIs | no | Revenue, orders, conversion, AOV, repeat rate, returns | +| audience | no | Sales ops, regional lead, GM, founder | +| output mode | no | Summary / detailed report / HTML-ready outline | + +## Workflow Decision Tree + +### Quick Sales Summary +Use for short KPI snapshots and headline findings. + +### Diagnostic Analysis +Use when the user wants to know why performance moved. + +### Decision Report +Use when the user wants recommendations, priorities, and next actions. + +### HTML Report Structure +Use when the user explicitly wants an HTML report or a report that will later be automated into HTML. + +## Instructions + +### Step 1: Frame the question +Clarify whether the report is about: +- performance monitoring +- problem diagnosis +- opportunity finding +- action prioritization + +### Step 2: Read the data by level +Review performance across: +- total performance +- time trend +- region +- channel +- product or category +- customer segment + +Only include dimensions that materially affect the decision. + +### Step 3: Identify meaningful changes +Look for: +- sharp increases or declines +- missed targets +- concentration risks +- outlier regions or channels +- mix shifts +- repeatable strengths + +### Step 4: Turn findings into decisions +Each important finding should answer: +- what happened +- where it happened +- likely cause +- what action should follow + +### Step 5: Prepare report packaging +If HTML is requested, structure content into sections suitable for cards, tables, and chart blocks. + +## Output Format + +### Standard Report +```markdown +# [Sales Report Title] + +## Executive Summary +[Short performance summary] + +## Reporting Scope +- Period: +- Objective: +- Audience: +- Data source: + +## KPI Snapshot +| KPI | Current | Target / Comparison | Variance | Comment | +|-----|---------|---------------------|----------|---------| + +## Key Findings +### 1. [Finding] +- What happened: +- Why it matters: +- Likely cause: +- Recommended action: + +## Risks and Opportunities +- [Item] + +## Recommended Actions +1. [Action] +2. [Action] +``` + +### HTML-ready Outline +```markdown +# HTML Report Structure + +## Page Header +- Title +- Period selector +- Summary badges + +## Section 1: KPI Cards +- Revenue +- Orders +- Conversion +- Average order value + +## Section 2: Trend Analysis +- Time-series highlights +- Major inflection points + +## Section 3: Breakdown Views +- Region table +- Channel table +- Product table + +## Section 4: Actions +- Priority actions +- Owners or next-step suggestions +``` + +## Quality Checklist + +Before finalizing, verify: +- the report supports a clear business decision +- metrics and benchmarks are labeled correctly +- anomalies are explained, not just surfaced +- recommendations follow logically from findings +- dimensions are not overloaded without purpose +- HTML output is structured, not just prose copied into sections + +## Fallback Strategy + +If data quality is weak: +- note missing or inconsistent fields +- avoid overconfident conclusions +- provide best-effort observations plus a data cleanup list + +## Related Skills + +- `skills/xlsx/SKILL.md` - spreadsheet reading, analysis, and output handling +- `skills/financial-report-generator/SKILL.md` - finance-oriented reporting when the task is more financial than sales-oriented +- `skills/auto-daily-summary/SKILL.md` - recurring condensed summary outputs + +## Examples + +**User**: "根据这份销售表做一个月度经营分析" + +Expected output: +- KPI summary +- channel/region findings +- anomalies +- recommended actions + +**User**: "帮我生成一个销售分析 HTML 报表结构" + +Expected output: +- HTML-ready page outline +- sections for KPI, trends, breakdowns, and action items diff --git a/skills/linggan/seedream/SKILL.md b/skills/linggan/seedream/SKILL.md new file mode 100755 index 0000000..4697b71 --- /dev/null +++ b/skills/linggan/seedream/SKILL.md @@ -0,0 +1,106 @@ +--- +name: seedream +description: 使用火山引擎 Seedream/Seedance API 生成高质量图片和视频。适用于文生图、图生图、文生视频、图生视频以及生成关联组图的场景。 +category: Creative Generation +--- + +# Seedream + +本 Skill 封装了火山引擎(Volcengine)的 Seedream-4.5 图片生成和 Seedance-1.5 视频生成能力,支持文生图、图生图、文生视频、图生视频。 + +## 使用方法 + +### 文生图 +生成单张图片(默认分辨率): +```bash +python {baseDir}/scripts/generate_image.py --prompt "一只赛博朋克风格的猫" +``` + +指定分辨率(如 2K, 4K 或具体像素): +```bash +python {baseDir}/scripts/generate_image.py --prompt "壮丽的山川日出" --size "2K" +``` + +### 图生图 +提供参考图片 URL: +```bash +python {baseDir}/scripts/generate_image.py --prompt "将其风格变为印象派" --image "https://example.com/input.jpg" +``` + +### 生成组图 +生成一组内容关联的图片(最多 15 张): +```bash +python {baseDir}/scripts/generate_image.py --prompt "一个宇航员在不同行星上的探险经历" --sequential --max-images 4 +``` + +## 参数说明 + +- `--prompt`: (必选) 图像生成的文本描述。 +- `--model`: (可选) 模型 ID,默认为 `doubao-seedream-4-5-251128`。 +- `--size`: (可选) 图像尺寸。支持 `2K`, `4K` 或 `2048x2048` 等格式。 +- `--image`: (可选) 参考图 URL 或 Base64 编码。 +- `--sequential`: (可选) 开启组图生成功能。 +- `--max-images`: (可选) 组图生成的最大图片数量(1-15)。 + +## 工作流 + +1. 调用 `generate_image.py` 脚本。 +2. 脚本会输出以 `MEDIA_URL: ` 开头的图片链接。 +3. 提取链接并使用 Markdown 语法展示:`![Generated Image](URL)`。 +4. 除非用户要求,否则无需下载图片。 + +## 注意事项 + +- Seedream-4.5 支持中英文提示词。 +- 组图功能仅在 Seedream-4.5/4.0 模型中有效。 +- 确保提供的图片 URL 可公开访问。 + +--- + +## 视频生成 + +### 文生视频 +```bash +python {baseDir}/scripts/generate_video.py --prompt "无人机以极快速度穿越复杂障碍或自然奇观,带来沉浸式飞行体验" +``` + +### 图生视频 +提供参考图片 URL: +```bash +python {baseDir}/scripts/generate_video.py --prompt "让画面中的人物动起来" --image "https://example.com/input.jpg" +``` + +指定视频时长(5 或 10 秒): +```bash +python {baseDir}/scripts/generate_video.py --prompt "日出延时摄影" --duration 10 +``` + +固定摄像机位: +```bash +python {baseDir}/scripts/generate_video.py --prompt "一只猫在桌上跳跃" --camera-fixed +``` + +### 视频参数说明 + +- `--prompt`: (必选) 视频生成的文本描述。 +- `--model`: (可选) 模型 ID,默认为 `doubao-seedance-1-5-pro-251215`。 +- `--image`: (可选) 参考图 URL,用于图生视频。 +- `--duration`: (可选) 视频时长,5 或 10 秒,默认 5。 +- `--camera-fixed`: (可选) 固定摄像机位。 +- `--no-watermark`: (可选) 去除水印。 +- `--poll-interval`: (可选) 轮询间隔秒数,默认 5。 +- `--max-wait`: (可选) 最大等待秒数,默认 600。 + +### 视频生成工作流 + +1. 调用 `generate_video.py` 脚本。 +2. 脚本会自动创建异步任务并轮询结果。 +3. 完成后输出以 `MEDIA_URL: ` 开头的视频链接。 +4. 提取链接并展示给用户(视频链接可直接访问)。 +5. 视频生成通常需要 1-3 分钟,请耐心等待。 + +### 视频注意事项 + +- Seedance 视频生成是异步任务,脚本会自动轮询等待结果。 +- 支持中英文提示词。 +- 图生视频时,确保图片 URL 可公开访问。 diff --git a/skills/linggan/static-hosting/SKILL.md b/skills/linggan/static-hosting/SKILL.md new file mode 100644 index 0000000..9309372 --- /dev/null +++ b/skills/linggan/static-hosting/SKILL.md @@ -0,0 +1,30 @@ +--- +name: static-hosting +description: Serve static HTML/CSS/JS/images from robot project directories via the built-in FastAPI static file server. Use when generating web pages, reports, or interactive content for a bot. +category: Web Services +--- + +# Static Hosting + +Host static files (HTML, CSS, JS, images, fonts, etc.) under the bot's project directory and get public URLs. + +## Usage + +Write files to `/app/projects/robot/{ASSISTANT_ID}/`, then run the script to get the public URL: + +```bash +python3 {SKILL_DIR}/scripts/get_url.py +``` + +Example: + +```bash +python3 {SKILL_DIR}/scripts/get_url.py /app/projects/robot/{ASSISTANT_ID}/index.html +# => https://engine.aitravelmaster.com/robots/[bot-id]/index.html +``` + +## Notes + +- Inside HTML, use **relative paths** to reference other assets (e.g. `href="css/style.css"`) +- `index.html` is auto-served at the directory URL +- All files under `/robots/` are publicly accessible, no authentication diff --git a/skills/linggan/static-site-deploy/SKILL.md b/skills/linggan/static-site-deploy/SKILL.md new file mode 100644 index 0000000..cb077bf --- /dev/null +++ b/skills/linggan/static-site-deploy/SKILL.md @@ -0,0 +1,154 @@ +--- +name: static-site-deploy +description: |- + Deploy, download, and browse static HTML sites on VPS via FTP. +triggers: + - deploy static site + - deploy html + - deploy to vps + - static deploy + - download from vps + - list files on vps + - browse ftp + - read file from vps + - 部署静态网站 + - 部署HTML + - 部署到VPS + - 从服务器下载 + - 浏览服务器文件 + - 读取服务器文件 +category: Web Services +--- + +# Static Site Deploy + +Upload, download, read, and browse static HTML files on a VPS via FTP. + +## Use when + +- Deploying static HTML/CSS/JS files to a VPS +- Downloading deployed files from VPS +- Reading file contents directly from VPS (without downloading to local) +- Browsing files and directories on VPS +- Publishing a single-page app, landing page, or documentation site +- User says "deploy", "upload to server", "publish site", "download from server", "read file", or "list files" + +## Prerequisites + +- ASSISTANT_ID environment variable must be set (bot_id) +- Deployment script configured with FTP credentials + +## Deployment Workflow + +### Phase 1: Prepare + +1. Identify the source directory (e.g., `./dist/`, `./build/`, `./public/`, or user-specified) +2. Determine `project-name`: + - From user input, OR + - From the source directory's parent folder name +3. Verify ASSISTANT_ID environment variable is set + +### Phase 2: Deploy + +Execute the deploy script: + +```bash +# Basic usage +bash scripts/deploy.sh + +# With custom config +bash scripts/deploy.sh --config /path/to/config.yml + +# Dry run (preview without uploading) +bash scripts/deploy.sh --dry-run +``` + +The script will: +- Upload files to VPS +- Show deployment summary and progress +- Verify deployment via FTP and HTTP checks + +### Phase 3: Verify + +The script automatically verifies: +1. **FTP verification** - confirms files are present on server +2. **HTTP verification** - confirms site is accessible (expects HTTP 200) + +Final output shows: +``` +=== Deploy Complete === +URL: https://domain/path/to/deploy/ +``` + +## Error Handling + +| Error | Detection | Fix | +|-------|-----------|-----| +| FTP connection refused | curl returns "connection refused" | Check FTP service is running, verify port | +| FTP auth failed | curl returns 530 | Check username/password in config | +| Upload permission denied | curl returns 553 | Check FTP user write permission on web_root | +| HTTP 404 | curl returns 404 | Confirm Nginx root matches FTP upload path | +| HTTP 403 | curl returns 403 | Fix permissions: files 644, directories 755 | + +## Implementation Notes + +- Use `scripts/deploy.sh` for uploading files to VPS +- Use `scripts/download.sh` for downloading files from VPS +- Use `scripts/list.sh` for browsing FTP directory contents +- Use `scripts/read.sh` for reading file contents directly from FTP (output to stdout) +- Verify ASSISTANT_ID environment variable is set before calling scripts +- Show the command to the user before executing +- The scripts handle all FTP operations, progress display, and verification + +## List Files Workflow + +To browse files on VPS: + +```bash +# List all projects under bot directory +bash scripts/list.sh + +# List files in a specific project +bash scripts/list.sh +``` + +The list script will: +- Read bot_id from ASSISTANT_ID environment variable +- Show directory contents from `/{bot_id}/` or `/{bot_id}/{project_name}/` +- Mark directories with trailing `/` +- Only list current directory level (non-recursive) + +## Download Workflow + +To download files from VPS: + +```bash +# Basic usage +bash scripts/download.sh + +# With custom config +bash scripts/download.sh --config /path/to/config.yml +``` + +The download script will: +- Read bot_id from ASSISTANT_ID environment variable +- Download files from `/{bot_id}/{project_name}/` +- Save to the specified target directory +- Show download summary and file count + +## Read File Workflow + +To read a file's content directly from VPS (output to stdout, no local download): + +```bash +# Read a file from a project +bash scripts/read.sh / + +# With custom config +bash scripts/read.sh /index.html --config /path/to/config.yml +``` + +The read script will: +- Read bot_id from ASSISTANT_ID environment variable +- Fetch the file from `/{bot_id}/{file-path}` via FTP +- Output file contents directly to stdout diff --git a/skills/linggan/voice-notification/SKILL.md b/skills/linggan/voice-notification/SKILL.md new file mode 100644 index 0000000..31b8ed4 --- /dev/null +++ b/skills/linggan/voice-notification/SKILL.md @@ -0,0 +1,58 @@ +--- +name: voice-notification +description: Voice Notification - Push voice broadcast messages to active voice sessions for real-time TTS playback +category: Communication +--- + +# Voice Notification - Voice Broadcast + +Push voice broadcast messages to users' active voice sessions. The message will be played via TTS when the session is in idle state. + +## Quick Start + +When a user requests to send a voice notification: +1. Compose the message content +2. Call voice_notify.py to send the broadcast + +## Instructions + +### Tool Path + +```bash +python {skill_dir}/scripts/voice_notify.py broadcast --message "Your message here" +``` + +### Parameters + +| Parameter | Required | Description | +|-----------|----------|-------------| +| `--message` | Yes | The message content to be spoken via TTS | + +### Response + +- Success: `{"success": true, "queued": true}` +- Error: `{"success": false, "error": "..."}` + +## Examples + +**User**: "Send a voice notification: the meeting is starting" + +```bash +python {skill_dir}/scripts/voice_notify.py broadcast \ + --message "The meeting is starting soon, please get ready" +``` + +**User**: "Notify me via voice that my coffee is ready" + +```bash +python {skill_dir}/scripts/voice_notify.py broadcast \ + --message "Your coffee is ready, please come pick it up" +``` + +## Guidelines + +- The target user must have an active voice session connected to `/api/v3/voice/realtime` +- The voice session must be in lite mode (`voice_mode: "lite"`) +- Messages are queued and played when the session enters idle state +- Keep messages concise for better TTS experience +- Message language should match the user's preferred language diff --git a/skills/linggan/weather-china/SKILL.md b/skills/linggan/weather-china/SKILL.md new file mode 100644 index 0000000..6235002 --- /dev/null +++ b/skills/linggan/weather-china/SKILL.md @@ -0,0 +1,74 @@ +--- +name: weather-china +description: 中国天气预报查询 - 基于中国天气网(weather.com.cn)获取7天天气预报和生活指数数据。纯 Python 实现,无需 API Key。 +version: 1.0.2 +tags: [weather, china, forecast, chinese, weather-cn, life-index, 7day-forecast] +metadata: {"openclaw":{"emoji":"🌤️","requires":{"bins":["python3"]}}} +allowed-tools: [exec] +category: Weather +--- + +# 中国天气预报查询 (China Weather) + +基于 [中国天气网](https://www.weather.com.cn) 获取 7 天天气预报和生活指数数据。纯 Python 实现,无需 API Key。 + +## Quick Usage + +```bash +# 查询天气(格式化文本输出) +python3 skills/weather-china/lib/weather_cn.py query 南京 +python3 skills/weather-china/lib/weather_cn.py query 北京 +python3 skills/weather-china/lib/weather_cn.py query 成都 + +# JSON 输出(结构化数据) +python3 skills/weather-china/lib/weather_cn.py json 上海 +``` + +## Example Output + +```text +城市: 南京 (代码: 101190101) +数据来源: weather.com.cn +查询时间: 2026-03-04 16:31:55 + +[4日(今天)] 阴转多云, 10℃/5℃, 东风 4-5级转3-4级 + 感冒指数: 易发 - 风较大,易发生感冒,注意防护。 + 运动指数: 较适宜 - 风力较强且气温较低,请进行室内运动。 + 过敏指数: 较易发 - 外出需远离过敏源,适当采取防护措施。 + 穿衣指数: 冷 - 建议着棉衣加羊毛衫等冬季服装。 + 洗车指数: 较不宜 - 风力较大,洗车后会蒙上灰尘。 + 紫外线指数: 最弱 - 辐射弱,涂擦SPF8-12防晒护肤品。 + +[5日(明天)] 阴转多云, 11℃/4℃, 北风 3-4级 + 感冒指数: 少发 - 无明显降温,感冒机率较低。 + ... +``` + +## Supported Cities + +支持查询中国天气网覆盖的所有城市和地区。输入城市名称即可自动搜索匹配,无需手动配置。 + +常见城市(如北京、上海、广州、深圳、成都、杭州、南京等 60+ 城市)已内置代码,查询更快。其他城市会通过搜索接口自动查找城市代码。 + +## Data Available + +- **7天预报**: 日期、天气状况、高/低温度、风向风力 +- **生活指数**: 感冒、运动、过敏、穿衣、洗车、紫外线等 + +## Use Cases + +当用户询问以下问题时使用本 skill: + +- "今天天气怎么样" +- "明天会下雨吗" +- "[城市名]天气预报" +- "南京这周天气如何" +- "出门需要带伞吗" +- "穿什么衣服合适" + +## Notes + +1. **数据来源**: 中国天气网,数据可能略有延迟 +2. **城市名称**: 使用标准城市名,如"成都"、"南京" +3. **网络依赖**: 需要能访问 +4. **无需 API Key**: 直接解析天气网页面数据 diff --git a/skills/onprem/kfs-answer/SKILL.md b/skills/onprem/kfs-answer/SKILL.md index 39ab748..24871e2 100644 --- a/skills/onprem/kfs-answer/SKILL.md +++ b/skills/onprem/kfs-answer/SKILL.md @@ -1,6 +1,7 @@ --- name: kfs-answer description: Primary skill for answering ALL questions about the datasets knowledge base. Search files, run queries (SQL / markdown), and return answers with citations. MUST be used first for any data-related question. +category: Data & Retrieval --- # kfs-answer diff --git a/skills/onprem/rag-retrieve-only/.claude-plugin/plugin.json b/skills/onprem/rag-retrieve-only/.claude-plugin/plugin.json index a1a38c5..fe0846f 100644 --- a/skills/onprem/rag-retrieve-only/.claude-plugin/plugin.json +++ b/skills/onprem/rag-retrieve-only/.claude-plugin/plugin.json @@ -18,5 +18,6 @@ "{bot_id}" ] } - } + }, + "category": "Data & Retrieval" } diff --git a/skills/support/board-meeting-pack-helper/SKILL.md b/skills/support/board-meeting-pack-helper/SKILL.md index 6ccbeb5..34c354c 100644 --- a/skills/support/board-meeting-pack-helper/SKILL.md +++ b/skills/support/board-meeting-pack-helper/SKILL.md @@ -1,6 +1,7 @@ --- name: board-meeting-pack-helper description: Assemble board-meeting materials into a coherent pack with agenda logic, board-level KPIs, strategic risks, governance context, and decision-ready content. Use this whenever users ask for board materials, board pack, board meeting agenda, governance updates, director pre-read, 取締役会資料, or resolution-ready content for executive or board review; use it for board-level governance materials, not for generic executive one-pagers. +category: Writing & Reporting --- # Board Meeting Pack Helper diff --git a/skills/support/customer-reply-tone/SKILL.md b/skills/support/customer-reply-tone/SKILL.md index 3bbcf51..3dc315a 100644 --- a/skills/support/customer-reply-tone/SKILL.md +++ b/skills/support/customer-reply-tone/SKILL.md @@ -1,6 +1,7 @@ --- name: customer-reply-tone description: Rewrite customer-facing replies in the right tone while preserving factual accuracy, accountability, and clear next steps across sensitive support, delivery, and account situations. Use this whenever users ask to soften, professionalize, de-escalate, polish, or reframe a customer email or chat response, including complaint reply, support response polish, or クレーム返信; use it for reply rewriting and de-escalation, not for sales follow-up or general Japanese business writing. +category: Writing & Reporting --- # Customer Reply Tone diff --git a/skills/support/exec-brief-1pager/SKILL.md b/skills/support/exec-brief-1pager/SKILL.md index 3f75ed1..c550382 100644 --- a/skills/support/exec-brief-1pager/SKILL.md +++ b/skills/support/exec-brief-1pager/SKILL.md @@ -1,6 +1,7 @@ --- name: exec-brief-1pager description: Turn complex business, product, and operational topics into a one-page executive brief with decision-ready insights, options, and recommended actions. Use this whenever users ask for an executive summary, leadership brief, one-pager, decision memo, CEO brief, or key points at a glance for senior leadership; use it for one-page decision support, not for recurring status updates or board meeting packs. +category: Writing & Reporting --- # Exec Brief 1Pager diff --git a/skills/support/incident-postmortem-ja/SKILL.md b/skills/support/incident-postmortem-ja/SKILL.md index b082f47..a979554 100644 --- a/skills/support/incident-postmortem-ja/SKILL.md +++ b/skills/support/incident-postmortem-ja/SKILL.md @@ -1,6 +1,7 @@ --- name: incident-postmortem-ja description: Create structured postmortems and 障害報告書 for incidents, outages, and service failures with clear timelines, root-cause analysis, and preventive actions. Use this whenever users ask for an incident report, postmortem, RCA, incident review, 障害報告, 障害報告書, 振り返り, or 再発防止計画 focused on system and process improvement; use it for formal incident analysis, not for routine status updates or personal blame. +category: Writing & Reporting --- # Incident Postmortem JA diff --git a/skills/support/japan-compliance-checker/SKILL.md b/skills/support/japan-compliance-checker/SKILL.md index 9284e85..6f659d6 100644 --- a/skills/support/japan-compliance-checker/SKILL.md +++ b/skills/support/japan-compliance-checker/SKILL.md @@ -1,6 +1,7 @@ --- name: japan-compliance-checker description: Review Japan-specific compliance risks in business text, campaign copy, contracts, and operating processes with clear, practical screening guidance. Use this whenever users ask for Japan compliance review, legal review, regulatory check, 法務チェック, コンプラ確認, 契約レビュー, or 広告審査 within the v1 scope of APPI, 景品表示法, and 下請法; use it for risk screening rather than drafting, anonymization, or legal advice. +category: Compliance & Security --- # Japan Compliance Checker diff --git a/skills/support/japanese-business-writer/SKILL.md b/skills/support/japanese-business-writer/SKILL.md index 217179a..ad0f578 100644 --- a/skills/support/japanese-business-writer/SKILL.md +++ b/skills/support/japanese-business-writer/SKILL.md @@ -1,6 +1,7 @@ --- name: japanese-business-writer description: Draft and polish formal Japanese business writing for emails, notices, request letters, cover notes, and workplace communication with clear structure and appropriate 敬語. Use this whenever users ask for Japanese business writing, formal JP writing, 敬語 polishing, 文面添削, 依頼メール, 案内文, 送付状, or 社内通知; use it for writing quality and business tone, not for compliance review or complaint de-escalation. +category: Writing & Reporting --- # Japanese Business Writer diff --git a/skills/support/japanese-pii-redactor/SKILL.md b/skills/support/japanese-pii-redactor/SKILL.md index efb2767..f4e3e6e 100644 --- a/skills/support/japanese-pii-redactor/SKILL.md +++ b/skills/support/japanese-pii-redactor/SKILL.md @@ -1,6 +1,7 @@ --- name: japanese-pii-redactor description: Redact, anonymize, and de-identify personal information in Japanese-language or mixed-language text and tabular data while preserving analytical usefulness. Use this whenever users ask for PII redaction, PII scrub, de-identification, 個人情報匿名化, 匿名加工, 仮名化, 秘匿化, or マスキング; use it for executing anonymization rules, not for legal interpretation or general writing polish. +category: Compliance & Security --- # Japanese PII Redactor diff --git a/skills/support/kfs-answer/SKILL.md b/skills/support/kfs-answer/SKILL.md index 39ab748..24871e2 100644 --- a/skills/support/kfs-answer/SKILL.md +++ b/skills/support/kfs-answer/SKILL.md @@ -1,6 +1,7 @@ --- name: kfs-answer description: Primary skill for answering ALL questions about the datasets knowledge base. Search files, run queries (SQL / markdown), and return answers with citations. MUST be used first for any data-related question. +category: Data & Retrieval --- # kfs-answer diff --git a/skills/support/meeting-minutes-action/SKILL.md b/skills/support/meeting-minutes-action/SKILL.md index ee56b76..0cb36c5 100644 --- a/skills/support/meeting-minutes-action/SKILL.md +++ b/skills/support/meeting-minutes-action/SKILL.md @@ -1,6 +1,7 @@ --- name: meeting-minutes-action description: Turn raw meeting notes, transcripts, and discussion logs into structured meeting minutes, decision summaries, and follow-up action items with owners and deadlines. Use this whenever users ask for meeting minutes, meeting summary, 議事録, 議事メモ整理, 打合せ記録, 決定事項整理, or follow-up tasks from a single meeting; use it for minutes and action tracking, not for periodic project or leadership status reporting. +category: Writing & Reporting --- # Meeting Minutes Action diff --git a/skills/support/proposal-rfp-writer/SKILL.md b/skills/support/proposal-rfp-writer/SKILL.md index 15d6784..316f43c 100644 --- a/skills/support/proposal-rfp-writer/SKILL.md +++ b/skills/support/proposal-rfp-writer/SKILL.md @@ -1,6 +1,7 @@ --- name: proposal-rfp-writer description: Create structured, client-ready proposal and RFP response drafts that map requirements to solutions, differentiate clearly, and stay easy for evaluators to review. Use this whenever users ask to respond to an RFP, RFQ, bid request, tender, vendor questionnaire, procurement questionnaire, 提案書, bid response, or tender response; use it for evaluator-facing requirement mapping, not for quotes, SOWs, or delivery acceptance terms. +category: Writing & Reporting --- # Proposal RFP Writer diff --git a/skills/support/quotation-sow-drafter/SKILL.md b/skills/support/quotation-sow-drafter/SKILL.md index f79f526..41ab513 100644 --- a/skills/support/quotation-sow-drafter/SKILL.md +++ b/skills/support/quotation-sow-drafter/SKILL.md @@ -1,6 +1,7 @@ --- name: quotation-sow-drafter description: Draft coherent quotations and statements of work that align scope, deliverables, milestones, assumptions, and commercial terms without blurring commitments and estimates. Use this whenever users ask for a quote, quote draft, pricing sheet, SOW, scope document, work order, implementation plan draft, 見積書, or 作業範囲定義; use it for pricing, scope, milestones, and acceptance terms, not for RFP questionnaires or evaluator-facing bid responses. +category: Writing & Reporting --- # Quotation SOW Drafter diff --git a/skills/support/rag-retrieve-only/.claude-plugin/plugin.json b/skills/support/rag-retrieve-only/.claude-plugin/plugin.json index a1a38c5..fe0846f 100644 --- a/skills/support/rag-retrieve-only/.claude-plugin/plugin.json +++ b/skills/support/rag-retrieve-only/.claude-plugin/plugin.json @@ -18,5 +18,6 @@ "{bot_id}" ] } - } + }, + "category": "Data & Retrieval" } diff --git a/skills/support/sales-followup/SKILL.md b/skills/support/sales-followup/SKILL.md index 7e2a543..e46ab55 100644 --- a/skills/support/sales-followup/SKILL.md +++ b/skills/support/sales-followup/SKILL.md @@ -1,6 +1,7 @@ --- name: sales-followup description: Draft sales follow-up messages that move deals forward with the right mix of urgency, clarity, and low-friction next steps after calls, demos, proposals, and stalled threads. Use this whenever users ask to follow up, re-engage, nudge, check in, request a decision, client follow-up, 商談フォロー, 提案後フォロー, or 検討状況確認 after a demo, quote, meeting, or proposal; use it for sales progression, not for complaint handling or tone-only rewrites. +category: Writing & Reporting --- # Sales Follow-Up diff --git a/skills/support/stakeholder-update/SKILL.md b/skills/support/stakeholder-update/SKILL.md index cb263d7..0ad21f9 100644 --- a/skills/support/stakeholder-update/SKILL.md +++ b/skills/support/stakeholder-update/SKILL.md @@ -1,6 +1,7 @@ --- name: stakeholder-update description: Produce concise stakeholder updates that summarize status, progress, risks, decisions, and next actions in a format leaders and cross-functional teams can scan quickly. Use this whenever users ask for a status update, progress update, weekly update, monthly update, leadership summary, project brief, 経営報告, or エスカレーション共有; use it for recurring project or business reporting, not for meeting minutes or one-page decision memos. +category: Writing & Reporting --- # Stakeholder Update diff --git a/skills/support/static-hosting/SKILL.md b/skills/support/static-hosting/SKILL.md index 8a4866b..4058cf1 100644 --- a/skills/support/static-hosting/SKILL.md +++ b/skills/support/static-hosting/SKILL.md @@ -1,6 +1,7 @@ --- name: static-hosting description: Serve static HTML/CSS/JS/images from robot project directories via the built-in FastAPI static file server. Use when generating web pages, reports, or interactive content for a bot. +category: Web Services --- # Static Hosting From 022781b145e762433f71cfad3f46365be21d4ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Tue, 26 May 2026 17:43:43 +0800 Subject: [PATCH 2/2] merge --- .../baidu-search/.claude-plugin/plugin.json | 14 -- skills/linggan/baidu-search/SKILL.md | 53 ----- skills/linggan/bot-self-modifier/SKILL.md | 191 --------------- skills/linggan/caiyun-weather/SKILL.md | 103 --------- skills/linggan/competitor-news-intel/SKILL.md | 217 ------------------ .../contract-document-generator/SKILL.md | 188 --------------- .../financial-report-generator/SKILL.md | 182 --------------- .../linggan/market-academic-insight/SKILL.md | 195 ---------------- .../ragflow-loader/.claude-plugin/plugin.json | 23 -- skills/linggan/sales-decision-report/SKILL.md | 203 ---------------- skills/linggan/seedream/SKILL.md | 106 --------- skills/linggan/static-hosting/SKILL.md | 30 --- skills/linggan/static-site-deploy/SKILL.md | 154 ------------- skills/linggan/voice-notification/SKILL.md | 58 ----- skills/linggan/weather-china/SKILL.md | 74 ------ 15 files changed, 1791 deletions(-) delete mode 100644 skills/linggan/baidu-search/.claude-plugin/plugin.json delete mode 100644 skills/linggan/baidu-search/SKILL.md delete mode 100644 skills/linggan/bot-self-modifier/SKILL.md delete mode 100644 skills/linggan/caiyun-weather/SKILL.md delete mode 100644 skills/linggan/competitor-news-intel/SKILL.md delete mode 100644 skills/linggan/contract-document-generator/SKILL.md delete mode 100644 skills/linggan/financial-report-generator/SKILL.md delete mode 100644 skills/linggan/market-academic-insight/SKILL.md delete mode 100644 skills/linggan/ragflow-loader/.claude-plugin/plugin.json delete mode 100644 skills/linggan/sales-decision-report/SKILL.md delete mode 100755 skills/linggan/seedream/SKILL.md delete mode 100644 skills/linggan/static-hosting/SKILL.md delete mode 100644 skills/linggan/static-site-deploy/SKILL.md delete mode 100644 skills/linggan/voice-notification/SKILL.md delete mode 100644 skills/linggan/weather-china/SKILL.md diff --git a/skills/linggan/baidu-search/.claude-plugin/plugin.json b/skills/linggan/baidu-search/.claude-plugin/plugin.json deleted file mode 100644 index ff61703..0000000 --- a/skills/linggan/baidu-search/.claude-plugin/plugin.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "baidu-search", - "description": "百度搜索服务", - "mcpServers": { - "web-search-mcp-server": { - "transport": "http", - "url": "https://qianfan.baidubce.com/v2/tools/web-search/mcp", - "headers": { - "Authorization": "Bearer {BAIDU_API_KEY}" - } - } - }, - "category": "Search & Intelligence" -} diff --git a/skills/linggan/baidu-search/SKILL.md b/skills/linggan/baidu-search/SKILL.md deleted file mode 100644 index 22847b6..0000000 --- a/skills/linggan/baidu-search/SKILL.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -name: baidu-search -description: Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics. -metadata: { "openclaw": { "emoji": "🔍︎", "requires": { "bins": ["python3"], "env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY" } } -category: Search & Intelligence ---- - -# Baidu Search - -Search the web via Baidu AI Search API. - -## Usage - -```bash -python3 skills/baidu-search/scripts/search.py '' -``` - -## Request Parameters - -| Param | Type | Required | Default | Description | -|-------|------|----------|---------|-------------| -| query | str | yes | - | Search query | -| count | int | no | 10 | Number of results to return, range 1-50 | -| freshness | str | no | Null | Time range, two formats: format one is ”YYYY-MM-DDtoYYYY-MM-DD“, and format two includes pd, pw, pm, and py, representing the past 24 hours, past 7 days, past 31 days, and past 365 days respectively | - -## Examples - -```bash -# Basic search -python3 scripts/search.py '{"query":"人工智能"}' - -# Freshness first format "YYYY-MM-DDtoYYYY-MM-DD" example -python3 scripts/search.py '{ - "query":"最新新闻", - "freshness":"2025-09-01to2025-09-08" -}' - -# Freshness second format pd、pw、pm、py example -python3 scripts/search.py '{ - "query":"最新新闻", - "freshness":"pd" -}' - -# set count, the number of results to return -python3 scripts/search.py '{ - "query":"旅游景点", - "count": 20, -}' -``` - -## Current Status - -Fully functional. diff --git a/skills/linggan/bot-self-modifier/SKILL.md b/skills/linggan/bot-self-modifier/SKILL.md deleted file mode 100644 index 6435d8b..0000000 --- a/skills/linggan/bot-self-modifier/SKILL.md +++ /dev/null @@ -1,191 +0,0 @@ ---- -name: bot-self-modifier -description: | - Bot 自修改技能,允许当前 bot 在对话过程中通过 API 读取和修改自身的全部配置。 - 使用场景: - - 用户要求 bot 调整行为或切换人设时(如"把你的角色改成英语老师"、"在系统提示词里加上XXX规则") → 修改系统提示词 - - 用户要求 bot 更换头像、修改自我介绍、设置开场建议问题时(如"把你的头像换成这个链接"、"更新你的描述") → 修改头像/描述/建议问题 - - 用户要求 bot 接入新工具或移除已有工具时(如"帮我接入 Jina 搜索"、"把那个 MCP 服务器删掉") → 添加/删除 MCP 服务器 - - 用户要求 bot 安装、启用、禁用或卸载技能时(如"帮我装上这个技能包"、"把 XX 技能关掉") → 管理技能列表 - - 用户要求 bot 配置 API 密钥或运行参数时(如"把 JINA_API_KEY 设置成 xxx") → 修改环境变量 - - bot 需要自主进化、动态调整自身能力边界的自动化场景 -category: Developer Tools ---- - -# Bot Self-Modifier - -## Skill Structure - -``` -bot-self-modifier/ -├── SKILL.md # Core instruction file (this file) -├── scripts/ -│ └── bot_modifier.py # Main bot modification script -``` - -## Overview - -支持以下功能: -1. **系统提示词** - 读取和修改 -2. **Bot 基本信息** - 头像、描述、建议问题的读取和修改 -3. **MCP 服务器** - 列表查看、添加和删除 -4. **技能列表** - 读取、上传、启用、禁用、删除 -5. **环境变量** - 读取和修改 - -## Quick Start - -所有操作都通过 `scripts/bot_modifier.py` 脚本执行,使用 `--action` 参数指定操作。 - -### 系统提示词操作 - -```bash -# 读取当前系统提示词 -scripts/bot_modifier.py --action get_prompt - -# 修改系统提示词 -scripts/bot_modifier.py --action set_prompt --value "你是一个专业的客服助手" -``` - -### Bot 基本信息操作 - -```bash -# 读取当前 bot 基本信息(名称、头像、描述、建议问题) -scripts/bot_modifier.py --action get_info - -# 修改 bot 标题名称 -scripts/bot_modifier.py --action set_name --value "智能客服助手" - -# 设置头像(URL) -scripts/bot_modifier.py --action set_avatar --value "https://example.com/avatar.png" - -# 设置描述 -scripts/bot_modifier.py --action set_description --value "这是一个智能客服助手" - -# 设置建议问题(JSON 数组) -scripts/bot_modifier.py --action set_suggestions --value '["你能做什么?", "帮我查一下订单", "如何退款"]' -``` - -### MCP 服务器操作 - -```bash -# 列出所有 MCP 服务器 -scripts/bot_modifier.py --action list_mcp - -# 添加 MCP 服务器(config 为 JSON 字符串) -scripts/bot_modifier.py --action add_mcp --name "my-server" --mcp-type "sse" --config '{"url": "https://example.com/sse"}' - -# 删除 MCP 服务器 -scripts/bot_modifier.py --action delete_mcp --mcp-id "" -``` - -### 技能操作 - -```bash -# 列出所有技能 -scripts/bot_modifier.py --action list_skills - -# 上传技能(zip 文件) -scripts/bot_modifier.py --action upload_skill --file /path/to/skill.zip - -# 启用技能(逗号分隔的技能名) -scripts/bot_modifier.py --action enable_skill --value "skill-name-1,skill-name-2" - -# 禁用技能(从已启用列表中移除) -scripts/bot_modifier.py --action disable_skill --value "skill-name-to-remove" - -# 删除已上传的技能 -scripts/bot_modifier.py --action delete_skill --value "skill-name" -``` - -### 环境变量操作 - -```bash -# 读取当前环境变量 -scripts/bot_modifier.py --action get_env - -# 修改环境变量(JSON 格式) -scripts/bot_modifier.py --action set_env --value '{"API_KEY": "xxx", "SECRET": "yyy"}' -``` - -## Script Usage - -### bot_modifier.py - -主脚本,通过 HTTP API 与服务端交互。 - -```bash -scripts/bot_modifier.py [OPTIONS] -``` - -**Options:** - -| Option | Required | Description | Default | -|--------|----------|-------------|---------| -| `--action` | Yes | 操作类型(见下方列表) | - | -| `--value` | Depends | 操作值(提示词内容/技能名/环境变量 JSON) | - | -| `--name` | For add_mcp | MCP 服务器名称 | - | -| `--mcp-type` | For add_mcp | MCP 服务器类型 (sse/streamable-http) | sse | -| `--config` | For add_mcp | MCP 服务器配置 JSON | - | -| `--mcp-id` | For delete_mcp | MCP 服务器 ID | - | -| `--file` | For upload_skill | Skill zip 文件路径 | - | - -**Available Actions:** - -| Action | Description | -|--------|-------------| -| `get_prompt` | 读取系统提示词 | -| `set_prompt` | 修改系统提示词(需要 --value) | -| `get_info` | 读取 bot 基本信息(名称、头像、描述、建议问题) | -| `set_name` | 修改 bot 标题名称(需要 --value) | -| `set_avatar` | 设置头像 URL(需要 --value) | -| `set_description` | 设置描述(需要 --value) | -| `set_suggestions` | 设置建议问题(需要 --value,JSON 数组) | -| `list_mcp` | 列出 MCP 服务器 | -| `add_mcp` | 添加 MCP 服务器(需要 --name, --config) | -| `delete_mcp` | 删除 MCP 服务器(需要 --mcp-id) | -| `list_skills` | 列出所有技能 | -| `upload_skill` | 上传技能 zip(需要 --file) | -| `enable_skill` | 启用技能(需要 --value,逗号分隔技能名) | -| `disable_skill` | 禁用技能(需要 --value,技能名) | -| `delete_skill` | 删除已上传技能(需要 --value) | -| `get_env` | 读取环境变量 | -| `set_env` | 修改环境变量(需要 --value,JSON 格式) | - -## Common Workflows - -### 工作流 1: 查看并修改 Bot 配置 - -```bash -# 1. 先查看当前配置 -scripts/bot_modifier.py --action get_prompt -scripts/bot_modifier.py --action get_info -scripts/bot_modifier.py --action get_env -scripts/bot_modifier.py --action list_mcp -scripts/bot_modifier.py --action list_skills - -# 2. 修改需要的配置 -scripts/bot_modifier.py --action set_prompt --value "新的提示词内容" -``` - -### 工作流 2: 添加新 MCP 服务器并配置环境变量 - -```bash -# 1. 添加 MCP 服务器 -scripts/bot_modifier.py --action add_mcp --name "jina-search" --mcp-type "sse" --config '{"url": "https://mcp.jina.ai/sse"}' - -# 2. 配置需要的环境变量 -scripts/bot_modifier.py --action set_env --value '{"JINA_API_KEY": "jina_xxx"}' -``` - -### 工作流 3: 上传并启用新技能 - -```bash -# 1. 上传技能包 -scripts/bot_modifier.py --action upload_skill --file /path/to/my-skill.zip - -# 2. 启用技能 -scripts/bot_modifier.py --action enable_skill --value "my-skill" - -# 3. 配置技能所需的环境变量 -scripts/bot_modifier.py --action set_env --value '{"SKILL_API_KEY": "xxx"}' -``` diff --git a/skills/linggan/caiyun-weather/SKILL.md b/skills/linggan/caiyun-weather/SKILL.md deleted file mode 100644 index f5ab38f..0000000 --- a/skills/linggan/caiyun-weather/SKILL.md +++ /dev/null @@ -1,103 +0,0 @@ ---- -name: caiyun-weather -description: "通过彩云天气 API 查询天气数据 — 实时天气、逐小时/一周预报、历史天气和天气预警。当用户询问任何城市的天气、温度、空气质量、天气预报、降雨概率、历史天气或天气预警时使用此技能。需要设置 CAIYUN_WEATHER_API_TOKEN 环境变量。Use when: user asks about current weather, temperature, air quality, forecast, rain, historical weather, or alerts for any city." -metadata: - { - "openclaw": - { - "requires": - { - "bins": ["python3"], - "env": ["CAIYUN_WEATHER_API_TOKEN"], - }, - "primaryEnv": "CAIYUN_WEATHER_API_TOKEN", - }, - } -category: Weather ---- - -# 彩云天气 (Caiyun Weather) - -通过彩云天气 API 查询天气数据。支持直接使用城市名称(中文或英文),无需提供经纬度。 - -## 前置条件 - -使用前需设置环境变量: - -```bash -export CAIYUN_WEATHER_API_TOKEN="你的API密钥" -``` - -免费申请 API 密钥:https://docs.caiyunapp.com/weather-api/ - -## 何时使用 - -✅ **使用此技能:** -- "北京现在天气怎么样?" -- "上海明天会下雨吗?" -- "深圳未来一周天气预报" -- "广州空气质量如何?" -- "杭州过去24小时的天气" -- "成都有没有天气预警?" -- "What's the weather in Beijing?" -- 用户询问任何城市的天气、温度、空气质量、预报或预警 - -❌ **不要使用此技能:** -- 气候趋势分析或长期历史数据 -- 航空/航海专业气象(METAR、TAF) -- 用户未配置彩云天气 API Token - -## 命令 - -使用 `--city` 加城市名称(中文或英文)。如需精确定位,可使用 `--lng` 和 `--lat`。 - -### 实时天气 - -```bash -python3 "{{skill_path}}/scripts/caiyun_weather.py" realtime --city "北京" -``` - -### 逐小时预报(72小时) - -```bash -python3 "{{skill_path}}/scripts/caiyun_weather.py" hourly --city "上海" -``` - -### 一周预报(7天) - -```bash -python3 "{{skill_path}}/scripts/caiyun_weather.py" weekly --city "深圳" -``` - -### 历史天气(过去24小时) - -```bash -python3 "{{skill_path}}/scripts/caiyun_weather.py" history --city "杭州" -``` - -### 天气预警 - -```bash -python3 "{{skill_path}}/scripts/caiyun_weather.py" alerts --city "成都" -``` - -### 使用坐标(可选) - -对于无法通过城市名识别的地点: - -```bash -python3 "{{skill_path}}/scripts/caiyun_weather.py" realtime --lng 116.4074 --lat 39.9042 -``` - -## 内置城市(即时查询) - -北京、上海、广州、深圳、杭州、成都、武汉、南京、重庆、西安、天津、苏州、郑州、长沙、青岛、大连、厦门、昆明、贵阳、哈尔滨、沈阳、长春、福州、合肥、济南、南昌、石家庄、太原、呼和浩特、南宁、海口、三亚、拉萨、乌鲁木齐、兰州、西宁、银川、香港、澳门、台北、珠海、东莞、佛山、无锡、宁波、温州 - -英文名和其他全球城市通过在线地理编码自动解析。 - -## 说明 - -- 脚本仅使用 Python 标准库,无需 pip 安装 -- 内置城市即时解析,其他城市通过 OpenStreetMap 地理编码 -- API 对中国地区数据最为精准 -- 有频率限制,请避免短时间内频繁请求 diff --git a/skills/linggan/competitor-news-intel/SKILL.md b/skills/linggan/competitor-news-intel/SKILL.md deleted file mode 100644 index 9758cad..0000000 --- a/skills/linggan/competitor-news-intel/SKILL.md +++ /dev/null @@ -1,217 +0,0 @@ ---- -name: competitor-news-intel -description: Research competitor news, organize developments by company and theme, and produce actionable competitive intelligence with impact assessment and follow-up recommendations. Use when the user asks for competitor monitoring, competitor news tracking, market watch summaries, or business intelligence from external updates. 中文触发词包括:竞品跟踪、竞对情报、竞品新闻、市场监听、舆情观察、竞品周报、最近竞品有什么动作。 -category: Search & Intelligence ---- - -# Competitor News Intelligence - -## Overview - -This skill monitors and synthesizes competitor-related news into actionable business intelligence. - -It is appropriate when the user needs more than a list of links. The output should explain: -- what happened -- why it matters -- who it affects -- what to monitor next - -## Quick Start - -When the user asks for competitor research or monitoring: - -1. Confirm the competitor set -2. Confirm the time range and region -3. Clarify what kinds of events matter -4. Retrieve or review relevant information -5. Organize it into a structured intelligence brief with impact assessment - -### 中文任务映射 -- “跟踪一下最近竞品动态” → `collect` 或 `run` -- “做一份竞对周报” → `run` -- “最近竞品有什么动作” → `collect` -- “帮我长期监控这几个竞品” → `plan-recurring` + `schedule-job` -- “看下竞品最近有没有融资/发布新产品” → `collect` + category filtering - - -## Input Requirements - -| Field | Required | Description | -|-------|----------|-------------| -| competitors | yes | Company names, brands, or product lines | -| objective | yes | Monitoring, weekly digest, event scan, strategic watch | -| time range | no | Today, past 7 days, month, quarter, custom | -| geography | no | Country, region, or market | -| event categories | no | Product launch, pricing, partnership, hiring, financing, regulation, PR, channel | -| output depth | no | Brief scan / standard intelligence / detailed watch | -| audience | no | Founder, strategy team, sales, product, leadership | - -## Workflow Decision Tree - -### Quick Monitoring Brief -Use this for short competitor update summaries. - -### Standard Intelligence Brief -Use this for grouped event analysis with implications. - -### Strategic Watch -Use this when the user wants patterns, momentum, and what to watch next. - -### Recurring Monitoring -Use this when the user wants periodic competitor watch outputs. Pair with `schedule-job`. - -## Instructions - -### Step 1: Define monitoring scope -Clarify: -- which competitors matter most -- which kinds of events matter most -- what decision the monitoring should support - -### Step 2: Gather evidence -Use available search skills such as `baidu-search` when current information is needed. - -For each relevant update, capture: -- competitor -- date -- event type -- short description -- source - -### Step 3: Classify events -Typical categories: -- product / feature launch -- pricing or packaging change -- partnership or channel move -- hiring or org change -- financing or M&A -- regulatory or compliance issue -- brand or PR movement - -### Step 4: Assess impact -For each important event, explain: -- likely business impact -- urgency level -- affected function (sales, product, strategy, marketing) -- whether follow-up monitoring is needed - -### Step 5: Produce intelligence output -Do not stop at listing news. Synthesize patterns across competitors when possible. - -## Scripts - -### CLI Usage - -Use the following commands when you need stable structured outputs: - -```bash -poetry run python skills/competitor-news-intel/scripts/intel_cli.py collect --input-json '' -poetry run python skills/competitor-news-intel/scripts/intel_cli.py analyze --input-json '' --output json -poetry run python skills/competitor-news-intel/scripts/intel_cli.py run --input-json '' --output json -poetry run python skills/competitor-news-intel/scripts/intel_cli.py plan-recurring --input-json '' -``` - -### Recommended Uses -- `collect` - gather candidate competitor developments -- `analyze` - classify, deduplicate, and assess impact from collected events -- `run` - complete end-to-end intelligence generation -- `plan-recurring` - generate a schedule-ready monitoring message for `schedule-job` -- Real-time collection requires `BAIDU_API_KEY` - -```markdown -# Competitor News Intelligence Brief - -## Summary -[Short overview of the competitive landscape during the period] - -## Monitoring Scope -- Competitors: -- Time range: -- Geography: -- Key event categories: - -## Key Developments -### [Competitor / Event] -- Date: -- Category: -- What happened: -- Why it matters: -- Impact level: Low / Medium / High -- Suggested follow-up: - -## Cross-Competitor Patterns -- [Pattern] - -## Risks and Opportunities for Us -- [Implication] - -## Watch List -- [Item to keep monitoring] - -## Source Log -- [Source] - [Date] - [Competitor] - [Headline or key point] -``` - -## Quality Checklist - -Before finalizing, verify: -- the scope matches the requested competitors and timeframe -- event categories are consistent -- impact labels are justified, not arbitrary -- links or sources are attributable -- repeated news is de-duplicated -- the brief includes implications, not just headlines - -## Fallback Strategy - -If the evidence is sparse: -- return a lighter monitoring brief -- highlight missing visibility -- recommend additional competitors, keywords, or sources to track - -## Related Skills - -- `skills/baidu-search/SKILL.md` - retrieve current external information -- `skills/auto-daily-summary/SKILL.md` - condense larger result sets into shorter periodic summaries -- `skills/schedule-job/SKILL.md` - automate recurring competitor monitoring -- `skills/market-academic-insight/SKILL.md` - use when the task broadens into industry or technology research - -## Examples - -**User**: "帮我跟踪一下最近一周几家竞品的新闻" - -Expected output: -- structured competitor brief -- event categorization -- impact assessment -- watch list - -**User**: "做一份竞对情报周报" - -Expected output: -- weekly summary -- grouped developments -- cross-competitor patterns -- implications for our team - -**User**: "最近竞品有什么动作?" - -Expected output: -- recent developments -- event categories -- impact notes - -**User**: "帮我长期监控这几个竞品" - -Expected output: -- monitoring structure -- recommendation to combine with `schedule-job` -- suggested recurring payload - -**User**: "看下竞品最近有没有融资或者发新品" - -Expected output: -- filtered developments -- impact assessment -- follow-up watch list - diff --git a/skills/linggan/contract-document-generator/SKILL.md b/skills/linggan/contract-document-generator/SKILL.md deleted file mode 100644 index a76c1aa..0000000 --- a/skills/linggan/contract-document-generator/SKILL.md +++ /dev/null @@ -1,188 +0,0 @@ ---- -name: contract-document-generator -description: Draft contracts and formal business documents, rewrite clauses, identify risks, and organize negotiation-ready language. Use when the user asks for contract drafting, clause revision, legal-style document generation, formal agreement structuring, or document-ready policy and terms content. 中文触发词包括:合同起草、协议生成、条款修改、风险审查、保密协议、正式文档撰写。 -category: Writing & Reporting ---- - -# Contract & Document Generator - -## Overview - -This skill handles the **content layer** of contracts and formal documents: -- drafting and rewriting clauses -- structuring agreements -- highlighting risks and ambiguities -- preparing negotiation-ready revisions - -It does **not** replace file-format skills. Use `docx` and `pdf` for the final document container when needed. - -## Quick Start - -When the user asks for a contract or formal document: - -1. Identify the document type -2. Clarify the governing context and required clauses -3. Confirm whether the task is drafting, editing, summarizing, or risk review -4. Produce a structured output with clear labels for assumptions and unresolved items -5. If the user needs a file, pass the final content to `docx` or `pdf` - -### 中文任务映射 -- “起草一份合同” → new draft -- “改一下这段条款” → clause revision -- “审一下风险” → risk review -- “整理成正式文件” → draft + docx/pdf handoff - - -## Input Requirements - -| Field | Required | Description | -|-------|----------|-------------| -| document type | yes | NDA, service agreement, employment clause, terms, policy, notice, memo | -| objective | yes | Drafting, revision, review, comparison, simplification | -| parties / stakeholders | no | The involved entities or roles | -| jurisdiction / governing law | no | Legal or regional context | -| must-have clauses | no | Required provisions | -| prohibited or risky clauses | no | Clauses to avoid or watch | -| tone / style | no | Formal, plain language, business-friendly, negotiation-ready | -| output format | no | Clause list, full draft, risk memo, redline guidance | - -## Workflow Decision Tree - -### New Draft -Use when the user wants a first version of a contract or formal document. - -### Clause Revision -Use when the user wants to rewrite specific language, tighten wording, or simplify terms. - -### Risk Review -Use when the user wants to understand what is risky, ambiguous, one-sided, or incomplete. - -### Comparison / Negotiation Support -Use when the user wants a position memo, fallback language, or issue-by-issue negotiation guidance. - -## Instructions - -### Step 1: Define document role -Clarify what the document is supposed to do: -- bind parties -- allocate risk -- state responsibilities -- define process -- provide internal or external communication - -### Step 2: Identify the minimum structure -Typical sections may include: -- parties and definitions -- scope -- payment or consideration -- obligations -- confidentiality -- IP ownership -- term and termination -- liability and indemnity -- dispute resolution -- notices - -Only include sections relevant to the user’s objective. - -### Step 3: Mark assumptions explicitly -If party names, law, numbers, dates, or scope are missing, mark them as placeholders instead of inventing them. - -### Step 4: Review for risk and ambiguity -Check for: -- undefined terms -- missing triggers or deadlines -- one-sided liability allocation -- vague performance obligations -- inconsistent terms across sections - -### Step 5: Package the output for the user’s goal -Depending on the request, return one of: -- full draft -- clause alternatives -- risk memo -- revision guidance -- negotiation checklist - -## Output Format - -### Full Draft Mode -```markdown -# [Document Title] - -## Draft Notes -- Purpose: -- Assumptions: -- Jurisdiction status: - -## Draft -[Full structured document] - -## Open Items -- [Missing information] -``` - -### Risk Review Mode -```markdown -# Contract Risk Review - -## Summary -[Short overall view] - -## Key Risks -### 1. [Risk] -- Clause / section: -- Why it matters: -- Suggested revision: - -## Missing Terms -- [Item] - -## Negotiation Suggestions -- [Suggestion] -``` - -## Quality Checklist - -Before finalizing, verify: -- placeholders are clearly marked -- legal assumptions are not presented as confirmed facts -- obligations, timing, and consequences are clear -- defined terms are used consistently -- risk comments are concrete and actionable -- document structure matches the user’s purpose - -## Fallback Strategy - -If legal context is unclear: -- provide a business draft -- mark jurisdiction-specific items as requiring legal review -- avoid pretending to give definitive legal advice - -## Related Skills - -- `skills/docx/SKILL.md` - generate a formal `.docx` document or tracked-change revision -- `skills/pdf/SKILL.md` - extract, archive, or distribute final documents in PDF - -## Examples - -**User**: "帮我起草一份软件服务合同" - -Expected output: -- structured draft -- placeholders for missing commercial terms -- open items section - -**User**: "把这段保密条款改得更平衡一些" - -Expected output: -- revised clause -- explanation of changes -- negotiation rationale if useful - -**User**: "审一下这份合同有哪些风险" - -Expected output: -- risk summary -- clause-by-clause risks -- suggested revisions diff --git a/skills/linggan/financial-report-generator/SKILL.md b/skills/linggan/financial-report-generator/SKILL.md deleted file mode 100644 index 95425ef..0000000 --- a/skills/linggan/financial-report-generator/SKILL.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -name: financial-report-generator -description: Generate management-friendly financial reporting outputs from structured financial data, including KPI summaries, variance analysis, risk notes, and reporting narratives. Use when the user asks for financial reports, management reporting, monthly or quarterly performance summaries, or finance-oriented document generation. 中文触发词包括:财务月报、财务季报、经营分析、管理层汇报、董事会报告、财务简报。 -category: Writing & Reporting ---- - -# Financial Report Generator - -## Overview - -This skill turns financial data into a reporting package that is readable, auditable, and decision-oriented. - -It is **not** a replacement for the underlying spreadsheet skill. Instead, it sits above spreadsheet handling and focuses on: -- metric interpretation -- variance explanation -- management reporting structure -- finance-oriented narrative output - -## Quick Start - -When the user asks for a financial report: - -1. Confirm the reporting period and reporting objective -2. Identify the source data format (`xlsx`, `csv`, exported tables, manual numbers) -3. Confirm the reporting audience (operator, finance lead, management, board, investor) -4. If spreadsheets need to be read or generated, reuse the `xlsx` skill -5. Produce a finance brief that explains **what changed**, **why it matters**, and **what to do next** - -### 中文任务映射 -- “做一份财务月报” → standard financial report -- “整理成董事会简报” → board / management narrative -- “看下本月经营数据有什么异常” → KPI summary + variance analysis - - -## Input Requirements - -| Field | Required | Description | -|-------|----------|-------------| -| reporting objective | yes | Why this report is needed | -| reporting period | yes | Month, quarter, year, or custom date range | -| data source | yes | File, table, pasted data, or existing workbook | -| currency / unit | no | Currency and scale such as RMB, USD, thousands, millions | -| key metrics | no | Revenue, gross margin, burn, CAC, payback, cashflow, etc. | -| comparison basis | no | vs budget, vs last month, vs last quarter, vs last year | -| audience | no | Finance, management, board, investor | -| output format | no | Markdown, HTML outline, DOCX-ready outline, XLSX companion | - -## Workflow Decision Tree - -### KPI Summary Only -Use this when the user only needs a concise performance snapshot. - -### Standard Financial Report -Use this when the user needs: -- core metrics -- variance analysis -- business interpretation -- risk notes -- recommendations - -### Board / Management Narrative -Use this when the user needs a report suitable for leadership review, not just raw data output. - -## Instructions - -### Step 1: Normalize the reporting frame -Clarify: -- reporting period -- comparison basis -- unit and currency -- whether numbers are actuals, budget, forecast, or scenario assumptions - -### Step 2: Identify core metrics -Select the metrics that matter for the objective. Typical categories: -- revenue and growth -- cost and margin -- expense structure -- cash and runway -- customer economics -- forecast vs actual variance - -### Step 3: Explain movements -For material changes, answer: -- what changed -- compared with what -- likely driver -- business significance - -Do not just restate percentages without interpretation. - -### Step 4: Separate data from commentary -Keep these layers distinct: -- reported numbers -- derived observations -- management interpretation -- recommendation or follow-up - -### Step 5: Recommend output packaging -If the user needs a file artifact: -- use `xlsx` for workbook generation or structured tables -- use `docx` for formal reporting documents -- use `pdf` for final distribution or archival - -## Output Format - -```markdown -# [Financial Report Title] - -## Executive Summary -[Short summary of performance, movement, and implications] - -## Reporting Scope -- Period: -- Comparison basis: -- Currency / unit: -- Audience: - -## KPI Snapshot -| Metric | Current | Comparison | Variance | Comment | -|--------|---------|------------|----------|---------| - -## Key Drivers -### 1. [Driver] -- What changed: -- Why it changed: -- Business implication: - -## Risks and Watch Items -- [Risk] - -## Recommended Actions -1. [Action] -2. [Action] - -## Data Notes -- Assumptions: -- Missing fields: -- Confidence / caveats: -``` - -## Quality Checklist - -Before finalizing, verify: -- units and currency are explicit -- actuals, budget, and forecast are not mixed without labeling -- large variances are explained, not merely listed -- missing assumptions are disclosed -- conclusions are tied to metrics -- output is understandable for the stated audience - -## Fallback Strategy - -If the data is incomplete: -- provide a partial report with clear caveats -- mark where assumptions were required -- list the missing fields needed for a full report - -## Related Skills - -- `skills/xlsx/SKILL.md` - spreadsheet analysis, workbook generation, formula discipline -- `skills/docx/SKILL.md` - create formal management or board documents -- `skills/pdf/SKILL.md` - generate or process final PDF outputs - -## Examples - -**User**: "根据这份月度财务表,帮我做一份管理层月报" - -Expected output: -- KPI summary -- major variances -- business interpretation -- risk notes -- action recommendations - -**User**: "把这份季度经营数据整理成董事会能看的报告结构" - -Expected output: -- executive summary -- KPI snapshot -- key drivers -- watch items -- recommended action framing diff --git a/skills/linggan/market-academic-insight/SKILL.md b/skills/linggan/market-academic-insight/SKILL.md deleted file mode 100644 index 0f775b7..0000000 --- a/skills/linggan/market-academic-insight/SKILL.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -name: market-academic-insight -description: Generate structured market research and academic insight briefs with clear evidence, trends, risks, and opportunities. Use when the user asks for industry research, market trends, literature review, academic progress tracking, or evidence-based insight synthesis. 中文触发词包括:行业洞察、市场研究、学术综述、论文进展、趋势分析、研究简报。 -category: Search & Intelligence ---- - -# Market & Academic Insight - -## Overview - -This skill produces structured research briefs for two closely related scenarios: - -1. **Market insight** - industry trends, company landscape, competitor movement, regional opportunity, policy impact -2. **Academic insight** - literature scan, research progress summary, topic synthesis, evidence comparison, research gaps - -Use this skill when the user needs **research synthesis and judgment**, not just raw search results. - -## Quick Start - -When the user requests research or insight generation: - -1. Identify whether the request is primarily **market**, **academic**, or **hybrid** -2. Clarify the topic, time range, geography, audience, and output depth -3. If live information is required, use existing search skills such as `baidu-search` -4. Synthesize findings into a structured brief with **evidence separated from conclusions** - -### 中文任务映射 -- “做一份行业洞察” → market -- “总结一下论文进展” → academic -- “分析这个技术的产业机会” → hybrid -- “整理成研究简报” → standard brief - - -## Input Requirements - -Collect the following information before producing the final brief: - -| Field | Required | Description | -|-------|----------|-------------| -| topic | yes | Research topic, industry, company, or academic theme | -| mode | yes | `market` / `academic` / `hybrid` | -| objective | yes | What decision or understanding this research should support | -| time range | no | Recent month, quarter, year, or custom range | -| geography | no | Country, region, or market scope | -| audience | no | Executive, product team, investor, researcher, student | -| output language | no | Language for the final brief | -| depth | no | Quick brief / standard report / deep dive | -| -If information is missing, ask only for the fields that materially change the output. - -## Workflow Decision Tree - -### Market Insight Workflow -Use this path when the user asks about: -- market trends -- industry landscape -- competitor movement -- customer demand shifts -- regulatory or policy effects -- opportunity and risk assessment - -### Academic Insight Workflow -Use this path when the user asks about: -- literature review -- paper synthesis -- research frontier -- evidence comparison -- methodology trends -- open questions or research gaps - -### Hybrid Workflow -Use this path when the user wants both: -- market adoption + academic progress -- commercial relevance of a research area -- industry impact of an emerging technology - -## Instructions - -### Step 1: Define scope -Restate the research target in a precise sentence: -- what is being studied -- why it matters -- what decision it should support - -### Step 2: Gather evidence -Prefer recent, attributable sources. If live retrieval is needed, use `baidu-search` or other enabled search tools. - -For each key source, capture: -- source name -- date -- relevant claim or data point -- confidence or limitation - -### Step 3: Separate facts from interpretation -Always distinguish: -- **Evidence**: reported facts, data, quotes, findings -- **Analysis**: what those facts imply -- **Speculation**: what may happen next - -Never present an assumption as a confirmed fact. - -### Step 4: Synthesize by theme -Group findings into 3-6 themes such as: -- growth drivers -- demand shifts -- technology maturity -- methodological differences -- adoption barriers -- competitive positioning - -### Step 5: Produce conclusions -End with concise insight statements that answer the user’s objective, not just summarize materials. - -## Output Format - -Use the following structure by default: - -```markdown -# [Title] - -## Executive Summary -[3-6 sentence summary] - -## Research Scope -- Topic: -- Mode: -- Time range: -- Geography: -- Audience: - -## Key Findings -### 1. [Theme] -- Evidence: -- Interpretation: -- Implication: - -### 2. [Theme] -- Evidence: -- Interpretation: -- Implication: - -## Risks and Uncertainties -- [Risk / limitation] - -## Opportunities or Next Steps -- [Actionable recommendation] - -## Evidence Log -- [Source] - [Date] - [Key point] -``` - -## Quality Checklist - -Before finalizing, verify: -- conclusions directly answer the user’s goal -- evidence and judgment are clearly separated -- time range and geography are explicit when relevant -- contradictory evidence is acknowledged -- outdated or weak evidence is labeled as such -- no fabricated citations or unverified claims are included - -## Fallback Strategy - -If evidence is limited: -- say what is known -- say what remains uncertain -- suggest what additional sources or validation would improve confidence - -Do not invent detail to make the brief look complete. - -## Related Skills - -- `skills/baidu-search/SKILL.md` - retrieve current external information -- `skills/auto-daily-summary/SKILL.md` - condense a large evidence set into a recurring summary -- `skills/competitor-news-intel/SKILL.md` - competitor-focused monitoring and intelligence - -## Examples - -**User**: "帮我做一份中国 AI Agent 市场趋势洞察" - -Output should include: -- market scope and timeframe -- major players and movement -- demand signals -- risks and opportunities -- evidence log - -**User**: "总结一下多模态检索近一年的学术进展" - -Output should include: -- research scope -- major themes -- representative findings -- open research gaps -- evidence log diff --git a/skills/linggan/ragflow-loader/.claude-plugin/plugin.json b/skills/linggan/ragflow-loader/.claude-plugin/plugin.json deleted file mode 100644 index e106987..0000000 --- a/skills/linggan/ragflow-loader/.claude-plugin/plugin.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "ragflow-loader", - "description": "知识库检索服务", - "hooks": { - "PrePrompt": [ - { - "type": "command", - "command": "python hooks/pre_prompt.py" - } - ] - }, - "mcpServers": { - "rag_retrieve": { - "transport": "http", - "url": "http://host.docker.internal:9382/mcp/", - "headers": { - "api_key": "ragflow-utqbVQDtWDeOumJEsqItG_X4PCckeIOghNXcU37K8Hs", - "X-Dataset-Ids": "{dataset_ids}" - } - } - }, - "category": "Data & Retrieval" -} diff --git a/skills/linggan/sales-decision-report/SKILL.md b/skills/linggan/sales-decision-report/SKILL.md deleted file mode 100644 index b4aedc0..0000000 --- a/skills/linggan/sales-decision-report/SKILL.md +++ /dev/null @@ -1,203 +0,0 @@ ---- -name: sales-decision-report -description: Analyze sales data and produce decision-oriented reports with KPI summaries, anomaly explanation, channel and region analysis, and HTML-ready report structure. Use when the user asks for sales analysis, management dashboards, sales summaries, or decision reports from business data. 中文触发词包括:销售分析、经营分析、销售周报、销售月报、数据决策报告、HTML 报表。 -category: Writing & Reporting ---- - -# Sales Decision Report - -## Overview - -This skill turns sales data into a decision report for operators, managers, and leadership teams. - -It focuses on: -- KPI interpretation -- trend and anomaly analysis -- region / channel / product comparisons -- action-oriented reporting -- HTML-ready report structure for later automation - -## Quick Start - -When the user asks for a sales analysis report: - -1. Confirm the business objective -2. Confirm the source data and dimensions -3. Clarify comparison logic and reporting period -4. Analyze the data into findings, not just tables -5. Package the result as a structured report, optionally in HTML outline form - -### 中文任务映射 -- “做销售周报/销售月报” → quick summary 或 standard report -- “分析一下为什么业绩下滑” → diagnostic analysis -- “生成一个 HTML 报表结构” → HTML report structure -- “做经营分析和行动建议” → decision report - - -## Input Requirements - -| Field | Required | Description | -|-------|----------|-------------| -| business objective | yes | What decision the report should support | -| reporting period | yes | Daily, weekly, monthly, quarterly, custom | -| source data | yes | CSV, XLSX, pasted table, dashboard export | -| dimensions | no | Region, channel, product, team, customer segment | -| target / benchmark | no | Budget, target, last period, YoY, MoM | -| key KPIs | no | Revenue, orders, conversion, AOV, repeat rate, returns | -| audience | no | Sales ops, regional lead, GM, founder | -| output mode | no | Summary / detailed report / HTML-ready outline | - -## Workflow Decision Tree - -### Quick Sales Summary -Use for short KPI snapshots and headline findings. - -### Diagnostic Analysis -Use when the user wants to know why performance moved. - -### Decision Report -Use when the user wants recommendations, priorities, and next actions. - -### HTML Report Structure -Use when the user explicitly wants an HTML report or a report that will later be automated into HTML. - -## Instructions - -### Step 1: Frame the question -Clarify whether the report is about: -- performance monitoring -- problem diagnosis -- opportunity finding -- action prioritization - -### Step 2: Read the data by level -Review performance across: -- total performance -- time trend -- region -- channel -- product or category -- customer segment - -Only include dimensions that materially affect the decision. - -### Step 3: Identify meaningful changes -Look for: -- sharp increases or declines -- missed targets -- concentration risks -- outlier regions or channels -- mix shifts -- repeatable strengths - -### Step 4: Turn findings into decisions -Each important finding should answer: -- what happened -- where it happened -- likely cause -- what action should follow - -### Step 5: Prepare report packaging -If HTML is requested, structure content into sections suitable for cards, tables, and chart blocks. - -## Output Format - -### Standard Report -```markdown -# [Sales Report Title] - -## Executive Summary -[Short performance summary] - -## Reporting Scope -- Period: -- Objective: -- Audience: -- Data source: - -## KPI Snapshot -| KPI | Current | Target / Comparison | Variance | Comment | -|-----|---------|---------------------|----------|---------| - -## Key Findings -### 1. [Finding] -- What happened: -- Why it matters: -- Likely cause: -- Recommended action: - -## Risks and Opportunities -- [Item] - -## Recommended Actions -1. [Action] -2. [Action] -``` - -### HTML-ready Outline -```markdown -# HTML Report Structure - -## Page Header -- Title -- Period selector -- Summary badges - -## Section 1: KPI Cards -- Revenue -- Orders -- Conversion -- Average order value - -## Section 2: Trend Analysis -- Time-series highlights -- Major inflection points - -## Section 3: Breakdown Views -- Region table -- Channel table -- Product table - -## Section 4: Actions -- Priority actions -- Owners or next-step suggestions -``` - -## Quality Checklist - -Before finalizing, verify: -- the report supports a clear business decision -- metrics and benchmarks are labeled correctly -- anomalies are explained, not just surfaced -- recommendations follow logically from findings -- dimensions are not overloaded without purpose -- HTML output is structured, not just prose copied into sections - -## Fallback Strategy - -If data quality is weak: -- note missing or inconsistent fields -- avoid overconfident conclusions -- provide best-effort observations plus a data cleanup list - -## Related Skills - -- `skills/xlsx/SKILL.md` - spreadsheet reading, analysis, and output handling -- `skills/financial-report-generator/SKILL.md` - finance-oriented reporting when the task is more financial than sales-oriented -- `skills/auto-daily-summary/SKILL.md` - recurring condensed summary outputs - -## Examples - -**User**: "根据这份销售表做一个月度经营分析" - -Expected output: -- KPI summary -- channel/region findings -- anomalies -- recommended actions - -**User**: "帮我生成一个销售分析 HTML 报表结构" - -Expected output: -- HTML-ready page outline -- sections for KPI, trends, breakdowns, and action items diff --git a/skills/linggan/seedream/SKILL.md b/skills/linggan/seedream/SKILL.md deleted file mode 100755 index 4697b71..0000000 --- a/skills/linggan/seedream/SKILL.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -name: seedream -description: 使用火山引擎 Seedream/Seedance API 生成高质量图片和视频。适用于文生图、图生图、文生视频、图生视频以及生成关联组图的场景。 -category: Creative Generation ---- - -# Seedream - -本 Skill 封装了火山引擎(Volcengine)的 Seedream-4.5 图片生成和 Seedance-1.5 视频生成能力,支持文生图、图生图、文生视频、图生视频。 - -## 使用方法 - -### 文生图 -生成单张图片(默认分辨率): -```bash -python {baseDir}/scripts/generate_image.py --prompt "一只赛博朋克风格的猫" -``` - -指定分辨率(如 2K, 4K 或具体像素): -```bash -python {baseDir}/scripts/generate_image.py --prompt "壮丽的山川日出" --size "2K" -``` - -### 图生图 -提供参考图片 URL: -```bash -python {baseDir}/scripts/generate_image.py --prompt "将其风格变为印象派" --image "https://example.com/input.jpg" -``` - -### 生成组图 -生成一组内容关联的图片(最多 15 张): -```bash -python {baseDir}/scripts/generate_image.py --prompt "一个宇航员在不同行星上的探险经历" --sequential --max-images 4 -``` - -## 参数说明 - -- `--prompt`: (必选) 图像生成的文本描述。 -- `--model`: (可选) 模型 ID,默认为 `doubao-seedream-4-5-251128`。 -- `--size`: (可选) 图像尺寸。支持 `2K`, `4K` 或 `2048x2048` 等格式。 -- `--image`: (可选) 参考图 URL 或 Base64 编码。 -- `--sequential`: (可选) 开启组图生成功能。 -- `--max-images`: (可选) 组图生成的最大图片数量(1-15)。 - -## 工作流 - -1. 调用 `generate_image.py` 脚本。 -2. 脚本会输出以 `MEDIA_URL: ` 开头的图片链接。 -3. 提取链接并使用 Markdown 语法展示:`![Generated Image](URL)`。 -4. 除非用户要求,否则无需下载图片。 - -## 注意事项 - -- Seedream-4.5 支持中英文提示词。 -- 组图功能仅在 Seedream-4.5/4.0 模型中有效。 -- 确保提供的图片 URL 可公开访问。 - ---- - -## 视频生成 - -### 文生视频 -```bash -python {baseDir}/scripts/generate_video.py --prompt "无人机以极快速度穿越复杂障碍或自然奇观,带来沉浸式飞行体验" -``` - -### 图生视频 -提供参考图片 URL: -```bash -python {baseDir}/scripts/generate_video.py --prompt "让画面中的人物动起来" --image "https://example.com/input.jpg" -``` - -指定视频时长(5 或 10 秒): -```bash -python {baseDir}/scripts/generate_video.py --prompt "日出延时摄影" --duration 10 -``` - -固定摄像机位: -```bash -python {baseDir}/scripts/generate_video.py --prompt "一只猫在桌上跳跃" --camera-fixed -``` - -### 视频参数说明 - -- `--prompt`: (必选) 视频生成的文本描述。 -- `--model`: (可选) 模型 ID,默认为 `doubao-seedance-1-5-pro-251215`。 -- `--image`: (可选) 参考图 URL,用于图生视频。 -- `--duration`: (可选) 视频时长,5 或 10 秒,默认 5。 -- `--camera-fixed`: (可选) 固定摄像机位。 -- `--no-watermark`: (可选) 去除水印。 -- `--poll-interval`: (可选) 轮询间隔秒数,默认 5。 -- `--max-wait`: (可选) 最大等待秒数,默认 600。 - -### 视频生成工作流 - -1. 调用 `generate_video.py` 脚本。 -2. 脚本会自动创建异步任务并轮询结果。 -3. 完成后输出以 `MEDIA_URL: ` 开头的视频链接。 -4. 提取链接并展示给用户(视频链接可直接访问)。 -5. 视频生成通常需要 1-3 分钟,请耐心等待。 - -### 视频注意事项 - -- Seedance 视频生成是异步任务,脚本会自动轮询等待结果。 -- 支持中英文提示词。 -- 图生视频时,确保图片 URL 可公开访问。 diff --git a/skills/linggan/static-hosting/SKILL.md b/skills/linggan/static-hosting/SKILL.md deleted file mode 100644 index 9309372..0000000 --- a/skills/linggan/static-hosting/SKILL.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -name: static-hosting -description: Serve static HTML/CSS/JS/images from robot project directories via the built-in FastAPI static file server. Use when generating web pages, reports, or interactive content for a bot. -category: Web Services ---- - -# Static Hosting - -Host static files (HTML, CSS, JS, images, fonts, etc.) under the bot's project directory and get public URLs. - -## Usage - -Write files to `/app/projects/robot/{ASSISTANT_ID}/`, then run the script to get the public URL: - -```bash -python3 {SKILL_DIR}/scripts/get_url.py -``` - -Example: - -```bash -python3 {SKILL_DIR}/scripts/get_url.py /app/projects/robot/{ASSISTANT_ID}/index.html -# => https://engine.aitravelmaster.com/robots/[bot-id]/index.html -``` - -## Notes - -- Inside HTML, use **relative paths** to reference other assets (e.g. `href="css/style.css"`) -- `index.html` is auto-served at the directory URL -- All files under `/robots/` are publicly accessible, no authentication diff --git a/skills/linggan/static-site-deploy/SKILL.md b/skills/linggan/static-site-deploy/SKILL.md deleted file mode 100644 index cb077bf..0000000 --- a/skills/linggan/static-site-deploy/SKILL.md +++ /dev/null @@ -1,154 +0,0 @@ ---- -name: static-site-deploy -description: |- - Deploy, download, and browse static HTML sites on VPS via FTP. -triggers: - - deploy static site - - deploy html - - deploy to vps - - static deploy - - download from vps - - list files on vps - - browse ftp - - read file from vps - - 部署静态网站 - - 部署HTML - - 部署到VPS - - 从服务器下载 - - 浏览服务器文件 - - 读取服务器文件 -category: Web Services ---- - -# Static Site Deploy - -Upload, download, read, and browse static HTML files on a VPS via FTP. - -## Use when - -- Deploying static HTML/CSS/JS files to a VPS -- Downloading deployed files from VPS -- Reading file contents directly from VPS (without downloading to local) -- Browsing files and directories on VPS -- Publishing a single-page app, landing page, or documentation site -- User says "deploy", "upload to server", "publish site", "download from server", "read file", or "list files" - -## Prerequisites - -- ASSISTANT_ID environment variable must be set (bot_id) -- Deployment script configured with FTP credentials - -## Deployment Workflow - -### Phase 1: Prepare - -1. Identify the source directory (e.g., `./dist/`, `./build/`, `./public/`, or user-specified) -2. Determine `project-name`: - - From user input, OR - - From the source directory's parent folder name -3. Verify ASSISTANT_ID environment variable is set - -### Phase 2: Deploy - -Execute the deploy script: - -```bash -# Basic usage -bash scripts/deploy.sh - -# With custom config -bash scripts/deploy.sh --config /path/to/config.yml - -# Dry run (preview without uploading) -bash scripts/deploy.sh --dry-run -``` - -The script will: -- Upload files to VPS -- Show deployment summary and progress -- Verify deployment via FTP and HTTP checks - -### Phase 3: Verify - -The script automatically verifies: -1. **FTP verification** - confirms files are present on server -2. **HTTP verification** - confirms site is accessible (expects HTTP 200) - -Final output shows: -``` -=== Deploy Complete === -URL: https://domain/path/to/deploy/ -``` - -## Error Handling - -| Error | Detection | Fix | -|-------|-----------|-----| -| FTP connection refused | curl returns "connection refused" | Check FTP service is running, verify port | -| FTP auth failed | curl returns 530 | Check username/password in config | -| Upload permission denied | curl returns 553 | Check FTP user write permission on web_root | -| HTTP 404 | curl returns 404 | Confirm Nginx root matches FTP upload path | -| HTTP 403 | curl returns 403 | Fix permissions: files 644, directories 755 | - -## Implementation Notes - -- Use `scripts/deploy.sh` for uploading files to VPS -- Use `scripts/download.sh` for downloading files from VPS -- Use `scripts/list.sh` for browsing FTP directory contents -- Use `scripts/read.sh` for reading file contents directly from FTP (output to stdout) -- Verify ASSISTANT_ID environment variable is set before calling scripts -- Show the command to the user before executing -- The scripts handle all FTP operations, progress display, and verification - -## List Files Workflow - -To browse files on VPS: - -```bash -# List all projects under bot directory -bash scripts/list.sh - -# List files in a specific project -bash scripts/list.sh -``` - -The list script will: -- Read bot_id from ASSISTANT_ID environment variable -- Show directory contents from `/{bot_id}/` or `/{bot_id}/{project_name}/` -- Mark directories with trailing `/` -- Only list current directory level (non-recursive) - -## Download Workflow - -To download files from VPS: - -```bash -# Basic usage -bash scripts/download.sh - -# With custom config -bash scripts/download.sh --config /path/to/config.yml -``` - -The download script will: -- Read bot_id from ASSISTANT_ID environment variable -- Download files from `/{bot_id}/{project_name}/` -- Save to the specified target directory -- Show download summary and file count - -## Read File Workflow - -To read a file's content directly from VPS (output to stdout, no local download): - -```bash -# Read a file from a project -bash scripts/read.sh / - -# With custom config -bash scripts/read.sh /index.html --config /path/to/config.yml -``` - -The read script will: -- Read bot_id from ASSISTANT_ID environment variable -- Fetch the file from `/{bot_id}/{file-path}` via FTP -- Output file contents directly to stdout diff --git a/skills/linggan/voice-notification/SKILL.md b/skills/linggan/voice-notification/SKILL.md deleted file mode 100644 index 31b8ed4..0000000 --- a/skills/linggan/voice-notification/SKILL.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -name: voice-notification -description: Voice Notification - Push voice broadcast messages to active voice sessions for real-time TTS playback -category: Communication ---- - -# Voice Notification - Voice Broadcast - -Push voice broadcast messages to users' active voice sessions. The message will be played via TTS when the session is in idle state. - -## Quick Start - -When a user requests to send a voice notification: -1. Compose the message content -2. Call voice_notify.py to send the broadcast - -## Instructions - -### Tool Path - -```bash -python {skill_dir}/scripts/voice_notify.py broadcast --message "Your message here" -``` - -### Parameters - -| Parameter | Required | Description | -|-----------|----------|-------------| -| `--message` | Yes | The message content to be spoken via TTS | - -### Response - -- Success: `{"success": true, "queued": true}` -- Error: `{"success": false, "error": "..."}` - -## Examples - -**User**: "Send a voice notification: the meeting is starting" - -```bash -python {skill_dir}/scripts/voice_notify.py broadcast \ - --message "The meeting is starting soon, please get ready" -``` - -**User**: "Notify me via voice that my coffee is ready" - -```bash -python {skill_dir}/scripts/voice_notify.py broadcast \ - --message "Your coffee is ready, please come pick it up" -``` - -## Guidelines - -- The target user must have an active voice session connected to `/api/v3/voice/realtime` -- The voice session must be in lite mode (`voice_mode: "lite"`) -- Messages are queued and played when the session enters idle state -- Keep messages concise for better TTS experience -- Message language should match the user's preferred language diff --git a/skills/linggan/weather-china/SKILL.md b/skills/linggan/weather-china/SKILL.md deleted file mode 100644 index 6235002..0000000 --- a/skills/linggan/weather-china/SKILL.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: weather-china -description: 中国天气预报查询 - 基于中国天气网(weather.com.cn)获取7天天气预报和生活指数数据。纯 Python 实现,无需 API Key。 -version: 1.0.2 -tags: [weather, china, forecast, chinese, weather-cn, life-index, 7day-forecast] -metadata: {"openclaw":{"emoji":"🌤️","requires":{"bins":["python3"]}}} -allowed-tools: [exec] -category: Weather ---- - -# 中国天气预报查询 (China Weather) - -基于 [中国天气网](https://www.weather.com.cn) 获取 7 天天气预报和生活指数数据。纯 Python 实现,无需 API Key。 - -## Quick Usage - -```bash -# 查询天气(格式化文本输出) -python3 skills/weather-china/lib/weather_cn.py query 南京 -python3 skills/weather-china/lib/weather_cn.py query 北京 -python3 skills/weather-china/lib/weather_cn.py query 成都 - -# JSON 输出(结构化数据) -python3 skills/weather-china/lib/weather_cn.py json 上海 -``` - -## Example Output - -```text -城市: 南京 (代码: 101190101) -数据来源: weather.com.cn -查询时间: 2026-03-04 16:31:55 - -[4日(今天)] 阴转多云, 10℃/5℃, 东风 4-5级转3-4级 - 感冒指数: 易发 - 风较大,易发生感冒,注意防护。 - 运动指数: 较适宜 - 风力较强且气温较低,请进行室内运动。 - 过敏指数: 较易发 - 外出需远离过敏源,适当采取防护措施。 - 穿衣指数: 冷 - 建议着棉衣加羊毛衫等冬季服装。 - 洗车指数: 较不宜 - 风力较大,洗车后会蒙上灰尘。 - 紫外线指数: 最弱 - 辐射弱,涂擦SPF8-12防晒护肤品。 - -[5日(明天)] 阴转多云, 11℃/4℃, 北风 3-4级 - 感冒指数: 少发 - 无明显降温,感冒机率较低。 - ... -``` - -## Supported Cities - -支持查询中国天气网覆盖的所有城市和地区。输入城市名称即可自动搜索匹配,无需手动配置。 - -常见城市(如北京、上海、广州、深圳、成都、杭州、南京等 60+ 城市)已内置代码,查询更快。其他城市会通过搜索接口自动查找城市代码。 - -## Data Available - -- **7天预报**: 日期、天气状况、高/低温度、风向风力 -- **生活指数**: 感冒、运动、过敏、穿衣、洗车、紫外线等 - -## Use Cases - -当用户询问以下问题时使用本 skill: - -- "今天天气怎么样" -- "明天会下雨吗" -- "[城市名]天气预报" -- "南京这周天气如何" -- "出门需要带伞吗" -- "穿什么衣服合适" - -## Notes - -1. **数据来源**: 中国天气网,数据可能略有延迟 -2. **城市名称**: 使用标准城市名,如"成都"、"南京" -3. **网络依赖**: 需要能访问 -4. **无需 API Key**: 直接解析天气网页面数据