/sn-search-code
用于查找代码示例、开源项目、GitHub Issue、技术问答、开发者讨论、HuggingFace 模型/数据集/Space。
$ npx -y skills add OpenSenseNova/SenseNova-Skills --skill sn-search-code --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/sn-search-code
Context preview
The summary Claude sees to decide when to auto-load this skill.
用于查找代码示例、开源项目、GitHub Issue、技术问答、开发者讨论、HuggingFace 模型/数据集/Space。
SKILL.md
sn-search-code.SKILL.mdname: sn-search-code
description: 用于查找代码示例、开源项目、GitHub Issue、技术问答、开发者讨论、HuggingFace 模型/数据集/Space。
sn-search-code - 开发者搜索
凭证配置
API key、token 与 cookie 统一建议写在仓库根目录 `.env`(参考 `.env.example`),并由 runtime 或用户在执行前加载为同名环境变量。脚本仍只从环境变量或显式 CLI 参数读取凭证;不要把真实密钥写入 skill payload、报告、日志或提交。
搜索 GitHub、Stack Overflow、Hacker News、HuggingFace 四个开发者核心平台。所有脚本无需 API 密钥 即可使用,但 GitHub `--type code` 搜索是例外(见下方说明)。
可用脚本
| 脚本 | 平台 | 用途 | API 密钥 | |------|------|------|---------| | `github_search.py` | GitHub | 仓库、代码、Issue 搜索 | `code` 类型**必须**;其他类型可选(提高限额) | | `stackoverflow_search.py` | Stack Overflow | 技术问答搜索 | 无需 | | `hackernews_search.py` | Hacker News | 技术新闻和讨论 | 无需 | | `huggingface_search.py` | HuggingFace | 模型、数据集、Space 搜索 | 可选 `HF_TOKEN`(提高限额) |
依赖
首次运行或脚本提示缺库时,使用本技能的依赖清单安装到当前 Python 环境:
python3 -m pip install -r requirements.txt
不要在脚本内部自动安装依赖。若安装失败、网络不可用或包不可用,停止使用对应脚本并改用网页搜索,说明缺少依赖。
参数说明
github_search.py
python3 scripts/github_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--type`, `-t` | 搜索类型:`repositories`, `code`, `issues`, `repo`, `issue` | repositories | | `--token` | GitHub Token(也可通过 `GITHUB_TOKEN` 环境变量设置) | — |
> **注意:`--type code` 必须提供 token。** > GitHub API 对代码搜索接口强制要求认证,未提供 token 会返回 401。 > `repositories` 和 `issues` 类型无需 token,但有 token 可提高速率限制(未认证 10 次/分钟 → 认证 30 次/分钟)。
python3 scripts/github_search.py "machine learning framework" --type repositories --limit 5
python3 scripts/github_search.py "import asyncio" --type code --token ghp_xxx --limit 5
# 或通过环境变量:
GITHUB_TOKEN=ghp_xxx python3 scripts/github_search.py "import asyncio" --type code --limit 5
stackoverflow_search.py
python3 scripts/stackoverflow_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--sort` | 排序方式:`relevance`, `votes`, `creation`, `activity` | relevance | | `--tagged` | 按标签过滤,多个用分号分隔(如 `python;asyncio`) | — | | `--api-key` | Stack Exchange API 密钥(也可通过 `SO_API_KEY` 环境变量设置,可选,提高限额) | — |
python3 scripts/stackoverflow_search.py "python async await" --limit 5
python3 scripts/stackoverflow_search.py "rust lifetime" --sort votes --tagged rust --limit 10
huggingface_search.py
python3 scripts/huggingface_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--type`, `-t` | 搜索类型:`models`, `datasets`, `spaces`(及别名 `model`, `dataset`, `space`) | models | | `--token` | HuggingFace Token(也可通过 `HF_TOKEN` 环境变量设置,可选,提高限额) | — |
python3 scripts/huggingface_search.py "bert" --type models --limit 5
python3 scripts/huggingface_search.py "text classification" --type datasets --limit 5
python3 scripts/huggingface_search.py "stable diffusion" --type spaces --limit 5
hackernews_search.py
python3 scripts/hackernews_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--sort` | 排序方式:`relevance`, `date` | relevance | | `--tags` | HN 标签过滤:`story`, `comment`, `ask_hn`, `show_hn` | — |
python3 scripts/hackernews_search.py "LLM agents" --limit 10
python3 scripts/hackernews_search.py "GPT-5" --sort date --tags story --limit 5
输出格式
所有脚本输出标准 JSON:
{
"success": true,
"query": "...",
"provider": "github|stackoverflow|hackernews",
"items": [
{"title": "...", "url": "...", "snippet": "...", ...}
],
"error": null
}Read more
name: sn-search-code description: 用于查找代码示例、开源项目、GitHub Issue、技术问答、开发者讨论、HuggingFace 模型/数据集/Space。
sn-search-code - 开发者搜索
凭证配置
API key、token 与 cookie 统一建议写在仓库根目录 `.env`(参考 `.env.example`),并由 runtime 或用户在执行前加载为同名环境变量。脚本仍只从环境变量或显式 CLI 参数读取凭证;不要把真实密钥写入 skill payload、报告、日志或提交。
搜索 GitHub、Stack Overflow、Hacker News、HuggingFace 四个开发者核心平台。所有脚本无需 API 密钥 即可使用,但 GitHub `--type code` 搜索是例外(见下方说明)。
可用脚本
| 脚本 | 平台 | 用途 | API 密钥 | |------|------|------|---------| | `github_search.py` | GitHub | 仓库、代码、Issue 搜索 | `code` 类型**必须**;其他类型可选(提高限额) | | `stackoverflow_search.py` | Stack Overflow | 技术问答搜索 | 无需 | | `hackernews_search.py` | Hacker News | 技术新闻和讨论 | 无需 | | `huggingface_search.py` | HuggingFace | 模型、数据集、Space 搜索 | 可选 `HF_TOKEN`(提高限额) |
依赖
首次运行或脚本提示缺库时,使用本技能的依赖清单安装到当前 Python 环境:
python3 -m pip install -r requirements.txt
不要在脚本内部自动安装依赖。若安装失败、网络不可用或包不可用,停止使用对应脚本并改用网页搜索,说明缺少依赖。
参数说明
github_search.py
python3 scripts/github_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--type`, `-t` | 搜索类型:`repositories`, `code`, `issues`, `repo`, `issue` | repositories | | `--token` | GitHub Token(也可通过 `GITHUB_TOKEN` 环境变量设置) | — |
> **注意:`--type code` 必须提供 token。** > GitHub API 对代码搜索接口强制要求认证,未提供 token 会返回 401。 > `repositories` 和 `issues` 类型无需 token,但有 token 可提高速率限制(未认证 10 次/分钟 → 认证 30 次/分钟)。
python3 scripts/github_search.py "machine learning framework" --type repositories --limit 5 python3 scripts/github_search.py "import asyncio" --type code --token ghp_xxx --limit 5 # 或通过环境变量: GITHUB_TOKEN=ghp_xxx python3 scripts/github_search.py "import asyncio" --type code --limit 5
stackoverflow_search.py
python3 scripts/stackoverflow_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--sort` | 排序方式:`relevance`, `votes`, `creation`, `activity` | relevance | | `--tagged` | 按标签过滤,多个用分号分隔(如 `python;asyncio`) | — | | `--api-key` | Stack Exchange API 密钥(也可通过 `SO_API_KEY` 环境变量设置,可选,提高限额) | — |
python3 scripts/stackoverflow_search.py "python async await" --limit 5 python3 scripts/stackoverflow_search.py "rust lifetime" --sort votes --tagged rust --limit 10
huggingface_search.py
python3 scripts/huggingface_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--type`, `-t` | 搜索类型:`models`, `datasets`, `spaces`(及别名 `model`, `dataset`, `space`) | models | | `--token` | HuggingFace Token(也可通过 `HF_TOKEN` 环境变量设置,可选,提高限额) | — |
python3 scripts/huggingface_search.py "bert" --type models --limit 5 python3 scripts/huggingface_search.py "text classification" --type datasets --limit 5 python3 scripts/huggingface_search.py "stable diffusion" --type spaces --limit 5
hackernews_search.py
python3 scripts/hackernews_search.py <query> [选项]
| 参数 | 说明 | 默认值 | |------|------|--------| | `query` | 搜索关键词(必填) | — | | `--limit`, `-n` | 返回结果数量 | 10 | | `--sort` | 排序方式:`relevance`, `date` | relevance | | `--tags` | HN 标签过滤:`story`, `comment`, `ask_hn`, `show_hn` | — |
python3 scripts/hackernews_search.py "LLM agents" --limit 10 python3 scripts/hackernews_search.py "GPT-5" --sort date --tags story --limit 5
输出格式
所有脚本输出标准 JSON:
{
"success": true,
"query": "...",
"provider": "github|stackoverflow|hackernews",
"items": [
{"title": "...", "url": "...", "snippet": "...", ...}
],
"error": null
}The SenseNova model family plugs directly into agent runtimes such as OpenClaw and hermes-agent, with the skills in this repository extending the models with concrete, end-to-end office capabilities.
Repo: OpenSenseNova/SenseNova-Skills
Other skills on sensenova-skills.
- /sn-da-excel-workflow
Excel 数据分析多步编排器。覆盖:(1) 读取多 Sheet Excel 文件并统计行数,(2) 大文件检测(≥10k 行自动 Parquet 优化),(3) 数据清洗(缺失值、文本标准化、无效字符),(4) 条件筛选与分类提取,(5) 跨 Sheet 统计聚合,(6) 导出 Excel/CSV 并提供下载链接。覆盖从数据读取到报告生成全流程,按步骤编排 capability 子 skill。**遇到以下任一情况就主动使用本 skill,不要自行写几行 pandas 就回答**:①用户出现触发词:Excel 分析 / 表格分析 / 数据分析 /
Open skill - /category-coloring
当Excel文件总行数超过1万行时,通过转换为Parquet格式提升读取性能,提取目标指标并计算最大值,最后将结果输出为Excel并对特定行进行高亮标注。
Open skill - /duplicate-value-coloring
对比Excel多表中的特定系数并对异常值进行颜色标记。
Open skill - /outlier-coloring
识别 Excel 中的超限数值与错误单元格并进行高亮标注。
Open skill - /threshold-cell-coloring
根据Excel总行数自动切换Parquet加速读取,计算特定维度的时间序列平均值,并使用openpyxl输出带有条件格式(如低于均值标绿)和自定义样式的分析报告。
Open skill - /top-value-coloring
根据数据规模动态选择处理策略,对多表数据进行合并、统计筛选,并利用 openpyxl 实现关键指标的自动化样式高亮与格式化导出。
Open skill

