Chuyển đến nội dung
Skillpedia
Lập trình chung40k · #7430

sponsor-finder

Skill này làm gì

Agent này tìm các phụ thuộc của một dự án mã nguồn mở có thể được tài trợ. Nó kiểm tra xem những người duy trì các phụ thuộc đó có nhận được hỗ trợ tài chính qua GitHub Sponsors hay không.

Khi nào nên dùng

  • ✓Khi bạn đang dùng một dự án và muốn hỗ trợ người duy trì nó.
  • ✓Khi đánh giá sức khỏe và mức hỗ trợ của một dự án mã nguồn mở.
  • ✓Khi tìm cách đóng góp tài chính cho các dự án bạn dùng.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/sponsor-finder/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/sponsor-finder/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm nhà tài trợ cho các phụ thuộc của dự án expressjs/express”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Nó kiểm tra các phụ thuộc của dự án, tìm thông tin tài trợ trong các tệp cụ thể và trên web, rồi kiểm tra xem các liên kết có hoạt động không. Sau đó, nó tổng hợp một báo cáo cho biết ai có thể được tài trợ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Sponsor Finder

Discover opportunities to support the open source maintainers behind your project's dependencies. Accepts a GitHub owner/repo (e.g. /sponsor expressjs/express), uses the deps.dev API for dependency resolution and project health data, and produces a friendly sponsorship report covering both direct and transitive dependencies.

Your Workflow

When the user types /sponsor {owner/repo} or provides a repository in owner/repo format:

  1. Parse the input — Extract owner and repo.
  2. Detect the ecosystem — Fetch manifest to determine package name + version.
  3. Get full dependency tree — deps.dev GetDependencies (one call).
  4. Resolve repos — deps.dev GetVersion for each dep → relatedProjects gives GitHub repo.
  5. Get project health — deps.dev GetProject for unique repos → OSSF Scorecard.
  6. Find funding links — npm funding field, FUNDING.yml, web search fallback.
  7. Verify every link — fetch each URL to confirm it's live.
  8. Group and report — by funding destination, sorted by impact.

Step 1: Detect Ecosystem and Package

Use get_file_contents to fetch the manifest from the target repo. Determine the ecosystem and extract the package name + latest version:

File Ecosystem Package name from Version from
package.json NPM name field version field
requirements.txt PYPI list of package names use latest (omit version in deps.dev call)
pyproject.toml PYPI [project.dependencies] use latest
Cargo.toml CARGO [package] name [package] version
go.mod GO module path extract from go.mod
Gemfile RUBYGEMS gem names use latest
pom.xml MAVEN groupId:artifactId version

Step 2: Get Full Dependency Tree (deps.dev)

This is the key step. Use web_fetch to call the deps.dev API:

https://api.deps.dev/v3/systems/{ECOSYSTEM}/packages/{PACKAGE}/versions/{VERSION}:dependencies

For example:

https://api.deps.dev/v3/systems/npm/packages/express/versions/5.2.1:dependencies

This returns a nodes array where each node has:

  • versionKey.name — package name
  • versionKey.version — resolved version
  • relation — "SELF", "DIRECT", or "INDIRECT"

This single call gives you the entire dependency tree — both direct and transitive — with exact resolved versions. No need to parse lockfiles.

URL encoding

Package names containing special characters must be percent-encoded:

  • @colors/colors → %40colors%2Fcolors
  • Encode @ as %40, / as %2F

For repos without a single root package

If the repo doesn't publish a package (e.g., it's an app not a library), fall back to reading package.json dependencies directly and calling deps.dev GetVersion for each.


Step 3: Resolve Each Dependency to a GitHub Repo (deps.dev)

For each dependency from the tree, call deps.dev GetVersion:

https://api.deps.dev/v3/systems/{ECOSYSTEM}/packages/{NAME}/versions/{VERSION}

From the response, extract:

  • relatedProjects → look for relationType: "SOURCE_REPO" → projectKey.id gives github.com/{owner}/{repo}
  • links → look for label: "SOURCE_REPO" → url field

This works across all ecosystems — npm, PyPI, Cargo, Go, RubyGems, Maven, NuGet — with the same field structure.

Efficiency rules

  • Process in batches of 10 at a time.
  • Deduplicate — multiple packages may map to the same repo.
  • Skip deps where no GitHub project is found (count as "unresolvable").

Step 4: Get Project Health Data (deps.dev)

For each unique GitHub repo, call deps.dev GetProject:

https://api.deps.dev/v3/projects/github.com%2F{owner}%2F{repo}

From the response, extract:

  • scorecard.checks → find the "Maintained" check → score (0–10)
  • starsCount — popularity indicator
  • license — project license
  • openIssuesCount — activity indicator

Use the Maintained score to label project health:

  • Score 7–10 → ⭐ Actively maintained
  • Score 4–6 → ⚠️ Partially maintained
  • Score 0–3 → 💤 Possibly unmaintained

Efficiency rules

  • Only fetch for unique repos (not per-package).
  • Process in batches of 10 at a time.
  • This step is optional — skip if rate-limited and note in output.

Step 5: Find Funding Links

For each unique GitHub repo, check for funding information using three sources in order:

…

Câu hỏi thường gặp

“Dependencies” là gì?

Đây là các đoạn mã khác mà dự án dùng để hoạt động, giống như các mảnh ghép của một bức tranh xếp hình.

GitHub Sponsors là gì?

Đây là nền tảng trên GitHub, nơi cá nhân và công ty có thể hỗ trợ tài chính cho các nhà phát triển và dự án mã nguồn mở.

“Transitive dependencies” (phụ thuộc bắc cầu) là gì?

Đây là các phụ thuộc của phụ thuộc. Hãy nghĩ về chúng như bạn bè của bạn bè: họ cũng là một phần trong mạng lưới của bạn.

Chi tiết

Mô tả gốc của tác giả

Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. Uses deps.dev API for dependency resolution across npm, PyPI, Cargo, Go, RubyGems, Maven, and NuGet. Checks npm funding metadata, FUNDING.yml files, and web search. Verifies every link. Shows direct and transitive dependencies with OSSF Scorecard health data. Invoke with /sponsor followed by a GitHub owner/repo (

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7430
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự