Token导航 LogoToken导航

Agent Skill · 研究检索

github(GitHub 代码协作)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

github 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 16,600。

总安装 7,091周安装 365GitHub Stars 公开资料未说明下载 3,334核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add adynato/skills --skill "github"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

围绕 GitHub 仓库与协作流程提供辅助能力。适用于 Codex、Claude、Cursor、Gemini CLI 中管理代码变更的场景。支持查询 Issue、PR 与分支状态并生成下一步动作。需区分只读与写入操作,确认 token 权限范围。涉及私有仓库时应严格限制访问权限。

github 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/github

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add adynato/skills --skill "github";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

github 怎么安装?

在终端执行 npx skills add adynato/skills --skill "github"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

github 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

github 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

github 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

github 用的人多吗?

公开数据是累计安装 7,091 次,近一周安装 365 次,下载 3,334 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

github 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
github

GitHub 代码协作 · 本页

7,091—只读MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
adynato-github
description
GitHub workflow conventions for Adynato projects. Covers creating PRs with gh CLI, writing thorough descriptions, and using stacked PRs for large deliverables. Use when creating pull requests, managing branches, or breaking down large features.

GitHub Skill

Use this skill when working with GitHub on Adynato projects.

Always Use gh CLI

Use the gh CLI for all GitHub operations instead of the web interface:

# Create PR
gh pr create --title "Title" --body "Description"

# View PR
gh pr view 123

# Check PR status
gh pr checks 123

# Merge PR
gh pr merge 123 --squash

PR Descriptions

Every PR must have a thorough description. Use this template:

gh pr create --title "feat: add user authentication" --body "$(cat <<'EOF'
## Summary

Brief description of what this PR does and why.

- Added JWT-based authentication flow
- Implemented login/logout endpoints
- Added auth middleware for protected routes

## Changes

- `lib/auth.ts` - Auth utilities and token management
- `app/api/auth/login/route.ts` - Login endpoint
- `app/api/auth/logout/route.ts` - Logout endpoint
- `middleware.ts` - Route protection

## Testing

### Automated
- [ ] Login with valid credentials returns token
- [ ] Login with invalid credentials returns 401
- [ ] Protected routes reject unauthenticated requests
- [ ] Logout invalidates token

### Manual
1. Sign in with a test account
2. Open a protected route
3. Confirm authenticated access works
4. Log out and confirm access is revoked

## Screenshots

(if UI changes)

## Related

- Closes #123
- Part of #456
EOF
)"

Required Sections

SectionWhen RequiredPurpose
SummaryAlwaysWhat and why in 2-3 sentences
ChangesAlwaysList of files/areas modified
TestingAlwaysAutomated coverage and explicit manual testing steps
ScreenshotsUI changesVisual proof of changes
RelatedIf applicableLinked issues/PRs

Manual testing steps are required in every PR description. Be specific about the exact flow, commands, requests, accounts, or environment used to verify the change.

Stacked PRs

For large deliverables, break work into small, stacked PRs that build on each other.

Why Stack PRs

  • Easier review - Reviewers can focus on one concern at a time
  • Faster merges - Small PRs get approved faster
  • Lower risk - Each PR is independently deployable
  • Better history - Clear progression of changes

Stacking Strategy

For a feature like "Add user dashboard":

PR 1: Add user API endpoints (base)
  ↓
PR 2: Add dashboard data fetching (stacked on PR 1)
  ↓
PR 3: Add dashboard UI components (stacked on PR 2)
  ↓
PR 4: Add dashboard tests (stacked on PR 3)

Creating Stacked PRs

Use <default-base-branch> for the repository's integration branch: dev when it exists, otherwise main.

# PR 1: Base branch
git checkout -b feat/user-api
# ... make changes ...
git push -u origin feat/user-api
gh pr create --base <default-base-branch> --title "feat: add user API endpoints"

# PR 2: Stack on PR 1
git checkout -b feat/dashboard-data feat/user-api
# ... make changes ...
git push -u origin feat/dashboard-data
gh pr create --base feat/user-api --title "feat: add dashboard data fetching"

# PR 3: Stack on PR 2
git checkout -b feat/dashboard-ui feat/dashboard-data
# ... make changes ...
git push -u origin feat/dashboard-ui
gh pr create --base feat/dashboard-data --title "feat: add dashboard UI"

Stack Description

In stacked PRs, note the relationship:

## Summary

Adds dashboard UI components.

## Stack

This PR is part of a stack:
1. #101 - Add user API endpoints ← **merged**
2. #102 - Add dashboard data fetching ← **base**
3. **#103 - Add dashboard UI** ← you are here
4. #104 - Add dashboard tests

Please review and merge in order.

Updating Stacked PRs

When the base PR changes:

# Update your branch with changes from base
git checkout feat/dashboard-ui
git rebase feat/dashboard-data
git push --force-with-lease

When base PR merges:

# Rebase onto new base
git checkout feat/dashboard-data
git rebase <default-base-branch>
git push --force-with-lease

# Update PR base branch
gh pr edit 102 --base <default-base-branch>

PR Size Guidelines

SizeLines ChangedReview TimeRecommendation
XS< 50MinutesIdeal
S50-200< 1 hourGood
M200-5001-2 hoursAcceptable
L500-10002-4 hoursSplit if possible
XL> 1000DaysMust split

Target: Keep PRs under 300 lines changed.

Commit Messages

Use conventional commits:

feat: add user authentication
fix: resolve login redirect loop
docs: update API documentation
refactor: extract auth utilities
test: add auth endpoint tests
chore: update dependencies

Format:

<type>: <short description>

<optional body explaining why>

<optional footer with references>

Branch Naming

feat/short-description    # New features
fix/issue-description     # Bug fixes
refactor/what-changed     # Code refactoring
docs/what-documented      # Documentation
test/what-tested          # Test additions

Starting New Work

When a new prompt arrives:

  • If the current branch already matches the work, continue on that branch
  • Otherwise, switch back to the repository's integration branch: prefer dev, otherwise main
  • Pull that branch before starting the new task
  • Create a fresh branch for the new work and open a new PR back into that same branch
  • Do not create a new git worktree unless the user explicitly requests one
git checkout <default-base-branch>
git pull --ff-only
git checkout -b feat/my-change
gh pr create --base <default-base-branch> --title "feat: describe change"

Common gh Commands

# Create PR with labels
gh pr create --title "feat: thing" --label "enhancement" --label "needs-review"

# Create open PR
gh pr create --title "feat: thing"

# Request reviewers
gh pr edit 123 --add-reviewer @username

# Check CI status
gh pr checks 123 --watch

# View PR diff
gh pr diff 123

# Checkout PR locally
gh pr checkout 123

# Close PR
gh pr close 123

# Reopen PR
gh pr reopen 123

# List open PRs
gh pr list

# View PR comments
gh pr view 123 --comments

Review Process

  1. Self-review first - Read your own diff before requesting review
  2. CI must pass - Don't request review until checks are green
  3. Respond to feedback - Address or discuss all comments
  4. Squash on merge - Keep default branch history clean
# Merge with squash (preferred)
gh pr merge 123 --squash --delete-branch

# Merge with rebase (for stacks)
gh pr merge 123 --rebase --delete-branch

Addressing PR Comments

When fixing review comments, follow this workflow for each comment.

If you are given a direct GitHub comment URL, treat it as an instruction to handle that exact thread end-to-end: inspect it, reply on that thread, resolve it if fixed or invalid, and explicitly tell the user if it remains unresolved.

1. Make Individual Commits

Create a separate conventional commit for each review comment fix:

# Fix first comment
git add src/auth.ts
git commit -m "fix: add null check for user token

Addresses review comment about potential null reference"

# Fix second comment
git add src/api/users.ts
git commit -m "refactor: extract validation logic to separate function

Addresses review comment about function complexity"

# Fix third comment
git add src/utils.ts
git commit -m "fix: handle edge case for empty array

Addresses review comment about missing edge case handling"

Do NOT batch multiple comment fixes into one commit. Each fix should be atomic and traceable.

2. Always Reply

Every linked comment must get a thread reply. Do not fix code silently and move on.

If fixed or otherwise addressed:

Fixed in <commit-sha>

Or with more context:

Fixed in abc1234 - added null check before accessing token property.

If the comment is not valid or no code change is needed:

I do not think this change is needed because [reason].

Current behavior is intentional/correct for [explanation], so I am resolving this thread.

If the comment is still valid or not yet addressed:

  • Leave the thread open in GitHub
  • If a thread reply is useful, keep it focused on status, reasoning, or a clarifying question
  • Explicitly tell the user that this comment remains unresolved and why

3. Resolve Only When Appropriate

After replying:

  • Resolve the conversation if the requested change was made
  • Resolve the conversation if the comment is invalid and you explained why no change is needed
  • Do not resolve the conversation if the comment is still valid, blocked, or needs follow-up
  • When a thread remains open, explicitly flag that unresolved status to the user
  • Do not post "this is unresolved" in GitHub just to satisfy this rule
# View comments to get comment IDs
gh api repos/{owner}/{repo}/pulls/{pr}/comments

# Resolve fixed or invalid conversations after replying
# Leave unresolved conversations open

In the GitHub web UI: Click "Resolve conversation" only after your reply if the thread is addressed or invalid.

Complete Workflow Example

# 1. Read all comments
gh pr view 123 --comments

# 2. For each valid comment, fix and commit individually
git add src/auth.ts
git commit -m "fix: validate token expiry before use

Addresses review feedback on auth token handling"

# 3. Push all fixes
git push

# 4. Reply to each linked comment thread in GitHub UI or via API
gh api repos/adynato/myrepo/pulls/123/comments/456789/replies \
  -f body="Fixed in $(git rev-parse --short HEAD)"

# 5. Resolve only threads that are fixed or invalid
# Leave still-valid threads open and tell the user they remain unresolved

Comment Response Templates

ScenarioGitHub replyUser report
Fixed"Fixed in abc1234""Resolved."
Fixed with explanation"Fixed in abc1234 - moved validation to middleware as suggested""Resolved."
Invalid / no change needed"Current behavior is intentional because [reason], so I am resolving this thread.""Resolved as invalid / no change needed."
Still open / blocked"I’m looking into this. [status or blocker]""This comment is still unresolved because [reason]."
Needs discussion"I see your point, but [reasoning]. What do you think about [alternative]?""This comment is still unresolved pending discussion."
Won't fix (out of scope)"Good catch, but out of scope for this PR. Created #456 to track.""This comment is still unresolved for this PR; follow-up tracked in #456."
Question/clarification"Good question - [explanation of why code works this way]""Resolved after clarification."

Rules

  1. One commit per comment - Makes it easy to trace what fixed what
  2. Always reply on the linked thread - Never leave comment URLs unaddressed
  3. Resolve only when fixed or invalid - Do not close valid open feedback
  4. If still valid, flag it to the user - Leave the thread open and report the unresolved status back to the user
  5. Reference commits - Include SHA so reviewer can verify the fix
  6. Be respectful - Even when disagreeing, explain your reasoning
  7. Create issues for scope creep - If a comment suggests something bigger, create an issue instead

平台分布

Codex

37.78%
按下载量换算1,260

Claude

29.69%
按下载量换算990

Cursor

20.2%
按下载量换算673

Gemini CLI

8.86%
按下载量换算295

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills