github-codex-key
Skill8 starsChanged 5 months agoMITView on GitHub
Use when working with GitHub from Codex or another coding agent, including testing SSH auth, cloning, pulling, pushing, setting git remotes, or retrieving a configured public SSH key.
- Reads credentials
- Commits and pushes
In this repository58 other files it gives its agents.
- skills/writing-polish/humanizer/AGENTS.mdAGENTS.md
- frontend-designSkill
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- github-ssh-key-pushSkill
- implementSkill
- improve-codebase-architectureSkill
- prototypeSkill
- setup-matt-pocock-skillsSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- huggingface-accelerateSkill
- quantizing-models-bitsandbytesSkill
- gpuboxSkill
- evaluating-llms-harnessSkill
- ml-training-recipesSkill
- peft-fine-tuningSkill
- experiment-tracking-swanlabSkill
- unslothSkill
- matlab-add-awgnSkill
- matlab-agentic-toolkit-setupSkill
- matlab-build-appSkill
- matlab-create-live-scriptSkill
- matlab-debuggingSkill
- matlab-design-digital-filterSkill
- matlab-display-imageSkill
- matlab-install-productsSkill
- matlab-list-productsSkill
- matlab-map-database-objectsSkill
- matlab-model-serdes-systemsSkill
- matlab-modernize-codeSkill
- matlab-read-databaseSkill
- matlab-review-codeSkill
- matlab-testingSkill
- matlab-use-duckdbSkill
- matlab-write-databaseSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- teachSkill
- writing-great-skillsSkill
- ara-compilerSkill
- ara-research-managerSkill
- research-paper-notesSkill
- ara-rigor-reviewerSkill
- brainstorming-research-ideasSkill
- creative-thinking-for-researchSkill
- academic-plottingSkill
- ml-paper-writingSkill
- paper-spineSkill
- humanizerSkill
- prompt-optimizerSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 8
Use an SSH key dedicated to coding-agent GitHub operations.
- Distinctive: line 25
When the user asks for the key to add to GitHub, show only the public key:
- Distinctive: line 58
If Git does not pick the configured identity, force it for one command:
- Distinctive: line 82
Add the public key to GitHub.
- Distinctive: line 90
Never print, paste, upload, commit, or summarize private key contents.
- Very specific: line 91
Never commit .ssh/, tokens, .env, or credential helper files.
- Distinctive: line 92
Use repository-specific deploy keys only when that access model is intended.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Codex Key
Use an SSH key dedicated to coding-agent GitHub operations. Keep the private key
local, never print it, and only share the .pub public key when configuring
GitHub.
Recommended Key Paths
Choose a local key path and keep it consistent. For example:
- Private key:
~/.ssh/<agent_github_key> - Public key:
~/.ssh/<agent_github_key>.pub - SSH host config:
~/.ssh/config
These names are examples. If you publish or share this skill, do not include machine-specific paths, account names, or private key contents.
Retrieve Public Key
When the user asks for the key to add to GitHub, show only the public key:
cat ~/.ssh/<agent_github_key>.pubTest GitHub Authentication
Use:
ssh -T git@github.comA successful authentication usually prints a message like:
Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.The command may still exit nonzero because GitHub does not provide shell access.
Git Remote Usage
Prefer SSH remotes:
git clone git@github.com:OWNER/REPO.git
git remote set-url origin git@github.com:OWNER/REPO.git
git pull
git pushIf Git does not pick the configured identity, force it for one command:
GIT_SSH_COMMAND="ssh -i ~/.ssh/<agent_github_key> -o IdentitiesOnly=yes" git pushIf Auth Fails
- Confirm the key files exist.
ls -l ~/.ssh/<agent_github_key> ~/.ssh/<agent_github_key>.pub- Confirm
~/.ssh/confighas an entry similar to:
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/<agent_github_key>
IdentitiesOnly yes- Add the public key to GitHub.
GitHub Settings -> SSH and GPG keys -> New SSH key
- Retest with
ssh -T git@github.com.
Safety Rules
- Never print, paste, upload, commit, or summarize private key contents.
- Never commit
.ssh/, tokens,.env, or credential helper files. - Use repository-specific deploy keys only when that access model is intended.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

