{"slug":"cloud-uploader","title":"cloud-uploader","summary":"Uploads promo videos and content to Cloudflare R2 or AWS S3. Use when the user wants to host promo content for social media or distribution.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T17:17:48.134128Z","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: cloud-uploader\ndescription: Uploads promo videos and content to Cloudflare R2 or AWS S3. Use when the user wants to host promo content for social media or distribution.\nmodel: sonnet\neffort: low\nprerequisites:</p>\n<ul>\n<li>promo-director\nallowed-tools:</li>\n<li>Read</li>\n<li>Bash</li>\n<li>Glob\nrequirements:\npython:\n<ul>\n<li>boto3</li>\n</ul>\n</li>\n</ul>\n<hr>\n<h1>Cloud Uploader Skill</h1>\n<p>Upload promo videos and other album content to cloud storage (Cloudflare R2 or AWS S3).</p>\n<h2>Purpose</h2>\n<p>After generating promo videos with <code>/bitwize-music:promo-director</code>, upload them to cloud storage for:</p>\n<ul>\n<li>Hosting on websites</li>\n<li>Sharing via direct links</li>\n<li>CDN distribution</li>\n<li>Backup and archival</li>\n</ul>\n<h2>When to Use</h2>\n<ul>\n<li>After promo videos generated, user wants to upload to cloud</li>\n<li>User says \"upload promos to R2\" or \"upload to S3\"</li>\n<li>User says \"upload promo videos for [album]\"</li>\n<li>Manual invocation only (not automatic)</li>\n</ul>\n<h2>Position in Workflow</h2>\n<pre><code>Generate → Master → Promo Videos → **[Cloud Upload]** → Release\n</code></pre>\n<p>Optional step after promo-director, before release-director.</p>\n<h2>Prerequisites</h2>\n<h3>Cloud Configuration</h3>\n<p>Cloud credentials must be configured in <code>~/.bitwize-music/config.yaml</code>:</p>\n<pre><code>cloud:\n  enabled: true\n  provider: \"r2\"  # or \"s3\"\n\n  # For Cloudflare R2\n  r2:\n    account_id: \"your-account-id\"\n    access_key_id: \"your-access-key\"\n    secret_access_key: \"your-secret-key\"\n    bucket: \"promo-videos\"\n\n  # For AWS S3\n  s3:\n    region: \"us-west-2\"\n    access_key_id: \"your-access-key\"\n    secret_access_key: \"your-secret-key\"\n    bucket: \"promo-videos\"\n</code></pre>\n<p>See <code>${CLAUDE_PLUGIN_ROOT}/reference/cloud/setup-guide.md</code> for detailed setup instructions.</p>\n<h3>Required Files</h3>\n<ul>\n<li>Promo videos generated (run <code>/bitwize-music:promo-director</code> first)</li>\n<li>Located at: <code>{audio_root}/artists/{artist}/albums/{genre}/{album}/promo_videos/</code></li>\n<li>Album sampler at: <code>{audio_root}/artists/{artist}/albums/{genre}/{album}/album_sampler.mp4</code></li>\n</ul>\n<h3>Python Dependencies</h3>\n<pre><code># If using the shared venv (recommended)\n~/.bitwize-music/venv/bin/pip install -r ${CLAUDE_PLUGIN_ROOT}/requirements.txt\n\n# Or install separately\npip install boto3\n</code></pre>\n<p>The upload script uses <code>~/.bitwize-music/venv</code> if available, otherwise falls back to system Python.</p>\n<h2>Workflow</h2>\n<h3>1. Verify Prerequisites</h3>\n<p><strong>Check config:</strong></p>\n<pre><code>cat ~/.bitwize-music/config.yaml | grep -A 20 \"cloud:\"\n</code></pre>\n<p>Verify:</p>\n<ul>\n<li><code>cloud.enabled: true</code></li>\n<li>Provider credentials configured (r2 or s3)</li>\n<li>Bucket name set</li>\n</ul>\n<p><strong>Check promo videos exist:</strong></p>\n<pre><code>ls {audio_root}/artists/{artist}/albums/{genre}/{album}/promo_videos/\nls {audio_root}/artists/{artist}/albums/{genre}/{album}/album_sampler.mp4\n</code></pre>\n<p>If missing:</p>\n<pre><code>Error: Promo videos not found.\n\nGenerate with: /bitwize-music:promo-director {album}\n</code></pre>\n<h3>2. Get Python Command</h3>\n<p><strong>Call <code>get_python_command()</code> first</strong> to get the venv Python path and plugin root. Use these for all bash invocations below.</p>\n<pre><code>PYTHON=\"{python from get_python_command}\"\nPLUGIN_DIR=\"{plugin_root from get_python_command}\"\n</code></pre>\n<h3>3. Preview Upload (Dry Run)</h3>\n<p>Preview first:</p>\n<pre><code>$PYTHON \"$PLUGIN_DIR/tools/cloud/upload_to_cloud.py\" {album} --dry-run\n</code></pre>\n<p>Output shows:</p>\n<ul>\n<li>Provider and bucket</li>\n<li>Files to upload</li>\n<li>S3 keys (paths in bucket)</li>\n<li>File sizes</li>\n</ul>\n<h3>4. Upload Files</h3>\n<p><strong>Upload all (promos + sampler):</strong></p>\n<pre><code>$PYTHON \"$PLUGIN_DIR/tools/cloud/upload_to_cloud.py\" {album}\n</code></pre>\n<p><strong>Upload only track promos:</strong></p>\n<pre><code>$PYTHON \"$PLUGIN_DIR/tools/cloud/upload_to_cloud.py\" {album} --type promos\n</code></pre>\n<p><strong>Upload only album sampler:</strong></p>\n<pre><code>$PYTHON \"$PLUGIN_DIR/tools/cloud/upload_to_cloud.py\" {album} --type sampler\n</code></pre>\n<p><strong>Upload with public access:</strong></p>\n<pre><code>$PYTHON \"$PLUGIN_DIR/tools/cloud/upload_to_cloud.py\" {album} --public\n</code></pre>\n<h3>5. Verify Upload</h3>\n<p><strong>For R2:</strong></p>\n<ul>\n<li>Check Cloudflare dashboard → R2 → Your bucket</li>\n<li>Files should appear under <code>{artist}/{album}/</code></li>\n</ul>\n<p><strong>For S3:</strong></p>\n<ul>\n<li>Check AWS Console → S3 → Your bucket</li>\n<li>Or use AWS CLI: <code>aws s3 ls s3://{bucket}/{artist}/{album}/</code></li>\n</ul>\n<h3>5. Report Results</h3>\n<pre><code>## Cloud Upload Complete\n\n**Provider:** R2 (or S3)\n**Bucket:** {bucket}\n**Album:** {album}\n\n**Uploaded Files:**\n- {artist}/{album}/promos/01-track_promo.mp4\n- {artist}/{album}/promos/02-track_promo.mp4\n- ...\n- {artist}/{album}/promos/album_sampler.mp4\n\n**Total:** 11 files, 125.4 MB\n\n**Next Steps:**\n1. Verify files in cloud dashboard\n2. If public: Test URLs work\n3. Continue to release: /bitwize-music:release-director {album}\n</code></pre>\n<h2>Upload Path Structure</h2>\n<p><strong>IMPORTANT: Cloud paths are FLAT - no genre folder.</strong></p>\n<p>The cloud path structure is different from the local content structure:</p>\n<table>\n<thead>\n<tr>\n<th>Location</th>\n<th>Path Structure</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Local content</td>\n<td><code>{content_root}/artists/{artist}/albums/{genre}/{album}/</code></td>\n</tr>\n<tr>\n<td>Local audio</td>\n<td><code>{audio_root}/artists/{artist}/albums/{genre}/{album}/</code></td>\n</tr>\n<tr>\n<td><strong>Cloud</strong></td>\n<td><code>{artist}/{album}/</code> (no genre!)</td>\n</tr>\n</tbody>\n</table>\n<p>Files are organized in the bucket as:</p>\n<pre><code>{bucket}/\n└── {artist}/\n    └── {album}/\n        └── promos/\n            ├── 01-track_promo.mp4\n            ├── 02-track_promo.mp4\n            ├── ...\n            └── album_sampler.mp4\n</code></pre>\n<p><strong>Example for album \"my-album\" by \"bitwize\" in rock genre:</strong></p>\n<ul>\n<li>Local: <code>~/music/artists/bitwize/albums/rock/my-album/</code></li>\n<li>Cloud: <code>bitwize/my-album/promos/</code> (NOT <code>bitwize/albums/rock/my-album/</code>)</li>\n</ul>\n<h2>Command Options</h2>\n<table>\n<thead>\n<tr>\n<th>Option</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>--type promos</code></td>\n<td>Upload only track promo videos</td>\n</tr>\n<tr>\n<td><code>--type sampler</code></td>\n<td>Upload only album sampler</td>\n</tr>\n<tr>\n<td><code>--type all</code></td>\n<td>Upload both (default)</td>\n</tr>\n<tr>\n<td><code>--dry-run</code></td>\n<td>Preview without uploading</td>\n</tr>\n<tr>\n<td><code>--public</code></td>\n<td>Set files as public-read</td>\n</tr>\n<tr>\n<td><code>--audio-root PATH</code></td>\n<td>Override audio_root from config</td>\n</tr>\n</tbody>\n</table>\n<h2>Invocation Examples</h2>\n<p><strong>Basic upload:</strong></p>\n<pre><code>/bitwize-music:cloud-uploader my-album\n</code></pre>\n<p><strong>Preview only:</strong></p>\n<pre><code>/bitwize-music:cloud-uploader my-album --dry-run\n</code></pre>\n<p><strong>Upload promos only:</strong></p>\n<pre><code>/bitwize-music:cloud-uploader my-album --type promos\n</code></pre>\n<p><strong>Upload with public access:</strong></p>\n<pre><code>/bitwize-music:cloud-uploader my-album --public\n</code></pre>\n<h2>Error Handling</h2>\n<p><strong>\"Cloud uploads not enabled\"</strong></p>\n<ul>\n<li>Add <code>cloud.enabled: true</code> to config</li>\n<li>See <code>${CLAUDE_PLUGIN_ROOT}/reference/cloud/setup-guide.md</code></li>\n</ul>\n<p><strong>\"Credentials not configured\"</strong></p>\n<ul>\n<li>Add credentials to config file</li>\n<li>For R2: account_id, access_key_id, secret_access_key</li>\n<li>For S3: access_key_id, secret_access_key</li>\n</ul>\n<p><strong>\"Album not found\"</strong></p>\n<ul>\n<li>Check album exists in <code>{audio_root}/artists/{artist}/albums/{genre}/{album}/</code></li>\n<li>Verify artist name in config matches</li>\n</ul>\n<p><strong>\"No files found to upload\"</strong></p>\n<ul>\n<li>Generate promo videos first: <code>/bitwize-music:promo-director {album}</code></li>\n</ul>\n<p><strong>\"Access Denied\"</strong></p>\n<ul>\n<li>Check credentials are correct</li>\n<li>For R2: Verify API token has write permissions</li>\n<li>For S3: Verify IAM policy allows s3:PutObject</li>\n</ul>\n<p><strong>\"Bucket not found\"</strong></p>\n<ul>\n<li>Create bucket first in cloud dashboard</li>\n<li>Verify bucket name in config</li>\n</ul>\n<h2>Security Notes</h2>\n<ul>\n<li>Credentials stored in config file (ensure proper file permissions)</li>\n<li>Config file should be gitignored in user's content repo</li>\n<li>Default: Files uploaded as private (not public)</li>\n<li>Use <code>--public</code> flag only for files intended for public access</li>\n<li>Consider using environment variables for CI/CD (future enhancement)</li>\n</ul>\n<h2>Integration with Other Skills</h2>\n<h3>Handoff FROM</h3>\n<p><strong>promo-director:</strong></p>\n<p>After promo generation:</p>\n<pre><code>Promo videos generated successfully.\n\n**Optional:** Upload to cloud storage: /bitwize-music:cloud-uploader {album}\n</code></pre>\n<h3>Handoff TO</h3>\n<p><strong>release-director:</strong></p>\n<p>After cloud upload:</p>\n<pre><code>Cloud upload complete.\n\nReady for release workflow: /bitwize-music:release-director {album}\n</code></pre>\n<h2>Supported Providers</h2>\n<h3>Cloudflare R2</h3>\n<ul>\n<li>S3-compatible API</li>\n<li>No egress fees</li>\n<li>Global CDN integration</li>\n<li>Good for high-traffic content</li>\n</ul>\n<h3>AWS S3</h3>\n<ul>\n<li>Industry standard</li>\n<li>Fine-grained IAM permissions</li>\n<li>CloudFront CDN available</li>\n<li>Good for AWS ecosystem integration</li>\n</ul>\n<h2>Future Enhancements</h2>\n<ul>\n<li>Environment variable credentials (for CI/CD)</li>\n<li>Multiple bucket support</li>\n<li>Automatic CDN invalidation</li>\n<li>Progress bar for large uploads</li>\n<li>Resume failed uploads</li>\n<li>Bucket creation if missing</li>\n<li>Additional providers (Backblaze B2, DigitalOcean Spaces)</li>\n</ul>\n<h2>Related Documentation</h2>\n<ul>\n<li><code>${CLAUDE_PLUGIN_ROOT}/reference/cloud/setup-guide.md</code> - Detailed setup instructions</li>\n<li><code>${CLAUDE_PLUGIN_ROOT}/skills/promo-director/SKILL.md</code> - Generate promo videos</li>\n<li><code>${CLAUDE_PLUGIN_ROOT}/skills/release-director/SKILL.md</code> - Release workflow</li>\n</ul>\n<h2>Model Recommendation</h2>\n<p><strong>Sonnet 4.5</strong> - This skill runs scripts and coordinates workflow. No creative output from LLM.</p>\n<h2>Version History</h2>\n<ul>\n<li>v0.14.0 - Initial implementation\n<ul>\n<li>R2 and S3 support via boto3</li>\n<li>Dry-run mode</li>\n<li>Public/private upload options</li>\n<li>Path organization by artist/album</li>\n</ul>\n</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":8592,"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:17:58.209975Z","sha256":"263240C139F14BB6C2335B950E4022B05B16F35F975CA5371BEB486A91FA2970","sizeBytes":3256},"review":null,"source":{"repositoryUrl":"https://github.com/bitwize-music-studio/claude-ai-music-skills","path":"skills/cloud-uploader","license":"CC0-1.0","commit":"8e0e19c0fe7072830ba2918e351102c3c0be9dc4","subtreeSha":"9CFBDBEECB646C52DC90B638248C00E97045224D4C1D6E3DE2ECFE5EFCE6EBA6","lastSyncedAt":"2026-12-03T17:17:47.083975Z"},"reviewedAt":"2026-12-03T17:18:34.892902Z","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/cloud-uploader"},{"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"}]}