← 返回
未分类

GitHub

Work with GitHub repositories, issues, pull requests, commits, branches, releases, and workflows via the GitHub REST and GraphQL APIs. Use this skill when us...
通过 GitHub REST 和GraphQL API 与仓库、议题、拉取请求、提交、分支、发布和工作流进行交互。在需要时使用此技能。
hith3sh hith3sh 来源
未分类 clawhub v1.0.5 2 版本 99765 Key: 无需
★ 6
Stars
📥 1,578
下载
💾 1
安装
2
版本
#latest

概述

GitHub

!GitHub

Access GitHub via the GitHub API with OAuth authentication. Manage repositories, issues, pull requests, commits, branches, releases, and workflows.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure GitHub API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect GitHub
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect GitHub

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│   GitHub API     │
│   (User Chat)   │     │   (OAuth)    │     │   (REST/GraphQL) │
└─────────────────┘     └──────────────┘     └──────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect GitHub    │                       │
         │                       │  4. Secure Token      │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │ GitHub   │
   │  File    │           │ Auth     │           │ Repos    │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for GitHub again."

Quick Start

# List repositories for the authenticated user
clawlink_call_tool --tool "github_list_repositories_for_the_authenticated_user" --params '{}'

# Get a specific repository
clawlink_call_tool --tool "github_get_a_repository" --params '{"owner": "owner", "repo": "repo-name"}'

# List issues in a repository
clawlink_call_tool --tool "github_list_issues_for_a_repository" --params '{"owner": "owner", "repo": "repo-name", "state": "open"}'

Authentication

All GitHub tool calls are authenticated automatically by ClawLink using the user's connected GitHub account.

No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every GitHub API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=github and connect GitHub.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for github in the list.

Verify Connection

clawlink_list_tools --integration github

Response: Returns the live tool catalog for GitHub.

Reconnect

If GitHub tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=github
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration github

Security & Permissions

  • Access is scoped to repositories and resources accessible to the connected GitHub account.
  • All write operations require explicit user confirmation. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
  • Destructive actions (deleting issues, closing PRs, removing collaborators) are marked as high-impact and must be confirmed.
  • Workflow triggers and deployments affect external systems — always confirm before executing.

Tool Reference

Repositories

ToolDescriptionMode
-------------------------
github_list_repositories_for_the_authenticated_userList all repos for the authenticated userRead
github_get_a_repositoryGet repository detailsRead
github_create_a_repositoryCreate a new repositoryWrite
github_update_a_repositoryUpdate repository settingsWrite
github_delete_a_repositoryDelete a repositoryWrite
github_list_repository_collaboratorsList repo collaboratorsRead

Issues

ToolDescriptionMode
-------------------------
github_list_issues_for_a_repositoryList issues with filteringRead
github_get_an_issueGet issue detailsRead
github_create_an_issueCreate a new issueWrite
github_update_an_issueUpdate issue fields (labels, assignee, state)Write
github_add_labels_to_an_issueAdd labels to an issueWrite
github_add_assignees_to_an_issueAdd assignees to an issueWrite

Pull Requests

ToolDescriptionMode
-------------------------
github_list_pull_requestsList PRs in a repositoryRead
github_get_a_pull_requestGet PR detailsRead
github_create_a_pull_requestCreate a new PRWrite
github_update_a_pull_requestUpdate PR fieldsWrite

Commits & Branches

ToolDescriptionMode
-------------------------
github_list_commitsList commits in a repositoryRead
github_get_a_commitGet commit detailsRead
github_list_branchesList branches in a repositoryRead
github_create_a_branchCreate a new branchWrite

Workflows

ToolDescriptionMode
-------------------------
github_list_repository_workflowsList workflows in a repoRead
github_list_workflow_runsList workflow runsRead
github_get_a_workflow_runGet workflow run detailsRead
github_cancel_workflow_runCancel an in-progress workflow runWrite

Releases

ToolDescriptionMode
-------------------------
github_list_releasesList releases in a repositoryRead
github_get_a_releaseGet release detailsRead
github_create_a_releaseCreate a new releaseWrite

Code Examples

List open issues in a repository

clawlink_call_tool --tool "github_list_issues_for_a_repository" \
  --params '{
    "owner": "owner",
    "repo": "repo-name",
    "state": "open",
    "sort": "created",
    "direction": "desc"
  }'

Create a new issue

clawlink_call_tool --tool "github_create_an_issue" \
  --params '{
    "owner": "owner",
    "repo": "repo-name",
    "title": "Bug: Login fails on mobile",
    "body": "Steps to reproduce: 1. Go to login 2. Enter credentials 3. Error shown",
    "labels": ["bug", "high-priority"]
  }'

Add labels to an issue

clawlink_call_tool --tool "github_add_labels_to_an_issue" \
  --params '{
    "owner": "owner",
    "repo": "repo-name",
    "issue_number": 123,
    "labels": ["needs-review", "bug"]
  }'

Create a pull request

clawlink_call_tool --tool "github_create_a_pull_request" \
  --params '{
    "owner": "owner",
    "repo": "repo-name",
    "title": "Fix login bug",
    "head": "fix/login-bug",
    "base": "main",
    "body": "Fixes #123 - Login fails on mobile devices"
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm GitHub is connected.
  2. Call clawlink_list_tools --integration github to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration github.
  5. If no GitHub tools appear, direct the user to https://claw-link.dev/dashboard?add=github.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → search → describe → call                      │
│                                                             │
│  Example: List issues → Get issue → Show details            │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                    │
│  list → get → describe → preview → confirm → call           │
│                                                             │
│  Example: Describe tool → Preview issue → User approves     │
│           → Execute create                                   │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, search, and get operations before writes when that reduces ambiguity.
  4. For writes or anything marked as requiring confirmation, call clawlink_preview_tool first.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • GitHub API rate limits apply. The number of calls depends on the connected account type (free, pro, or enterprise).
  • Some tools require specific OAuth scopes. If a tool fails with insufficient scope, verify the connection has the right permissions.
  • Repository names must use owner/repo format for owner and repo parameters.
  • Issues and PRs use different numbering systems within the same repository.

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration github.
Missing connectionGitHub is not connected. Direct the user to https://claw-link.dev/dashboard?add=github.
404 Not FoundRepository, issue, or PR does not exist. Verify owner, repo, and number.
403 ForbiddenRate limit exceeded or insufficient permissions.
422 UnprocessableInvalid request body or missing required fields. Verify tool schema.
Write rejectedUser did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly github.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

Related Skills


Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 2 个版本

  • v1.0.5 当前
    2026-06-09 16:10 安全 安全
  • v0.1.0
    2026-05-21 13:42 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Microsoft Excel

hith3sh
通过托管 OAuth 集成 Microsoft Excel API,实现对 OneDrive 中 Excel 工作簿、工作表、区域、表格和图表的读写。使用此技能...
★ 6 📥 1,773

OneDrive Files

hith3sh
通过 Microsoft Graph 浏览、搜索、下载和共享 OneDrive 文件,创建文件夹,上传文件以及管理文件操作。当用户需要这些功能时使用此技能。
★ 6 📥 1,715

Notion Assistant

hith3sh
搜索页面和数据库、更新内容、管理 Notion 工作区数据,支持从聊天中读取、创建或修改 Notion 页面...
★ 8 📥 1,771