- Home
- Skills
- APIs & Backend
- GitHub API: Drive GitHub Without a Git Credential
More screenshots
Works with the AI Agents you already use
GitHub API: Drive GitHub Without a Git Credential
Drive GitHub's REST API as the user: repos, pull requests, issues, releases, and the git-data push trick that commits without a git credential.
$5
GitHub API: Drive GitHub Without a Git Credential
Example session with this skill installed
Our git credential expired mid-task and we need to land three changed files on main. Push them through the API and sync the clone.
- Read your context and instructions
- Compiled the github api
Push without a git credential — executed with the skill
Head read first: GET /git/refs/heads/main — SHA recorded. Blobs created for the three changed files (base64 content); one blob 400'd transiently and was retried once — the endpoint is known-flaky — and succeeded. Tree created with base_tree = the head SHA, so the update is incremental, not a rebuild. Commit created with the new tree and the head as parent; the head was re-read before the commit because the push spanned several minutes and a colleague could have pushed.
Branch moved with PATCH /git/refs/heads/main — the plural path, not the singular: reading a ref uses /git/ref/…, updating needs /git/refs/…, and the wrong path 404s looking like the branch does not exist. Verified: fetch and compare — the remote tree matches the local tree exactly. Local clone synced: git fetch && git reset --hard origin/main. The commit SHA differs from what a local commit would have produced (committer metadata differs); the tree is identical, and the tree is what matters. Rubric score: 9/10 — one point held back because the rate-limit header was not read during the push; the call count was small, but the habit is recorded as the follow-up.
Connects securely to your tools. The creator never sees your data.
About this skill
This skill covers doing GitHub work over the REST API as the user: reading repo state, managing PRs and issues, and the important special case — pushing commits when the normal git credential path is broken. Everyday reads use the fastest endpoint for each question: repo state, branch heads without a clone, the compare endpoint for "what changed" in one call, list endpoints for triage dashboards, and the search API as the join the REST endpoints do not give you. The git-data push is a four-step dance — blobs, tree with base_tree, commit parented on the current head, branch moved with the plural ref path — including the quirks that burn people: the singular path reads a ref but the plural path updates it, the blob endpoint's transient 400s, and the head that moved mid-push.
File operations cover put-file for large content (with the current SHA as concurrency control) and magic-checking binary downloads. The PR lifecycle gates merges on the actual check runs for the exact commit, never on stale green. Rate limits, pagination with per_page=100 and Link headers, and the 429 hard stop are built in. A worked example pushes three files with an expired credential end to end, with a scoring rubric gating the work at 8/10.
- Authenticated requests are restricted to
api.github.com— nothing else. - A 401 or 403 is diagnosed as a request problem first; only a well-formed request that is still rejected escalates to a credential reconnect.
- A 429 is a hard stop — report partial progress, do not retry-loop.
- The push path needs the branch head re-read before committing; a stale parent overwrites other people's work.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
Requires