agentCLAWHUBUnverified

Cd2flac

Convert CD audio archives (RAR files containing WAV+CUE pairs) into organized FLAC files. Handles RAR extraction, CUE-based track splitting, GBK encoding fix... Skill: Cd2flac Owner: hanshojin Summary: Convert CD audio archives (RAR files containing WAV+CUE pairs) into organized FLAC files. Handles RAR extraction, CUE-based track splitting, GBK encoding fix... Tags: audio:1.2.1, chinese:1.2.1, converter:1.0.0, cue:1.2.1, flac:1.2.1, latest:1.3.1, lyrics:1.2.1, music:1.2.1, netease:1.2.1, wav:1.2.1 Version history: v1.3.1 | 2026-05-29T09:31:04.885Z | user 新增 DSF/SACD 格式支持,可通过

OpenClaw

Rank

62

Safety

84

Downloads

1.0k

Updated

Oct 11, 2026

Version

1.3.1

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
1K downloadsadoption · observed Oct 11, 2026
Latest release
1.3.1release · observed May 29, 2026
Handshake status
UNKNOWNsecurity

Install and run

Setup complexity: low.

clawhub skill install s17dbfqvbfr8qxnqrg39mgdg8185rt7m:cd2flac
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-hanshojin-cd2flac/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

36,556 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: cd2flac
description: |
  Convert CD audio archives (RAR files containing WAV+CUE pairs) into organized
  FLAC files. Handles RAR extraction, CUE-based track splitting, GBK encoding
  fix for Chinese filenames, multi-CD album organization, and auto-fetch synced
  lyrics from Netease Cloud Music (with Kugou fallback). Use whenever someone
  needs to extract and convert CD-quality audio archives (WAV+CUE in RAR/7z/ZIP)
  to per-track FLAC files. Also handles direct WAV+CUE pairs without archives.
---

# CD to FLAC Converter

Tool to extract CD audio from RAR archives and convert WAV+CUE pairs into
individual FLAC tracks with correct names and synced lyrics.

## Requirements

- **System packages**: `unrar`, `cuetools`, `shntool`, `flac`
- Install: `sudo apt-get install -y unrar cuetools shntool flac`

## Python dependencies

- `mutagen` (FLAC tag handling)
- `pycryptodome` (Netease API encryption)
- Install: `pip3 install mutagen pycryptodome`

## Usage

```bash
python3 skills/cd2flac/scripts/cd2flac.py <directory> [options]
```

### Basic — process RAR archives in a directory

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/"
```

### With synced lyrics (Netease + Kugou)

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/" --lyrics
```

### Inject lyrics into already converted FLACs (no conversion)

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/" --lyrics-only
```

### Standalone lyric injector (for any FLAC directory)

```bash
python3 skills/cd2flac/scripts/lyric.py "/path/to/album/"
python3 skills/cd2flac/scripts/lyric.py "/path/to/track.flac"
```

### Dry run — preview without changes

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/" --dry-run
```

### Keep WAV/CUE, delete RAR after extraction

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/" --keep-wav --delete-rar
```

### Process subdirectories recursively

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/" --recursive --lyrics
```

### Process already-extracted WAV+CUE pairs (no RAR)

```bash
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/album_with_wav/"
```

## What It Does

1. **Extract**: Unpacks RAR archives in the target directory
2. **Parse CUE**: Reads CUE sheets in GBK/GB18030/UTF-8 encoding, extracts track titles
3. **Split**: Uses `shnsplit` to split each WAV into individual FLAC tracks
4. **Fix names**: Renames garbled tracks (CUE files in Chinese encodings produce mojibake filenames) using correct track titles from the CUE sheet
5. **Organize**: Multi-CD albums get `CD1/`, `CD2/`, etc. subdirectories
6. **Lyrics**: Auto-fetch synced lyrics from Netease Cloud Music (primary) and Kugou (fallback), inject as FLAC LYRICS tag with translation support
7. **Clean up**: Deletes original WAV and CUE files (optional: keep them)

## Lyric Injection

Lyrics are fetched using the same strategy as ESLyric:
- **Primary**: Netease Cloud Music via linuxapi (AES-ECB encryption, no login ne

_meta.json

{
  "ownerId": "kn7621a0m45rgjx0e1xjfy9th985ratg",
  "slug": "cd2flac",
  "version": "1.3.1",
  "publishedAt": 1780047064885
}

skill-card.md

## Description:

Converts CD audio archives and WAV/CUE pairs into organized per-track FLAC files, with optional synced lyric lookup and embedding.

This skill is ready for commercial/non-commercial use.

## Publisher:

[hanshojin](https://clawhub.ai/user/hanshojin)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and audio library maintainers use this skill to prepare and run conversion workflows for RAR archives or WAV/CUE album sources, split tracks into FLAC files, organize multi-disc albums, and optionally add synced lyrics.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The conversion workflow can modify music files and delete source WAV, CUE, or RAR files when cleanup options are used.

Mitigation: Run on backed-up copies first, use --dry-run before conversion, keep source WAV/CUE files with --keep-wav --keep-cue, and avoid --delete-rar until outputs are verified.

Risk: Lyric lookup can send track metadata to Netease and Kugou, and the Kugou fallback uses insecure HTTP endpoints.

Mitigation: Use --lyrics or lyric.py only when sharing track metadata with those services is acceptable; skip lyric lookup for private libraries or sensitive metadata.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/hanshojin/skills/cd2flac)
- [Netease Cloud Music lyric endpoint](https://music.163.com/api/linux/forward)
- [Kugou mobile search endpoint](http://mobilecdn.kugou.com/api/v3/search/song?format=json&keyword={encoded}&page=1&pagesize=5)
- [Kugou lyric endpoint](http://m.kugou.com/app/i/krc.php?cmd=100&hash={song_hash}&timelength=999999)

## Skill Output:

**Output Type(s):** [guidance, shell commands, configuration, files]

**Output Format:** [Markdown with inline bash commands; generated FLAC and lyric files when the scripts are run]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [The workflow can modify local music libraries and can call external lyric services when lyric lookup is enabled.]

## Skill Version(s):

1.3.1 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/hanshojin/skills/cd2flac",
      "sourceUrl": "https://clawhub.ai/hanshojin/skills/cd2flac",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T18:15:13.257Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-hanshojin-cd2flac/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-hanshojin-cd2flac/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T18:15:13.257Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "1K downloads",
      "href": "https://clawhub.ai/hanshojin/cd2flac",
      "sourceUrl": "https://clawhub.ai/hanshojin/cd2flac",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T18:15:13.257Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.3.1",
      "href": "https://clawhub.ai/hanshojin/cd2flac",
      "sourceUrl": "https://clawhub.ai/hanshojin/cd2flac",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-05-29T09:31:04.885Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-hanshojin-cd2flac/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-hanshojin-cd2flac/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.3.1",
      "description": "新增 DSF/SACD 格式支持,可通过网易云音乐搜索并注入歌词到 TXXX:LYRICS 标签",
      "href": "https://clawhub.ai/hanshojin/cd2flac",
      "sourceUrl": "https://clawhub.ai/hanshojin/cd2flac",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-05-29T09:31:04.885Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 11, 2026.

Sponsored

Ads related to Cd2flac and adjacent AI workflows.