setup
Check that all media-management paths (Downloads, Apple Music, NAS archive, rekordbox-mcp) are resolvable via env var or config.json, and help the user fix any that are missing. Use when paths seem not configured, when a skill fails to resolve a path, when explicitly asked to set up/configure the plugin, or when asked where its config lives or how path resolution works. Not for checking whether a drive, NAS or folder is online or reachable.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- setup
- description
- Check that all media-management paths (Downloads, Apple Music, NAS archive, rekordbox-mcp) are resolvable via env var or config.json, and help the user fix any that are missing. Use when paths seem not configured, when a skill fails to resolve a path, when explicitly asked to set up/configure the plugin, or when asked where its config lives or how path resolution works. Not for checking whether a drive, NAS or folder is online or reachable.
- allowed-tools
- Bash Read Write
02 资源文件 3
- 参考文档evals/eval_queries.json1.0 KB
- 参考文档evals/evals.json7.6 KB
- 脚本scripts/check-config.sh2.7 KB
03 SKILL.md 正文
Setup
Scripts are in scripts/ relative to this skill directory.
Step 1: Check current configuration
Run:
bash scripts/check-config.sh
This returns JSON with config_path, config_exists, items (one entry per key,
each with its env_var, whether it's required, the resolved value, and
source: env, config, or missing), and missing_required (keys with no
value from either source).
Step 2: If nothing is missing
If missing_required is empty, report a status table and stop. The Source column
must say exactly where the value came from, not just env or config:
- If
sourceisenv, show the actual env var name, e.g.env: MEDIA_MGMT_DOWNLOADS. - If
sourceisconfig, show the config file path, e.g.config: ~/.config/media-management/config.json.
| Key | Value | Source |
|---|---|---|
| downloads | ~/Downloads | env: MEDIA_MGMT_DOWNLOADS |
| library_import | ... | config: ~/.config/media-management/config.json |
Mention the optional keys in passing, without treating a missing one as a problem:
rekordbox_mcp_path: only needed for therekordbox-databaseMCP tools.cd_read_offset: the optical drive's read offset in samples, forrip-cd's AccurateRip check (e.g.6for a TSSTcorp SE-506). Without it a rip is still secure but will not match AccurateRip.rip-cdsays when to set it.work_dir: where temporary work (rips, encodes, plans) goes. Unset means$TMPDIR/media-management; never suggest Downloads or the home folder.
Step 3: If required keys are missing
Present the missing keys to the user, one at a time, asking for the absolute path for each:
downloads— where their purchased ZIPs land (e.g.~/Downloads)library_import— the Apple Music auto-import folder. If the user isn't sure, suggest they run:find ~ -name "Automatically Add to Music.localized" -type d 2>/dev/nulllibrary_storage— the Apple Music library location (e.g.~/Music)archive_workdir— the NAS/archive staging directory
Expand ~ to the user's home directory before saving. Confirm each value back to
the user before moving to the next.
Step 4: Write config.json
Once all missing required values are collected, merge them into the existing
config (if config_exists was true, read it first and preserve any keys not
being updated) and write the result to config_path (creating the parent
directory if needed) using the Write tool. Use this shape:
{
"downloads": "...",
"library_import": "...",
"library_storage": "...",
"archive_workdir": "...",
"processed": "...",
"rekordbox_mcp_path": "...",
"cd_read_offset": 6,
"work_dir": "..."
}
Omit keys the user didn't provide and that weren't already present.
Step 5: Mention the environment variable alternative
Let the user know they can skip config.json entirely by exporting the
corresponding MEDIA_MGMT_* env var (see env_var in the Step 1 output) in
their shell profile instead — env vars always take priority over config.json.
Special case — rekordbox_mcp_path: this one is read directly by
.mcp.json when Claude Code launches the rekordbox-database MCP server, and
.mcp.json can only substitute environment variables, not config.json
values. Writing it to config.json is still useful for bookkeeping, but if the
user wants the rekordbox tools to actually work, they must also
export MEDIA_MGMT_REKORDBOX_MCP_PATH=... in their shell profile and restart
their terminal / Claude Code session.
04 同仓库更多 Skills
doctor
暂无简介
add-seat
Add a named seat to a Wheelhouse - a crew member, a standing role (such as a dispatcher) or a worker - as a ynh harness with its charter, standing orders and only the tools its job needs, named from the Wheelhouse's roster. Use when asked to add, create or set up a seat, role, worker or agent in a Wheelhouse (a release manager, a PR watcher, a dispatcher, a designer, more workers), or to give a role a name, or to start on a Wheelhouse's team (its starter team), one role at a time. Also use to trial, make official or drop a seat.
voice
How voices work - what a voice skill contains, how to write a new one, and how several voices compose into one reply. Use whenever drafting a reply in a named voice, or when asked to create or change a voice.
voice-warm
A friendly voice that acknowledges the person and their effort. Compose with direct for friendly but brief.
voice-formal
A careful, complete voice for people outside the team - customers, partners, senior stakeholders.
voice-direct
A plain, brief voice that leads with the answer. The default when no voice is named.