Token导航 LogoToken导航

Agent Skill · 音频生成

musicbrainz-importer(音乐大脑进口商)

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

musicbrainz-importer 是音频生成类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在音频生成类的 283 个 Skill 里排第 145。

总安装 3,095周安装 124GitHub Stars 公开资料未说明下载 1,002核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:musicbrainz-importer(音乐大脑进口商)
来源仓库:https://github.com/its-clawdia/musicbrainz-importer
安装命令:
openclaw skills install musicbrainz-importer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install musicbrainz-importer

这个 Skill 是做什么的

音频生成类 Skill 处理配音、配乐和音频素材的生成与转换。

查询 MusicBrainz 数据库补充音乐元数据的实用工具。适用于整理专辑信息、验证艺术家资料或获取发行链接。输入艺术家、专辑或曲目名称即可检索权威条目。结果仅供参考,正式发布前仍需人工核对准确性。musicbrainz-importer 属于音频生成类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install musicbrainz-importer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

musicbrainz-importer 怎么安装?

在终端执行 openclaw skills install musicbrainz-importer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

musicbrainz-importer 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

musicbrainz-importer 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

musicbrainz-importer 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

musicbrainz-importer 用的人多吗?

公开数据是累计安装 3,095 次,近一周安装 124 次,下载 1,002 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

musicbrainz-importer 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理音频生成类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

音频生成类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
music-cog

音乐齿轮 · OpenClaw

121,1044需要联网MIT-0通过
elevenlabs-music

十一实验室音乐 · OpenClaw

108,6181接触敏感数据MIT-0通过
music-generation

音乐一代 · OpenClaw

100,1385需要联网MIT-0有提醒
ace-music

王牌音乐 · OpenClaw

95,8682接触敏感数据MIT-0有提醒
mcp-applemusic

MCP applemusic 音频 · OpenClaw

79,3893调用外部服务MIT-0有提醒
musicbrainz-importer

音乐大脑进口商 · 本页

3,095—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
musicbrainz_importer
description
Look up and add music metadata on MusicBrainz. Use when asked to check if an artist, album, or release exists on MusicBrainz, find MusicBrainz entries linked to Spotify URLs, or add/edit releases, artists, or other entities on MusicBrainz. Triggers on mentions of MusicBrainz, MB, music database, adding releases, music metadata, or linking Spotify to MusicBrainz.
homepage
https://github.com/its-clawdia/musicbrainz-importer
metadata

MusicBrainz

Browser Setup

All browser work uses Playwright via a Node.js script. Install once per session:

cd /tmp && npm ls playwright 2>/dev/null || npm install playwright

Launch pattern (use in every script):

import { chromium } from 'playwright';
import { execSync } from 'child_process';

// Detect Playwright's bundled Chromium path dynamically
const chromiumPath = process.env.PLAYWRIGHT_CHROMIUM_PATH
  || execSync('find ~/.cache/ms-playwright -name chrome -path "*/chrome-linux*/chrome" 2>/dev/null | head -1', { encoding: 'utf-8' }).trim()
  || execSync('find ~/.cache/ms-playwright -name Chromium -path "*/Chromium.app/Contents/MacOS/Chromium" 2>/dev/null | head -1', { encoding: 'utf-8' }).trim();
if (!chromiumPath) throw new Error('Chromium not found. Run: npx playwright install chromium');

const browser = await chromium.launch({
  executablePath: chromiumPath,
  headless: true,
  args: ['--no-sandbox']
});
const page = await browser.newPage();

Architecture: Isolated Steps

There are four operations. Each is a self-contained Playwright script. Never combine them into one script. Run them sequentially:

  1. Login — authenticate the browser session
  2. Add Artist — create a new artist entity
  3. Add Release — create a release with tracks, metadata, and Spotify link
  4. Upload Cover Art — attach album artwork to an existing release

Between steps, close the browser (await browser.close()). Each script launches fresh, logs in if needed, does its one job, and exits. This prevents state pollution between operations.


Preflight — Credentials Check

Run before any write operation. Skip for read-only lookups.

bash scripts/preflight.sh

Credentials live in .credentials.json in the skill directory.

  • MISSING_CREDENTIALS: Ask user for MusicBrainz username + password. Save:
  cat > ~/.openclaw/skills/musicbrainz/.credentials.json << 'EOF'
  {"username": "USER", "password": "PASS"}
  EOF
  • INVALID_CREDENTIALS: Ask user to verify, update file, re-run.
  • No account → https://musicbrainz.org/register

Step 1: Login

Every Playwright script that writes to MB must start with login. Use this exact pattern:

import { readFileSync } from 'fs';
const creds = JSON.parse(readFileSync(
  process.env.HOME + '/.openclaw/skills/musicbrainz/.credentials.json'
));

await page.goto('https://musicbrainz.org/login', { waitUntil: 'networkidle', timeout: 30000 });
await page.fill('#id-username', creds.username);
await page.fill('#id-password', creds.password);
// IMPORTANT: There are TWO submit buttons on the page (search + login).
// Must click the one with "Log in" text.
await page.evaluate(() => {
  Array.from(document.querySelectorAll('button[type="submit"]'))
    .find(b => b.textContent.includes('Log in'))?.click();
});
await page.waitForTimeout(5000);

// Verify: should redirect to /user/<username>
if (page.url().includes('/login')) {
  throw new Error('Login failed');
}

Key gotcha

The MusicBrainz login page has two forms: a search form and the login form. Both have button[type="submit"]. Using page.click('button[type="submit"]') hits the search button. Always use the evaluate pattern above to find the button by text content.


Step 2: Add Artist

When: Artist doesn't exist on MusicBrainz. Check first with mb_lookup.sh or the search API.

Script structure

// ... browser launch + login (Step 1) ...

await page.goto('https://musicbrainz.org/artist/create', {
  waitUntil: 'networkidle', timeout: 30000
});
await page.waitForTimeout(2000);

// Fill fields
await page.fill('#id-edit-artist\\.name', 'Artist Name');
await page.fill('#id-edit-artist\\.sort_name', 'Name, Artist'); // "Last, First" or "Name, The"
await page.selectOption('#id-edit-artist\\.type_id', '2'); // 1=Person, 2=Group, 4=Other
await page.fill('#id-edit-artist\\.edit_note',
  'Adding artist from Spotify: https://open.spotify.com/artist/<id>');

// Submit — use form.submit() to avoid button ambiguity
await page.evaluate(() => {
  document.getElementById('id-edit-artist.name')?.closest('form')?.submit();
});
await page.waitForTimeout(5000);

// Extract MBID from redirect URL
const artistUrl = page.url();
const artistMbid = artistUrl.match(/artist\/([a-f0-9-]{36})/)?.[1];
console.log('Artist MBID:', artistMbid);

await browser.close();

After completion

Report the artist MBID and link to user. Store the MBID — needed for adding releases.


Step 3: Add Release

Every release follows this identical flow, regardless of what happened before (login, artist creation, previous releases). Each is a fresh Playwright script.

Form field IDs (for reference)

FieldIDValues
Titlenametext
Artistac-source-single-artisttext (autocomplete)
Release grouprelease-grouptext (autocomplete)
Primary typeprimary-type1=Album, 2=Single, 3=EP
Statusstatus1=Official
Languagelanguage120=English, 145=German
Scriptscript28=Latin, 12=Cyrillic
Yearevent-date-0YYYY
Month.partial-date-monthMM
Day.partial-date-dayDD
Countrycountry-0240=[Worldwide]
Labellabel-0text (autocomplete)
Barcodebarcodetext
No barcodeno-barcodecheckbox
Packagingpackaging7=None

Known traps

  1. Release group autocomplete blocks the form. After filling the title and selecting an artist, the release group field auto-searches and opens a popup dialog ("Add medium") that makes all other form fields invisible to Playwright (offsetParent = null, zero-size rects). You must dismiss this before interacting with other fields.
  1. Artist autocomplete can match wrong entity. Typing "The Bride Wore Black" and pressing ArrowDown+Enter may select a similarly-named *release group* or a different artist. Use the MBID in the autocomplete field for exact matching.
  1. React selects don't respond to page.selectOption() when not visible. Use evaluate with native setters instead.
  1. Track parser dialog vs Add Medium dialog. The track parser opens in a jQuery UI dialog. There may be multiple dialogs open. Always target by dialog title text.
  1. Track parser may double tracks. The parse can produce duplicate entries. Always verify track count after parsing.

Script structure

// ... browser launch + login (Step 1) ...

// Navigate to empty add-release form
await page.goto('https://musicbrainz.org/release/add', {
  waitUntil: 'networkidle', timeout: 30000
});
await page.waitForTimeout(3000);

// === TITLE ===
// Use evaluate with native setter — keyboard typing is fragile
await page.evaluate((title) => {
  const el = document.getElementById('name');
  const setter = Object.getOwnPropertyDescriptor(
    window.HTMLInputElement.prototype, 'value'
  ).set;
  setter.call(el, title);
  el.dispatchEvent(new Event('input', { bubbles: true }));
  el.dispatchEvent(new Event('change', { bubbles: true }));
}, 'Album Title');
await page.waitForTimeout(500);

// === ARTIST ===
// Paste the MBID for exact matching (avoids wrong autocomplete selections)
const artistInput = page.locator('#ac-source-single-artist');
await artistInput.click();
await page.keyboard.type('<artist-mbid>', { delay: 5 });
await page.waitForTimeout(4000);
await page.keyboard.press('ArrowDown');
await page.waitForTimeout(500);
await page.keyboard.press('Enter');
await page.waitForTimeout(3000);

// Verify artist matched (background turns green)
const artistOk = await page.evaluate(() => {
  const input = document.getElementById('ac-source-single-artist');
  return window.getComputedStyle(input).backgroundColor.includes('177'); // rgb(177,235,176)
});
if (!artistOk) throw new Error('Artist not matched');

// === DISMISS BLOCKERS ===
// The release-group autocomplete and "Add medium" dialog may have opened.
// Close everything before touching other fields.
await page.evaluate(() => {
  // Hide all autocomplete dropdowns
  document.querySelectorAll('ul.ui-autocomplete')
    .forEach(ul => ul.style.display = 'none');
  // Close any open dialogs (Add medium, search, etc.)
  document.querySelectorAll('.ui-dialog').forEach(d => {
    if (d.style.display !== 'none' && d.offsetParent !== null) {
      const close = d.querySelector('.ui-dialog-titlebar-close');
      if (close) close.click();
    }
  });
  // Blur active element
  document.activeElement?.blur();
});
await page.waitForTimeout(1000);

// === METADATA (all via evaluate — fields may not be "visible" to Playwright) ===
await page.evaluate(({ year, month, day }) => {
  function setSelect(id, val) {
    const el = document.getElementById(id);
    if (!el || el.disabled) return;
    el.value = val;
    el.dispatchEvent(new Event('change', { bubbles: true }));
  }
  function setInput(id, val) {
    const el = document.getElementById(id);
    if (!el) return;
    const setter = Object.getOwnPropertyDescriptor(
      window.HTMLInputElement.prototype, 'value'
    ).set;
    setter.call(el, val);
    el.dispatchEvent(new Event('input', { bubbles: true }));
    el.dispatchEvent(new Event('change', { bubbles: true }));
  }

  setSelect('primary-type', '1');   // Album
  setSelect('status', '1');         // Official
  setSelect('language', '120');     // English
  setSelect('script', '28');        // Latin
  setSelect('packaging', '7');      // None
  setSelect('country-0', '240');    // [Worldwide]

  setInput('event-date-0', year);
  const dateContainer = document.getElementById('event-date-0')?.closest('.partial-date');
  if (dateContainer) {
    const setter = Object.getOwnPropertyDescriptor(
      window.HTMLInputElement.prototype, 'value'
    ).set;
    const monthEl = dateContainer.querySelector('.partial-date-month');
    const dayEl = dateContainer.querySelector('.partial-date-day');
    if (monthEl) {
      setter.call(monthEl, month);
      monthEl.dispatchEvent(new Event('input', { bubbles: true }));
    }
    if (dayEl) {
      setter.call(dayEl, day);
      dayEl.dispatchEvent(new Event('input', { bubbles: true }));
    }
  }

  // No barcode
  const cb = document.querySelector('#no-barcode');
  if (cb && !cb.checked) cb.click();
}, { year: '2007', month: '7', day: '10' });
await page.waitForTimeout(1000);

// === TRACKLIST ===
// Switch to Tracklist tab
await page.evaluate(() => {
  Array.from(document.querySelectorAll('.ui-tabs-anchor'))
    .find(t => t.textContent === 'Tracklist')?.click();
});
await page.waitForTimeout(2000);

// Set medium format to Digital Media
await page.evaluate(() => {
  const sel = document.querySelector('#tracklist select');
  if (sel) {
    const dm = Array.from(sel.options).find(o => o.text === 'Digital Media');
    if (dm) {
      sel.value = dm.value;
      sel.dispatchEvent(new Event('change', { bubbles: true }));
    }
  }
});

// Open track parser
await page.evaluate(() => {
  Array.from(document.querySelectorAll('button'))
    .find(b => b.textContent === 'Track parser')?.click();
});
await page.waitForTimeout(1500);

// Fill track parser dialog — target by dialog title to avoid "Add medium" dialog
const trackText = '1. Track One (3:47)\
2. Track Two (2:50)'; // build from data
await page.evaluate((text) => {
  for (const dialog of document.querySelectorAll('.ui-dialog')) {
    if (dialog.style.display === 'none') continue;
    const title = dialog.querySelector('.ui-dialog-title');
    if (!title?.textContent.includes('Track parser')) continue;
    const ta = dialog.querySelector('textarea');
    if (ta) {
      const setter = Object.getOwnPropertyDescriptor(
        window.HTMLTextAreaElement.prototype, 'value'
      ).set;
      setter.call(ta, text);
      ta.dispatchEvent(new Event('input', { bubbles: true }));
    }
    Array.from(dialog.querySelectorAll('button'))
      .find(b => b.textContent === 'Parse tracks')?.click();
    break;
  }
}, trackText);
await page.waitForTimeout(3000);

// Close track parser dialog
await page.evaluate(() => {
  for (const d of document.querySelectorAll('.ui-dialog')) {
    if (d.querySelector('.ui-dialog-title')?.textContent.includes('Track parser')) {
      d.querySelector('.ui-dialog-titlebar-close')?.click();
    }
  }
});
await page.waitForTimeout(1000);

// Confirm capitalization if warning appears
await page.evaluate(() => {
  document.querySelectorAll('input[type="checkbox"]').forEach(cb => {
    const text = cb.closest('label')?.textContent || cb.parentElement?.textContent || '';
    if (text.includes('capitalized correctly') && !cb.checked) cb.click();
  });
});

// Verify track count
const trackCount = await page.evaluate(() =>
  document.querySelectorAll('tr.track').length
);

// === EXTERNAL LINKS (Spotify URL) ===
await page.evaluate(() => {
  Array.from(document.querySelectorAll('.ui-tabs-anchor'))
    .find(t => t.textContent === 'Release information')?.click();
});
await page.waitForTimeout(1000);

await page.evaluate((url) => {
  const input = document.querySelector('input[type="url"]');
  if (input) {
    const setter = Object.getOwnPropertyDescriptor(
      window.HTMLInputElement.prototype, 'value'
    ).set;
    setter.call(input, url);
    input.dispatchEvent(new Event('input', { bubbles: true }));
    input.dispatchEvent(new Event('change', { bubbles: true }));
  }
}, 'https://open.spotify.com/album/<id>');
await page.waitForTimeout(2000);

// === EDIT NOTE ===
await page.evaluate(() => {
  Array.from(document.querySelectorAll('.ui-tabs-anchor'))
    .find(t => t.textContent === 'Edit note')?.click();
});
await page.waitForTimeout(1000);

await page.evaluate((note) => {
  const ta = document.getElementById('edit-note-text');
  if (ta) {
    const setter = Object.getOwnPropertyDescriptor(
      window.HTMLTextAreaElement.prototype, 'value'
    ).set;
    setter.call(ta, note);
    ta.dispatchEvent(new Event('input', { bubbles: true }));
  }
}, 'Added from Spotify: <url>');
await page.waitForTimeout(500);

// === SUBMIT ===
const canSubmit = await page.evaluate(() => {
  const btn = Array.from(document.querySelectorAll('button'))
    .find(b => b.textContent.includes('Enter edit'));
  return btn && !btn.disabled;
});

if (canSubmit) {
  await page.evaluate(() => {
    Array.from(document.querySelectorAll('button'))
      .find(b => b.textContent.includes('Enter edit'))?.click();
  });
  await page.waitForTimeout(15000);

  const mbid = page.url().match(/release\/([a-f0-9-]{36})/)?.[1];
  console.log('Release MBID:', mbid);
}

await browser.close();

Step 4: Upload Cover Art

Run as a separate script after the release exists.

// ... browser launch + login (Step 1) ...

// Download cover image locally first (avoids CORS issues in-page)
// Do this via exec before the Playwright script:
//   curl -sL "<spotify-640px-url>" -o /tmp/cover.jpg

await page.goto(
  'https://musicbrainz.org/release/<mbid>/add-cover-art',
  { waitUntil: 'networkidle', timeout: 30000 }
);
await page.waitForTimeout(3000);

// Upload via Playwright's setInputFiles (works with jQuery File Upload)
await page.locator('input[type="file"]').setInputFiles('/tmp/cover.jpg');
await page.waitForTimeout(3000);

// Wait for upload processing — poll until submit button enables
for (let i = 0; i < 15; i++) {
  const enabled = await page.evaluate(() => {
    const btn = document.getElementById('add-cover-art-submit');
    return btn && !btn.disabled;
  });
  if (enabled) break;
  await page.waitForTimeout(2000);
}

// Check "Front" type
await page.evaluate(() => {
  document.querySelectorAll('input[type="checkbox"]').forEach(cb => {
    const label = cb.closest('label')?.textContent || '';
    if (label.includes('Front') && !cb.checked) cb.click();
  });
});

// Submit
await page.locator('#add-cover-art-submit').click();
await page.waitForTimeout(10000);

// Success = redirect to /release/<mbid>/cover-art
console.log('Final URL:', page.url());

await browser.close();

Cover art URL from Spotify

Find the image hash on the album page (prefix ab67616d00001e02 = 300px). Replace with ab67616d0000b273 for 640×640:

https://i.scdn.co/image/ab67616d0000b273<hash>

Download before upload

Always download the image locally first with curl, then use setInputFiles(). Do NOT use in-page fetch() — it can hit CORS issues and the jQuery uploader's signature flow doesn't reliably trigger.


Lookups (API — no login needed)

bash scripts/mb_lookup.sh <spotify-url>

Returns MB entity ID or "NOT FOUND". For other queries see references/api.md.

Search by name (no Spotify link)

# Build User-Agent: use bot name + MB username from .credentials.json if available
MB_USER=$(jq -r '.username // empty' ~/.openclaw/skills/musicbrainz/.credentials.json 2>/dev/null || true)
UA="${OPENCLAW_BOT_NAME:-OpenClawBot}/1.0 (${MB_USER:-anonymous}@users.noreply.musicbrainz.org)"

curl -s "https://musicbrainz.org/ws/2/artist/?query=<name>&fmt=json&limit=5" \
  -H "User-Agent: $UA" | jq '.artists[] | {id, name, score}'

Scraping Spotify

Use the oembed endpoint to get the artist/album name without a browser:

curl -s "https://open.spotify.com/oembed?url=<spotify-url>" | jq '.title'

For full discography scraping, use Playwright on /artist/<id>/discography/all and expand the viewport incrementally until all lazy-loaded content renders (see the expand loop pattern in references/api.md).


Progress Reporting (MANDATORY)

Message the user after EACH discrete operation completes:

  • Artist created → name + MBID + link
  • Release submitted → title + MBID + link
  • Cover art uploaded → confirmation

Never go silent for more than a few minutes during multi-release work.


Key Facts

  • New accounts are "Beginner" — edits queue for 7-day vote
  • Digital releases: Packaging=None, Country=[Worldwide], no barcode
  • MusicBrainz uses Knockout.js (not React) for forms — native property setters + dispatchEvent are required
  • page.selectOption() only works when the select element is visible in the viewport; use evaluate when elements may be hidden behind dialogs
  • Seeding docs: https://musicbrainz.org/doc/Development/Seeding/Release_Editor

适合场景

01

生成背景音乐

02

生成歌曲或旋律

03

视频和播客配乐

04

社媒内容音频素材

能力概览

能力 1

调用音乐生成模型

能力 2

支持文本到音乐或歌曲生成

能力 3

提供 CLI 示例和使用场景

能力 4

适合音频内容工作流

平台分布

OpenClaw

88.28%
按下载量换算885

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills