{"slug":"setup-29","title":"setup","summary":"Detects your Python environment and guides you through installing plugin dependencies. Use on first-time setup or when MCP server fails to start.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:17:55.506697Z","repo":{"url":"https://github.com/bitwize-music-studio/claude-ai-music-skills","stars":733,"forks":156,"license":"CC0-1.0","updatedAt":"2026-12-03T03:06:05Z"},"bodyHtml":"<hr>\n<p>name: setup\ndescription: Detects your Python environment and guides you through installing plugin dependencies. Use on first-time setup or when MCP server fails to start.\nargument-hint: &lt;blank for full check | \"mcp\" | \"mastering\" | \"document-hunter\"&gt;\nmodel: haiku\nallowed-tools:</p>\n<ul>\n<li>Bash</li>\n</ul>\n<hr>\n<p>Base directory for this skill: $</p>\n<h2>Your Task</h2>\n<p>Guide the user through installing bitwize-music plugin dependencies based on their Python environment and requested components.</p>\n<hr>\n<h1>Setup Assistant</h1>\n<p>You help users install and verify plugin dependencies.</p>\n<hr>\n<h2>Step 1: Detect Environment</h2>\n<p><strong>Run these checks in parallel:</strong></p>\n<pre><code># Python version\npython3 --version\n\n# Check if externally managed\npython3 -c \"import sysconfig; print(sysconfig.get_path('purelib'))\" 2&gt;&amp;1 | grep -q \"/usr\" &amp;&amp; echo \"EXTERNALLY_MANAGED\" || echo \"USER_MANAGED\"\n\n# Check for pipx\ncommand -v pipx &gt;/dev/null 2&gt;&amp;1 &amp;&amp; echo \"pipx: installed\" || echo \"pipx: not installed\"\n\n# Check for venv support\npython3 -m venv --help &gt;/dev/null 2&gt;&amp;1 &amp;&amp; echo \"venv: supported\" || echo \"venv: not supported\"\n\n# Platform\nuname -s\n</code></pre>\n<hr>\n<h2>Step 2: Check Component Status</h2>\n<p><strong>IMPORTANT:</strong> Run these checks <strong>sequentially</strong>, not in parallel. If one check fails, continue with the remaining checks to show complete status.</p>\n<p><strong>CRITICAL:</strong> Always check the venv, not system Python!</p>\n<pre><code># Set venv path (macOS/Linux/WSL uses bin/python3; native Windows uses Scripts/python.exe)\nVENV_PYTHON=~/.bitwize-music/venv/bin/python3\n[ -f \"$VENV_PYTHON\" ] || VENV_PYTHON=~/.bitwize-music/venv/Scripts/python.exe\n\n# Check if venv exists\nif [ -f \"$VENV_PYTHON\" ]; then\n    echo \"✅ Venv exists at ~/.bitwize-music/venv\"\n\n    # Check each component in the venv\n    # 2.x serves MCPServer from mcp.server.mcpserver, 1.x serves FastMCP from\n    # mcp.server.fastmcp; the server takes either, so probe both (#537).\n    $VENV_PYTHON -c \"import mcp.server.mcpserver\" 2&gt;/dev/null || $VENV_PYTHON -c \"import mcp.server.fastmcp\" 2&gt;/dev/null &amp;&amp; echo \"✅ mcp installed\" || echo \"❌ mcp not installed (need mcp[cli]&gt;=1.28.1,&lt;3)\"\n    $VENV_PYTHON -c \"import matchering; print('✅ matchering installed')\" 2&gt;&amp;1 || echo \"❌ matchering not installed\"\n    $VENV_PYTHON -c \"import boto3; print('✅ boto3 installed')\" 2&gt;&amp;1 || echo \"❌ boto3 not installed\"\n    $VENV_PYTHON -c \"from playwright.sync_api import sync_playwright; print('✅ playwright installed')\" 2&gt;&amp;1 || echo \"❌ playwright not installed\"\n\n    # Check for version drift against requirements.txt\n    $VENV_PYTHON -c \"\nimport importlib.metadata, pathlib\nreqs = pathlib.Path('${CLAUDE_PLUGIN_ROOT}/requirements.txt').read_text()\nstale = []\nfor line in reqs.splitlines():\n    line = line.split('#')[0].strip()\n    if not line or '==' not in line:\n        continue\n    name, _, ver = line.partition('==')\n    name = name.split('[')[0].strip()\n    try:\n        installed = importlib.metadata.version(name)\n        if installed != ver:\n            stale.append(f'  {name}: {installed} → {ver}')\n    except importlib.metadata.PackageNotFoundError:\n        stale.append(f'  {name}: missing (needs {ver})')\nif stale:\n    print('⚠️  Version drift detected:')\n    print('\\n'.join(stale))\nelse:\n    print('✅ All package versions match requirements.txt')\n\" 2&gt;&amp;1\nelse\n    echo \"❌ Venv not found at ~/.bitwize-music/venv\"\n    echo \"   Run: python3 -m venv ~/.bitwize-music/venv   # macOS/Linux/WSL\"\n    echo \"   Or:  py -3 -m venv ~/.bitwize-music/venv      # Windows\"\nfi\n</code></pre>\n<p>All components are installed together in the venv via requirements.txt.</p>\n<hr>\n<h2>Step 3: Show Installation Commands</h2>\n<p><strong>Always use the unified venv approach</strong> — it works on all platforms and is automatically detected by the plugin.</p>\n<pre><code># Create unified venv (if it doesn't exist)\npython3 -m venv ~/.bitwize-music/venv                                                    # macOS/Linux/WSL\npy -3 -m venv ~/.bitwize-music/venv                                                       # Windows (native)\n\n# Install ALL plugin dependencies\n~/.bitwize-music/venv/bin/pip install -r ${CLAUDE_PLUGIN_ROOT}/requirements.txt                     # macOS/Linux/WSL\n~/.bitwize-music/venv/Scripts/python.exe -m pip install -r ${CLAUDE_PLUGIN_ROOT}/requirements.txt   # Windows (native)\n\n# Set up document hunter browser\n~/.bitwize-music/venv/bin/playwright install chromium                                     # macOS/Linux/WSL\n~/.bitwize-music/venv/Scripts/playwright.exe install chromium                             # Windows (native)\n</code></pre>\n<p><strong>That's it!</strong> The plugin automatically detects and uses the platform venv (<code>~/.bitwize-music/venv</code> on macOS/Linux/WSL, <code>%USERPROFILE%\\.bitwize-music\\venv</code> on native Windows). No configuration needed.</p>\n<p><strong>Works on:</strong></p>\n<ul>\n<li>✅ Linux (externally-managed Python)</li>\n<li>✅ macOS</li>\n<li>✅ Windows (native — Core tier, best-effort; audio tooling needs WSL2)</li>\n<li>✅ Windows (WSL)</li>\n<li>✅ All other systems</li>\n</ul>\n<hr>\n<h2>Step 3.5: Optional — Suno Server and Audio Player</h2>\n<p>Neither is needed for the plugin to work. Mention them once, after the required components are sorted.</p>\n<p><strong>Suno MCP server</strong> — lets <code>/bitwize-music:generate</code>, <code>/bitwize-music:listen</code> and <code>/bitwize-music:import-audio --from-suno</code> reach the user's Suno account. Check the <code>suno</code> section of the <code>health_check</code> result first: <code>configured</code> means it is already registered (say so, with its name and scope, and skip the command); <code>missing</code> means it is not:</p>\n<pre><code>claude mcp add --transport http suno https://api.suno.com/mcp\n</code></pre>\n<p>Then <code>/mcp</code> in a session to sign in. <code>--scope user</code> on the command makes it available in every project, not only this one. The plugin does not ship this server; without it those skills fall back to the clipboard flow, and session start shows these instructions until it is added (<code>generation.suno_mcp_reminder: false</code> in the config hides them).</p>\n<p><strong>Audio player</strong> — lets <code>/bitwize-music:listen</code> play audio in the terminal. Any one of <code>mpv</code> (recommended), <code>ffplay</code> (part of ffmpeg) or macOS's built-in <code>afplay</code>:</p>\n<pre><code>command -v mpv ffplay afplay   # shows which are installed\nbrew install mpv               # macOS\nsudo apt install mpv           # Debian/Ubuntu/WSL\nwinget install mpv             # Windows\n</code></pre>\n<hr>\n<h2>Step 4: Installation Guide</h2>\n<p>Present a clear, simple installation guide:</p>\n<ol>\n<li><strong>Environment detected</strong>: [Python version, Platform]</li>\n<li><strong>Missing components</strong>: [list what needs to be installed]</li>\n<li><strong>Installation commands</strong>:\n<pre><code>python3 -m venv ~/.bitwize-music/venv                                                  # macOS/Linux/WSL\n~/.bitwize-music/venv/bin/pip install -r ${CLAUDE_PLUGIN_ROOT}/requirements.txt         # macOS/Linux/WSL\n~/.bitwize-music/venv/bin/playwright install chromium                                   # macOS/Linux/WSL\n\npy -3 -m venv ~/.bitwize-music/venv                                                               # Windows (native)\n~/.bitwize-music/venv/Scripts/python.exe -m pip install -r ${CLAUDE_PLUGIN_ROOT}/requirements.txt # Windows (native)\n~/.bitwize-music/venv/Scripts/playwright.exe install chromium                                     # Windows (native)\n</code></pre>\n</li>\n<li><strong>After installation</strong>:\n<ul>\n<li>Restart Claude Code to reload the plugin</li>\n<li>MCP server should show as running in <code>/plugin</code> status</li>\n<li>Run <code>/bitwize-music:setup</code> again to verify</li>\n</ul>\n</li>\n</ol>\n<hr>\n<h2>Step 5: Verify Installation (if requested)</h2>\n<p>After user reports they've installed, re-run the checks from Step 2 and confirm:</p>\n<p>✅ <strong>MCP server</strong>: Ready\n✅ <strong>Audio mastering</strong>: Ready\n✅ <strong>Cloud uploads</strong>: Ready\n✅ <strong>Document hunter</strong>: Ready</p>\n<p><strong>Next steps</strong>: Run <code>/bitwize-music:configure</code> to set up your workspace paths.</p>\n<hr>\n<h2>Output Format</h2>\n<p>Use clear sections with checkboxes for status:</p>\n<pre><code>## bitwize-music Setup\n\n### Environment\n- Python: 3.12.3\n- System: Linux\n\n### Component Status\n- [❌] MCP server\n- [❌] Audio mastering\n- [❌] Cloud uploads\n- [❌] Document hunter\n\n### Installation\n\nRun these commands to install all plugin dependencies (macOS/Linux/WSL shown; see Step 3 for the Windows native `py -3` / `Scripts\\` equivalents):\n\n```bash\n# Create unified venv\npython3 -m venv ~/.bitwize-music/venv\n\n# Install ALL dependencies\n~/.bitwize-music/venv/bin/pip install -r ${CLAUDE_PLUGIN_ROOT}/requirements.txt\n\n# Set up browser\n~/.bitwize-music/venv/bin/playwright install chromium\n</code></pre>\n<p><strong>After installation:</strong></p>\n<ol>\n<li>Restart Claude Code</li>\n<li>All components will work automatically</li>\n<li>Run <code>/bitwize-music:setup</code> to verify</li>\n</ol>\n<p>The plugin automatically detects <code>~/.bitwize-music/venv</code> — everything just works!</p>\n<pre><code>\n---\n\n## Remember\n\n- **Be specific** - show exact commands for their environment\n- **Prioritize user install** for externally-managed Python\n- **Explain what each component does** so they can decide what to install\n- **Test commands work** before suggesting them\n- **Clear next steps** after installation\n</code></pre>\n","files":[{"path":"SKILL.md","sizeBytes":8874,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-03T17:19:11.329616Z","sha256":"F42BE1FB64790E088D594E4030CFF7D306D547C9FB8A1F4D15DF6755D0016716","sizeBytes":3307},"review":null,"source":{"repositoryUrl":"https://github.com/bitwize-music-studio/claude-ai-music-skills","path":"skills/setup","license":"CC0-1.0","commit":"8e0e19c0fe7072830ba2918e351102c3c0be9dc4","subtreeSha":"60BF32E3C6488A2CB79782B93E4F4943A6EA6BE2740F34446825CCDDE280908D","lastSyncedAt":"2026-12-03T17:17:47.083975Z"},"reviewedAt":"2026-12-03T17:21:34.966638Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/bitwize-music-studio/claude-ai-music-skills/tree/main/skills/setup"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install bitwize-music-studio-claude-ai-music-skills@llmmart"},{"target":"git","command":"git clone https://github.com/bitwize-music-studio/claude-ai-music-skills.git"}]}