Skip to main content

Troubleshooting

Common issues and solutions for Magus.


Common Issues

Plugin Not Loading

Symptom

Plugin doesn't appear in /plugin list or isn't available in Claude Code.

Solutions

1. Check Settings Format

Your .claude/settings.json must use object format, not array format:

// ✅ CORRECT - Object format (required)
{
"enabledPlugins": {
"dev@magus": true,
"code-analysis@magus": true
}
}
// ❌ INCORRECT - Array format (will cause validation error)
{
"enabledPlugins": [
"dev@magus",
"code-analysis@magus"
]
}

2. Verify Marketplace is Added

# List installed marketplaces
/plugin marketplace list

# If marketplace not listed, add it
/plugin marketplace add MadAppGang/magus

3. Check Settings File Location

# Settings must be in project root
ls -la .claude/settings.json

# If missing, create it
mkdir -p .claude
cat > .claude/settings.json <<EOF
{
"enabledPlugins": {
"dev@magus": true
}
}
EOF

4. Reload Plugin

/plugin reload dev@magus

5. Restart Claude Code

Complete restart may be needed for some changes.


Marketplace Not Found

Symptom

Error: "Marketplace 'magus' not found"

Solutions

1. Add Marketplace

/plugin marketplace add MadAppGang/magus

2. Verify Marketplace Added

/plugin marketplace list

3. Update Marketplace Metadata

/plugin marketplace update magus

4. Re-add if Needed

# Remove and re-add
/plugin marketplace remove magus
/plugin marketplace add MadAppGang/magus

5. Check Internet Connection

# Test GitHub access
ping github.com
curl -I https://github.com/MadAppGang/magus

Environment Variables Missing

Symptom

Plugin loads but features don't work (e.g., Figma import fails, API calls fail)

Solutions

1. Check Required Variables

See plugin documentation for required variables:

2. Set Environment Variables

In shell profile (~/.zshrc or ~/.bashrc):

export FIGMA_ACCESS_TOKEN="your-token-here"
export APIDOG_API_TOKEN="your-token-here"

In project .env file:

# Create .env in project root
cat > .env <<EOF
FIGMA_ACCESS_TOKEN=your-token-here
APIDOG_API_TOKEN=your-token-here
EOF

3. Reload Shell

source ~/.zshrc
# or
source ~/.bashrc

4. Verify Variables Are Set

echo $FIGMA_ACCESS_TOKEN
echo $APIDOG_API_TOKEN

5. Use Configuration Command

Some plugins have setup commands:

/configure-mcp

This will guide you through setting up required variables.


Wrong Plugin Version

Symptom

Features missing or plugin behaves differently than expected

Solutions

1. Check Installed Version

/plugin list

Look for version number next to plugin name.

2. Check Latest Version

/plugin marketplace update magus
/plugin list

3. Update Plugin

# Method 1: Marketplace update (automatic)
/plugin marketplace update magus

# Method 2: Reinstall plugin
/plugin remove dev@magus
/plugin install dev@magus

4. Install Specific Version

/plugin install dev@magus@2.3.0

Settings Validation Error

Symptom

Error about invalid settings format or validation failure

Common Causes & Fixes

1. Wrong enabledPlugins Format

// ❌ WRONG - Array
"enabledPlugins": ["dev@magus"]

// ✅ CORRECT - Object
"enabledPlugins": {
"dev@magus": true
}

2. Invalid JSON Syntax

// ❌ WRONG - Trailing comma
{
"enabledPlugins": {
"dev@magus": true,
}
}

// ✅ CORRECT - No trailing comma
{
"enabledPlugins": {
"dev@magus": true
}
}

3. Missing Quotes

// ❌ WRONG - Unquoted value
{
"enabledPlugins": {
"dev@magus": yes
}
}

// ✅ CORRECT - Quoted boolean
{
"enabledPlugins": {
"dev@magus": true
}
}

Validate JSON:

# Check if JSON is valid
cat .claude/settings.json | python3 -m json.tool

MCP Server Not Working

Symptom

Features that require MCP servers don't work (Figma import, browser testing, etc.)

Solutions

1. Check MCP Configuration

Verify MCP servers are configured in Claude Code settings.

2. Verify Environment Variables

# Check required variables
echo $FIGMA_ACCESS_TOKEN
echo $CHROME_EXECUTABLE_PATH

3. Use Configuration Command

/configure-mcp

This checks existing configuration and helps set up missing pieces.

4. Test MCP Server Manually

# Test Figma MCP server
npx @modelcontextprotocol/server-figma --help

# Test Chrome DevTools server
npx @automatalabs/mcp-server-chrome --help

5. Check Node.js Version

node --version
# Should be 18.x or higher

6. Reinstall MCP Servers

# Clear npm cache
npm cache clean --force

# Reinstall (MCP servers are installed on-demand)
# Just run the feature that uses the server

Agent/Command Not Found

Symptom

Trying to use an agent or command results in "not found" error

Solutions

1. Verify Plugin is Enabled

/plugin list

Enabled plugins show with a checkmark or indicator.

2. Check Plugin Manifest

# View plugin configuration
cat .claude-plugin/marketplace.json

# Or for installed plugin
cat ~/.config/claude-code/plugins/dev@magus/plugin.json

Verify the agent/command is listed in agents or commands arrays.

3. Reload Plugin

/plugin reload dev@magus

4. Reinstall Plugin

/plugin remove dev@magus
/plugin install dev@magus

5. Check Spelling

Agent and command names are case-sensitive and must match exactly.


Performance Issues

Symptom

Claude Code is slow or plugins are taking too long to respond

Solutions

1. Check System Resources

# Check CPU and memory usage
top
# or
htop

2. Reduce Concurrent Operations

  • Don't run multiple agents simultaneously
  • Wait for one operation to complete before starting another

3. Clear Plugin Cache

# Remove and reinstall plugins
/plugin remove dev@magus
/plugin install dev@magus

4. Check Network Speed

Some plugins make API calls:

# Test network speed
speedtest-cli
# or visit https://fast.com

5. Update to Latest Version

/plugin marketplace update magus

Permission Errors

Symptom

Errors about file permissions or access denied

Solutions

1. Check File Permissions

# Check settings file
ls -la .claude/settings.json

# Should be readable/writable by your user
# If not, fix permissions:
chmod 644 .claude/settings.json

2. Check Directory Permissions

# Check plugin directory
ls -la ~/.config/claude-code/plugins/

# Fix if needed
chmod -R 755 ~/.config/claude-code/

3. Run Without Sudo

Never run Claude Code with sudo. This can cause permission issues.


"X skill descriptions dropped" warning

Symptom

Claude Code shows a banner like:

Skill listing will be truncated. 99 descriptions dropped (full descriptions kept
for most-used skills) (4%/1% of context). Run /skills to disable some, or raise
skillListingBudgetFraction (currently 1%) in settings.json.

What this means

Claude Code injects a listing of your skills into every turn, and that listing has a budget:

budget = context_tokens × 4 × skillListingBudgetFraction (fraction defaults to 0.01)

The budget scales with the model's context window. 8,000 characters is what the formula yields at the 200,000-token fallback, so it is the conservative floor, not a ceiling — a 1M-context model gets 40,000. The budget is also global across every installed skill, from every plugin and marketplace, not partitioned per plugin.

Over budget, the listing does not error and does not drop skills outright. It switches to priority mode and shortens descriptions to fit.

That is the failure you actually see. The matcher can only match on the text that survived, so a skill whose description got trimmed quietly stops auto-triggering — same skill, same install, different behaviour because something else was added.

With every Magus plugin installed, 77 skills are listing-eligible and cost about 11,700 characters. On a 200k-context model at the default fraction, that is over the ~8,000 floor, so some descriptions get shortened.

Nothing is uninstalled or broken. See How skills get found for what decides which skills are in the listing at all.

Solutions, in order of preference

1. Use /skill-name for the skills you care about.

Claude Code "warms" used skills via priority cache (formula: usageCount × max(0.5^(daysSinceLastUse/7), 0.1)). Invoking a skill once keeps it in the listing for weeks. The drop only affects fresh sessions where no priority history exists.

2. Disable plugins you don't use.

/plugin disable {name}@magus

Each disabled plugin's skills leave the corpus entirely.

3. Raise the budget (power-user opt-in).

// ~/.claude/settings.json
{ "skillListingBudgetFraction": 0.05 }

This raises the fraction from 1% to 5%. Because the budget is context × 4 × fraction with no ceiling, raising it genuinely raises the budget on every model — Claude Code's own over-budget warning suggests exactly this.

Trade-off: every turn pays ~8k more tokens for skill metadata. Over a 90-turn session that's ~720k tokens spent on skill listings. Use rate limits faster.

4. Per-session escape hatch.

SLASH_COMMAND_TOOL_CHAR_BUDGET=40000 claude

This env var overrides everything with an absolute char count. Useful for one-off sessions when you need every skill visible.

What Magus does to mitigate

  • Library and reference skills (53 of them) carry disable-model-invocation: true, so they cost nothing per turn. 51 stay invocable as /plugin:skill; 2 are loaded by the one command that needs them.
  • All descriptions follow Anthropic's official 200-char third-person + "Use when…" pattern.
  • CI guardrail (scripts/skill-budget-check.ts) blocks regressions on every release.

Run scripts/skill-budget-check.ts for current totals and the per-skill offenders.


Debugging Steps

Systematic Debugging

When encountering an issue, follow these steps in order:

1. Check Plugin Status

/plugin list

2. Verify Settings

cat .claude/settings.json

3. Check Marketplace

/plugin marketplace list

4. Verify Environment

echo $FIGMA_ACCESS_TOKEN
echo $APIDOG_API_TOKEN
node --version

5. Review Logs Check Claude Code logs for error messages (location varies by OS)

6. Test in Isolation

  • Disable other plugins
  • Test with minimal configuration
  • Try in a fresh project

7. Reinstall

/plugin remove plugin-name@marketplace-name
/plugin install plugin-name@marketplace-name

Getting Help

Before Asking for Help

Gather this information:

  1. Plugin version

    /plugin list
  2. Claude Code version Check in Claude Code settings/about

  3. OS and version

    uname -a
  4. Settings file

    cat .claude/settings.json
  5. Error message Copy the exact error message

  6. Steps to reproduce List steps that cause the issue

Where to Get Help

GitHub Issues (Recommended)

Email Support

Documentation


Prevention Tips

Avoid Common Mistakes

  1. Always use object format for enabledPlugins
  2. Keep plugins updated regularly
  3. Set environment variables before using features
  4. Test changes in a safe environment first
  5. Read plugin documentation before using new features

Best Practices

  1. Commit .claude/settings.json to version control
  2. Document required env vars in project README
  3. Keep marketplace updated monthly
  4. Test plugins after Claude Code updates
  5. Backup settings before major changes

Emergency Recovery

Plugin Completely Broken

# 1. Remove all plugins
/plugin list
# Note which plugins are installed

# 2. Remove broken plugin
/plugin remove dev@magus

# 3. Remove marketplace
/plugin marketplace remove magus

# 4. Re-add marketplace
/plugin marketplace add MadAppGang/magus

# 5. Reinstall plugins
/plugin install dev@magus

# 6. Verify
/plugin list

Settings File Corrupted

# 1. Backup current settings
cp .claude/settings.json .claude/settings.json.backup

# 2. Create fresh settings
cat > .claude/settings.json <<EOF
{
"enabledPlugins": {
"dev@magus": true
}
}
EOF

# 3. Restart Claude Code

# 4. Verify
cat .claude/settings.json

Complete Reset

Warning: This removes all plugin configuration.

# 1. Remove all marketplaces
/plugin marketplace list
# Remove each one

# 2. Remove settings
rm -rf .claude/settings.json

# 3. Start fresh
# Follow Quick Start guide in README


Still stuck? Open an issue or email i@madappgang.com