configure
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYour Task
你的任务
Input: $ARGUMENTS
Route based on argument:
- or no argument → Interactive first-time setup
setup - → Edit specific settings
edit - → Display current configuration
show - → Check config for issues
validate - → Delete config and start fresh
reset
输入: $ARGUMENTS
根据参数进行路由:
- 或无参数 → 交互式首次设置
setup - → 编辑特定设置
edit - → 显示当前配置
show - → 检查配置问题
validate - → 删除配置并重新开始
reset
Plugin Configuration Skill
插件配置Skill
You help users set up and manage their configuration.
~/.bitwize-music/config.yaml你帮助用户设置和管理他们的配置文件。
~/.bitwize-music/config.yamlConfig Location
配置文件位置
~/.bitwize-music/config.yaml~/.bitwize-music/config.yamlCommands
命令
/configure
or /configure setup
/configure/configure setup/configure
或 /configure setup
/configure/configure setupInteractive first-time setup. Guide user through creating their config.
Steps:
- Check if exists
~/.bitwize-music/config.yaml - If exists, ask if they want to overwrite or edit instead
- If creating new:
- Create directory if needed
~/.bitwize-music/ - Ask for each required setting interactively
- Write the config file
- Validate the result
- Create
Required settings to ask:
- - "What's your artist/project name?"
artist.name - - "Where should albums and projects be stored? (e.g., ~/music-projects)"
paths.content_root - - "Where should mastered audio files go? (e.g., ~/music-projects/audio)"
paths.audio_root - - "Where should research documents/PDFs go? (e.g., ~/music-projects/documents)"
paths.documents_root
Optional settings:
5. - "What are your primary genres? (comma-separated, or skip)"
6. - "SoundCloud profile URL? (or skip)"
artist.genresurls.soundcloudStep 5: Overrides Directory (Optional)
Ask:
You can optionally provide a path to a directory containing override files. This is where you can customize workflows and skills without plugin update conflicts.Override files you can create:
- CLAUDE.md (custom workflow instructions)
- pronunciation-guide.md (artist names, character names)
- explicit-words.md (custom explicit word list)
Default: ~/music-projects/overridesEnter path (or press Enter to use default):
If user provides path:
- Add to config:
paths.overrides: "[user-path]"
If user presses Enter (accepts default):
- Add to config:
paths.overrides: "~/music-projects/overrides" - Tell user: "Note: Directory doesn't need to exist yet. Create override files when you want to customize."
Step 6: Album Ideas File (Optional)
Ask:
You can optionally provide a path to a file for tracking album ideas. This is managed by the /bitwize-music:album-ideas skill for brainstorming and planning.Default: ~/music-projects/IDEAS.mdEnter path (or press Enter to use default):
If user provides path:
- Add to config:
paths.ideas_file: "[user-path]"
If user presses Enter (accepts default):
- Add to config:
paths.ideas_file: "~/music-projects/IDEAS.md" - Tell user: "Note: File doesn't need to exist yet. The album-ideas skill creates it when first used."
Example interaction:
Let's set up your bitwize-music configuration.
What's your artist/project name?
> Neon Circuits
Where should albums and projects be stored?
(This is where your album folders, lyrics, and research will live)
> ~/music-projects
Where should mastered audio files go?
> ~/music-projects/audio
Where should research documents/PDFs go?
> ~/music-projects/documents
What are your primary genres? (comma-separated, or press Enter to skip)
> electronic, synthwave
SoundCloud profile URL? (or press Enter to skip)
> https://soundcloud.com/neon-circuits
Overrides directory path? (press Enter for default: ~/music-projects/overrides)
> [Enter]
Album ideas file path? (press Enter for default: ~/music-projects/IDEAS.md)
> [Enter]
Creating config at ~/.bitwize-music/config.yaml...
✓ Configuration saved!
Your settings:
Artist: Neon Circuits
Content: ~/music-projects
Audio: ~/music-projects/audio
Documents: ~/music-projects/documents
Genres: electronic, synthwave
SoundCloud: https://soundcloud.com/neon-circuits
Overrides: ~/music-projects/overrides (will be used if created)
Ideas File: ~/music-projects/IDEAS.md (will be created when first used)
You're ready to start creating albums!交互式首次设置。引导用户创建他们的配置文件。
步骤:
- 检查是否存在
~/.bitwize-music/config.yaml - 如果已存在,询问用户是否要覆盖或改为编辑
- 如果创建新配置:
- 如有需要,创建目录
~/.bitwize-music/ - 交互式询问每个必填设置项
- 写入配置文件
- 验证结果
- 如有需要,创建
需要询问的必填设置项:
- - "你的艺术家/项目名称是什么?"
artist.name - - "专辑和项目应该存储在哪里?(例如:~/music-projects)"
paths.content_root - - "母带音频文件应该存放在哪里?(例如:~/music-projects/audio)"
paths.audio_root - - "研究文档/PDF应该存放在哪里?(例如:~/music-projects/documents)"
paths.documents_root
可选设置项:
5. - "你的主要音乐流派是什么?(逗号分隔,或跳过)"
6. - "SoundCloud个人主页链接?(或跳过)"
artist.genresurls.soundcloud步骤5:覆盖目录(可选)
询问:
你可以选择提供一个包含覆盖文件的目录路径。 在这里你可以自定义工作流和Skill,而不会与插件更新产生冲突。你可以创建的覆盖文件:
- CLAUDE.md(自定义工作流说明)
- pronunciation-guide.md(艺术家名称、角色名称)
- explicit-words.md(自定义敏感词汇列表)
默认路径:~/music-projects/overrides输入路径(或按回车键使用默认值):
如果用户提供路径:
- 在配置中添加:
paths.overrides: "[user-path]"
如果用户按回车键(接受默认值):
- 在配置中添加:
paths.overrides: "~/music-projects/overrides" - 告知用户:"注意:该目录无需提前创建。当你想要自定义时再创建覆盖文件即可。"
步骤6:专辑创意文件(可选)
询问:
你可以选择提供一个用于记录专辑创意的文件路径。 该文件由/bitwize-music:album-ideas Skill管理,用于头脑风暴和规划。默认路径:~/music-projects/IDEAS.md输入路径(或按回车键使用默认值):
如果用户提供路径:
- 在配置中添加:
paths.ideas_file: "[user-path]"
如果用户按回车键(接受默认值):
- 在配置中添加:
paths.ideas_file: "~/music-projects/IDEAS.md" - 告知用户:"注意:该文件无需提前创建。首次使用album-ideas Skill时会自动创建。"
示例交互:
让我们来设置你的bitwize-music配置。
你的艺术家/项目名称是什么?
> Neon Circuits
专辑和项目应该存储在哪里?
(这里将存放你的专辑文件夹、歌词和研究资料)
> ~/music-projects
母带音频文件应该存放在哪里?
> ~/music-projects/audio
研究文档/PDF应该存放在哪里?
> ~/music-projects/documents
你的主要音乐流派是什么?(逗号分隔,或按回车键跳过)
> electronic, synthwave
SoundCloud个人主页链接?(或按回车键跳过)
> https://soundcloud.com/neon-circuits
覆盖目录路径?(按回车键使用默认值:~/music-projects/overrides)
> [Enter]
专辑创意文件路径?(按回车键使用默认值:~/music-projects/IDEAS.md)
> [Enter]
正在在~/.bitwize-music/config.yaml创建配置文件...
✓ 配置已保存!
你的设置:
艺术家:Neon Circuits
内容目录:~/music-projects
音频目录:~/music-projects/audio
文档目录:~/music-projects/documents
流派:electronic, synthwave
SoundCloud:https://soundcloud.com/neon-circuits
覆盖目录:~/music-projects/overrides(创建后即可使用)
创意文件:~/music-projects/IDEAS.md(首次使用时会创建)
你已准备好开始创建专辑了!/configure edit
/configure edit/configure edit
/configure editEdit specific settings without recreating the whole config.
Steps:
- Read existing config
- Show current values
- Ask what they want to change
- Update just that setting
- Validate and save
Example:
Current configuration:
artist.name: Neon Circuits
paths.content_root: ~/music-projects
paths.audio_root: ~/music-projects/audio
paths.documents_root: ~/music-projects/documents
artist.genres: [electronic, synthwave]
urls.soundcloud: https://soundcloud.com/neon-circuits
What would you like to change?无需重新创建整个配置,仅编辑特定设置项。
步骤:
- 读取现有配置
- 显示当前值
- 询问用户想要更改的内容
- 仅更新该设置项
- 验证并保存
示例:
当前配置:
artist.name: Neon Circuits
paths.content_root: ~/music-projects
paths.audio_root: ~/music-projects/audio
paths.documents_root: ~/music-projects/documents
artist.genres: [electronic, synthwave]
urls.soundcloud: https://soundcloud.com/neon-circuits
你想要更改什么?/configure show
/configure show/configure show
/configure showDisplay the current configuration in a readable format.
Steps:
- Read
~/.bitwize-music/config.yaml - Display all settings in a formatted table
- Note any missing required settings
Example output:
bitwize-music Configuration
Location: ~/.bitwize-music/config.yaml
┌─────────────────────┬────────────────────────────────────┐
│ Setting │ Value │
├─────────────────────┼────────────────────────────────────┤
│ artist.name │ Neon Circuits │
│ artist.genres │ electronic, synthwave │
│ paths.content_root │ ~/music-projects │
│ paths.audio_root │ ~/music-projects/audio │
│ paths.documents_root│ ~/music-projects/documents │
│ paths.overrides │ ~/music-projects/overrides │
│ paths.ideas_file │ ~/music-projects/IDEAS.md │
│ urls.soundcloud │ https://soundcloud.com/neon-circuits│
│ generation.service │ suno │
└─────────────────────┴────────────────────────────────────┘
✓ All required settings present以易读格式显示当前配置。
步骤:
- 读取
~/.bitwize-music/config.yaml - 以格式化表格显示所有设置
- 标注任何缺失的必填设置项
示例输出:
bitwize-music配置
位置:~/.bitwize-music/config.yaml
┌─────────────────────┬────────────────────────────────────┐
│ 设置项 │ 值 │
├─────────────────────┼────────────────────────────────────┤
│ artist.name │ Neon Circuits │
│ artist.genres │ electronic, synthwave │
│ paths.content_root │ ~/music-projects │
│ paths.audio_root │ ~/music-projects/audio │
│ paths.documents_root│ ~/music-projects/documents │
│ paths.overrides │ ~/music-projects/overrides │
│ paths.ideas_file │ ~/music-projects/IDEAS.md │
│ urls.soundcloud │ https://soundcloud.com/neon-circuits│
│ generation.service │ suno │
└─────────────────────┴────────────────────────────────────┘
✓ 所有必填设置项均已存在/configure validate
/configure validate/configure validate
/configure validateCheck the config for issues.
Checks:
- Config file exists
- All required fields present
- Paths are valid (directories exist or can be created)
- No syntax errors in YAML
Example output:
Validating ~/.bitwize-music/config.yaml...
✓ Config file exists
✓ artist.name: Neon Circuits
✓ paths.content_root: ~/music-projects (exists)
✓ paths.audio_root: ~/music-projects/audio (exists)
✓ paths.documents_root: ~/music-projects/documents (will be created)
✓ paths.overrides: ~/music-projects/overrides (will be used if created)
✓ paths.ideas_file: ~/music-projects/IDEAS.md (will be created when first used)
✓ generation.service: suno
All checks passed!Or with issues:
Validating ~/.bitwize-music/config.yaml...
✓ Config file exists
✓ artist.name: Neon Circuits
✗ paths.content_root: not set (required)
✓ paths.audio_root: ~/music-projects/audio
✗ paths.documents_root: /invalid/path (directory doesn't exist)
2 issues found. Run /configure edit to fix.检查配置是否存在问题。
检查项:
- 配置文件是否存在
- 所有必填字段是否齐全
- 路径是否有效(目录已存在或可创建)
- YAML语法是否无错误
示例输出:
正在验证~/.bitwize-music/config.yaml...
✓ 配置文件存在
✓ artist.name: Neon Circuits
✓ paths.content_root: ~/music-projects(已存在)
✓ paths.audio_root: ~/music-projects/audio(已存在)
✓ paths.documents_root: ~/music-projects/documents(将创建)
✓ paths.overrides: ~/music-projects/overrides(创建后即可使用)
✓ paths.ideas_file: ~/music-projects/IDEAS.md(首次使用时会创建)
✓ generation.service: suno
所有检查通过!或存在问题的情况:
正在验证~/.bitwize-music/config.yaml...
✓ 配置文件存在
✓ artist.name: Neon Circuits
✗ paths.content_root: 未设置(必填项)
✓ paths.audio_root: ~/music-projects/audio
✗ paths.documents_root: /invalid/path(目录不存在)
发现2个问题。运行/configure edit进行修复。/configure reset
/configure reset/configure reset
/configure resetDelete config and optionally start fresh.
Steps:
- Confirm user really wants to reset
- Back up existing config to
config.yaml.bak - Delete
~/.bitwize-music/config.yaml - Ask if they want to run setup now
Example:
⚠️ This will delete your configuration at ~/.bitwize-music/config.yaml
Current config will be backed up to config.yaml.bak
Are you sure you want to reset? (yes/no)If yes:
✓ Backed up to ~/.bitwize-music/config.yaml.bak
✓ Deleted ~/.bitwize-music/config.yaml
Config has been reset.
Would you like to set up a new config now? (yes/no)删除配置文件并可选择重新开始设置。
步骤:
- 确认用户确实想要重置
- 将现有配置备份到
config.yaml.bak - 删除
~/.bitwize-music/config.yaml - 询问用户是否要立即运行设置流程
示例:
⚠️ 这将删除你在~/.bitwize-music/config.yaml的配置文件
当前配置将备份到config.yaml.bak
你确定要重置吗?(是/否)如果用户选择是:
✓ 已备份到~/.bitwize-music/config.yaml.bak
✓ 已删除~/.bitwize-music/config.yaml
配置已重置。
你现在想要设置新的配置吗?(是/否)Config Template
配置模板
When creating a new config, use this structure:
yaml
undefined创建新配置时,使用以下结构:
yaml
undefinedbitwize-music Plugin Configuration
bitwize-music插件配置
Generated by /configure
由/configure生成
artist:
name: "{artist_name}"
genres:
- "{genre1}"
- "{genre2}"
paths:
content_root: "{content_root}"
audio_root: "{audio_root}"
documents_root: "{documents_root}"
overrides: "{overrides}"
ideas_file: "{ideas_file}"
urls:
soundcloud: "{soundcloud_url}"
generation:
service: suno
---artist:
name: "{artist_name}"
genres:
- "{genre1}"
- "{genre2}"
paths:
content_root: "{content_root}"
audio_root: "{audio_root}"
documents_root: "{documents_root}"
overrides: "{overrides}"
ideas_file: "{ideas_file}"
urls:
soundcloud: "{soundcloud_url}"
generation:
service: suno
---Edge Cases
边缘情况
Config exists but is invalid YAML
配置文件存在但YAML无效
- Back up the existing file:
config.yaml.bak - Offer to create fresh config
- 将现有文件备份为
config.yaml.bak - 提供创建全新配置的选项
Directory doesn't exist
目录不存在
- Offer to create it: "Directory ~/music-projects doesn't exist. Create it?"
- 询问是否创建:"目录~/music-projects不存在。是否创建?"
User provides relative path
用户提供相对路径
- Expand to absolute: →
./projects/Users/name/projects - Or use prefix:
~~/projects
- 扩展为绝对路径:→
./projects/Users/name/projects - 或使用前缀:
~~/projects
Remember
注意事项
- Preserve exact casing - If user says "bitwize", write "bitwize" not "Bitwize"
- Always expand in paths for display
~ - Create directories if they don't exist (with permission)
- Back up existing config before overwriting
- Validate after any changes
- Be friendly and explain what each setting does
- 保留确切大小写 - 如果用户输入"bitwize",则写入"bitwize"而非"Bitwize"
- 显示路径时始终展开
~ - 若目录不存在则创建(需获得权限)
- 覆盖配置前先备份现有配置
- 任何更改后都要进行验证
- 保持友好并解释每个设置项的作用