github-contributor by daymade/claude-code-skills
npx skills add https://github.com/daymade/claude-code-skills --skill github-contributor成为高效 GitHub 贡献者并建立开源声誉的战略指南。
gh --versiongh auth status || gh auth login核心洞察:许多开源项目都有改进空间。通过贡献高质量的 PR,你可以:
门槛最低,影响最大。
机会信号:
- "docs"、"documentation" 标签
- 询问"如何..."的问题
- 过时的截图或示例
中等投入,展示技术技能。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
机会信号:
- "good first issue" 标签
- "tech debt" 或 "refactor" 标签
- 没有测试的代码
影响大,建立信任。
机会信号:
- 带有复现步骤的 "bug" 标签
- 获得很多点赞的问题
- 陈旧的 bug(维护者很忙)
投入最高,可见度最高。
机会信号:
- "help wanted" 标签
- 有明确规格的功能
- 与路线图关联的问题
| 标准 | 原因 |
|---|---|
| 活跃的维护者 | PR 会得到审核 |
| 清晰的贡献指南 | 了解期望 |
| "good first issue" 标签 | 精心策划的切入点 |
| 最近合并的 PR | 项目是活跃的 |
| 友好的社区 | 支持性的反馈 |
# GitHub 搜索适合初学者的任务
gh search issues "good first issue" --language=python --sort=created --state=open
# 按主题搜索
gh search repos "topic:cli" --sort=stars --limit=20
# 寻找你使用的仓库
# 检查你项目中的依赖项
基于对主要开源项目的真实成功贡献:
1. 深入调查(发布到问题,而不是 PR)
2. 最小化、精准的修复(只更改必要的部分)
3. 回归测试(防止未来故障)
4. CHANGELOG 条目(如果项目使用它)
5. 端到端验证(证明 bug 存在,证明修复有效)
6. 清晰的 PR 结构(约 50 行,重点突出)
7. 专业的沟通
8. 关注点分离(详细分析放在问题中,修复摘要放在 PR 中)
9. 不包含内部/无关细节
10. 对反馈积极响应
PR 前检查清单:
- [ ] 阅读 CONTRIBUTING.md
- [ ] 检查现有 PR 是否有类似更改
- [ ] 在问题上评论以认领它
- [ ] 理解项目约定
- [ ] 设置开发环境
- [ ] 追溯 git 历史以了解上下文
- [ ] 用证据识别根本原因
在编码之前执行此操作:
复现 bug,使用确切的命令和输出
追溯 git 历史 以了解上下文
git log --all --grep="keyword" --oneline
git blame file.ts | grep "relevant_line"
链接相关的问题/PR 以提供上下文
将详细分析发布到问题(而不是 PR)
示例结构:
## 调查
我追溯了代码库的历史:
1. [日期]: #[PR] 引入了 [功能]
2. [日期]: #[PR] 添加了 [变通方案] 因为 [原因]
3. [日期]: #[PR] 更改了 [参数]
4. 现在:可以安全地 [修复] 因为 [解释]
[带有代码引用的详细证据]
标题:清晰,符合约定格式
feat(config): add support for YAML config files
fix(pool): resolve race condition in connection pool
docs(readme): update installation instructions for Windows
refactor(validation): extract validation logic into separate module
保持 PR 描述重点突出(约 50 行):
将详细调查移到问题评论中,而不是 PR。
关键:通过可复现的 失败 → 修复 → 通过 循环来证明更改。
复现失败,使用原始版本
# 使用原始版本测试
npm install -g package@original-version
[触发 bug 的命令]
# 捕获:错误消息、退出代码、时间戳
应用修复并使用修补版本测试
# 使用修复版本测试
npm install -g package@fixed-version
[相同命令]
# 捕获:成功输出、正常退出代码
记录两者,包括时间戳、PID、退出代码、日志
编辑敏感信息:
/Users/...、/home/...)描述:重点突出且易于审查(约 50 行)
## 摘要
[1-2 句话:修复了什么以及为什么]
## 根本原因
[带有代码引用的技术解释]
## 更改
- [实际的代码更改]
- [添加的测试]
- [更新的文档]
## 为什么这是安全的
[解释为什么它不会破坏任何东西]
## 测试
### 测试 1:复现 Bug(原始版本)
命令:`[命令]`
结果:
```text
[带有时间戳、退出代码的失败输出]
命令:[相同命令]
结果:
[带有时间戳、退出代码的成功输出]
**PR 中不应包含的内容**:
* ❌ 详细的时间线分析(放在问题中)
* ❌ 历史背景(放在问题中)
* ❌ 内部工具提及
* ❌ 推测或不确定性
* ❌ 大段文字(>100 行)
### 代码更改最佳实践
**最小化、精准的修复**:
* ✅ 只更改修复 bug 所必需的部分
* ✅ 添加回归测试以防止未来故障
* ✅ 如果项目使用,则更新 CHANGELOG
* ❌ 不要重构周围的代码
* ❌ 不要添加超出修复范围的"改进"
* ❌ 不要更改不相关的文件
**示例**(OpenClaw PR #39763):
更改的文件:2
结果:278K 星项目,顺利获得批准
### 关注点分离
**问题评论**:详细调查
* 时间线分析
* 历史背景
* 相关的 PR/问题
* 根本原因深入分析
**PR 描述**:专注于修复
* 摘要(1-2 句话)
* 根本原因(技术性的)
* 更改(项目符号列表)
* 测试验证
* 总计约 50 行
**单独的测试评论**:端到端验证
* 使用原始版本测试(证明 bug)
* 使用修复版本测试(证明修复)
* 带有时间戳的完整日志
### 提交后
* 监控 CI 结果
* 及时响应反馈(24 小时内)
* 快速进行请求的更改
* 感谢审阅者
* 专业地讨论,不要争论
* 如果需要更新 PR:
* 添加新的提交(审阅期间不要强制推送)
* 在评论中解释更改了什么
* 准备就绪时重新请求审阅
**专业回应**:
✅ "好观点!我已经更新了实现以..." ✅ "感谢指出。已在提交 abc123 中修复。" ✅ "我明白你的意思。我选择这种方法是因为... 你希望我把它改成...吗?"
❌ "那只是你的看法。" ❌ "在我机器上可以运行。" ❌ "我一直都是这么做的。"
## 建立声誉
### 贡献阶梯
级别 1:文档修复 ↓(建立熟悉度) 级别 2:小错误修复 ↓(理解代码库) 级别 3:功能贡献 ↓(受信任的贡献者) 级别 4:维护者身份
### 持续性优于数量
❌ 一周内 10 个 PR,然后没有 ✅ 每周 1-2 个 PR,持续进行
### 在 PR 之外参与
* 在问题中回答问题
* 帮助分类错误报告
* 审阅他人的 PR(如果受欢迎)
* 加入项目的 Discord/Slack
## 常见错误
### 不要
* 未经调查就提交临时性的 PR
* 在 PR 中包含详细的时间线(放在问题中)
* 提及内部工具或基础设施
* 与维护者争论
* 忽略代码风格指南
* 未经讨论就进行大规模更改
* 提交后消失
* 重构与修复无关的代码
* 添加超出请求范围的"改进"
* 审阅期间强制推送(除非被要求)
### 要
* 在编码前彻底调查
* 将详细分析发布到问题,而不是 PR
* 保持 PR 重点突出且最小化(约 50 行)
* 从小而专注的 PR 开始
* 严格遵守项目约定
* 添加回归测试
* 如果项目使用,则更新 CHANGELOG
* 主动沟通
* 优雅地接受反馈
* 随着时间的推移建立关系
* 使用原始版本和修复版本进行测试
* 从日志中编辑敏感信息
## 工作流模板
高质量贡献工作流:
调查阶段:
实施阶段:
验证阶段:
提交阶段:
审阅阶段:
## 快速参考
### GitHub CLI 命令
gh repo fork owner/repo --clone
gh pr create --title "feat(scope): ..." --body "..."
gh pr status
gh issue list --repo owner/repo --label "good first issue" --state=open
### 提交消息格式
<type>(<scope>): <description>
[可选正文]
[可选页脚]
类型:`feat`、`fix`、`docs`、`style`、`refactor`、`test`、`chore`
## 参考资料
* `references/pr_checklist.md` - 完整的 PR 质量检查清单
* `references/project_evaluation.md` - 如何评估项目
* `references/communication_templates.md` - 问题/PR 模板
* `references/high_quality_pr_case_study.md` - 真实世界成功 PR 演练(OpenClaw #39763)
## 成功指标
当出现以下情况时,你就知道你的 PR 是高质量的:
* ✅ 维护者能立即理解问题
* ✅ 审阅者可以轻松验证修复
* ✅ CI 首次尝试即通过
* ✅ 没有"你能解释一下..."的问题
* ✅ 最少的来回沟通
* ✅ 快速获得批准
## 高质量 PR 的关键指标
基于对主要项目的成功贡献:
* **更改的文件**:1-3 个(范围集中)
* **更改的行数**:10-50 行(最小化修复)
* **PR 描述**:约 50 行(简洁)
* **问题调查**:100-300 行(彻底)
* **初稿时间**:2-3 天(适当调查)
* **准备就绪时间**:3-5 天(包括验证)
* **响应时间**:<24 小时(专业)
每周安装次数
129
仓库
[daymade/claude-…e-skills](https://github.com/daymade/claude-code-skills "daymade/claude-code-skills")
GitHub 星标数
708
首次出现
2026年1月21日
安全审计
[Gen Agent Trust HubPass](/daymade/claude-code-skills/github-contributor/security/agent-trust-hub)[SocketPass](/daymade/claude-code-skills/github-contributor/security/socket)[SnykWarn](/daymade/claude-code-skills/github-contributor/security/snyk)
安装于
claude-code113
opencode105
codex102
gemini-cli101
cursor97
github-copilot93
Strategic guide for becoming an effective GitHub contributor and building your open-source reputation.
gh --versiongh auth status || gh auth loginCore insight : Many open-source projects have room for improvement. By contributing high-quality PRs, you:
Lowest barrier, high impact.
Fix typos, grammar, unclear explanations
Add missing examples
Improve README structure
Translate documentation
Opportunity signals:
Medium effort, demonstrates technical skill.
Fix linter warnings
Add type annotations
Improve error messages
Refactor for readability
Opportunity signals:
High impact, builds trust.
Reproduce and fix reported bugs
Add regression tests
Document root cause
Opportunity signals:
Highest effort, highest visibility.
Implement requested features
Add integrations
Performance improvements
Opportunity signals:
| Criteria | Why |
|---|---|
| Active maintainers | PRs get reviewed |
| Clear contribution guide | Know expectations |
| "good first issue" labels | Curated entry points |
| Recent merged PRs | Project is alive |
| Friendly community | Supportive feedback |
# GitHub search for good first issues
gh search issues "good first issue" --language=python --sort=created --state=open
# Search by topic
gh search repos "topic:cli" --sort=stars --limit=20
# Find repos you use
# Check dependencies in your projects
Based on real-world successful contributions to major open-source projects:
1. Deep investigation (post to issue, not PR)
2. Minimal, surgical fix (only change what's necessary)
3. Regression test (prevent future breakage)
4. CHANGELOG entry (if project uses it)
5. End-to-end validation (prove bug exists, prove fix works)
6. Clear PR structure (~50 lines, focused)
7. Professional communication
8. Separate concerns (detailed analysis in issue, fix summary in PR)
9. No internal/irrelevant details
10. Responsive to feedback
Pre-PR Checklist:
- [ ] Read CONTRIBUTING.md
- [ ] Check existing PRs for similar changes
- [ ] Comment on issue to claim it
- [ ] Understand project conventions
- [ ] Set up development environment
- [ ] Trace through git history for context
- [ ] Identify root cause with evidence
Do this BEFORE coding :
Reproduce the bug with exact commands and output
Trace git history to understand context
git log --all --grep="keyword" --oneline
git blame file.ts | grep "relevant_line"
Link related issues/PRs that provide context
Post detailed analysis to issue (not PR)
Example structure :
## Investigation
I traced this through the codebase history:
1. [Date]: #[PR] introduced [feature]
2. [Date]: #[PR] added [workaround] because [reason]
3. [Date]: #[PR] changed [parameter]
4. Now: Safe to [fix] because [explanation]
[Detailed evidence with code references]
Title : Clear, conventional format
feat(config): add support for YAML config files
fix(pool): resolve race condition in connection pool
docs(readme): update installation instructions for Windows
refactor(validation): extract validation logic into separate module
Keep PR description focused (~50 lines):
Move detailed investigation to issue comments , not PR.
Critical : Prove the change with a reproducible fail → fix → pass loop.
Reproduce failure with original version
# Test with original version
npm install -g package@original-version
[command that triggers bug]
# Capture: error messages, exit codes, timestamps
Apply fix and test with patched version
# Test with fixed version
npm install -g package@fixed-version
[same command]
# Capture: success output, normal exit codes
Document both with timestamps, PIDs, exit codes, logs
Redact sensitive info :
/Users/..., /home/...)Description : Focused and reviewable (~50 lines)
## Summary
[1-2 sentences: what this fixes and why]
## Root Cause
[Technical explanation with code references]
## Changes
- [Actual code changes]
- [Tests added]
- [Docs updated]
## Why This Is Safe
[Explain why it won't break anything]
## Testing
### Test 1: Reproduce Bug (Original Version)
Command: `[command]`
Result:
```text
[failure output with timestamps, exit codes]
```
### Test 2: Validate Fix (Patched Version)
Command: `[same command]`
Result:
```text
[success output with timestamps, exit codes]
```
## Related
- Fixes #[issue]
- Related: #[other issues/PRs]
What NOT to include in PR :
Minimal, surgical fixes :
Example (OpenClaw PR #39763):
Files changed: 2
- src/infra/process-respawn.ts (3 lines removed, 1 added)
- src/infra/process-respawn.test.ts (regression test added)
Result: 278K star project, clean approval
Issue comments : Detailed investigation
PR description : Focused on the fix
Separate test comment : End-to-end validation
Professional responses :
✅ "Good point! I've updated the implementation to..."
✅ "Thanks for catching that. Fixed in commit abc123."
✅ "I see what you mean. I chose this approach because...
Would you prefer if I changed it to...?"
❌ "That's just your opinion."
❌ "It works on my machine."
❌ "This is how I always do it."
Level 1: Documentation fixes
↓ (build familiarity)
Level 2: Small bug fixes
↓ (understand codebase)
Level 3: Feature contributions
↓ (trusted contributor)
Level 4: Maintainer status
❌ 10 PRs in one week, then nothing
✅ 1-2 PRs per week, sustained
High-Quality Contribution Workflow:
Investigation Phase:
- [ ] Find project with "good first issue"
- [ ] Read contribution guidelines
- [ ] Comment on issue to claim
- [ ] Reproduce bug with original version
- [ ] Trace git history for context
- [ ] Identify root cause with evidence
- [ ] Post detailed analysis to issue
Implementation Phase:
- [ ] Fork and set up locally
- [ ] Make minimal, focused changes
- [ ] Add regression test
- [ ] Update CHANGELOG (if applicable)
- [ ] Follow project conventions exactly
Validation Phase:
- [ ] Test with original version (prove bug exists)
- [ ] Test with fixed version (prove fix works)
- [ ] Document both with timestamps/logs
- [ ] Redact paths/secrets/internal hosts
Submission Phase:
- [ ] Write focused PR description (~50 lines)
- [ ] Link to detailed issue analysis
- [ ] Post end-to-end test results
- [ ] Ensure CI passes
Review Phase:
- [ ] Respond to feedback within 24 hours
- [ ] Make requested changes quickly
- [ ] Don't force push during review
- [ ] Thank reviewers
- [ ] Celebrate when merged! 🎉
# Fork a repo
gh repo fork owner/repo --clone
# Create PR
gh pr create --title "feat(scope): ..." --body "..."
# Check PR status
gh pr status
# View project issues
gh issue list --repo owner/repo --label "good first issue" --state=open
<type>(<scope>): <description>
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
references/pr_checklist.md - Complete PR quality checklistreferences/project_evaluation.md - How to evaluate projectsreferences/communication_templates.md - Issue/PR templatesreferences/high_quality_pr_case_study.md - Real-world successful PR walkthrough (OpenClaw #39763)You know you have a high-quality PR when:
Based on successful contributions to major projects:
Weekly Installs
129
Repository
GitHub Stars
708
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code113
opencode105
codex102
gemini-cli101
cursor97
github-copilot93
高效一对一沟通指南:7位产品领导者的框架与技巧,提升团队管理效能
764 周安装