github-openapi-skill
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
uxcis installed and available inPATH.ghis installed and already authenticated withgh 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
-
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
-
Inspect operation schema first:
github-openapi-cli get:/user -hgithub-openapi-cli get:/repos/{owner}/{repo} -hgithub-openapi-cli get:/repos/{owner}/{repo}/issues -h
-
Execute reads before writes:
github-openapi-cli get:/usergithub-openapi-cli get:/repos/{owner}/{repo} owner=holon-run repo=uxcgithub-openapi-cli get:/repos/{owner}/{repo}/issues owner=holon-run repo=uxc state=open per_page=10github-openapi-cli get:/repos/{owner}/{repo}/pulls owner=holon-run repo=uxc state=open per_page=10
-
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 touxc 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
More from holon-run/uxc
playwright-mcp-skill
Run browser automation through @playwright/mcp over UXC stdio MCP, with daemon-friendly session reuse and safe action guardrails. Use when tasks need deterministic page navigation, DOM snapshots, and scripted browser interaction from CLI.
49uxc
Discover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute OpenAPI, GraphQL, gRPC, MCP, or JSON-RPC calls via one CLI contract.
44dune-mcp-skill
Use Dune MCP through UXC for blockchain table discovery, SQL query creation/execution, execution result retrieval, and visualization with help-first schema inspection, explicit auth binding, and guarded credit-consuming operations.
28context7-mcp-skill
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Python libraries, or other programming languages.
26etherscan-mcp-skill
Use Etherscan MCP through UXC for address balance checks, token holder analysis, transaction inspection, and contract lookup tasks. Use when tasks need Etherscan MCP tools for onchain investigation with help-first schema inspection, bearer-key auth, and tier-aware read-first handling.
25notion-mcp-skill
Operate Notion workspace content through Notion MCP using the UXC CLI, including search, fetch, users/teams lookup, page/database creation and updates, and comments. Use when tasks require calling Notion tools over MCP with OAuth (authorization_code + PKCE), especially when safe write controls and JSON-envelope parsing are required.
11