返回技能列表

clipboard

bitwize-music-studio
更新于 2 days ago
4 次查看
209
37
209
在 GitHub 上查看
其他general

关于

This skill copies track content like lyrics and style prompts to the system clipboard for use in external tools like Suno. It automatically detects the platform (macOS, WSL, Linux) and uses the appropriate clipboard utility. Developers can use it to quickly extract and paste content from track files into other applications.

快速安装

Claude Code

推荐
主要方式
npx skills add bitwize-music-studio/claude-ai-music-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/bitwize-music-studio/claude-ai-music-skills
Git 克隆备选方式
git clone https://github.com/bitwize-music-studio/claude-ai-music-skills.git ~/.claude/skills/clipboard

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Your 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 Box
  • style - Suno Style Box (auto-appends Exclude Styles if present)
  • exclude - Exclude Styles only (negative prompts)
  • streaming-lyrics - Streaming Lyrics (for distributors)
  • all - All Suno inputs (Style + Exclude + Lyrics combined)
  • suno - JSON object (title, style, exclude_styles, 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, exclude, streaming-lyrics, all, suno

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", "exclude", "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:

PlatformCommand
macOSpbcopy
WSLclip.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 (with Exclude Styles if present)
- 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, exclude_styles, 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.exe which works from Linux subsystem
  • Linux users may have either xclip or xsel

Content Extraction:

  • MCP format_for_clipboard handles 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

GitHub 仓库

bitwize-music-studio/claude-ai-music-skills
路径: skills/clipboard
0
ai-musicai-music-toolsaudio-masteringclaudeclaude-codeclaude-code-plugin

相关推荐技能

llamaguard

其他

LlamaGuard是Meta推出的7-8B参数内容审核模型,专门用于过滤LLM的输入和输出内容。它能检测六大安全风险类别(暴力/仇恨、性内容、武器、违禁品、自残、犯罪计划),准确率达94-95%。开发者可通过HuggingFace、vLLM或Sagemaker快速部署,并能与NeMo Guardrails集成实现自动化安全防护。

查看技能

cost-optimization

其他

这个Claude Skill帮助开发者优化云成本,通过资源调整、标记策略和预留实例来降低AWS、Azure和GCP的开支。它适用于减少云支出、分析基础设施成本或实施成本治理策略的场景。关键功能包括提供成本可视化、资源规模调整指导和定价模型优化建议。

查看技能

quantizing-models-bitsandbytes

其他

这个Skill使用bitsandbytes库量化大语言模型,能在GPU内存有限时通过8位或4位量化减少50-75%内存占用,同时保持精度损失最小。它支持INT8、NF4、FP4等多种量化格式,可与HuggingFace Transformers无缝集成,适用于需要部署更大模型或加速推理的场景。还提供QLoRA训练和8位优化器支持,让开发者能轻松实现高效模型压缩。

查看技能

dispatching-parallel-agents

其他

该Skill用于并行处理3个以上无依赖关系的独立故障,可为每个问题域分派专属Claude代理同时执行调查修复。它通过并发处理多个独立问题显著提升故障排查效率,特别适用于测试文件、子系统等无共享状态的场景。

查看技能