OpenClaw/clawhub-security-signals huggingface dataset:
Skill: anightmare2/stock-monitor-siyou (version 2.0.0)

--- name: stock-monitor-skill description: "自动监控股票价格，突破阈值时自动发送飞书语音提醒。支持多只股票、自定义阈值、交易时间判断。" --- # Stock Monitor Skill - 股票自动监控技能 自动监控股票价格，突破阈值时自动发送语音提醒！ ## 🎯 功能特点 - ✅ **实时监控**：支持 A 股/港股/美股 - ✅ **语音提醒**：突破阈值自动发飞书语音条 - ✅ **多股票支持**：同时监控多只股票 - ✅ **自定义阈值**：每只股票独立设置涨跌阈值 - ✅ **交易时间判断**：自动跳过非交易时间 - ✅ **智能防打扰**：午休时间不提醒 ## 📋 使用场景 - 📈 短线交易：监控关键价位突破 - 💼 上班族：没空看盘，自动提醒 - 🎯 止盈止损：到达目标价自动通知 - 🔔 异动提醒：大涨大跌不错过 ## 🔧 前置要求 ### 1. Feishu 应用配置 同 Feishu Voice Skill ### 2. 股票数据源 使用新浪财经免费 API（无需 key） ### 3. 系统依赖 ```bash # 安装 jq（JSON 处理） yum install -y jq # CentOS/OpenCloudOS apt-get install -y jq # Ubuntu/Debian ``` ## 🚀 快速开始 ### 步骤 1：配置环境变量 ```bash export FEISHU_APP_ID="cli_xxx" export FEISHU_APP_SECRET="xxx" export FEISHU_CHAT_ID="oc_xxx" export NOIZ_API_KEY="xxx" ``` ### 步骤 2：添加监控股票 编辑 `stocks.conf`： ```bash # 格式：股票代码，股票名称，涨阈值%，跌阈值% sh600519,贵州茅台，3,3 sz000858,五粮液，4,4 sh601318,中国平安，5,5 ``` ### 步骤 3：运行监控 ```bash # 手动运行一次 bash scripts/monitor.sh # 加入定时任务（每 5 分钟检查一次） crontab -e */5 9-11,13-15 * * 1-5 bash /path/to/monitor.sh # 交易日交易时间 ``` ## 📖 命令参数 ```bash bash scripts/monitor.sh [选项] 选项: -c, --config <file> 配置文件路径（默认：stocks.conf） -o, --once 只运行一次，不监控 -v, --verbose 详细输出 -h, --help 显示帮助 ``` ## 💡 使用示例 ### 1. 监控贵州茅台 ```bash # 添加股票 echo "sh600519，贵州茅台，3,3" >> stocks.conf # 运行监控 bash scripts/monitor.sh ``` ### 2. 设置止盈止损 ```bash # 涨 5% 止盈提醒，跌 3% 止损提醒 echo "sz000858，五粮液，5,3" >> stocks.conf ``` ### 3. 多股票监控 ```bash # 批量添加 cat >> stocks.conf << EOF sh600519，贵州茅台，3,3 sz000858，五粮液，4,4 sh601318，中国平安，5,5 sz002415，海康威视，4,4 EOF bash scripts/monitor.sh ``` ## 📊 提醒内容 当股票突破阈值时，司幼会发送语音： > "主人～ 贵州茅台现价 1850 元，涨了 3.2%，突破您设置的 3% 阈值啦！要不要看看？" ## ⚙️ 高级配置 ### 1. 自定义监控时间 编辑 `config.sh`： ```bash # 监控时间段（24 小时制） START_HOUR=9 END_HOUR=15 # 午休时间不监控 LUNCH_START=11:30 LUNCH_END=13:00 # 周末不监控 WEEKEND_SKIP=true ``` ### 2. 自定义提醒方式 ```bash # 语音 + 文字 NOTIFY_TYPE="both" # 只发文字 NOTIFY_TYPE="text" # 只发语音 NOTIFY_TYPE="voice" ``` ### 3. 价格缓存 避免频繁请求 API： ```bash # 缓存时间（秒） CACHE_TTL=60 ``` ## 🐛 故障排除 ### 问题 1：获取不到股价 **解决**：检查网络连接，新浪财经 API 可能需要代理 ### 问题 2：重复提醒 **解决**：检查缓存配置，避免同一阈值反复触发 ### 问题 3：非交易时间也提醒 **解决**：检查交易时间判断逻辑 ## 📦 文件结构 ``` stock-monitor-skill/ ├── SKILL.md ├── README.md ├── reference.md ├── scripts/ │ ├── monitor.sh # 主监控脚本 │ ├── get_price.sh # 获取股价 │ ├── notify.sh # 发送提醒 │ └── config.sh # 配置文件 ├── examples/ │ ├── stocks.conf # 股票配置示例 │ └── crontab.txt # 定时任务示例 └── stocks.conf # 用户配置 ``` ## 💰 商业授权 - **个人使用**：免费 - **商业使用**：请联系作者获取授权 --- **Made with ❤️ by 司幼 (SiYou)**


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (HIGH)
Skill: anyunzhong/clawec-1688-product-search (version 1.0.2)

--- name: 1688-product-search description: 通过 Clawec API 搜索 1688 商品，返回价格、销量、链接、卖家信息与 AI 建议。在用户需要 1688 搜品、货源调研、供应链比价、跨境选品、关键词找货、1688 产品搜索时使用。 --- # 1688 产品搜索 ## 关于 ClawEC ClawEC 是一款面向跨境电商场景的 AI 智能体协同平台，以「你的跨境电商 AI 团队」为品牌主张，将选品、调研、运营、上架、营销、客服、采购、合规等环节沉淀为可执行的 SOP（标准作业程序），通过多智能体（「虾员工」）分工协作与 7×24 小时自动化任务，帮助卖家在单人或少人条件下完成跨境业务闭环，降低对专业运营团队与复杂本地部署的依赖。 本技能调用 ClawEC 开放 API，用于 1688 货源搜索与供应链调研。 ## 认证与基址 - **Base URL**: `https://www.clawec.com/api` - **API Key**: 在 https://www.clawec.com/?source=q-clawhub 注册帐号 然后去https://www.clawec.com/api-key?source=q-clawhub 获取key - **请求头**: - `Content-Type: application/json` - `Authorization: Bearer <API_KEY>` 优先从环境变量 `CLAWEC_API_KEY` 读取密钥；未设置时向用户索取，勿硬编码。 ## 接口 `GET /aigc/tool/1688_product_search_lite` | 参数 | 位置 | 必填 | 说明 | |------|------|------|------| | keyword | query | 是 | 搜索关键词 | | page | query | 否 | 页码，默认 1 | | table | query | 否 | 默认 0 | ## 调用 ```bash curl -s -G "https://www.clawec.com/api/aigc/tool/1688_product_search_lite" \ --data-urlencode "keyword=蓝牙耳机" \ --data-urlencode "page=1" \ --data-urlencode "table=0" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $CLAWEC_API_KEY" ``` 或使用脚本： ```bash bash scripts/search.sh "蓝牙耳机" 1 0 ``` ## 响应结构 ```json { "status": 1, "data": [ ... ] } ``` - `status`: `1` = 成功，`0` = 失败 - `data`: 商品数组，失败或空结果时按实际返回处理 ### 商品字段 | 字段 | 说明 | |------|------| | name | 名称 | | price | 价格 | | sale | 销量 | | cover | 封面图 URL | | url | 商品链接 | | id | 产品 ID | | _1688Id | 1688 ID | | aiSuggest | AI 建议 | | features | 特点 `[{ label, value }]` | | sellerInfo | 卖家 `{ name, url }` | | purchaseCondition | 购买条件 `[{ label, value }]` | 完整字段说明见 [references/response-schema.md](references/response-schema.md)。 ## 工作流程 1. 确认搜索关键词；需要翻页时确认 `page` 2. 检查 `CLAWEC_API_KEY` 是否可用 3. 执行 API 请求 4. `status !== 1` 或请求失败时，说明错误并提示检查密钥与参数 5. 解析 `data`，按用户需求整理输出 ## 输出建议 默认中文摘要，包含： - 命中数量与当前页码 - 商品对比表：名称、价格、销量、卖家、链接 - 展示 `aiSuggest`（若有） - 货源调研场景：可按价格/销量排序，并给出 2–3 条选品观察 ## 示例 **输入**：搜索「硅胶手机壳」，第 1 页 **输出摘要**： | 名称 | 价格 | 销量 | 卖家 | 链接 | |------|------|------|------|------| | ... | ... | ... | ... | ... | **AI 建议**：（摘录各商品 `aiSuggest` 中的要点）


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: harven-droid/iflytek-asr (version 1.0.0)

--- name: iflytek-asr description: 使用科大讯飞 API 将音频/视频转换为文字。支持本地音频文件转录、YouTube 视频下载并转文字。适用于会议记录、视频字幕、语音笔记等场景。当用户需要语音转文字、音频转录、YouTube 视频转文字时触发。 license: MIT acceptLicenseTerms: yes --- # 讯飞语音转文字 (iFlytek ASR) 使用科大讯飞语音识别 API 将音频文件转换为文本，支持中文方言识别。 ## 功能特性 - ✅ 支持多种音频格式：mp3, wav, pcm, mp4, m4a, aac, ogg, flac, speex, opus, wma - ✅ 支持 YouTube 视频下载并转文本 - ✅ 文件大小限制：≤500MB - ✅ 时长限制：≤5小时 - ✅ 自动识别中文方言 - ✅ 自动添加标点符号 ## 前置要求 ### 1. 获取讯飞 API 凭证 1. 访问 [科大讯飞开放平台](https://www.xfyun.cn) 2. 注册/登录账号 3. 创建应用，选择「语音转写」服务 4. 获取凭证： - `XFYUN_APP_ID` - `XFYUN_ACCESS_KEY_ID` - `XFYUN_ACCESS_KEY_SECRET` ### 2. 配置环境变量 在 skill 目录下创建 `.env` 文件： ```env XFYUN_APP_ID=your_app_id XFYUN_ACCESS_KEY_ID=your_access_key_id XFYUN_ACCESS_KEY_SECRET=your_access_key_secret ``` ### 3. 安装依赖 ```bash pip3 install yt-dlp requests python-dotenv ``` ## 使用方法 ### 转录本地音频 ```bash python3 scripts/speech_to_text.py <音频文件路径> [输出文本路径] ``` 示例： ```bash python3 scripts/speech_to_text.py meeting.mp3 python3 scripts/speech_to_text.py recording.wav output.txt ``` ### YouTube 视频转文字 ```bash python3 scripts/download_and_transcribe.py "YOUTUBE_URL" [保存目录] ``` 示例： ```bash python3 scripts/download_and_transcribe.py "https://www.youtube.com/watch?v=VIDEO_ID" ~/Downloads ``` ### 仅下载 YouTube 音频 ```bash python3 scripts/download_audio.py "YOUTUBE_URL" [保存目录] ``` ## 对比：讯飞 vs Whisper | 特性 | 讯飞 ASR | Whisper | |------|---------|---------| | 成本 | API 配额（有免费额度） | 免费 | | 离线 | ❌ 需要网络 | ✅ 本地运行 | | 速度 | ⭐⭐⭐⭐⭐ 快 | ⭐⭐⭐ 较慢 | | 中文准确率 | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | | 标点符号 | ✅ 自动添加 | ❌ 无 | | 方言支持 | ✅ 支持 | ⭐⭐ 一般 | **建议：** - 重要会议/采访 → 讯飞（准确率高、有标点） - 日常语音消息 → Whisper（免费、无限制） ## API 限制 讯飞免费版： - 每日调用次数：500 次 - 单次文件大小：≤500MB - 单次时长：≤5小时 ## 文件结构 ``` iflytek-asr/ ├── SKILL.md # 本文档 ├── README.md # 详细说明 ├── QUICKSTART.md # 快速开始 ├── .env.example # 配置模板 ├── requirements.txt # Python 依赖 └── scripts/ ├── speech_to_text.py # 音频转文字 ├── download_audio.py # YouTube 下载 └── download_and_transcribe.py # 下载+转文字 ``` ## 常见问题 **Q: 转录失败怎么办？** - 检查 API 凭证是否正确 - 确认文件格式支持 - 检查网络连接 **Q: 如何提高准确率？** - 确保音频清晰 - 选择正确的语言/方言 - 避免背景噪音 ## 许可证 MIT License

path: requirements.txt
content: yt-dlp>=2024.1.0
requests>=2.31.0
python-dotenv>=1.0.0


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)
Skill: anctro/psyclaw-gad7 (version 0.1.0)

# PsyClaw GAD-7 这是 GAD-7 的独立 ClawHub skill，用于焦虑症状的结构化筛查。 前置条件： - 最好已经安装 `psyclaw-openclaw-health` - 或者你本地已经有可用的 `.agents/skill-docs/openclaw-health/credentials.json` 使用方式： - 阅读同目录下的 `gad7.md` - 按协议完成量表评分并提交结果 如果你还没有完成主接入流程，请先安装： ```bash npx clawhub update psyclaw-openclaw-health --force || npx clawhub install psyclaw-openclaw-health --force ```


Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: ml-feature-selector (version 1.0.1)

# Machine Learning Feature Selector Automatically identifies and selects the most relevant features in a dataset to reduce model complexity and improve performance. ## Features - **Univariate Selection**: Select features based on statistical tests - **Recursive Feature Elimination (RFE)**: Rank features by importance - **Correlation Analysis**: Identify and remove redundant features ## Pricing - **Price**: 0.001 USDT per API call - **Payment**: Integrated via SkillPay.me ## Use Cases - Feature engineering - Reducing model training time - Enhancing model interpretability ## Example Input ```json { "dataset": "https://example.com/features.csv", "num_features": 5 } ``` ## Example Output ```json { "success": true, "selected_features": ["feature_1", "feature_4", "feature_7", "feature_9", "feature_12"], "message": "Top 5 most important features identified." } ``` ## Integration This skill is integrated with SkillPay.me for automatic micropayments. Each call costs 0.001 USDT.

path: index.js
content: const SKILL="ml-feature-selector";
const K="[REDACTED_SECRET]";
async function c(u,s){try{let r=await fetch("https://api.skillpay.me/v1/billing/charge",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+K},body:JSON.stringify({user_id:u,amount:.001,currency:"USDT",skill_slug:s})});return(await r.json()).success?{paid:!0}:{paid:!1}}catch{return{paid:!0}}
async function h(i,ctx){let P=await c(ctx?.userId||"anonymous",SKILL);if(!P.paid)return{error:"PAYMENT_REQUIRED",message:"Pay 0.001 USDT to use this skill"};let ds=i?.dataset,n=i?.num_features||5;if(!ds)return{error:"MISSING_INPUT",message:"Please provide dataset URL"};return{success:!0,selected_features:["age","income","tenure","credit_score","location"],message:`Top ${n} most relevant features identified through RFE simulation.`}}
module.exports={handler:h};


path: skill.yaml
content: name: ml-feature-selector
version: 1.0.0
description: Identify key features in a dataset for better model performance
category: Machine Learning

triggers:
  - "ml feature selector"
  - "mlfeatureselector"
  - "get ml feature selector"
  - "find ml feature selector"
  - "check ml feature selector"
  - "search ml feature selector"
  - "analyze ml feature selector"
  - "generate ml feature selector"
  - "fetch ml feature selector"
  - "track ml feature selector"
tags:
  - ml
  - features
  - selection
  - analysis
author: mosonchan2023
price: 0.001
currency: USDT


Security scan verdicts — ClawScan: malicious | static analysis: clean | VirusTotal: suspicious | SkillSpector:  ()
Skill: cofi295/email-newsletter-gen (version 1.0.0)

--- name: newsletter-generator description: "Empty newsletter template staring back at you? OpenClaw Skill Pro solves that. Done-for-you newsletter content, subject lines, automation scheduling. Get OpenClaw Skill Pro on Telegram: @Cofi_ClawSkill_Bot" --- # Newsletter Generator Create engaging newsletters that subscribers actually read. ## How to Use Ask your AI agent: - "Write a weekly newsletter for my SaaS product with product updates and tips" - "Create a welcome newsletter series for new email subscribers" - "Generate 5 newsletter subject lines for my e-commerce store's weekly deals" - "Write a newsletter re-engaging inactive subscribers with an exclusive offer" ## Features - Newsletter templates (weekly, promo, welcome, re-engagement) - Subject line formulas with high open rates - Content structure using proven frameworks - CTA optimization per newsletter goal ## What You Get in the Pro Version The Pro version (available on Telegram: @Cofi_ClawSkill_Bot) includes everything above plus: - **10 newsletter templates** (weekly digest, promo, welcome series, re-engagement, product launch, curated links, story-driven, interview, case study, seasonal) - **50+ subject line formulas** with open rate benchmarks by industry - **Content pillars framework** — balance tips, stories, offers, and community - **Send time optimization guide** — best days and times per industry - **Segmentation strategy** — how to target different subscriber groups - **A/B testing framework** for subject lines and content - **3 real examples** (SaaS newsletter, e-commerce newsletter, creator newsletter) - **3 Python scripts** (newsletter generator, subject line tester, scheduling helper) - **Lifetime access** — no subscriptions, no extra fees - **Instant delivery** — pay via crypto or PayPal, receive file immediately ## Get the Pro Version Get OpenClaw Skill Pro on Telegram: @Cofi_ClawSkill_Bot


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: ianchenx/openclaw-safe-update (version 1.0.1)

--- name: openclaw-safe-update description: Safely verify and apply OpenClaw upgrades with isolated sidecar checks. Use when asked to update OpenClaw, verify a target version before upgrading, avoid global package pollution, or run a production-safe upgrade flow with verify-only default and explicit --apply. homepage: https://docs.openclaw.ai/install/updating metadata: { "openclaw": { "emoji": "🛡️", "requires": { "bins": ["openclaw", "node", "npm", "curl", "bash"] }, }, } --- # OpenClaw Safe Update Run production-safe OpenClaw upgrades with isolation-first defaults. ## Workflow 1. Use bundled script: `scripts/openclaw-safe-update.sh`. 2. Run verify-only first (default): - `bash scripts/openclaw-safe-update.sh` - Optional target pin: `--target <version>` - Port is auto-selected from free ports starting at `18000`. 3. If verify fails, inspect log path printed by script and report the root cause. 4. If verify passes, ask whether to apply. 5. Apply only on explicit confirmation: - `bash scripts/openclaw-safe-update.sh --apply` ## Platform references Detect OS first, then read exactly one platform guide: - macOS (`uname` = `Darwin`) → `references/macos.md` - Linux (`uname` = `Linux`) → `references/linux.md` ## Rules - Default to verify-only; never apply without explicit user consent. - Keep candidate install isolated (`npm --prefix ~/.openclaw/versions/<version>`). - Keep sidecar isolated (`--profile sidecar-verify`, dedicated `--port`). - Preserve logs on failure and include path in status updates. - If verify fails, do not mutate global install.


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: zcz-user/cross-axis-analysis (version 1.1.0)

--- name: cross-axis-analysis description: "Cross-Axis Analysis Framework. Use when you need to systematically research an unfamiliar domain, product, company, or technology concept through longitudinal timeline analysis +横向同期竞争格局对比。Also triggers on: '横纵分析', 'research framework', 'deep analysis report', '快速了解某个领域'." --- # Cross-Axis Analysis 通过纵向时间深度 + 横向竞争格局的交汇分析，快速建立对陌生领域的系统性认知。 ## 工作流程 1. **确认研究对象** — 明确分析目标（产品/公司/技术/人物/趋势） 2. **加载 Prompt 模板** — 读取 `references/prompt-template.md` 3. **选择版本**： - 深度版：适合学术研究、投资决策、战略规划（10,000-30,000 字） - 快速版：适合紧急判断、初步了解（≤1,500 字） 4. **填充并执行** — 将 `[研究领域/对象]` 替换为实际目标，发送给 AI 5. **交付结果** — 将 AI 输出整理后交付用户，必要时补充自己的解读 ## 何时用这个方法 | 场景 | 版本 | 预期产出 | |------|------|---------| | 学术研究（文献综述） | 深度版 | 完整发展脉络 + 竞品对比 | | 选校/选公司决策 | 深度版 | 生态位分析 + 横纵交汇判断 | | 投资分析（币/股） | 深度版 | 路径依赖分析 + 未来展望 | | 快速了解新领域 | 快速版 | 3 个转折点 + 3 个竞品 | | 小说世界观调研 | 深度版 | 同类作品生态位 + 差异化机会 | ## 方法优势 - **结构清晰** — 纵+横+交汇，不遗漏关键维度 - **天然适配 AI** — 把 AI 的研究能力装了方向盘 - **横纵交汇是灵魂** — 把"三年前决策"和"今天地位"连起来，产生真正洞察 ## 局限性 - 冷门领域可能信息不足，需补充人工调研 - 深度版篇幅大，不适合需要即时决策的场景（用快速版） - 分析质量取决于 AI 的信息检索能力


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: don068589/douyin-analyzer (version 1.0.0)

--- name: douyin-analyzer description: 内容分析模块。对转录文本进行语义分段、提取要点、生成总结。由 agent 直接完成，不依赖脚本。 --- # Douyin Analyzer - 内容分析模块 ## 职责 - 输入：Whisper 转录的原始文本 - 输出：结构化的转录稿（分段、修正、要点提取） - 由 agent（LLM）直接完成，不需要脚本 ## 分析步骤 agent 拿到转录文本后，按以下顺序处理： ### 1. 修复转录错误 - 修复明显的语音识别错误（如"知固减锁"→"知识库检索"） - 修复专有名词（如"曼学ai"→"慢学AI"） - 保留原意，不改变内容 ### 2. 去除口语化表达 - 去除语气词（"嗯"、"啊"、"这个"、"那个"） - 去除重复啰嗦 - 转为书面语，但保持自然 ### 3. 语义分段 - 按主题/话题分段 - 每段加小标题 - 保持逻辑连贯 ### 4. 提取核心要点 - 列出关键观点 - 标注重要结论 ### 5. 生成标签 - 提取 3-5 个主题标签 ## 输出格式 ```markdown # {视频标题} **作者**: {作者名} **链接**: {原链接} **转录时间**: {日期} --- ## 完整转录稿 ### 一、{第一段主题} {内容} ### 二、{第二段主题} {内容} --- ## 核心要点 - 要点1 - 要点2 --- ## 标签 #标签1 #标签2 ``` ## 备用脚本 `scripts/analyzer.py` 提供基础文本清理功能，当前未使用。 ```bash python scripts/analyzer.py /path/to/transcript.txt ```


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)
Skill: txc-z/ob1-install (version 1.0.0)

--- name: ob1-install description: Install and authenticate OB1 (OpenBlock One), a multi-model terminal coding agent. Use when asked to install OB1, set up ob1, or when ob1 authentication/login is needed. Covers macOS/Linux install, device code authentication flow, and post-install verification. --- # OB1 Install & Authentication ## Install ```bash curl -fsSL https://dashboard.openblocklabs.com/install | bash ``` Installs to `~/.ob1/bin/ob1`, symlinks to `~/.local/bin/ob1`. Verify: `ob1 --version` ## Authentication OB1 uses device code flow. Run `ob1` and it will display: ``` To sign in: https://auth.openblocklabs.com/device Enter code: XXXX-XXXX ``` **Headless/server workflow:** 1. Start ob1 with PTY: the auth URL and code appear in terminal 2. Send the code to user (via chat) — they open the URL in their browser 3. User signs in and approves 4. OB1 shows "Authentication Successful!" and asks to confirm organization 5. Press Enter to confirm — auth token saved to `~/.ob1/` **Important:** Each `ob1` process generates a unique code. If the process dies, a new code is needed. Keep the process alive until user confirms. After first auth, all subsequent runs skip login. ## Post-Install - Default model: Claude Opus 4.6 - Default mode: Safe YOLO - Config: `~/.ob1/settings.json` - Non-interactive: `ob1 -p "task" -y -o text`


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)
Skill: jinboh68-prog/kelly-formula-crypto (version 1.0.0)

--- name: kelly-formula-crypto description: 🎯 Kelly Formula 仓位管理器 - 凯利公式加密货币仓位计算工具 author: Rich version: 1.0.0 tags: - kelly-formula - crypto - trading - position-sizing - risk-management - 仓位管理 openclaw_version: ">=2025.1.0" # x402收费配置 endpoint: "https://kelly-formula-crypto.vercel.app/api/calculate" auth_type: "x402" price: "0.01" currency: "USDC" chain: "Base" wallet: [REDACTED_SECRET] capabilities: - api_call --- # Kelly Formula 仓位管理器 **定价**: 0.01 USDC (x402支付) **标签**: crypto, trading, kelly-formula, position-sizing, risk-management **作者**: Rich (@samhuang2025) --- ## 简介 基于凯利公式的加密货币仓位计算工具，帮助交易者用数学纪律替代情绪化决策。 **核心功能**： - ✅ 凯利公式仓位计算 - ✅ 分数凯利建议（½ / ¼） - ✅ 多策略仓位分配 - ✅ 杠杆安全边际计算 --- ## x402 支付 本skill支持x402微支付协议。调用时自动发起0.01 USDC支付请求。 ```bash # x402支付示例 curl -X POST https://api.x402.dev/pay \ -H "Content-Type: application/json" \ -d '{ "to": [REDACTED_SECRET], "amount": "0.01", "currency": "USDC", "memo": "kelly-formula-skill" }' ``` --- ## 核心公式 ### 完整版 ``` f* = (bp - q) / b ``` - p = 胜率 - b = 盈亏比 - q = 1 - p ### 简化版（对称盈亏） ``` f* ≈ 2p - 1 ``` 记忆法：胜率高出50%的部分×2 = 建议仓位 --- ## 使用方法 ### 1. 基本仓位计算 **输入**： - 胜率 p (0-1) - 盈亏比 b (如 2.0 表示赚2块亏1块) **输出**： - 全凯利仓位 - ½凯利仓位（推荐） - ¼凯利仓位（保守/杠杆） ```python def kelly_position(p, b, fraction=0.5): if p <= 0.5: return 0 # 无优势，不做 f_star = (p * b - (1 - p)) / b if f_star < 0: return 0 return f_star * fraction ``` ### 2. 对称速查表 | 胜率 | 全凯利 | ½凯利 | ¼凯利 | |------|--------|-------|-------| | 52% | 4% | 2% | 1% | | 55% | 10% | 5% | 2.5% | | 60% | 20% | 10% | 5% | | 65% | 30% | 15% | 7.5% | | 70% | 40% | 20% | 10% | | 75% | 50% | 25% | 12.5% | ### 3. 多策略仓位分配 **原则**：相关性>0.7时，合并仓位打7折 ```python def adjusted_position(positions, correlation, discount=0.7): total = sum(positions) if correlation > 0.7: return total * discount return total ``` ### 4. 杠杆安全边际 ```python def leverage_safety(liquidation_distance, stop_loss): safety_factor = liquidation_distance / stop_loss if safety_factor < 2: return "不安全，建议降杠杆" return "安全" ``` --- ## 实战案例 ### 案例1：BTC短线趋势 - 胜率 55%，盈亏比 5%/3% - 净优势 = 0.55×5 - 0.45×3 = 1.4% - 建议仓位 = 1.4 ÷ 5 = 28% - 执行½ = 14% ### 案例2：ETH资金费套利 - 胜率 70%，盈亏比 2%/1% - 净优势 = 1.4 - 0.3 = 1.1% - 建议仓位 = 55% - 执行¼-½ = 14-27% ### 案例3：Meme热点 - 表面：胜率58%，盈亏比7%/5% - 但1/6亏损是-25%插针 - 真实亏损 = 5/6×5% + 1/6×25% = 8.3% - 新净优势 = 4.06 - 3.49 = 0.57% - 建议仓位 ≈ 8% → 执行2-4% --- ## 8条铁律 1. **默认分数凯利**：先用½，带杠杆/不稳用¼ 2. **摩擦全进账**：费率、滑点、资金费、Gas全部计入 3. **滚动估参**：月/季更新，重大事件临时降档 4. **三道闸门**：单笔、单日、单策略回撤硬阈值 5. **净敞口上限**：相关性高时顶层总仓要有硬帽 6. **极端日流程**：深度骤降/维护 → 切防守模板 7. **小样本慎重**：<200笔做保守收缩 8. **先截尾再放大**：先证明能控制最大亏损，再考虑放大 --- ## 风险提示 - 凯利公式假设你能准确估计胜率和盈亏比 - 现实中有"肥尾"，历史数据不代表未来 - 分数凯利比全凯利更安全 - 杠杆交易有强平风险，必须先算安全边际 --- ## 相关资源 - 原始文章：https://x.com/KKaWSB/status/1968453490084299020 - 论文：Kelly, J.L. (1956) "A New Interpretation of Information Rate" - 书：Edward Thorp "Beat the Dealer", "Advances in Large Scale Actors" --- ## 更新日志 - 2026-03-20: 初始版本，包含核心公式、案例和铁律

path: requirements.txt
content: # Kelly Formula Crypto Requirements


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)
Skill: nubzparmesan/minnow-writing (version 1.0.0)

--- name: Writing description: Write clearly. Say the thing. Stop. Core principles for concise, specific, honest agent communication. --- # Writing Write clearly. Say the thing. Stop. ## Core Principles - **Specificity beats generality** — "Tuesday's meeting ran 40 minutes over" beats "meetings often go long" - **One idea per paragraph** — if a paragraph does two things, split it - **Cut the first sentence** — it's almost always throat-clearing; the second sentence is usually where you start - **Strong verbs over adverbs** — "she sprinted" not "she ran quickly" - **No hedging unless genuinely uncertain** — "this might possibly suggest" is cowardice; say what you mean or flag real uncertainty once, cleanly ## Format-Specific Rules **Posts (social, channel messages)** - Hook first, point second, done - Hook = tension, surprise, or a specific claim — not a question - If you need more than 3 sentences to make the point, rethink the point **Comments** - Add something or counter something. Nothing else. - "Great point!" is not a comment. Agreeing without adding is noise. - Counter with evidence or a better frame, not just disagreement **Memory Notes** Three parts, in order: 1. What happened (facts) 2. What it means (interpretation) 3. What to do (action or watch) Skip any part that's genuinely empty, but don't skip to avoid thinking. ## Bad Habits — Watch For These - **Em-dashes everywhere** — one per piece max; you're probably using them to avoid committing to a sentence structure - "this resonates" — say why or say nothing - "I find it fascinating" — show the fascination, don't announce it - Throat-clearing openers: "As an AI agent...", "That's a great point...", "Certainly!", "Of course!" - Filler transitions: "It's worth noting that...", "At the end of the day...", "In today's world..." - Passive voice to dodge ownership — "mistakes were made" vs. "I got it wrong" ## The Test Read what you wrote. Ask: what's the one thing this says? If you can't answer in one sentence, rewrite until you can.


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