agentleFS
itsthestrangeritsthestranger/strangeClaw/skills/github/SKILL.md

github

Skill4 starsChanged 3 months agoMITView on GitHub

Work with the GitHub REST API using configured auth, issues, pull requests, and repository contents.

193 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • friuns2Skill

    update-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

  • jiulingyunSkill

    BlueBubbles

    为Clawdbot构建或更新BlueBubbles外部通道插件(扩展包,REST发送/探测,webhook入站)。

    Also in 25 projects that use this

  • friuns2Skill

    discord-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

  • clawdbotSkill

    openclaw-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

  • clawdbotSkill

    plugin-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-aiSkill

    taskflow-inbox-triage

    Also in 7 projects that use this

  • +2 more from friuns2

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when a task requires interacting with the GitHub REST (or, for a few gaps in REST, GraphQL) API: creating issues, listing or …

    line 11
  2. Very specific:

    Never set Authorization or other protected auth headers directly.

    line 21
  3. Very specific:

    Use http_request with integration: "github" for private repositories, writes, and authenticated reads.

    line 28
  4. Very specific:

    Follow pagination (per_page/page, the Link header) only until the requested data is complete.

    line 32
  5. Very specific:

    If broker returns policy_denied, include requested_method, requested_url, and reason in your report and do not retry the same denied …

    line 36
  6. Very specific:

    Create an issue (POST /repos/{owner}/{repo}/issues):

    line 55
  7. Very specific:

    Read repository contents (GET /repos/{owner}/{repo}/contents/{path}, omit {path} to list the root) — see references/contents-write.md for …

    line 85

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub API

When To Use

Use this skill when a task requires interacting with the GitHub REST (or, for a few gaps in REST, GraphQL) API: creating issues, listing or reviewing pull requests, reading or writing repository contents, inspecting Actions runs, searching, or diagnosing GitHub API errors.

Requirements

  • The http_request tool with integration: "github" configured. If github is not listed under Configured integrations in execution context, report inability with the broker reason instead of attempting the call.
  • Never set Authorization or other protected auth headers directly; credentials are injected by the host-side broker. Never ask the user to paste raw API tokens into task text.

Workflow

  1. Identify the GitHub owner, repository, and operation; ask for missing owner/repo/path/branch details before calling the API.
  2. Use http_request with integration: "github" for private repositories, writes, and authenticated reads. Base URL is https://api.github.com.
  3. Consult the reference table below for the exact request shape once you know which kind of operation this is.
  4. Follow pagination (per_page/page, the Link header) only until the requested data is complete.
  5. Inspect status codes, response body message, and documentation_url fields on errors (see Errors below).
  6. If broker returns policy_denied, include requested_method, requested_url, and reason in your report and do not retry the same denied request. If it returns rate_limited, wait and retry once, or report the limitation when waiting is not appropriate.
  7. Summarize created issues, pull request lists, review outcomes, or file content findings.

Reference Table

Read references/... when...
pulls-and-reviews.md — creating/listing PRs, listing PR files, posting reviews or line comments, choosing line/side vs the legacy position field, toggling draft status, or enabling auto-merge.
contents-write.md — reading a file's SHA before a write, creating/updating/deleting one file via the Contents API, or creating a new branch.
actions.md — listing/inspecting workflow runs and jobs, re-running a workflow, or you were about to fetch logs/artifacts (read this first — that's not supported yet).
search.md — searching code, issues/PRs, repositories, or commits, including query-syntax qualifiers and the separate search rate limit.
git-data.md — committing changes to more than one file at once (blobs → tree → commit → ref), lower-level than the Contents API.

Core Endpoint Patterns

Create an issue (POST /repos/{owner}/{repo}/issues):

{
  "method": "POST",
  "url": "https://api.github.com/repos/<owner>/<repo>/issues",
  "integration": "github",
  "headers": {
    "Content-Type": "application/json"
  },
  "body": "{\"title\":\"Bug report\",\"body\":\"Steps to reproduce...\"}"
}

Optional issue fields include assignees, labels, and milestone when the user provides or asks for them.

List pull requests (GET /repos/{owner}/{repo}/pulls) — see references/pulls-and-reviews.md for creating, reviewing, and merging one:

{
  "method": "GET",
  "url": "https://api.github.com/repos/<owner>/<repo>/pulls?state=open&per_page=100",
  "integration": "github",
  "headers": {},
  "body": null
}

Read repository contents (GET /repos/{owner}/{repo}/contents/{path}, omit {path} to list the root) — see references/contents-write.md for writing or deleting a file:

{
  "method": "GET",
  "url": "https://api.github.com/repos/<owner>/<repo>/contents/<path>?ref=<branch_or_sha>",
  "integration": "github",
  "headers": {},
  "body": null
}

File response shape can be metadata JSON (with Base64 content) or raw text depending on accepted media type. Decode Base64 before reasoning over text.

Pagination

GitHub REST list endpoints commonly use per_page and page, and may include a Link response header with rel="next". Continue pagination only until the requested information is complete; call the Link next URL directly with the same integration.

Errors

  • 400: malformed query or payload. 401: integration credential invalid or missing. 403: insufficient permission, or a rate limit (see references/search.md for the search-specific limit). 404: resource missing or token lacks private-repo access. 409: merge/state conflict. 422: validation failed (often duplicate data or a stale SHA/ref). 429: rate limited; retry once with wait or report the limitation.

Report GitHub's message field and any documentation_url, but never echo credentials.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.