/chronoai-service-manual-bundle:github-via-nyxidfrom chronoai-service-manual-bundle
Operate a user's GitHub account through NyxID's credential-brokering proxy (service slug api-github) — read and write repositories, files, issues, pull requests, commits, branches, Actions, gists and anything else the GitHub REST API exposes, all on the user's behalf and without ever handling a raw token. NyxID injects the user's GitHub credential server-side. Use when an agent needs to read from or act on GitHub for a user who has connected their GitHub account in NyxID.
Ships in chronoai-service-manual-bundle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill lets an AI agent act on a user's GitHub account using the GitHub REST API — read repos, open issues and pull requests, commit files, trigger Actions, etc. — on the user's behalf.
The one premise: the agent never holds a GitHub token. Every call goes through
NyxID's credential-brokering proxy for the connected service api-github. NyxID
stores the user's GitHub credential (connected via OAuth — "the GitHub account the user
bound in NyxID") encrypted at rest, strips any client Authorization header, injects the
GitHub credential server-side, and forwards the request to https://api.github.com. You
only ever send your NyxID bearer; you never see, request, or log the GitHub token.
What "operate GitHub" really means here: anything the GitHub REST API allows and that the OAuth scopes granted to the
api-githubconnection permit. The ceiling is the granted scopes, not the entire API surface (see Scopes & permissions).
Before the first call, confirm the user has the api-github service connected in NyxID.
List the user's connected services and check for the slug api-github:
nyxid service list --output json → look for an entry with "slug": "api-github".GET https://nyx-api.chrono-ai.fun/api/v1/services with Authorization: Bearer <NYXID_TOKEN>.If api-github is not present, the user must connect it once (one-click OAuth to their
own GitHub account). Tell them to run:
nyxid service add api-github --oauth
To grant write/admin capabilities up front, request extra scopes at connect time, e.g.:
nyxid service add api-github --oauth --scope "repo,workflow,read:org,gist"
Do not ask the user to paste a GitHub token into chat — the OAuth flow handles it.
(If broader, user-controlled scopes are needed, the api-github-pat service — a
user-supplied Personal Access Token — is the fallback; same proxy, slug api-github-pat.)
Always call through the NyxID proxy for slug api-github. The path you send is
appended to the service base URL https://api.github.com, so paths are relative and
standard GitHub REST v3 — e.g. /user, /repos/{owner}/{repo}/issues. Do not put a host
or a GitHub token in the request.
Use whichever proxy mechanism your runtime gives you — all three hit the same proxy:
a) In-agent NyxID proxy tool (e.g. a nyxid_proxy workflow tool, or the NyxID MCP
proxy tool): call it with service = api-github, the HTTP method, the relative path,
and an optional JSON body.
b) Raw HTTP (any runtime that holds a NyxID bearer):
{METHOD} https://nyx-api.chrono-ai.fun/api/v1/proxy/s/api-github/{path}
Authorization: Bearer <NYXID_TOKEN>
Content-Type: application/json # for write bodies
c) NyxID CLI:
nyxid proxy request api-github /user -m GET
nyxid proxy request api-github /repos/OWNER/REPO/issues -m POST \
-d '{"title":"Bug: ...","body":"..."}'
Recommended GitHub content headers (optional — NyxID handles auth, you set content):
Accept: application/vnd.github+json and X-GitHub-Api-Version: 2022-11-28.
Paths are relative to https://api.github.com. {owner}/{repo} and {number} are
placeholders.
| Goal | Method & path |
|---|---|
| Identify the connected user | GET /user |
| List the user's repos | GET /user/repos?per_page=100&sort=updated |
| Get a repo | GET /repos/{owner}/{repo} |
| List branches | GET /repos/{owner}/{repo}/branches |
Read a file (base64 in .content) | GET /repos/{owner}/{repo}/contents/{path}?ref={branch} |
| List commits | GET /repos/{owner}/{repo}/commits?sha={branch}&per_page=30 |
| List issues | GET /repos/{owner}/{repo}/issues?state=open |
| List pull requests | GET /repos/{owner}/{repo}/pulls?state=open |
| Search repos / issues / code | GET /search/repositories?q=... · GET /search/issues?q=... · GET /search/code?q=... |
| Check rate limit (free) | GET /rate_limit |
| Goal | Method & path | Minimal body |
|---|---|---|
| Open an issue | POST /repos/{owner}/{repo}/issues | {"title":"...","body":"...","labels":[],"assignees":[]} |
| Comment on issue/PR | POST /repos/{owner}/{repo}/issues/{number}/comments | {"body":"..."} |
| Create or update a file | PUT /repos/{owner}/{repo}/contents/{path} | {"message":"...","content":"<base64>","branch":"main","sha":"<existing-sha-if-updating>"} |
| Create a branch (git ref) | POST /repos/{owner}/{repo}/git/refs | {"ref":"refs/heads/<name>","sha":"<base-commit-sha>"} |
| Open a pull request | POST /repos/{owner}/{repo}/pulls | {"title":"...","head":"<branch>","base":"main","body":"..."} |
| Merge a pull request | PUT /repos/{owner}/{repo}/pulls/{number}/merge | {"merge_method":"squash"} |
| Create a gist | POST /gists | {"description":"...","public":false,"files":{"a.txt":{"content":"..."}}} |
| Trigger a workflow | POST /repos/{owner}/{repo}/actions/workflows/{id}/dispatches | {"ref":"main","inputs":{}} |
| Star a repo | PUT /user/starred/{owner}/{repo} | (empty) |
Updating a file is read-then-write: GET .../contents/{path} to obtain the current
blob sha, then PUT with that sha and the new base64 content. Omitting sha on an
existing file returns 409 Conflict.
Creating a branch is two steps: GET /repos/{owner}/{repo}/git/ref/heads/{base} for the
base commit sha, then POST /git/refs with refs/heads/<new-name>.
per_page (max 100) and page; follow the Link response header
rel="next" until absent. Search endpoints cap at 1000 results total.GET /rate_limit is free.
Watch X-RateLimit-Remaining; on 403/429 with a Retry-After header, back off for
that many seconds before retrying. Avoid tight polling loops.If-None-Match: <etag> to get cheap 304 Not Modified
responses that don't count against the limit.The real capability ceiling is the OAuth scopes granted when the user connected
api-github, not the full API. Typical needs:
| To do this | Needs scope |
|---|---|
| Read/write private repos & contents | repo |
| Trigger/manage Actions | workflow |
| Read org membership/teams | read:org |
| Create/manage gists | gist |
| Delete a repo | delete_repo |
If a call fails for lack of scope, don't work around it — tell the user which scope is missing and how to grant it:
nyxid service add api-github --oauth --scope "repo,workflow" # re-consent with more scopes
…or fall back to the PAT connection (nyxid service add api-github-pat, then call slug
api-github-pat) when they need scopes their OAuth app can't grant.
| Status | Meaning | What to do |
|---|---|---|
| 401 | NyxID couldn't inject a valid GitHub credential | User must (re)connect api-github (nyxid service add api-github --oauth) |
| 403 | Missing scope or rate limit | Read the message + X-RateLimit-Remaining; if scope, see §5; if rate, back off per Retry-After |
| 404 | Resource missing or token can't see it | GitHub returns 404 for private resources the scope can't reach — verify the path, then suspect a missing scope |
| 409 | Conflict | Stale sha on a file update — re-GET the blob sha and retry |
| 422 | Validation failed | Inspect errors[] (e.g. duplicate ref, invalid head/base) and fix the body |
| 429 | Secondary rate limit | Back off per Retry-After; serialize bursty writes |
GET /search/issues?q=...) to avoid duplicates.nyxid service add ... --scope remedy instead of silently failing.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
12 skills in this plugin
/aevatar-feasibility-advisorDecide — honestly — whether a thing the user wants to build on Aevatar is possible, what its prerequisites are, or why it cannot be done, BEFORE anyone starts building. Use this first whenever a user describes a goal rather than a concrete artifact — "can aevatar do X", "I want a bot that…", "build me something that posts to Twitter / reads my GitHub / replies on Telegram", "is it possible to…", "automate … every day". It teaches the one hard premise (every third-party capability is brokered by NyxID), the two distinct surfaces (outbound connector vs inbound channel), how to check what is actually connectable, the prerequisite for each capability class, what is host-gated (and so not self-serve), and what is genuinely impossible without new NyxID/Aevatar platform work — so you can negotiate scope and give the user a straight answer plus next steps instead of over-promising. It scopes; it does not build (hand off to workflow-authoring / team-builder / service-publisher / scheduler)./aevatar-platform-mapEntry point, panorama, and router for the entire Aevatar skill family — load this FIRST whenever someone wants to build, run, publish, schedule, or operate anything on Aevatar ("create an agent team", "make a workflow / member", "publish or bind a service", "register it with NyxID", "set up a recurring / cron run", "invoke my service"), wants to know whether something is even possible ("can Aevatar do X?", "能不能用 aevatar 实现"), or just wants to know what Aevatar can do. It teaches the object model (scope → team → member[workflow|script|gagent] → service → schedule), how to authenticate as a NyxID-bearer REST client, how to resolve your scope, and the two caller modes (client REST vs in-session server-side tools). It does not do the work itself — it routes you to the right companion skill (feasibility-advisor, workflow-authoring, team-builder, service-publisher, scheduler, plus diagnostics probes and the safety-net fallback), held together by the shared `aevatar` tag.npx claudepluginhub chronoaiproject/nyx-skills --plugin chronoai-service-manual-bundle