
Sn Search Code
A unified search interface across GitHub, Stack Overflow, Hacker News, and HuggingFace that keeps you in the terminal instead of juggling browser tabs. Most searches work without API keys, though GitHub code search requires authentication (their API enforces it). The output is clean JSON, so you can pipe results into other tools or parse them however you want. Useful when you're prototyping and need to quickly check if someone's already built something similar, find working code examples, or grab a pre-trained model without context switching. The Stack Overflow integration supports tag filtering, which actually makes a difference when you're drowning in React answers but working in Vue.
- skills.sh installs
- 131
- GitHub stars
- 6.1K
- last updated
- Jun 11, 2026
Install
$ npx -y skills add opensensenova/sensenova-skills --skill sn-search-code --agent claude-codeInstalls into .claude/skills of the current project.
Files
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 环境变量设置) | — |
Sponsors
Details
- Repository
- github.com/opensensenova/sensenova-skills
- Categories
- Git & Pull Requests, Data Science & ML
- License
- MIT
- First seen
- Jun 11, 2026
More from opensensenova/sensenova-skills
All 26- Sn Search Social Cn131
- Sn Search Social En127
- Sn Update113
- Sn Da Non Spreadsheet Analysis
- Sn Dimension Research
- Sn Research Planning
- Sn Research Synthesis
- Sn Search Image
- Sn Image Base190
- Sn Infographic180
- Sn Ppt Standard170
- Sn Ppt Entry162
- Sn Md To Html Report161
- Sn Image Doctor153
- Sn Image Resume153
- Sn Deep Research148
- Sn Da Excel Workflow147
- Sn Da Image Caption143
- Sn Ppt Creative140
- Sn Da Large File Analysis135
- Sn Ppt Doctor135
- Sn Research Report135
- Sn Report Format Discovery134
- Sn Search Academic134