SkillAgentSearch skills...

sn-search-code

用于查找代码示例、开源项目、GitHub Issue、技术问答、开发者讨论、HuggingFace 模型/数据集/Space。

Install / Use

npx skills add OpenSenseNova/SenseNova-Skills --skill sn-search-code

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

88/100

Supported Platforms

Universal

Our assessment of sn-search-code

sn-search-code scores 88/100 on our quality scale, 1833rd of 4,698 Development & Engineering skills we index (top 40%).

Its SKILL.md is 3.5 KB long, well organised into 11 sections with 10 code examples: a solid amount of guidance for an agent.

With 5,691 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
20/20
Description
12/15
Adoption
16/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so sn-search-code is actively maintained.
  • Our last check on 2026-11-01 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-27. Automated pattern scan on 2026-09-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

sn-search-code compared with similar skills

All 4 of these similar skills score higher than sn-search-code; compare them before choosing.

SkillScoreStarsUpdatedFormat
sn-search-code (this skill)by OpenSenseNova885.7k59d agoSKILL.md
taste-skillby Leonxlnx100116.8k8d agoCLAUDE.md
Agent-Reachby Panniantong100112.3k8d agoCLAUDE.md
headroomby headroomlabs-ai10079.8ktodayCLAUDE.md
ai-job-searchby ai-job-search-dev10072.1ktodayCLAUDE.md

Frequently asked questions

How do I install sn-search-code?
Run npx skills add OpenSenseNova/SenseNova-Skills --skill sn-search-code. The install tabs above show the steps for each supported agent.
Which AI agents does sn-search-code work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is sn-search-code safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is sn-search-code still maintained?
The repository was last updated about 2 months ago, so sn-search-code is actively maintained.

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
}

Related Skills

View on GitHub
GitHub Stars5.7k
CategoryDevelopment
Updated1mo ago
Forks398

Languages

JavaScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions