github
Skill1 starsChanged 17 days agoMITView on GitHub
Comprehensive GitHub operations including repository management, commits, pull requests, issues, and GitHub API interactions. Use when the user needs to perform any GitHub-related tasks such as creating repositories, pushing commits, managing branches, creating pull requests, managing issues, or working with GitHub Actions. This skill provides both command-line and API-based approaches for GitHub operations.
- Reads credentials
- Sends data out
- Commits and pushes
193 other projects use a version of this.
Adopted by
Most recently taken up by
- VinodBobby/skillstheir own version, first seen Nov 29, 2026
- newkirkjosh/skillstheir own version, first seen Nov 29, 2026
- zrtch/awesome-skillstheir own version, first seen Nov 29, 2026
- aayushsoam/clawbot-plustheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- fmind/dotfilestheir own version, first seen Nov 29, 2026
Used with
Projects with it also use update-team-server, BlueBubbles and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
friuns2Skillupdate-team-server
Update the operator-configured Team server through its canonical owner; trust native validation and acceptance without duplicate checks or schedulers.
Also in 6 projects that use this
jiulingyunSkillBlueBubbles
为Clawdbot构建或更新BlueBubbles外部通道插件(扩展包,REST发送/探测,webhook入站)。
Also in 25 projects that use this
friuns2Skilldiscord-e2e
Test Discord with Convex-leased QA bots: check credentials without a Gateway, exercise owned messages, or prove OpenClaw replies, files, threads, reactions, streaming, and typing. Distinguish API and Gateway evidence from manual user interactions.
Also in 10 projects that use this
clawdbotSkillopenclaw-performance
Performance work in OpenClaw: a slow or heavy flow (latency, CPU, memory, SQL, RPC, renders), writing or reviewing a perf PR, or adding a cache. Count the work, delete waste first, cache last.
Also in 8 projects that use this
clawdbotSkillplugin-sdk-impact
Count Plugin SDK consumers across live ClawHub releases and bundled OpenClaw plugins before deprecation, removal, or behavior changes; supports public release-date filters.
Also in 8 projects that use this
AtomicBot-aiSkilltaskflow-inbox-triage
Also in 7 projects that use this
- +2 more from friuns2
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- molt-bot/clawdbot★ 395ksame name
- steipete/warelay★ 395ksame name
- steipete/clawdis★ 395ksame name
- moltbot/clawdbot★ 395ksame name
- openclaw/openclaw★ 395ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- NousResearch/hermes-agent★ 267ksame name
- spinabot/brigade★ 11ksame name
- the-open-agent/openagent★ 5.7ksame name
183 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- askSkill
- easy-profiler-guideSkill
- github-deploy-winSkill
- init-project-docsSkill
- qt-coding-guideSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 14
Prefer the GitHub CLI (gh) — it handles auth, pagination, and formatting so you do not have to manage tokens and raw HTTP yourself.
- Distinctive: line 46
Verify the operation completed successfully
- Very specific: line 237
Verify before pinning — majors move.
- Very specific: line 242
Use OIDC for cloud deploys: instead of long-lived secrets: add permissions: id-token: write and use the provider's official login action.
- Distinctive: line 248
Never commit secrets: - Use GitHub Secrets / OIDC for sensitive data
- Distinctive: line 253
Least-privilege tokens: - Prefer fine-grained PATs and scope them down
- Very specific: line 259
Authentication failed: - Verify the token is valid and has the required scopes/permissions (gh auth status)
- Distinctive: line 260
Permission denied (403): - Check repository access rights, and whether you hit a rate limit
- Distinctive: line 263
Large files: - Use Git LFS for large files
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Operations Skill
This skill provides comprehensive guidance for performing GitHub operations including repository management, commits, branches, pull requests, issues, and GitHub API interactions.
Quick Start
Authentication
Prefer the GitHub CLI (gh) — it handles auth, pagination, and formatting so you do not have to manage tokens and raw HTTP yourself.
- GitHub CLI (
gh) — preferred for interactive and scripted use - Personal Access Token (PAT) — for direct REST/GraphQL calls and headless automation
- SSH Keys — for git-only operations over SSH
Set up and verify gh auth:
gh auth login # interactive login (browser or token)
gh auth status # confirm the active account and scopes
gh auth token # print the token gh is using (for use with curl)For headless/CI use, skip the interactive login and provide a token through the environment instead — gh reads GH_TOKEN (preferred) or GITHUB_TOKEN:
export GH_TOKEN=ghp_your_token
gh api user # works without any interactive stepToken choice
- Fine-grained PAT is the recommended default. It has a 30-day default expiry, scoped repository/organization permissions, and is authorized for SAML SSO at creation time. Use it unless you need a capability it does not yet cover.
- Classic PAT is the fallback (e.g. write access to public repos you do not own, or the few endpoints fine-grained tokens do not cover). Classic tokens left unused for a year are auto-revoked.
- In GitHub Actions, use the built-in
GITHUB_TOKEN— never a long-lived PAT — and grant it least privilege via thepermissions:key.
See references/permissions.md for the full scope/permission reference.
Basic Workflow
- Authenticate with GitHub (verify with
gh auth statusorGET /user) - Perform the required operation (create repo, push code, etc.)
- Verify the operation completed successfully
Repository Operations
Creating a Repository
Using GitHub CLI (preferred):
gh repo create my-test-repo --public --description "My test repository"
# useful flags: --add-readme, --gitignore <name>, --license <spdx>, --clone, --source <dir>Using GitHub API (curl):
curl -X POST \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
https://api.github.com/user/repos \
-d '{"name":"my-test-repo","description":"My test repository","private":false}'Cloning a Repository
git clone https://github.com/username/repository.git
# or with SSH
git clone git@github.com:username/repository.gitGit Operations
Initializing and Committing
# Initialize repository
git init
# Add files
git add .
# Commit changes
git commit -m "Initial commit"
# Set remote origin
git remote add origin https://github.com/username/repository.git
# Push to GitHub
git push -u origin mainBranch Management
# Create and switch to a new branch
git switch -c feature-branch
# Switch branches
git switch main
# Merge branches
git merge feature-branch
# Delete branch
git branch -d feature-branchPull Requests
Creating a Pull Request
# Using GitHub CLI
gh pr create --title "Feature implementation" --body "Description of changes"
# List pull requests
gh pr list
# View specific PR
gh pr view 123Reviewing and Merging
# Review PR
gh pr review 123 --approve --body "Looks good!"
# Merge PR (--merge, --squash, or --rebase; --delete-branch cleans up)
gh pr merge 123 --squashIssues Management
Creating Issues
gh issue create --title "Bug report" --body "Description of the bug"Listing and Managing Issues
# List issues
gh issue list
# View issue
gh issue view 456
# Close issue
gh issue close 456 --comment "Fixed in PR #123"GitHub API Operations
Recommended request headers
User-Agent is required — requests without it are rejected. Accept and the version header are strongly recommended.
curl \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
-H "User-Agent: my-app" \
https://api.github.com/userAuthorization: Bearer <token>works for fine-grained PATs, classic PATs, OAuth, GitHub App JWTs andGITHUB_TOKEN. (Authorization: token <token>also works for classic PATs, but a JWT must useBearer.)Accept: application/vnd.github+jsonis the current recommended media type.application/vnd.github.v3+jsonis the legacy form.X-GitHub-Api-Version— pin this to avoid surprise breaking changes. Current version is2026-03-10; requests that omit the header default to2022-11-28(supported until March 2028).
Using gh api instead of raw curl
gh api attaches auth and headers for you and handles pagination:
gh api repos/{owner}/{repo} # REST
gh api --paginate /user/repos # auto-paginate
gh api graphql -f query='query { viewer { login } }' # GraphQLCommon API Endpoints
- User repos:
GET /user/repos - Create repo:
POST /user/repos(org:POST /orgs/{org}/repos) - Get repo:
GET /repos/{owner}/{repo} - Create issue:
POST /repos/{owner}/{repo}/issues - Create PR:
POST /repos/{owner}/{repo}/pulls - Merge PR:
PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge - Branch protection:
PUT /repos/{owner}/{repo}/branches/{branch}/protection
See references/api-reference.md for payloads, rate limits, and pagination.
GitHub Actions
Basic Workflow File
Pin third-party actions to a full commit SHA in security-sensitive repos. Current majors run on the Node 24 runtime.
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: '24'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm testCurrent major versions of common official actions
| Action | Current major |
actions/checkout | v7 |
actions/setup-node | v7 |
actions/setup-python | v7 |
actions/github-script | v9 |
actions/upload-artifact | v7 |
actions/download-artifact | v8 |
Verify before pinning — majors move. actions/github-script@v9 removed require('@actions/github'); use the injected getOctokit for extra clients.
Workflow security
- Grant least privilege with
permissions:at workflow or job level (e.g.contents: readby default,issues: writeonly where needed). - Use OIDC for cloud deploys instead of long-lived secrets: add
permissions: id-token: writeand use the provider's official login action. - Never interpolate untrusted input into
run:blocks —${{ github.event.* }}fields liketitleandbodyare attacker-controlled. Pass them throughenv:and reference the shell variable instead. - Avoid
pull_request_target(and checking out fork code in it) — it runs with elevated privileges and enables "pwn request" attacks. GitHub blockspull_request_targetby default in public repositories.
Security Best Practices
- Never commit secrets - Use GitHub Secrets / OIDC for sensitive data
- Use .gitignore - Exclude sensitive files and build artifacts
- Branch protection - Enable branch protection rules (or rulesets) for the main branch
- Code scanning - Enable GitHub Code Scanning for security analysis
- Dependabot - Enable Dependabot for dependency updates
- Least-privilege tokens - Prefer fine-grained PATs and scope them down
Troubleshooting
Common Issues
- Authentication failed - Verify the token is valid and has the required scopes/permissions (
gh auth status) - Permission denied (403) - Check repository access rights, and whether you hit a rate limit
- Resource not accessible by integration - The token's permissions are insufficient (common with
GITHUB_TOKEN) - Merge conflicts - Resolve conflicts before merging
- Large files - Use Git LFS for large files
Debugging Commands
# Check git status
git status
# View git log
git log --oneline
# Check remote URLs
git remote -v
# Test GitHub CLI authentication
gh auth status
# Check rate limit (does not consume your primary quota)
gh api /rate_limitScripts
This skill includes Python scripts for common GitHub operations. See the scripts/ directory for:
create_repo.py- Create repositories programmaticallypush_commit.py- Commit and push changes
References
See the references/ directory for:
api-reference.md- Complete GitHub API referencepermissions.md- Required permissions for different operationsworkflows.md- Common GitHub workflows and patterns
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

