Alex72-py/termux-elite / skills/git-credentials
git-credentials
UnverifiedDiagnose git clone, fetch, and push authentication failures from Termux without exposing tokens or private keys (HTTPS tokens, SSH keys, host key prompts, wrong account, missing scopes). Use for Authentication failed, HTTP 403, Permission denied (publickey), repeated credential prompts, or key permission warnings. Do NOT use for network outages, wrong remote names, or non-authentication rejections such as non-fast-forward.
Git Credentials
Purpose
Diagnose git clone, fetch, and push authentication failures in Termux without ever exposing a token or private key.
When to use
Authentication failed, HTTP 403, Permission denied (publickey), Host key verification failed, repeated credential prompts, UNPROTECTED PRIVATE KEY FILE, or Permission to X denied to Y.
When NOT to use
Network outages (termux-network), wrong remote names, or non-authentication push rejections such as non-fast-forward or protected-branch rules that name no credential problem.
Preconditions
Run sh scripts/check-git-auth.sh. It redacts credentials embedded in remote URLs, lists key file names and modes only, and never reads key contents. If a remote URL embeds a token (https://user:secret@host/...), do not repeat it; that is itself a finding to fix.
Decision tree
- HTTPS remote: GitHub does not accept account passwords for git. Use a personal access token with minimal scope or
gh auth loginandgh auth setup-git.gh auth statusdoes not print the token. - HTTP 403 with a valid token: the token lacks
repo(or the fine-grained repository selection), the organization requires SSO authorization of the token, or the branch is protected. Permission to X denied to Y: the authenticated accountYis not the one with access. Check which identity the credential helper supplies.credential.helper storekeeps tokens in plaintext in~/.git-credentials. Report it as a finding and preferghas the helper.- SSH remote:
Permission denied (publickey). List key file names in~/.ssh(never contents), confirm the matching.pubis registered with the account, and testssh -T git@github.com. A successful GitHub test prints a greeting and exits with status 1; that is normal. UNPROTECTED PRIVATE KEY FILE:~/.sshshould be mode 700 and private keys 600. Keys on shared storage cannot hold these modes; keep them under$HOME(seestorage-permissions).Host key verification failed: compare the fingerprint with the host's published one before accepting. Never setStrictHostKeyChecking=noas a fix.- Works only sometimes: Termux does not start an
ssh-agent. Name the key withIdentityFilein~/.ssh/config, or start an agent per session. - Use one method per remote. Do not mix an embedded token and SSH on one repository.
Example
- Situation: git push returns HTTP 403 although a token is configured.
- Without the skill: Embeds the token in the remote URL and enables
credential.helper store. - With the skill: Runs the redacting helper, checks token scope and SSO authorization, switches to
gh auth loginwithgh auth setup-git, and reports any plaintext credential file as a finding.
Safety
Generating keys, editing ~/.ssh/config, storing credentials, and changing remotes mutate state and need confirmation. Never paste tokens or private keys into chat, logs, commits, or URLs. Only a .pub file is safe to display.
Verification
Run the read-only git ls-remote origin and confirm refs list without a prompt. Push only when the user asks.
Rollback
Keep the old remote URL and config lines in the report. Revoke any token or key that was exposed during the session at the provider.
Handoffs
storage-permissionswhen keys sit on shared storage.termux-networkwhen the host is unreachable.github-actionswhen the real task is a CI failure.termux-sshdfor inbound login, which is a different problem from git auth.
Report
Remote scheme and host, the failing layer (token, scope, account, key, permissions, host key), the one change proposed, and the git ls-remote result.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |