Common issues and solutions for Claude Dev Kit.
Claude Code CLI is not installed or not in PATH.
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# Or check PATH
which claude
echo $PATHTerminal is not using the MesloLGS NF font.
Fix:
- Open terminal preferences
- Set font to "MesloLGS NF"
- Restart terminal
Verify fonts installed:
# macOS
ls ~/Library/Fonts/MesloLGS*
# Linux
ls ~/.local/share/fonts/MesloLGS*
fc-list | grep MesloLGSPowerlevel10k theme not configured in .zshrc.
# Check current theme
grep ZSH_THEME ~/.zshrc
# Should show:
# ZSH_THEME="powerlevel10k/powerlevel10k"
# Fix:
sed -i 's/ZSH_THEME=".*"/ZSH_THEME="powerlevel10k\/powerlevel10k"/' ~/.zshrc
source ~/.zshrcMissing instant prompt configuration.
Fix: Add to top of ~/.zshrc:
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fiHooks path not configured or hooks not executable.
# Check hooks path
git config --global core.hooksPath
# Make hooks executable
chmod +x ~/.config/git/hooks/*
# Or for project hooks
chmod +x .husky/*
chmod +x .git/hooks/*Commit message doesn't match expected pattern.
Expected format:
type(scope): subject
body (optional)
footer (optional)
Valid types: feat, fix, docs, style, refactor, test, chore, build, ci
Examples:
# Good
git commit -m "feat: add user authentication"
git commit -m "fix(api): handle null response"
git commit -m "docs: update README"
# Bad
git commit -m "updated stuff"
git commit -m "Fix bug" # Capital letter
git commit -m "feat add feature" # Missing colonBypass (if needed):
git commit -m "message" --no-verifycode command not in PATH.
Fix (macOS):
- Open VS Code
- Cmd+Shift+P → "Shell Command: Install 'code' command in PATH"
- Restart terminal
Fix (Linux):
# Add to PATH
export PATH="$PATH:/usr/share/code/bin"Settings file may have syntax errors.
# Validate JSON
cat ~/Library/Application\ Support/Code/User/settings.json | python3 -m json.tool
# If error, fix the JSON or restore from backup
cp ~/.claude-dev-kit/backups/*/vscode-settings.json.bak \
~/Library/Application\ Support/Code/User/settings.json| Issue | Cause | Solution |
|---|---|---|
| Oh My Zsh install hangs | Network issue | Check internet, retry |
| Plugins not loading | Not in plugins list | Add to plugins=(...) in .zshrc |
| Completions not working | fpath not set | Add fpath=(~/.zsh/completions $fpath) |
| p10k configure not found | Theme not sourced | source ~/.zshrc first |
| Issue | Cause | Solution |
|---|---|---|
| Cursor settings different | Different config path | Check ~/Library/Application Support/Cursor/ |
| Extensions conflict | Incompatible versions | Disable conflicting extension |
| Format on save not working | No formatter configured | Set editor.defaultFormatter |
| Issue | Cause | Solution |
|---|---|---|
| Template not showing | Editor issue | Check git config core.editor |
| Hooks in wrong place | Multiple hooks paths | Use one: global OR .husky OR .git/hooks |
| pre-commit too slow | Running too many checks | Adjust .cdk-quality.json rules |
| Issue | Cause | Solution |
|---|---|---|
| Wrong project type detected | Ambiguous signals | Manually specify or edit generated template |
| CLAUDE.md too long | Too much context | Summarize, focus on essentials |
| Commands not recognized | Wrong directory | Ensure .claude/commands/ exists |
| Issue | Cause | Solution |
|---|---|---|
| Too many lint errors | Strict config | Start with enforcement: advisory |
| CI fails but local passes | Different versions | Match Node/Python versions |
| Husky not running | Not initialized | npx husky install |
| Issue | Cause | Solution |
|---|---|---|
| Export utility not found | Not in PATH | Add ~/.claude-dev-kit/bin to PATH |
| Memory files getting large | Too much history | Archive old entries |
If something goes wrong, restore from backup:
# Find latest backup
ls -la ~/.claude-dev-kit/backups/
# Restore specific file
cp ~/.claude-dev-kit/backups/YYYY-MM-DD/.zshrc.bak ~/.zshrc
# Restore all
BACKUP=~/.claude-dev-kit/backups/YYYY-MM-DD
cp "$BACKUP/.zshrc.bak" ~/.zshrc
cp "$BACKUP/.gitconfig.bak" ~/.gitconfig
cp "$BACKUP/vscode-settings.json.bak" ~/Library/Application\ Support/Code/User/settings.jsonIf all else fails, remove and reinstall:
# Remove CDK artifacts
rm -rf ~/.claude-dev-kit
rm -rf ~/.oh-my-zsh/custom/themes/powerlevel10k
# Restore original configs from backup
# Then re-run installer
./install.sh-
Check existing issues: GitHub Issues
-
Open new issue with:
- OS and version
- Shell and version (
echo $SHELL && $SHELL --version) - Error message (full output)
- Steps to reproduce
- Relevant config files
-
Quick diagnostics:
# Collect system info uname -a echo $SHELL $SHELL --version code --version 2>/dev/null || echo "VS Code not found" git --version ls ~/.claude-dev-kit/