返回 Skill 列表
GitHub入门
GitHub 零基础入门 Skill
从注册到提交第一个 PR。不需要懂命令行,AI 帮你操作 Git。
📋 SKILL.md 完整代码
--- name: github-basics description: >- 从注册到提交第一个 PR。不需要懂命令行,AI 帮你操作 Git。 Use when working on github basics tasks. allowed-tools: Read,Write,Bash --- # GitHub 零基础入门 Skill ## Quick Start 1. Save as `~/.claude/skills/github-basics/SKILL.md` 2. Restart Claude Code 3. Type `/github-basics` 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/github-basics/SKILL.md 3. 重启 Claude Code 4. 输入 /github-basics 或直接描述任务触发 5. AI 自动按 Skill 流程执行
GitHub 是什么
全球最大的代码托管平台——程序员的「百度网盘+协作平台」。你可以把代码传上去、管理版本、和他人协作。免费注册就能用。几乎所有开源项目都在 GitHub 上。
核心概念
Repository(仓库):一个项目就是一个仓库。Commit(提交):保存一次修改。Branch(分支):在独立线上开发,不影响主线。Pull Request(PR):请求把你的改动合并到主线。Issue:提需求、报Bug。
用 AI 操作 Git
不需要背命令。对 Claude Code 说「帮我提交代码」「创建新分支」「推送到 GitHub」「创建一个 PR」——AI 自动执行。你只需要知道想做什么,不用知道命令怎么写。
新手三步走
1) 在 github.com 注册账号→2) 创建第一个仓库(New Repository)→3) 上传一个文件试试。就这么简单。从这开始,慢慢探索更多功能。