github-git
Git over HTTPS and the GitHub REST API using a fine-grained personal access token held by the DIME credential proxy. Covers cloning, fetching, pulling and pushing private and public repositories on github.com, and calling api.github.com for issues, pull requests, repository contents and the signed-in user. Use for ANY git operation against github.com and ANY request to api.github.com, including "clone my repo", "push this branch", "open a pull request", "list my GitHub issues", or a 403 from the credential proxy on a GitHub call. Read this BEFORE running git against github.com: a plain git command is refused by the proxy once this credential is enrolled.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- github-git
- metadata
- { "author": "tradeparadigm" }
- description
- Git over HTTPS and the GitHub REST API using a fine-grained personal access token held by the DIME credential proxy. Covers cloning, fetching, pulling and pushing private and public repositories on github.com, and calling api.github.com for issues, pull requests, repository contents and the signed-in user. Use for ANY git operation against github.com and ANY request to api.github.com, including "clone my repo", "push this branch", "open a pull request", "list my GitHub issues", or a 403 from the credential proxy on a GitHub call. Read this BEFORE running git against github.com: a plain git command is refused by the proxy once this credential is enrolled.
02 资源文件 2
- 脚本scripts/api.sh1.5 KB
- 脚本scripts/git.sh1.2 KB
03 SKILL.md 正文
GitHub
Your AGENTS.md already explains the placeholder mechanism in general. This
file covers only what is specific to GitHub.
What you hold
The user enrols the same fine-grained personal access token twice, because git and the API are on different hosts:
| Variable | Host | Used by |
|---|---|---|
CRED_GITHUB_GIT_GIT |
github.com |
scripts/git.sh |
CRED_GITHUB_API_REST |
api.github.com |
scripts/api.sh |
The names depend on what the user picked at enrolment. The scripts take any
CRED_GITHUB…_GIT and CRED_GITHUB…_REST variable. If only one of the two is
there, only that half works. Tell the user which one is missing.
gh is not installed. Do not install it.
Git
Run git through the script beside this file, in place of git:
sh scripts/git.sh clone https://github.com/OWNER/REPO.git
sh scripts/git.sh -C REPO push origin my-branch
sh scripts/git.sh -C REPO pull
Give the script's absolute path when you run it from another directory. It
takes the same arguments as git.
The script sends the placeholder as Basic auth on every request to
github.com. Plain git does not: it sends nothing until GitHub answers 401,
and the proxy answers an unauthenticated fetch or push with a 403 first, so
git never retries. Never put the placeholder in a remote URL or in a stored
git config. The script adds it per command.
Use HTTPS remotes. SSH does not go through the proxy and there is no key. Git LFS objects are not covered.
Commits need an author. If git commit complains, set one for the repository
with git config user.name and git config user.email, using what the user
tells you. Plain git is fine for local commands. Only commands that reach
github.com need the script.
REST API
TARGET=/user sh scripts/api.sh
TARGET='/repos/OWNER/REPO/pulls?state=open' sh scripts/api.sh
METHOD=POST TARGET=/repos/OWNER/REPO/pulls \
BODY='{"title":"…","head":"my-branch","base":"main","body":"…"}' sh scripts/api.sh
The script prints the response body and then HTTP <status> on its own line.
On stderr it prints the link header, which holds the next page's URL, and
the x-ratelimit-* headers.
TARGET is the path and query, without the host.
Never edit the scripts
A publish replaces them. If one does not work, change the smallest thing that makes your command run, run it, and tell the user in one line what you changed, so it can be fixed here.
When a call fails
| What you see | Causes, cheapest to check first |
|---|---|
403 from the proxy, body says placeholder_absent |
You ran plain git or curl in place of the script. Or GITHUB_GIT_CRED or GITHUB_REST_CRED names the wrong variable. Or the REST credential was enrolled on the Git environment, so every github.com page now needs the placeholder; ask the user to re-enrol it as Git. |
could not read Username for 'https://github.com': terminal prompts disabled from git, or 401 Bad credentials from the API |
The token is expired or revoked. Or the credential was enrolled with the other type, so the proxy never swaps it and GitHub sees the placeholder itself. Or it was enrolled on the wrong environment: git needs CRED_GITHUB_GIT_GIT and the API needs CRED_GITHUB_API_REST, and CRED_GITHUB_API_GIT or CRED_GITHUB_GIT_REST never works. |
Repository not found from git, or 404 from the API on a repository you know exists |
The token was not given that repository. GitHub answers 404 for a private repository the token cannot see. |
403 on push, Permission to OWNER/REPO denied |
The token has read access only. It needs Contents: read and write. |
403 Resource not accessible by personal access token |
The token lacks the permission for that endpoint, such as Pull requests or Issues. |
403 with rate limit in the body |
GitHub's rate limit. x-ratelimit-reset on stderr gives the reset time. |
no GitHub … credential in the environment from a script |
The user has not enrolled that half, or enrolled it on a custom environment under another name. Run env | grep '^CRED_GITHUB' and pass the right one as GITHUB_GIT_CRED or GITHUB_REST_CRED. |
several GitHub … credentials from a script |
More than one matches. Pick the one for the right host, CRED_GITHUB_GIT_GIT or CRED_GITHUB_API_REST, and pass it as GITHUB_GIT_CRED or GITHUB_REST_CRED. |
Report a permission failure to the user with the permission it needs. Do not work around it.
04 同仓库更多 Skills
example-api
A skill body that exists so the fixture is a complete app. It teaches nothing and is never published.
telegram-bot
Send messages, photos and files to Telegram through the user's own bot, using a bot token held by the DIME credential proxy. Covers finding the chats the bot can reach, posting to a private chat, group or channel, editing and deleting what it sent, and sending from a data feed. Use for ANY request to message, notify or alert the user on Telegram, "send this to my Telegram", "post alerts to my channel", or a 403 from the credential proxy on api.telegram.org.
paradigm-rfq-trader
Trigger institutional block trades via Paradigm's DRFQv2 flow. The workflow is venue-agnostic — resolve instruments, build the RFQ / order payload, benchmark, run a confirmation gate, submit, verify settlement. Per-venue specifics (fair-value sources, naming conventions, edge syntax, settlement checks) live in references/venues.md. In scope today: PRDX (Paradex, primary focus) and DBT (Deribit). Adding more DRFQv2 venues is a references/venues.md edit, not a skill-body change. Covers takers (build, benchmark, cross) and makers (poll, price, manage). Every state-changing action goes through an explicit confirmation gate. Needs both Paradigm credentials enrolled. Use when the user asks to "send a Paradigm block RFQ", "block-trade X BTC", "send a BTC straddle on Paradex / Deribit", "quote rfq_X", "hit the best bid", "cancel rfq_X". Does NOT cover pricing a structure without trading (its legs' current marks are paradigm-data-discovery's), small central-order-book trades, post-trade analysis (paradigm-block-analyst), historical tape (paradigm-data-discovery).
paradigm-options-recap
Options market recap for a requested or default window, invoked via /recap. Parses "/recap [asset] [options] [window]" (e.g. "/recap btc options 8h") and builds the fixed four-section recap — Snapshot, Biggest Print, Block Flow, Vol Surface — from bounded raw exchange venue files and source tapes, never from Dime hot files, read with the pod's AWS access. Use when the user types /recap or asks for a market recap, an options flow summary, "what happened in BTC options" or "last Xh of flow". A single question is not a recap: the biggest print across venues is paradigm-data-discovery's (paradigm-api reads only Paradigm's own tape), and the vol surface, one IV or one venue's data is paradigm-data-discovery's, as are dataset inventory, schema and historical lookups. The output format is fixed — always the same four sections in the same order.
paradigm-data-discovery
Catalog and query launcher for raw market data available to Dime in s3://dt-exchange-venue-data, s3://dt-paradigm-data, and s3://dt-paradex-data, read with the pod's AWS access. Use for data inventory, coverage, schema and historical analysis, for current venue market data (marks, IV, greeks, OI, funding, spot) on Deribit, OKX, Bybit and Bullish, and for recent block trades when the user has no Paradigm credentials enrolled (with them, paradigm-api reads the live tape). Explains the per-venue raw files and lets the model choose the bounded reads needed for the question. Does not cover account state, positions, vaults, or order placement.
paradigm-block-analyst
Cross-venue analysis of Paradigm RFQ block trades using live market data from Deribit, OKX, and Bybit. Invoked as `/analyze <rfq_id> <rfq description>`: resolves the rfq_id by searching the Paradigm trade tape via the paradigm-data-discovery skill (the daily execution partitions, keyed by RFQ_ID) for the cleared-block record, then fetches live marks, IVs, and greeks per venue, computes net greeks for multi-leg structures, benchmarks the fill vs mark, reports how much of the structure traded over 24h / 7d / 30d and where else it printed, reads whether the flow moved the vol surface, and outputs a concise analysis. Use when the user runs `/analyze <rfq_id> ...`, pastes a Paradigm block trade JSON, or asks to analyze, benchmark, or get market color on a Paradigm RFQ execution. Covers outright calls/puts (CL/PL), strangles (SN), straddles (ST), butterflies (BF), condors (CO), calendars (CA), risk reversals (RR), covered calls, and custom multi-leg combos (CM). Also handles perp combos. Reads the Paradigm trade tape from S3 with the pod's AWS access.