Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

github-searchGitHub 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

261

周安装

11

GitHub Stars

24

下载量

92
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-search(GitHub 搜索)
来源仓库:https://github.com/noobygains/godmode
仓库路径:skills/github-search
安装命令:
npx skills add https://github.com/noobygains/godmode --skill github-search
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/noobygains/godmode --skill github-search

简介

用于围绕 GitHub 仓库、Issue 和 Pull Request 提供协作辅助,支持状态查询和变更整理。

  • 适用于 Codex、Claude、Cursor 和 Gemini CLI,可将仓库信息转为可执行下一步。
  • 使用时需区分只读查询和写入操作,避免越权访问私有仓库。
  • 涉及创建 PR 或推送分支时,应确认 token 权限和用户授权范围。
  • 建议在受控环境下验证操作后再用于生产级协作流程。

SKILL.md

GitHub Search

Overview

Before writing a single line of code, determine whether someone on the planet has already solved the same problem and published the result. The strongest engineering move is recognizing when the work has already been done.

Core principle: Search GitHub repositories, package registries, and open-source ecosystems for existing implementations before building anything new. Harvest the best patterns from multiple projects. Attribute what you borrow. Respect licenses.

No exceptions. No workarounds. No shortcuts.

The Prime Directive

NO BUILDING FROM SCRATCH WITHOUT SEARCHING GITHUB FIRST

If you have not queried public repositories for prior solutions, you are burning time on reinvention. Searched three different ways and found nothing applicable? Document what you searched and why nothing fit. Then build.

No excuses:

  • Do not "just start coding and research later"
  • Do not assume uniqueness because the problem feels novel
  • Do not skip research for "straightforward" features (straightforward features have the densest prior art)
  • Do not reject repositories because they are imperfect (extract what is valuable)
  • "I know how to implement this" is not the same as "I should implement this from zero"

When to Use

Mandatory when:

  • Initiating a new feature or project
  • Building something that plausibly exists as open source
  • Weighing competing implementation strategies
  • Seeking architectural precedents from real-world systems
  • Evaluating frameworks, libraries, or tooling choices

Particularly valuable when:

  • The task involves ubiquitous patterns (auth, CRUD, file handling, search, payments)
  • Building a game (every genre has extensive open-source coverage)
  • Creating a utility that addresses a known problem space
  • Implementing algorithms or specialized data structures
  • Setting up infrastructure (CI/CD, deployment pipelines, monitoring)
  • Designing APIs, schemas, or protocols with established conventions

The Entry Protocol

digraph github_search_gate {
    rankdir=TB;
    start [label="Task: Build something", shape=doublecircle];
    search [label="SEARCH\nGitHub, registries,\nopen-source ecosystems", shape=box];
    found [label="Relevant repos found?", shape=diamond];
    evaluate [label="EVALUATE\nStars, maintenance,\ncode quality, license, fit", shape=box];
    usable [label="Directly usable\nas a dependency?", shape=diamond];
    install [label="INSTALL\nAdd as dependency", shape=box style=filled fillcolor=lightgreen];
    harvestable [label="Harvestable\npatterns?", shape=diamond];
    harvest [label="HARVEST\nExtract patterns, adapt\nto your codebase", shape=box style=filled fillcolor=lightyellow];
    studyable [label="Useful as a\nlearning reference?", shape=diamond];
    study [label="STUDY\nAbsorb architecture,\nthen build your own", shape=box];
    build [label="BUILD FROM SCRATCH\nRecord: searched, nothing fit", shape=box];
    record [label="Document search queries\nand findings", shape=box];

    start -> search;
    search -> found;
    found -> evaluate [label="yes"];
    found -> record [label="no"];
    record -> build;
    evaluate -> usable;
    usable -> install [label="yes - strong fit"];
    usable -> harvestable [label="no - too heavy\nor wrong scope"];
    harvestable -> harvest [label="yes - valuable patterns"];
    harvestable -> studyable [label="no - different paradigm"];
    studyable -> study [label="yes - learn from it"];
    studyable -> build [label="no - genuinely nothing relevant"];
}

BEFORE building anything:

  1. SEARCH -- Query GitHub, package registries, and the broader open-source ecosystem
  2. EVALUATE -- Assess candidates for quality, relevance, and license compatibility
  3. DECIDE -- Use as dependency, harvest patterns, study as reference, or build from scratch
  4. DOCUMENT -- Record what you found and why you chose your path
  5. ONLY THEN -- Begin building

Search Methodology

Where to Search

Cast a wide net across multiple channels before concluding nothing exists.

1. GitHub Search: github.com/search (code, repositories, topics)
2. GitHub Topics: github.com/topics/{topic}
3. WebSearch: "github {what you need} {tech stack}"
4. Package registries: npmjs.com, pypi.org, crates.io, rubygems.org, pkg.go.dev
5. Curated lists: awesome-{topic} repositories on GitHub
6. Framework ecosystems: official plugin/extension directories

Effective Querying

Multi-query discipline -- Never settle for a single search.

Query StyleExampleDiscovers
Literal nametetris javascriptExact matches for the concept
Problem statementreal-time collaboration websocketSolutions targeting the same problem
Stack + patternvue authentication oauth2Technology-specific implementations
Synonym explorationkanban board / task tracker / project managerSame concept, different terminology
Curated collectionsawesome-react / awesome-pythonCommunity-vetted lists

Minimum threshold before declaring "nothing exists": 3 distinct query formulations across at least 2 search channels.

What to Search For

digraph search_scope {
    "What am I building?" [shape=diamond];
    "Complete application?" [shape=diamond];
    "Feature or module?" [shape=diamond];
    "Search for full repos" [shape=box];
    "Search for libraries + example repos" [shape=box];
    "Search for code snippets + patterns" [shape=box];

    "What am I building?" -> "Complete application?" [label="assess"];
    "Complete application?" -> "Search for full repos" [label="yes"];
    "Complete application?" -> "Feature or module?" [label="no"];
    "Feature or module?" -> "Search for libraries + example repos" [label="yes"];
    "Feature or module?" -> "Search for code snippets + patterns" [label="no"];
}

Evaluating Repositories

When assessing discovered repositories, apply these signals systematically.

SignalPositive IndicatorNegative Indicator
Popularity100+ stars (community-validated)0-5 stars (unvetted)
MaintenanceCommit within 6 monthsDormant 2+ years
Community healthActive discussions, merged PRsHundreds of stale issues, no maintainer response
LicenseMIT, Apache 2.0, BSDGPL (if you need permissive), no license at all
Code disciplineTests, types, documentation, clean structureNo tests, no types, tangled code
Dependency footprintMinimal, well-known dependencies50+ transitive deps, obscure packages
DocumentationClear setup instructions, usage examplesEmpty or outdated README
RelevanceAddresses 70%+ of your needTangentially related

Minimum viable candidate: Has tests, has a license, updated within the past year, README explains usage.

Quick Evaluation Checklist

For each candidate repository:

1. STARS & FORKS: Gauge community trust (100+ stars is a reasonable floor)
2. LAST COMMIT: Anything older than 18 months is a maintenance risk
3. OPEN ISSUES: High count with no maintainer replies signals abandonment
4. LICENSE FILE: No license means you cannot legally use it
5. TEST DIRECTORY: No tests means no confidence in correctness
6. README QUALITY: Poor docs usually correlate with poor internal structure
7. DEPENDENCIES: Check for bloated or unmaintained transitive deps
8. RELEASE CADENCE: Regular releases indicate ongoing investment

Pattern Harvesting

When a repository is not directly consumable but contains valuable patterns, extract intelligently.

Phase 1: Identify Extractable Value

FROM the repository, extract:
- Architectural patterns (how they organized the project)
- Algorithm implementations (how they solved the hard parts)
- Data models (how they structured domain entities)
- Interface designs (how they shaped the public API)
- Error handling approaches (how they manage edge cases)
- Test strategies (how they verify similar functionality)

Phase 2: Adapt to Your Context

DO NOT copy-paste entire files.
DO extract the pattern and rewrite for your:
- Technology stack
- Naming conventions
- Design system (for UI code)
- Architectural layering
- Internal codebase conventions (use godmode:codebase-research to find them)

Phase 3: Attribute the Source

In your codebase or documentation, note:
"Approach inspired by github.com/author/repo - [what was adapted]"

License Compatibility

Before using any code from a discovered repository, verify license compatibility.

Your Project LicenseCompatible Source Licenses
MITMIT, BSD, Apache 2.0, ISC, Unlicense
Apache 2.0MIT, BSD, Apache 2.0, ISC, Unlicense
GPLAny (GPL is permissive for incoming code)
ProprietaryMIT, BSD, Apache 2.0, ISC, Unlicense
AnyNever use: No license stated, AGPL (unless you comply fully)

When uncertain: MIT and Apache 2.0 are safe for virtually any project. GPL requires your project to also be GPL. No license means all rights reserved by the author -- do not use.

Multi-Source Harvesting

For complex features, the optimal approach often combines patterns from several repositories.

Example: Building a real-time collaborative editor

Repo 1 (github.com/x/rich-editor): Polished prosemirror integration
  -> Harvest: Editor initialization pattern, schema definition approach

Repo 2 (github.com/y/crdt-sync): Clean CRDT implementation for text
  -> Harvest: Conflict resolution algorithm, operation transformation logic

Repo 3 (github.com/z/ws-rooms): WebSocket room management
  -> Harvest: Connection lifecycle, reconnection strategy, presence tracking

Result: Your implementation synthesizes the strongest elements from 3 repos,
each designed by specialists in their domain.

Report to the user:

Present discoveries as labeled options with links. Mark the recommendation with a star.

I found [N] relevant repositories. Here are the top candidates:

**A)** [repo-name] — [stars] stars, [license]
   Link: [GitHub URL]
   Extractable: [specific patterns/code worth harvesting]
   Fit: [what percentage of your need it covers]

**B)** [repo-name] — [stars] stars, [license]
   Link: [GitHub URL]
   Extractable: [specific patterns/code worth harvesting]
   Fit: [what percentage of your need it covers]

**C)** [repo-name] — [stars] stars, [license]
   Link: [GitHub URL]
   Extractable: [specific patterns/code worth harvesting]
   Fit: [what percentage of your need it covers]

**D) Multi-source harvest** — Best patterns from all three ⭐ Recommended
   From A: [what to extract]
   From B: [what to extract]
   From C: [what to extract]
   Build from scratch: [what is unique to this project]
   Why: Combines battle-tested patterns from [N] production systems

Check out the repos and pick A, B, C, or D.

YoloMode exception: Reference and repository selection is ALWAYS interactive — even in YoloMode, present the options and let the user pick. These choices are too impactful to auto-select.

Cognitive Traps

RationalizationTruth
"I can build it faster than studying someone else's code"You will also maintain it indefinitely. Battle-tested code has fewer defects.
"Nothing exists for my exact scenario"Did you try 3+ query variations? Partial matches are valuable.
"Open source quality is unreliable"Repositories with 1k+ stars and test suites are often superior to what you will produce under time pressure.
"It is faster to just start writing"You will spend hours solving problems someone already addressed.
"I want to avoid external dependencies"Harvest patterns without adding dependencies. The knowledge is free.
"Licensing is too complicated"MIT/Apache/BSD means free to use. A two-second check saves you from reinvention.
"It is only 100 lines, not worth researching"Those 100 lines with edge-case coverage someone already wrote outperform your 100 lines without it.
"I will research if I get stuck"Research FIRST. Getting stuck means you already burned time.

Guardrails

Prohibited actions:

  • Starting implementation without searching first (minimum 3 queries)
  • Rejecting all search results without evaluation
  • Copying code without verifying license compatibility
  • Using a repository with no license (legal risk)
  • Assuming your solution will surpass a battle-tested one
  • Omitting attribution when harvesting patterns

Required actions:

  • Search with at least 3 different query formulations
  • Evaluate candidates against the assessment criteria
  • Verify license compatibility before using any code
  • Document what you found and your rationale
  • Harvest patterns even from repositories you do not use directly
  • Report findings to the user with links, popularity metrics, and what you are extracting

Quick Reference

SEARCH -> EVALUATE -> DECIDE -> DOCUMENT -> BUILD

Search: 3+ queries across GitHub, registries, and curated lists
Evaluate: Stars, activity, tests, license, relevance
Decide: Use as dependency | Harvest patterns | Study as reference | Build from scratch
Document: What you searched, what you found, why you chose your path
Build: With patterns from research, not from assumptions

Integration

Invoked during:

  • godmode:intent-discovery -- Search during "Explore project context" and research phases
  • godmode:reference-engine -- Routed here for external code and library research
  • godmode:task-planning -- Reference repositories in plan tasks
  • godmode:system-design -- Discover reference architectures on public repositories

Complementary skills:

  • godmode:codebase-research -- For searching WITHIN the current codebase for internal patterns, conventions, and existing implementations to match
  • godmode:specification-first -- Feeds search findings into formal specifications
  • godmode:ux-patterns -- Repositories for code patterns; UX system for design patterns
  • godmode:design-integration -- Find design system repos for bootstrapping
  • godmode:project-bootstrap -- Locate starter templates and boilerplate projects

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.5%
按下载量换算35

Claude

26.82%
按下载量换算25

Cursor

17.96%
按下载量换算17

Gemini CLI

10.34%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills