{"id":"clipboard","name":"clipboard","summary":"トラックコンテンツ(歌詞、スタイルプロンプト、ストリーミング歌詞)をシステムのクリップボードにコピーします。","body":"## Your Task\n\n**Input**: $ARGUMENTS\n\nCopy content from track files to the system clipboard for pasting into Suno or other tools.\n\n---\n\n# Clipboard Skill\n\nCopy specific sections from track files directly to your clipboard.\n\n## Step 1: Detect Platform & Check Clipboard Tool\n\nRun detection:\n\n```bash\nif command -v pbcopy >/dev/null 2>&1; then\n  echo \"macOS\"\nelif command -v clip.exe >/dev/null 2>&1; then\n  # clip.exe is a built-in Windows utility (System32). Reachable both from WSL\n  # via interop and from a native-Windows shell such as Git Bash, so this one\n  # branch covers both. Verified on a windows-latest runner: Git Bash present,\n  # clip.exe resolved at /c/Windows/system32/clip.exe, copy round-tripped.\n  echo \"Windows/WSL\"\nelif command -v xclip >/dev/null 2>&1; then\n  echo \"Linux-xclip\"\nelif command -v xsel >/dev/null 2>&1; then\n  echo \"Linux-xsel\"\nelse\n  echo \"NONE\"\nfi\n```\n\n**If NONE:**\n\n```\nError: No clipboard utility found.\n\nInstall instructions:\n- macOS: pbcopy (built-in)\n- Linux: sudo apt install xclip\n- Windows (native) and WSL: clip.exe (built-in)\n```\n\n## Step 2: Parse Arguments\n\nExpected format: `<content-type> <album-name> <track-number>`\n\n**Content types:**\n- `lyrics` - Suno Lyrics Box\n- `style` - Suno Style Box (auto-appends Exclude Styles if present)\n- `exclude` - Exclude Styles only (negative prompts)\n- `streaming-lyrics` - Streaming Lyrics (for distributors)\n- `all` - All Suno inputs (Style + Exclude + Lyrics combined)\n- `suno` - JSON object (title, style, exclude_styles, lyrics) for Suno auto-fill via Tampermonkey\n\nExamples:\n- `/clipboard lyrics sample-album 03`\n- `/clipboard style sample-album 05`\n- `/clipboard streaming-lyrics sample-album 02`\n- `/clipboard all sample-album 01`\n\nIf arguments are missing:\n```\nUsage: /clipboard <content-type> <album-name> <track-number>\n\nContent types: lyrics, style, exclude, streaming-lyrics, all, suno\n\nExample: /clipboard lyrics sample-album 03\n```\n\n## Step 3: Extract Content via MCP\n\nCall `format_for_clipboard(album_slug, track_slug, content_type)` — extracts and formats the requested content in one call.\n\n- `content_type`: `\"lyrics\"`, `\"style\"`, `\"exclude\"`, `\"streaming\"`, `\"all\"`, or `\"suno\"`\n- Returns the formatted content ready for clipboard\n- Handles track resolution, section extraction, and formatting automatically\n\n**If track not found:** MCP returns an error with available tracks.\n\n## Step 6: Copy to Clipboard\n\nUse the detected platform's clipboard command:\n\n| Platform | Command |\n|----------|---------|\n| macOS | `pbcopy` |\n| Windows (native) / WSL | `clip.exe` |\n| Linux (xclip) | `xclip -selection clipboard` |\n| Linux (xsel) | `xsel --clipboard --input` |\n\nExample (use `printf '%s'` to safely handle special characters in lyrics):\n```bash\nprintf '%s' \"$content\" | pbcopy  # macOS\nprintf '%s' \"$content\" | xclip -selection clipboard  # Linux\n```\n\n## Step 7: Confirm\n\nReport:\n```\n✓ Copied to clipboard: {content-type} from track {track-number}\n  Album: {album}\n  Track: {track-filename}\n```\n\n## Error Handling\n\n**Track file not found:**\n```\nError: Track {track-number} not found in album {album}\n\nAvailable tracks:\n- 01-track-name.md\n- 02-track-name.md\n```\n\n**Content section not found:**\n```\nError: {content-type} section not found in track {track-number}\n\nThe track file may not have this section yet.\n```\n\n**Config missing:**\n```\nError: Config not found at ~/.bitwize-music/config.yaml\nRun /configure to set up.\n```\n\n---\n\n## Examples\n\n### Copy Suno Lyrics\n\n```\n/clipboard lyrics sample-album 03\n```\n\nOutput:\n```\n✓ Copied to clipboard: lyrics from track 03\n  Album: sample-album\n  Track: 03-t-day-beach.md\n```\n\n### Copy Style Prompt\n\n```\n/clipboard style sample-album 05\n```\n\n### Copy Streaming Lyrics\n\n```\n/clipboard streaming-lyrics sample-album 02\n```\n\n### Copy All Suno Inputs\n\n```\n/clipboard all sample-album 01\n```\n\nOutput:\n```\n✓ Copied to clipboard: all suno inputs from track 01\n  Album: sample-album\n  Track: 01-intro.md\n\nContents:\n- Style Box (with Exclude Styles if present)\n- Lyrics Box\n```\n\n### Copy Suno Auto-Fill JSON\n\n```\n/clipboard suno sample-album 01\n```\n\nOutput:\n```\n✓ Copied to clipboard: suno auto-fill JSON from track 01\n  Album: sample-album\n  Track: 01-intro.md\n\nClipboard contains JSON with: title, style, exclude_styles, lyrics\nPaste into Suno with the Tampermonkey auto-fill script (Ctrl+Shift+V).\nSee tools/userscripts/README.md for setup.\n```\n\n---\n\n## Implementation Notes\n\n**Clipboard Detection:**\n- Check multiple tools in order of preference\n- `clip.exe` is built into Windows, so it serves both native Windows (via Git Bash) and WSL (via interop)\n- If no bash is available at all, PowerShell's `Set-Clipboard` is an equivalent native fallback (verified working)\n- Linux users may have either `xclip` or `xsel`\n\n**Content Extraction:**\n- MCP `format_for_clipboard` handles all section extraction and formatting\n- No manual file parsing needed\n\n**Multiple Matches:**\n- If track number matches multiple files (shouldn't happen), use the first match\n- Warn user if directory structure looks wrong","author":"@bitwize-music-studio","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/bitwize-music-studio/claude-ai-music-skills/tree/main/skills/clipboard","license":"CC0-1.0","category":"writing","lang":"en","tokens":1349,"stars":0,"calls30d":0,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"USAGE_EXAMPLES.md","size":3484,"sha256":"f8afc2f3907ac18ebd68fc3f14249246bc21eeb2a23f0dc1e67f506880637c5d"}],"requires":{"mcp":[],"tools":["Read","Bash","bitwize-music-mcp"]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}