holon-run/uxc

github-openapi-skill

Operate GitHub REST API through UXC with the official OpenAPI schema, explicit gh-to-uxc auth import, and read-first guardrails for repo, issue, pull request, and event workflows.

First seen Apr 20, 2026

Installation

$ npx skills add holon-run/uxc --skill github-openapi-skill

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from holon-run/uxc · top by installs.

npx skills add holon-run/uxc

Browse all from holon-run/uxc

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 113
License LICENSE
Default branch main
Open issues 8
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,593 B
  • docs SUMMARY.md 207 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 9 installs

SKILL.md

GitHub REST API Skill

Use this skill to run GitHub REST API operations through uxc + OpenAPI.

Reuse the uxc skill for shared execution, auth, and error-handling guidance.

Prerequisites

  • uxc is installed and available in PATH.
  • gh is installed and already authenticated with gh auth login.
  • Network access to https://api.github.com.
  • Access to the official GitHub REST OpenAPI schema URL:

- https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json

Authentication

Preferred Path: Import local gh auth into uxc

Import the current GitHub CLI token into a local uxc bearer credential and create a standard GitHub API binding:

uxc auth credential import github --from gh

This creates:

  • credential: github
  • binding: github-api
  • bound host: https://api.github.com

Verify the binding:

uxc auth binding match https://api.github.com/repos/holon-run/uxc

Optional Path: Manual bearer token

If gh is unavailable, configure a PAT manually:

uxc auth credential set github \
  --auth-type bearer \
  --secret-env GITHUB_TOKEN

uxc auth binding add \
  --id github-api \
  --host api.github.com \
  --path-prefix / \
  --scheme https \
  --credential github \
  --priority 100

Do not commit GitHub tokens or hardcode them in this skill or repository.

Core Workflow

  1. Use fixed link command by default:

- command -v github-openapi-cli - If missing, create it: uxc link github-openapi-cli https://api.github.com --schema-url https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json - github-openapi-cli -h

  1. Inspect operation schema first:

- github-openapi-cli get:/user -h - github-openapi-cli get:/repos/{owner}/{repo} -h - github-openapi-cli get:/repos/{owner}/{repo}/issues -h

  1. Execute reads before writes:

- github-openapi-cli get:/user - github-openapi-cli get:/repos/{owner}/{repo} owner=holon-run repo=uxc - github-openapi-cli get:/repos/{owner}/{repo}/issues owner=holon-run repo=uxc state=open perpage=10 - github-openapi-cli get:/repos/{owner}/{repo}/pulls owner=holon-run repo=uxc state=open perpage=10

  1. Treat mutations as explicit-confirmation operations:

- github-openapi-cli post:/repos/{owner}/{repo}/issues '{"owner":"holon-run","repo":"uxc","title":"Example issue"}'

Guardrails

  • Keep automation on JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • github-openapi-cli <operation> ... is equivalent to

uxc https://api.github.com --schema-url https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json <operation> ....

  • Prefer read operations before write operations.
  • Treat issue creation, issue edits, comments, labels, repo administration, releases, and workflow-trigger endpoints as write/high-risk operations; require explicit user confirmation before execution.

References

  • Usage patterns: references/usage-patterns.md
  • GitHub REST OpenAPI schema:

https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json

  • GitHub REST docs: https://docs.github.com/rest