Common issues and solutions for MM Claude Code Commands.
- GitHub CLI Issues
- Authentication Problems
- Command Not Found
- Git Repository Issues
- Permission Errors
- Network Issues
- Common Error Messages
Symptoms:
- Error:
gh: command not found - Commands fail with "gh not recognized"
Solution:
Install the GitHub CLI for your platform:
Windows:
winget install --id GitHub.cli
# or
choco install gh
# or
scoop install ghmacOS:
brew install ghLinux:
# Debian/Ubuntu
sudo apt install gh
# Fedora/RHEL
sudo dnf install gh
# Arch
sudo pacman -S github-cliAfter installation, verify:
gh --versionSymptoms:
- Commands behave unexpectedly
- Missing features or options
Solution:
Update GitHub CLI:
Windows:
winget upgrade --id GitHub.cli
# or
choco upgrade ghmacOS:
brew upgrade ghLinux:
# Debian/Ubuntu
sudo apt update && sudo apt upgrade gh
# Fedora/RHEL
sudo dnf upgrade ghVerify update:
gh --versionSymptoms:
- Error:
You are not authenticated with GitHub ghcommands fail with authentication errors
Solution:
Authenticate with GitHub:
gh auth loginFollow the prompts:
- Choose GitHub.com
- Select HTTPS as protocol (recommended)
- Authenticate via web browser (easiest) or paste a token
Verify authentication:
gh auth statusExpected output:
✓ Logged in to github.com as [username]
✓ Git operations protocol: https
✓ Token scopes: 'repo', 'read:org', 'gist'
Symptoms:
- Error:
Resource not accessible by integration - Some operations fail while others work
Solution:
Your token may lack required scopes. Re-authenticate with proper scopes:
gh auth refresh -s repo -s read:org -s gistOr login again:
gh auth logout
gh auth loginSymptoms:
- Previously working commands now fail
- Authentication errors appear suddenly
Solution:
Refresh your authentication:
gh auth refreshIf that doesn't work, login again:
gh auth logout
gh auth loginSymptoms:
/issueor other commands don't work- Claude doesn't recognize the command
Solution:
-
Verify command file exists:
ls .claude/commands/
You should see
issue.mdor other command files. -
Check file location: Commands must be in
.claude/commands/directory relative to your project root. -
Install commands:
# If not already present, create directory and copy commands mkdir -p .claude/commands cp /path/to/mm-claude-code-commands/.claude/commands/* .claude/commands/
-
Verify file permissions:
chmod 644 .claude/commands/*.md -
Restart Claude Code (if necessary)
Symptoms:
- Commands work in one project but not another
- "Command not found" in specific directories
Solution:
Slash commands are project-specific. Each project needs its own .claude/commands/ directory:
# In your project directory
mkdir -p .claude/commands
# Copy commands from this repository
cp /path/to/mm-claude-code-commands/.claude/commands/* .claude/commands/Or clone and copy:
git clone https://github.com/mccloudmedia/mm-claude-code-commands.git
cp -r mm-claude-code-commands/.claude .Symptoms:
- Error:
fatal: not a git repository /issue workor git commands fail
Solution:
Initialize git repository:
git initSet up initial commit:
git add .
git commit -m "Initial commit"Symptoms:
- Error:
No GitHub remotes found - GitHub operations fail
Solution:
-
Check current remotes:
git remote -v
-
Add GitHub remote:
git remote add origin https://github.com/username/repo.git
-
Or create new GitHub repo:
gh repo create my-repo --private --source=. --remote=origin
Symptoms:
- Error:
fatal: A branch named 'issue-5' already exists /issue workfails
Solution:
-
Check existing branches:
git branch
-
Switch to existing branch:
git checkout issue-5
-
Or delete and recreate:
git branch -D issue-5 /issue work 5
Symptoms:
- Error:
You don't have permission to access this repository - Can't create/modify issues
Solution:
-
Verify repository access:
- You must be a collaborator on the repository
- Or have write access via organization membership
-
Check with repository owner:
- Ask to be added as a collaborator
- Or fork the repository
-
Verify authentication:
gh auth status
Symptoms:
- Can't create/modify files
- Permission denied errors
Solution:
Linux/macOS:
# Fix command file permissions
chmod 644 .claude/commands/*.md
# Fix directory permissions
chmod 755 .claude/commandsWindows:
- Right-click directory → Properties → Security
- Ensure you have write permissions
Symptoms:
- Commands hang or timeout
- Error:
Connection timed out
Solution:
-
Check internet connection:
ping github.com
-
Check GitHub status:
-
Try with different network:
- Switch to different WiFi
- Try mobile hotspot
- Disable VPN temporarily
-
Configure proxy (if needed):
# Set proxy for git git config --global http.proxy http://proxy.example.com:8080 # Set proxy for gh export HTTP_PROXY=http://proxy.example.com:8080 export HTTPS_PROXY=http://proxy.example.com:8080
Symptoms:
- Error:
API rate limit exceeded - Commands fail after many requests
Solution:
-
Check rate limit status:
gh api rate_limit
-
Wait for reset:
- Authenticated: 5,000 requests/hour
- Unauthenticated: 60 requests/hour
- Check
resettime in rate_limit response
-
Ensure you're authenticated:
gh auth status
Authenticated users get higher rate limits.
Possible Causes:
- Issue number doesn't exist
- Repository doesn't exist
- Wrong repository context
Solutions:
- Verify issue exists:
/issue list - Check repository:
gh repo view - Ensure you're in correct directory
Possible Causes:
- Authentication issues
- Insufficient permissions
- Invalid label names
Solutions:
- Check authentication:
gh auth status - Verify available labels:
gh label list - Check repository permissions
Possible Causes:
- Previous
/issue workcommand created the branch - Branch exists from manual creation
Solutions:
- Switch to existing branch:
git checkout issue-X - Delete old branch:
git branch -D issue-X - Use different issue number
Possible Causes:
- No commits in repository
- Working directory is clean
- Not in git repository
Solutions:
- Make initial commit if needed
- Check status:
git status - Verify git repository:
git log
Possible Causes:
- Token expired
- Wrong credentials
- Account access changed
Solutions:
- Re-authenticate:
gh auth login - Refresh token:
gh auth refresh - Check account access on GitHub.com
Get more detailed error information:
# For git commands
GIT_TRACE=1 git <command>
# For gh commands
GH_DEBUG=1 gh <command>
GH_DEBUG=api gh <command> # API-specific debuggingClaude Code logs:
- Check Claude Code output for error messages
- Look for specific error codes or messages
Git logs:
# Recent git history
git log --oneline -10
# Detailed commit info
git log -p -1GitHub CLI logs:
# View recent gh commands
gh api /user/eventsIf all else fails, reset configurations:
# Reset gh auth
gh auth logout
gh auth login
# Reset git config (careful!)
git config --global --list
git config --global --unset-all [setting]
# Verify repository
gh repo viewIf you encounter a bug or need help:
-
Check existing issues:
- Search repository issues: https://github.com/mccloudmedia/mm-claude-code-commands/issues
-
Create new issue:
gh issue create --repo mccloudmedia/mm-claude-code-commands \ --title "Bug: [Brief description]" \ --body "**Description:** [Detailed description of the problem] **Steps to Reproduce:** 1. Step 1 2. Step 2 **Expected Behavior:** [What should happen] **Actual Behavior:** [What actually happens] **Environment:** - OS: [Your OS] - Claude Code version: [version] - gh version: [run: gh --version] - git version: [run: git --version]"
-
Include diagnostics:
# System info gh --version git --version # Auth status gh auth status # Repository info gh repo view
Still having issues? Open an issue in this repository with detailed information about your problem, and we'll help you troubleshoot!