{"slug":"import-track","title":"import-track","summary":"Moves track markdown files to the correct album location. Use when the user has track files in Downloads or other locations that need to be placed in an album.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:17:50.038365Z","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: import-track\ndescription: Moves track markdown files to the correct album location. Use when the user has track files in Downloads or other locations that need to be placed in an album.\nargument-hint: </p>\n<ul>\n<li>Read</li>\n<li>Bash</li>\n<li>Glob</li>\n<li>bitwize-music-mcp</li>\n</ul>\n<hr>\n<h2>Your Task</h2>\n<p><strong>Input</strong>: $ARGUMENTS</p>\n<p>Import a track markdown file (.md) to the correct album location based on config.</p>\n<hr>\n<h1>Import Track Skill</h1>\n<p>You move track markdown files to the correct location in the user's content directory.</p>\n<h2>Step 1: Parse Arguments</h2>\n<p>Expected format: <code>&lt;file-path&gt; &lt;album-name&gt; [track-number]</code></p>\n<p>Examples:</p>\n<ul>\n<li><code>~/Downloads/track.md sample-album 03</code></li>\n<li><code>~/Downloads/t-day-beach.md sample-album 03</code></li>\n<li><code>~/Downloads/03-t-day-beach.md sample-album</code> (number already in filename)</li>\n</ul>\n<p>If arguments are missing, ask:</p>\n<pre><code>Usage: /import-track &lt;file-path&gt; &lt;album-name&gt; [track-number]\n\nExample: /import-track ~/Downloads/track.md sample-album 03\n</code></pre>\n<h2>Step 2: Find Album and Resolve Path via MCP</h2>\n<ol>\n<li>Call <code>find_album(album_name)</code> — fuzzy match by name, slug, or partial. Returns album metadata including genre.</li>\n<li>Call <code>resolve_path(\"tracks\", album_slug)</code> — returns the full tracks directory path</li>\n</ol>\n<p>If album not found, MCP returns available albums:</p>\n<pre><code>Error: Album \"{album-name}\" not found.\n\nAvailable albums:\n[list from MCP response]\n\nCreate album first with: /new-album {album-name} &lt;genre&gt;\n</code></pre>\n<h2>Step 4: Construct Target Path</h2>\n<p>The target path is <strong>ALWAYS</strong>:</p>\n<pre><code>{content_root}/artists/{artist}/albums/{genre}/{album}/tracks/{XX}-{track-name}.md\n</code></pre>\n<p>Example with:</p>\n<ul>\n<li><code>content_root: ~/bitwize-music</code></li>\n<li><code>artist: bitwize</code></li>\n<li><code>genre: electronic</code> (found from album location)</li>\n<li><code>album: sample-album</code></li>\n<li><code>track-number: 03</code></li>\n<li><code>track-name: t-day-beach</code></li>\n</ul>\n<p>Result:</p>\n<pre><code>~/bitwize-music/artists/bitwize/albums/electronic/sample-album/tracks/03-t-day-beach.md\n</code></pre>\n<p><strong>Track numbering</strong>:</p>\n<ul>\n<li>If track number provided, use it (zero-padded: <code>03</code>)</li>\n<li>If filename already has number prefix (e.g., <code>03-name.md</code>), preserve it</li>\n<li>If neither, ask user for track number</li>\n</ul>\n<h2>Step 5: Move File</h2>\n<pre><code>mv \"{source_file}\" \"{target_path}\"\n</code></pre>\n<h2>Step 6: Confirm</h2>\n<p>Report:</p>\n<pre><code>Moved: {source_file}\n   To: {target_path}\n</code></pre>\n<h2>Error Handling</h2>\n<p><strong>Source file doesn't exist:</strong></p>\n<pre><code>Error: File not found: {source_file}\n</code></pre>\n<p><strong>Config file missing:</strong></p>\n<pre><code>Error: Config not found at ~/.bitwize-music/config.yaml\nRun /configure to set up.\n</code></pre>\n<p><strong>Album not found:</strong></p>\n<pre><code>Error: Album \"{album-name}\" not found.\nCreate it first with: /new-album {album-name} &lt;genre&gt;\n</code></pre>\n<p><strong>Track already exists:</strong></p>\n<pre><code>Warning: Track already exists at destination.\nOverwrite? (The original was not moved)\n</code></pre>\n<hr>\n<h2>Examples</h2>\n<pre><code>/import-track ~/Downloads/t-day-beach.md sample-album 03\n</code></pre>\n<p>Config has:</p>\n<pre><code>paths:\n  content_root: ~/bitwize-music\nartist:\n  name: bitwize\n</code></pre>\n<p>Album found at: <code>~/bitwize-music/artists/bitwize/albums/electronic/sample-album/</code></p>\n<p>Result:</p>\n<pre><code>Moved: ~/Downloads/t-day-beach.md\n   To: ~/bitwize-music/artists/bitwize/albums/electronic/sample-album/tracks/03-t-day-beach.md\n</code></pre>\n<hr>\n<h2>Common Mistakes</h2>\n<h3>❌ Don't: Manually read config and search for albums</h3>\n<p><strong>Wrong:</strong></p>\n<pre><code>cat ~/.bitwize-music/config.yaml\nfind . -name \"README.md\" -path \"*albums/$album_name*\"\n</code></pre>\n<p><strong>Right:</strong></p>\n<pre><code># Use MCP to find album and resolve path\nfind_album(album_name) → returns album metadata with genre\nresolve_path(\"tracks\", album_slug) → returns full tracks directory path\n</code></pre>\n<p><strong>Why it matters:</strong> MCP handles config reading, fuzzy matching, and path resolution in single calls.</p>\n<h3>❌ Don't: Forget the tracks/ subdirectory</h3>\n<p><strong>Wrong destination:</strong></p>\n<pre><code>{album_path}/01-track.md\n# Example: ~/bitwize-music/artists/bitwize/albums/electronic/sample-album/01-track.md\n</code></pre>\n<p><strong>Correct destination:</strong></p>\n<pre><code>{album_path}/tracks/01-track.md\n# Example: ~/bitwize-music/artists/bitwize/albums/electronic/sample-album/tracks/01-track.md\n</code></pre>\n<p><strong>Why it matters:</strong> Tracks always go in the <code>tracks/</code> subdirectory within the album folder.</p>\n<h3>❌ Don't: Skip track number validation</h3>\n<p><strong>Wrong:</strong></p>\n<pre><code># Not validating track number format\nmv track.md {album_path}/tracks/$track_num-track.md\n# Could result in: 3-track.md instead of 03-track.md\n</code></pre>\n<p><strong>Right:</strong></p>\n<pre><code># Ensure zero-padding\ntrack_num=$(printf \"%02d\" $track_num)\nmv track.md {album_path}/tracks/$track_num-track.md\n# Results in: 03-track.md\n</code></pre>\n<p><strong>Why it matters:</strong> Track numbers must be zero-padded (01, 02, 03...) for proper sorting.</p>\n<h3>❌ Don't: Assume album location without searching</h3>\n<p><strong>Wrong:</strong></p>\n<pre><code># Guessing album is in electronic genre\nmv track.md ~/music-projects/artists/bitwize/albums/electronic/sample-album/tracks/\n</code></pre>\n<p><strong>Right:</strong></p>\n<pre><code># Use MCP to find the album (handles genre resolution)\nfind_album(album_name) → returns album metadata including genre and path\n</code></pre>\n<p><strong>Why it matters:</strong> Albums are organized by genre. <code>find_album</code> resolves the genre automatically.</p>\n","files":[{"path":"SKILL.md","sizeBytes":4950,"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:18:14.122006Z","sha256":"E16EC044163B435D0503F630D4F03B909066F3763AD83F4A6255034A13BA3D3E","sizeBytes":1910},"review":null,"source":{"repositoryUrl":"https://github.com/bitwize-music-studio/claude-ai-music-skills","path":"skills/import-track","license":"CC0-1.0","commit":"8e0e19c0fe7072830ba2918e351102c3c0be9dc4","subtreeSha":"A4B94A34F61DC12DED17281FB85A9BE89F163291530C2EA37C2D376A41CD5F5C","lastSyncedAt":"2026-12-03T17:17:47.083975Z"},"reviewedAt":"2026-12-03T17:19:15.096608Z","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/import-track"},{"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"}]}