AINow
📢 赞助位招租 · 月访问 XXXX · 联系 weixin_xxx
了解详情
返回 Skill 列表
GitHub入门

开源项目贡献 Skill

从找项目到提交 PR 的全流程指南。零基础也能参与开源。

📋 SKILL.md 完整代码

---
name: opensource-contribute
description: >-
  从找项目到提交 PR 的全流程指南。零基础也能参与开源。
  Use when working on opensource contribute tasks.
allowed-tools: Read,Write,Bash
---

# 开源项目贡献 Skill

## Quick Start
1. Save as `~/.claude/skills/opensource-contribute/SKILL.md`
2. Restart Claude Code
3. Type `/opensource-contribute` or describe your task naturally
4. Claude auto-triggers when your task matches the description

## Instructions
- Understand the user's specific context and needs
- Apply domain best practices consistently
- Provide actionable, specific guidance with examples
- Verify all outputs before presenting to user

## Gotchas
- Test with a fresh Claude instance after changes
- Keep SKILL.md under 500 lines; use references/ for details
- Description is the trigger key — make it specific and keyword-rich

🚀 怎么用

1. 复制上面的 SKILL.md 代码
2. 保存为 ~/.claude/skills/opensource-contribute/SKILL.md
3. 重启 Claude Code
4. 输入 /opensource-contribute 或直接描述任务触发
5. AI 自动按 Skill 流程执行

为什么要参与开源

参与开源项目是学习编程最快的方式——看优秀代码、被高手 Review、积累真实项目经验。而且 GitHub 上的贡献记录是技术能力最好的证明。零基础也能参与——很多项目有「good first issue」标签,专门给新手准备的。

完整流程

1) 找项目:在 GitHub 搜索 good-first-issue 标签→2) Fork 项目到自己的仓库→3) Clone 到本地→4) 创建新分支→5) 写代码→6) 提交 PR→7) 等待 Review 并根据反馈修改。全程可以让 AI 帮你完成每一步。

注意事项

先读项目的 CONTRIBUTING.md。PR 描述写清楚改了什么、为什么改。保持小改动——一个 PR 只做一件事。耐心等待 Review——维护者可能是业余时间在做。