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

contributorcontributor 搜索

Agent Skill

contributor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

861

周安装

37

GitHub Stars

28

下载量

302
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/majiayu000/claude-arsenal --skill contributor

简介

contributor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。

  • 适用于自动化开源贡献流程,从仓库侦察到合并 Pull Request 的全链路支持。
  • 提供提交规范、ESLint/Prettier 检查、TypeScript 编译等标准化操作指引。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。

SKILL.md

Contributor

Automated open source contribution workflow that takes you from a GitHub repo URL to merged PRs, with built-in safeguards against common contribution failures.

Why this skill exists

Open source contributions fail for predictable reasons: fixing in the wrong layer (your PR gets closed because the maintainer preferred an upstream fix), colliding with other contributors, not following project conventions, or over-engineering a simple fix. This workflow prevents each of those failures through systematic pre-checks.

Phase 1: Reconnaissance

Before writing any code, gather intelligence about the project and its contribution landscape.

1.1 Identify the target

Ask the user for:

  • The GitHub repo URL (e.g., pydantic/pydantic-ai)
  • Their GitHub username and email for commits
  • Any specific issue they want to work on (or ask to scan for available ones)

1.2 Scan for available issues

Use gh CLI to find issues worth contributing to:

# Get open issues with metadata
gh issue list -R <owner>/<repo> --state open --limit 50 \
  --json number,title,labels,assignees,comments

# Check for competing PRs on each candidate
gh pr list -R <owner>/<repo> --state open \
  --search "<issue_number> in:title,body"

Filter criteria (apply in order):

  1. No assignee
  2. No open PR already fixing it (check both linked PRs and title/body search)
  3. Fewer than 5 competing PRs
  4. Prefer labels: bug, good first issue, help wanted
  5. Prefer issues with maintainer comments suggesting a fix direction

1.3 Deep-read issue comments

For each candidate issue, read the full comment thread:

gh issue view <number> -R <owner>/<repo> --json body,comments

Extract:

  • Maintainer fix direction: Do they prefer fixing here or in an upstream dependency?
  • Suggested approach: Any code pointers, file references, or architectural guidance?
  • Blockers: Is this waiting on another PR or release?
  • Who's working on it: Even without assignment, someone might have commented "I'll take this"

1.4 Check for upstream redirection

This is the single most common failure mode. Before committing to any fix:

# Check if maintainers reference another repo
gh issue view <number> -R <owner>/<repo> --json comments \
  | grep -i "upstream\|genai-prices\|separate repo\|other repo"

# Check related repos for recent PRs mentioning this issue
gh pr list -R <owner>/<related-repo> --state open --limit 10 \
  --json title,body | grep -i "<issue_number>\|<issue_keywords>"

If there's any signal the fix belongs elsewhere, stop and ask the user before proceeding.

Phase 2: Pre-communication

Never submit a PR cold. Always communicate your intent first.

2.1 Post a solution outline on the issue

Before writing code, leave a comment on the issue with your proposed approach. This serves two purposes: it claims the work (politely), and it gives maintainers a chance to redirect you before you waste effort.

Template:

Hi, I've been looking into this and traced the root cause to <X>.

Before I open a PR, I wanted to confirm the preferred approach:
A) <approach A — e.g., fix in this repo by modifying X>
B) <approach B — e.g., upstream fix in related-repo>

I can implement either direction. Happy to adjust based on your preference.

Wait for maintainer response before proceeding to code. If no response after 24-48 hours on an active project, proceed with the most conservative approach (smallest scope fix in the current repo).

2.2 Draft PR strategy

Plan to open as a Draft PR first. Convert to ready-for-review only after:

  • CI passes
  • Maintainer acknowledges the approach (via issue comment or PR review)

Phase 3: Repository Setup

3.1 Fork and clone

gh repo fork <owner>/<repo> --clone --remote
cd <repo>

3.2 Determine the development branch

Don't assume main. Check what recent merged PRs target:

gh pr list -R <owner>/<repo> --state merged --limit 10 \
  --json baseRefName,mergedAt

Use the most common baseRefName from recent merges.

3.3 Read contribution guidelines

Check these files in order (read whichever exist):

CONTRIBUTING.md
.github/CONTRIBUTING.md
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE/

Extract:

  • Required commit message format
  • Test requirements
  • Pre-commit hooks or linting requirements
  • DCO/CLA requirements
  • Branch naming conventions

3.4 Understand CI

ls .github/workflows/

Read the CI config to know what checks will run on your PR. Identify the commands for:

  • Linting / formatting
  • Type checking
  • Unit tests
  • Integration tests
  • Pre-commit hooks

3.5 Set up the environment

Follow the project's documented setup process. Run the full test suite once to establish a passing baseline before making any changes.

Phase 4: Code Fix

4.1 Branch per issue

git checkout -b fix/issue-<number>-<short-desc> <base-branch>

4.2 Implementation principles

  • Adopt the maintainer's suggested approach if one exists in the issue comments
  • Minimal fix: change only what's necessary to fix the issue. Don't refactor surrounding code, add features, or "improve" things along the way
  • Match project style: follow the existing code patterns, naming conventions, and architecture
  • No hardcoding: avoid hardcoded values unless the project already uses them in the same context
  • Add tests: every fix needs a corresponding test that would have caught the bug. Follow the project's existing test patterns

4.3 Test your changes

Run the project's test suite. All existing tests must pass. Your new test must also pass. If the project has type checking or linting, run those too.

Language-specific verification:

  • Python: pytest, mypy, ruff (or whatever the project uses)
  • TypeScript: npx tsc --noEmit, project test command
  • Rust: cargo check && cargo test
  • Go: go build./... && go test./...

Phase 5: Commit and Submit

5.1 Pre-commit checks

If the project uses pre-commit hooks:

pre-commit run --all-files

Fix any issues before committing.

5.2 Commit conventions

# Configure author
git config user.name "<user's name>"
git config user.email "<user's email>"

# Commit with DCO sign-off
git commit -s -m "<type>: <description>

Fixes #<issue-number>"

Rules:

  • Follow the project's commit message format (check recent commits for examples)
  • Include Fixes #<number> or Closes #<number> to auto-link
  • No Generated by Claude, Co-Authored-By: claude, or any AI attribution
  • Use rebase to keep history clean, never force push

5.3 Push and create PR

git push -u origin fix/issue-<number>-<short-desc>

Create a Draft PR following the project's template:

gh pr create --draft --title "<type>: <short description>" \
  --body "$(cat <<'EOF'
## Summary
<1-2 sentences describing the fix>

Fixes #<issue-number>

## Changes
- <bullet points of what changed>

## Test plan
- <how this was tested>
EOF
)"

5.4 Handle CI results

  • CI passes: Comment on PR that it's ready for review, convert from draft
  • CI fails due to your code: Fix it, push new commit, don't amend
  • CI fails due to infrastructure (network timeouts, flaky tests, service outages): Comment explaining the failure is unrelated to your changes and request a rerun

Phase 6: After Submission

6.1 If PR is closed without merge

Don't panic. Common reasons and responses:

ReasonResponse
Fix moved upstreamAsk to contribute to the upstream repo instead
Approach rejectedAsk what approach they'd prefer, offer to redo
DuplicateAcknowledge, offer to help review the other PR
Scope too largeOffer to split into smaller PRs

Template for closed PRs:

Thanks for the feedback. I understand the fix direction has shifted to <X>.
Would it be helpful if I submitted a PR to <upstream-repo> instead?
Happy to contribute wherever it's most useful.

6.2 If changes are requested

Address review feedback promptly. Make each revision a new commit (don't squash during review — the maintainer may want to see the evolution). Only squash if the maintainer asks.

Anti-patterns to avoid

These are real failure modes from production contributions:

  1. Fixing in the wrong layer: You fix in repo A, but the maintainer creates a PR in repo B minutes before closing yours. Prevention: Phase 1.4 upstream check + Phase 2 pre-communication.
  2. PR pile-up: 5 people submit PRs for the same issue. Prevention: Phase 1.2 competing PR check + Phase 2 claiming the work.
  3. Over-engineering: Adding error handling, type annotations, refactoring, or "improvements" beyond the fix. Prevention: Phase 4.2 minimal fix principle.
  4. CI infrastructure confusion: A flaky test or network timeout in CI gets mistaken for a code problem. Prevention: Phase 5.4 explicit CI failure triage.
  5. Silent submission: Submitting a PR without any prior communication on the issue. Prevention: Phase 2 pre-communication is mandatory.
  6. Wrong base branch: PRing against main when the project develops on dev. Prevention: Phase 3.2 branch detection.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.93%
按下载量换算102

Claude

31.03%
按下载量换算94

Cursor

17.96%
按下载量换算54

Gemini CLI

10.72%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills