clipboard
npx machina-cli add skill bitwize-music-studio/claude-ai-music-skills/clipboard --openclawYour Task
Input: $ARGUMENTS
Copy content from track files to the system clipboard for pasting into Suno or other tools.
Clipboard Skill
Copy specific sections from track files directly to your clipboard.
Step 1: Detect Platform & Check Clipboard Tool
Run detection:
if command -v pbcopy >/dev/null 2>&1; then
echo "macOS"
elif command -v clip.exe >/dev/null 2>&1; then
echo "WSL"
elif command -v xclip >/dev/null 2>&1; then
echo "Linux-xclip"
elif command -v xsel >/dev/null 2>&1; then
echo "Linux-xsel"
else
echo "NONE"
fi
If NONE:
Error: No clipboard utility found.
Install instructions:
- macOS: pbcopy (built-in)
- Linux: sudo apt install xclip
- WSL: clip.exe (built-in)
Step 2: Parse Arguments
Expected format: <content-type> <album-name> <track-number>
Content types:
lyrics- Suno Lyrics Boxstyle- Suno Style Boxstreaming-lyrics- Streaming Lyrics (for distributors)all- All Suno inputs (Style + Lyrics combined)suno- JSON object (title + style + lyrics) for Suno auto-fill via Tampermonkey
Examples:
/clipboard lyrics sample-album 03/clipboard style sample-album 05/clipboard streaming-lyrics sample-album 02/clipboard all sample-album 01
If arguments are missing:
Usage: /clipboard <content-type> <album-name> <track-number>
Content types: lyrics, style, streaming-lyrics, all
Example: /clipboard lyrics sample-album 03
Step 3: Extract Content via MCP
Call format_for_clipboard(album_slug, track_slug, content_type) — extracts and formats the requested content in one call.
content_type:"lyrics","style","streaming","all", or"suno"- Returns the formatted content ready for clipboard
- Handles track resolution, section extraction, and formatting automatically
If track not found: MCP returns an error with available tracks.
Step 6: Copy to Clipboard
Use the detected platform's clipboard command:
| Platform | Command |
|---|---|
| macOS | pbcopy |
| WSL | clip.exe |
| Linux (xclip) | xclip -selection clipboard |
| Linux (xsel) | xsel --clipboard --input |
Example (use printf '%s' to safely handle special characters in lyrics):
printf '%s' "$content" | pbcopy # macOS
printf '%s' "$content" | xclip -selection clipboard # Linux
Step 7: Confirm
Report:
✓ Copied to clipboard: {content-type} from track {track-number}
Album: {album}
Track: {track-filename}
Error Handling
Track file not found:
Error: Track {track-number} not found in album {album}
Available tracks:
- 01-track-name.md
- 02-track-name.md
Content section not found:
Error: {content-type} section not found in track {track-number}
The track file may not have this section yet.
Config missing:
Error: Config not found at ~/.bitwize-music/config.yaml
Run /configure to set up.
Examples
Copy Suno Lyrics
/clipboard lyrics sample-album 03
Output:
✓ Copied to clipboard: lyrics from track 03
Album: sample-album
Track: 03-t-day-beach.md
Copy Style Prompt
/clipboard style sample-album 05
Copy Streaming Lyrics
/clipboard streaming-lyrics sample-album 02
Copy All Suno Inputs
/clipboard all sample-album 01
Output:
✓ Copied to clipboard: all suno inputs from track 01
Album: sample-album
Track: 01-intro.md
Contents:
- Style Box
- Lyrics Box
Copy Suno Auto-Fill JSON
/clipboard suno sample-album 01
Output:
✓ Copied to clipboard: suno auto-fill JSON from track 01
Album: sample-album
Track: 01-intro.md
Clipboard contains JSON with: title, style, lyrics
Paste into Suno with the Tampermonkey auto-fill script (Ctrl+Shift+V).
See tools/userscripts/README.md for setup.
Implementation Notes
Clipboard Detection:
- Check multiple tools in order of preference
- WSL has
clip.exewhich works from Linux subsystem - Linux users may have either
xcliporxsel
Content Extraction:
- MCP
format_for_clipboardhandles all section extraction and formatting - No manual file parsing needed
Multiple Matches:
- If track number matches multiple files (shouldn't happen), use the first match
- Warn user if directory structure looks wrong
Source
git clone https://github.com/bitwize-music-studio/claude-ai-music-skills/blob/main/skills/clipboard/SKILL.mdView on GitHub Overview
This clipboard skill copies track content such as lyrics, style prompts, and streaming lyrics directly to your system clipboard for quick pasting into Suno or other tools. It supports multiple content types and handles platform-specific clipboard utilities to streamline workflows.
How This Skill Works
It uses format_for_clipboard(album_slug, track_slug, content_type) to extract and format the requested section (lyrics, style, streaming-lyrics, all, or suno). It then detects your platform and uses the appropriate clipboard command (pbcopy, clip.exe, xclip, or xsel) to copy the text, followed by a confirmation or error if content or track is missing.
When to Use It
- Copy lyrics into Suno Lyrics Box for quick prompt insertion
- Copy style prompts to the Suno Style Box to drive a desired vibe
- Copy streaming lyrics for distributors who need real-time lyrics data
- Copy all Suno inputs (Style + Lyrics) in one go for a full prompt
- Copy Suno auto-fill JSON for Tampermonkey-based integration
Quick Start
- Step 1: Detect platform and ensure a clipboard tool is available (pbcopy on macOS, clip.exe on Windows/WSL, xclip or xsel on Linux).
- Step 2: Parse arguments in the format: /clipboard <content-type> <album-name> <track-number>.
- Step 3: Call format_for_clipboard(album_slug, track_slug, content_type) to extract and format the content.
- Step 4: Copy to clipboard using the platform-specific command (pbcopy, clip.exe, xclip, or xsel) and verify.
- Step 5: Confirm success with a summary of what was copied.
Best Practices
- Use the correct content-type for the desired output (lyrics, style, streaming-lyrics, all, or suno)
- Ensure the album and track exist to avoid 'Track not found' errors
- Format text safely with printf '%s' when piping to clipboard to preserve characters
- Verify clipboard content after copying, especially for long or special-character text
- If no clipboard tool is installed, install the recommended utility per your OS
Example Use Cases
- Copy Suno Lyrics: /clipboard lyrics sample-album 03
- Copy Style Prompt: /clipboard style sample-album 05
- Copy Streaming Lyrics: /clipboard streaming-lyrics sample-album 02
- Copy All Suno Inputs: /clipboard all sample-album 01
- Copy Suno Auto-Fill JSON: /clipboard suno sample-album 01