Setup
On first use, read setup.md for integration guidelines.
When to Use
User wants to generate music with Suno. Agent can use hosted APIs for programmatic generation, browser automation for direct platform interaction, or guide prompt engineering for manual use.
Architecture
Memory at ~/suno/. See memory-template.md for structure.
CODEBLOCK0
Quick Reference
| Topic | File |
|---|
| Setup | INLINECODE3 |
| Memory |
memory-template.md |
| API usage |
api.md |
| Browser automation |
browser.md |
| Prompt crafting |
prompts.md |
| Style tags |
styles.md |
| Lyrics guide |
lyrics.md |
Core Rules
1. Choose the Right Approach
| Situation | Method |
|---|
| Programmatic generation | Hosted API (aimusicapi.ai, EvoLink) |
| Visual interaction |
Browser at suno.com |
| Just need prompts | Prompt engineering only |
2. Structure Prompts in Layers
[genre] [subgenre] [mood] [instruments] [voice] [era/influence]
Example: "indie folk melancholic acoustic guitar soft female vocals 90s"
3. Custom Lyrics Format
CODEBLOCK2
4. Extend Songs Strategically
Suno generates clips. Build full songs:
- 1. Create initial clip with strong hook
- Extend with consistent style
- Add outro with ending indicators
- Target 2-4 minutes total
5. API Usage Pattern
All APIs follow: generate → poll for completion → retrieve audio URL.
Generation takes 30-90 seconds. See
api.md for code examples.
API Integration
Hosted APIs (Recommended)
Two main options for programmatic generation:
aimusicapi.ai — Get API key at aimusicapi.ai
EvoLink — Get API key at evolink.ai
Both provide REST APIs for generation, custom lyrics, and extensions.
See api.md for detailed code examples and endpoint documentation.
API Flow
CODEBLOCK3
Browser Automation
When API isn't available or user prefers visual interaction:
Generate at suno.com
- 1. Navigate to suno.com/create
- Choose Simple (description) or Custom (lyrics + style)
- Enter prompt or lyrics
- Click Create, wait 30-60 seconds
- Download the audio
See browser.md for detailed automation steps.
Prompt Patterns
By Genre
| Genre | Pattern |
|---|
| Electronic | INLINECODE13 |
| Rock |
[sub]rock [energy] [guitars] [vocals] [decade] |
| Pop |
pop [mood] [tempo] [vocals] [production] |
| Hip Hop |
hip hop [subgenre] [beat] [flow] [era] |
Voice Control
CODEBLOCK4
See prompts.md and styles.md for comprehensive guides.
Common Traps
| Trap | Problem | Solution |
|---|
| Vague prompts | Random output | Be specific with genre, mood |
| Contradictions |
Confuses model | Consistent descriptors |
| Too many keywords | Dilutes focus | 8-12 key terms max |
| No structure tags | Awkward lyrics | Use [Verse], [Chorus] |
Data Storage
This skill creates ~/suno/ on first use:
- - memory file — Preferences, successful prompts
- projects folder — Per-project tracking
- songs folder — Downloaded audio (optional)
All data stays local. API keys should be stored as environment variables.
Scope
This skill does:
- - Generate music via hosted APIs (requires API key from provider)
- Navigate suno.com with browser automation
- Craft optimized prompts for Suno's model
- Write lyrics with proper structure tags
- Track projects and successful patterns locally
This skill does NOT:
- - Store API keys in plain text files
- Access files outside INLINECODE20
- Make requests without user direction
External Endpoints
When using hosted APIs, requests go to:
| Endpoint | Data Sent | Purpose |
|---|
| api.aimusicapi.ai | Prompts, lyrics | Music generation |
| api.evolink.ai |
Prompts, lyrics | Music generation |
| suno.com | Browser session | Direct platform access |
API keys authenticate requests. Prompts and lyrics are sent for processing.
Trust
By using this skill with APIs, prompts and lyrics are sent to third-party services for music generation. Only use services you trust with your creative content.
Related Skills
Install with
clawhub install <slug> if user confirms:
- -
audio — Audio processing and editing - INLINECODE23 — Combine music with video content
- INLINECODE24 — Audio format conversion
Feedback
- - If useful: INLINECODE25
- Stay updated: INLINECODE26
设置
首次使用时,请阅读 setup.md 获取集成指南。
使用时机
用户希望使用 Suno 生成音乐。助手可使用托管 API 进行程序化生成,通过浏览器自动化直接操作平台,或指导提示词工程供手动使用。
架构
内存文件位于 ~/suno/。结构参见 memory-template.md。
~/suno/
├── [memory.md] # 首次创建:偏好设置、成功提示词
├── [projects/] # 按项目追踪歌曲
└── [songs/] # 下载的音频文件
快速参考
memory-template.md |
| API 使用 | api.md |
| 浏览器自动化 | browser.md |
| 提示词编写 | prompts.md |
| 风格标签 | styles.md |
| 歌词指南 | lyrics.md |
核心规则
1. 选择正确方法
| 场景 | 方法 |
|---|
| 程序化生成 | 托管 API(aimusicapi.ai、EvoLink) |
| 可视化交互 |
浏览器访问 suno.com |
| 仅需提示词 | 仅提示词工程 |
2. 分层构建提示词
[流派] [子流派] [情绪] [乐器] [人声] [时代/影响]
示例:独立民谣 忧郁 原声吉他 柔和女声 90年代
3. 自定义歌词格式
[主歌]
在此输入歌词
[副歌]
记忆点部分
[桥段]
对比部分
[尾奏]
结尾部分
4. 策略性扩展歌曲
Suno 生成片段。构建完整歌曲:
- 1. 创建带有强记忆点的初始片段
- 以一致风格扩展
- 添加带结束指示的尾奏
- 目标总时长2-4分钟
5. API 使用模式
所有 API 遵循:生成 → 轮询完成状态 → 获取音频 URL。
生成耗时30-90秒。代码示例见 api.md。
API 集成
托管 API(推荐)
两种主要程序化生成选项:
aimusicapi.ai — 在 aimusicapi.ai 获取 API 密钥
EvoLink — 在 evolink.ai 获取 API 密钥
两者均提供用于生成、自定义歌词和扩展的 REST API。
详细代码示例和端点文档见 api.md。
API 流程
python
概念流程(实际代码见 api.md)
- 1. POST /generate 附带提示词
- 接收 taskid
- 每5秒轮询 /task/{id}
- 当 status=completed 时获取 audiourl
浏览器自动化
当 API 不可用或用户偏好可视化交互时:
在 suno.com 生成
- 1. 导航至 suno.com/create
- 选择简单模式(描述)或自定义模式(歌词+风格)
- 输入提示词或歌词
- 点击创建,等待30-60秒
- 下载音频
详细自动化步骤见 browser.md。
提示词模式
按流派
| 流派 | 模式 |
|---|
| 电子 | 电子 [子流派] [情绪] 合成器 [质感] |
| 摇滚 |
[子]摇滚 [能量] [吉他] [人声] [年代] |
| 流行 | 流行 [情绪] [速度] [人声] [制作] |
| 嘻哈 | 嘻哈 [子流派] [节拍] [flow] [时代] |
人声控制
柔和女声,空灵,气息感
深沉男声,男中音,沙哑
纯音乐,无人声
综合指南见 prompts.md 和 styles.md。
常见陷阱
| 陷阱 | 问题 | 解决方案 |
|---|
| 模糊提示词 | 随机输出 | 明确指定流派、情绪 |
| 矛盾描述 |
混淆模型 | 保持描述一致 |
| 关键词过多 | 稀释焦点 | 最多8-12个关键术语 |
| 无结构标签 | 歌词生硬 | 使用 [主歌]、[副歌] |
数据存储
本技能首次使用时创建 ~/suno/:
- - 内存文件 — 偏好设置、成功提示词
- 项目文件夹 — 按项目追踪
- 歌曲文件夹 — 下载的音频(可选)
所有数据本地存储。API 密钥应存储为环境变量。
范围
本技能可执行:
- - 通过托管 API 生成音乐(需从提供商获取 API 密钥)
- 使用浏览器自动化导航 suno.com
- 为 Suno 模型编写优化提示词
- 使用正确结构标签编写歌词
- 本地追踪项目和成功模式
本技能不执行:
- - 以纯文本文件存储 API 密钥
- 访问 ~/suno/ 以外的文件
- 未经用户指示发起请求
外部端点
使用托管 API 时,请求发送至:
| 端点 | 发送数据 | 用途 |
|---|
| api.aimusicapi.ai | 提示词、歌词 | 音乐生成 |
| api.evolink.ai |
提示词、歌词 | 音乐生成 |
| suno.com | 浏览器会话 | 直接平台访问 |
API 密钥用于验证请求。提示词和歌词被发送进行处理。
信任
通过使用本技能与 API 交互,提示词和歌词将被发送至第三方服务进行音乐生成。仅使用您信任的服务处理您的创意内容。
相关技能
如果用户确认,使用 clawhub install
安装:
- - audio — 音频处理与编辑
- video — 将音乐与视频内容结合
- ffmpeg — 音频格式转换
反馈
- - 如有帮助:clawhub star suno
- 保持更新:clawhub sync