npx claudepluginhub nsheaps/ai-mktpl --plugin scm-utilsThis skill uses the workspace's default tool permissions.
This skill helps identify which user account is authenticated for GitHub CLI (`gh`) and Git operations. Use this to troubleshoot authentication issues, verify the correct account is in use, or understand how credentials are configured.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
This skill helps identify which user account is authenticated for GitHub CLI (gh) and Git operations. Use this to troubleshoot authentication issues, verify the correct account is in use, or understand how credentials are configured.
| Method | Command | Shows |
|---|---|---|
| GitHub CLI | gh auth status | Active gh account, auth method |
| HTTPS credentials | git credential fill | Stored username/password for HTTPS |
| SSH connection | ssh -T git@github.com | SSH key owner |
| Token verification | GH_TOKEN=... gh auth status | Token owner |
gh)gh auth status
Example output:
github.com
✓ Logged in to github.com account octocat (/home/user/.config/gh/hosts.yml)
- Active account: true
- Git operations protocol: https
- Token: ghp_************************************
- Token scopes: 'gist', 'read:org', 'repo', 'workflow'
gh auth status --hostname github.example.com
gh config list
Shows settings like git_protocol, editor, and prompt.
To see who a specific token belongs to:
GH_TOKEN="your_token_here" gh auth status
This is useful when you have a token (e.g., from environment variables or CI) and need to verify which account it authenticates as.
gh auth token
Returns the raw token for the current account.
echo "protocol=https
host=github.com" | git credential fill
Example output:
protocol=https
host=github.com
username=octocat
password=ghp_xxxxxxxxxxxxxxxxxxxx
echo "protocol=https
host=gitlab.com" | git credential fill
echo "url=https://github.com" | git credential fill
Credentials may be stored in different locations depending on the credential helper:
| Helper | Storage Location |
|---|---|
store | ~/.git-credentials (plaintext) |
cache | In-memory (temporary) |
osxkeychain | macOS Keychain |
manager | Windows Credential Manager |
manager-core | Git Credential Manager |
Check configured helper:
git config --get credential.helper
ssh -T git@github.com
Successful output:
Hi octocat! You've successfully authenticated, but GitHub does not provide shell access.
The username shown is the GitHub account associated with your SSH key.
ssh -vT git@github.com
Shows which key file is being used for authentication.
# GitLab
ssh -T git@gitlab.com
# Output: Welcome to GitLab, @username!
# Bitbucket
ssh -T git@bitbucket.org
# Output: authenticated via ssh key.
echo "protocol=ssh
host=github.com" | git credential fill
Note: SSH typically uses key-based auth, so this may not return credentials.
If you have multiple GitHub accounts:
# List all authenticated accounts
gh auth status
# Switch between accounts
gh auth switch
When HTTPS and SSH credentials point to different accounts:
Check which protocol Git is using:
git config --get remote.origin.url
URLs starting with https:// use HTTPS credentials
URLs starting with git@ use SSH keys
To see what permissions a token has:
gh auth status
Look for "Token scopes" in the output.
Based on the argument ($ARGUMENTS), check the relevant authentication method:
gh or no argument: Run gh auth status and gh config listgit or https: Run the git credential fill command for HTTPSssh: Run ssh -T git@github.comall: Run all checks and summarize which accounts are configuredAfter running commands, summarize: