Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

lastfm-spotify-playlistsLastfm Spotify 播放列表

Agent Skill

lastfm-spotify-playlists 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,169

周安装

172

GitHub Stars

公开资料未说明

下载量

1,362
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:lastfm-spotify-playlists(Lastfm Spotify 播放列表)
来源仓库:https://github.com/stanestane/lastfm-spotify-playlists
安装命令:
openclaw skills install lastfm-spotify-playlists
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install lastfm-spotify-playlists

简介

使用 Last.fm 相似度和收听历史记录构建音乐推荐并创建 Spotify 播放列表。

SKILL.md

name
lastfm-spotify-playlists
description
Build music recommendations and create Spotify playlists using Last.fm similarity and listening history.

Execution Model

This skill runs directly via local Python scripts.

Valid entrypoints:

  • python run_pipeline.py ...
  • python auth.py

Absolute rules

  • Do NOT use ACP
  • Do NOT request or require an agentId
  • Do NOT propose manual workflows
  • Do NOT suggest alternative scripts or paths
  • Do NOT reference any scripts/ directory
  • Do NOT use python -m module execution
  • Do NOT assume the package must be installed

All commands must be executed from the root of this skill folder.


Critical Behavior Rules

If the user asks for:

  • creating a playlist
  • adding songs to Spotify
  • saving results to Spotify

You MUST execute:

--output-mode spotify --create-playlist

Primary entrypoints:
- `python run_pipeline.py ...`
- `python auth.py ...`

This skill is intentionally organized as plain scripts plus helper modules:
- `run_pipeline.py`
- `auth.py`
- `lastfm.py`
- `spotify.py`
- `pipeline.py`
- `common.py`

No package installation is required.

# Purpose

This skill:
- uses Last.fm as the discovery engine
- expands seeds through `track.getsimilar`
- ranks merged candidates
- optionally matches results on Spotify
- optionally creates Spotify playlists

# Requirements

## Python
A normal local Python interpreter must be available.

## Last.fm credentials
Supported sources:
- environment variables:
  - `LASTFM_API_KEY`
  - `LASTFM_SHARED_SECRET`
  - `LASTFM_USERNAME`
- credentials file:
  - `~/.openclaw/lastfm-credentials.json`
- explicit file path via command flag:
  - `--creds <path>`

Example file:

{ "api_key": "YOUR_LASTFM_API_KEY", "shared_secret": "YOUR_LASTFM_SHARED_SECRET", "username": "YOUR_LASTFM_USERNAME" }


## Spotify credentials
Needed only for Spotify matching or playlist creation.

Supported sources:
- environment variables:
  - `SPOTIFY_CLIENT_ID`
  - `SPOTIFY_CLIENT_SECRET`
  - `SPOTIFY_REDIRECT_URI`
- credentials file:
  - `~/.openclaw/spotify-credentials.json`
- explicit file path via command flag:
  - `--spotify-creds <path>`

Saved token location:
- `~/.openclaw/spotify-token.json`
- or explicit path via `--spotify-token <path>`

# Command Selection

## 1. Recommend from recent Last.fm listening
Use when the request is based on a user's recent scrobbles.

python run_pipeline.py recent-tracks --user "<LASTFM_USER>" --recent-count 10 --similar-per-seed 5 --final-limit 20 --output-mode lastfm-only


## 2. Recommend from a seed artist
Use when the request is based on one artist.

python run_pipeline.py artist-rule-c "<ARTIST_NAME>" --seed-count 5 --similar-per-seed 10 --final-limit 20 --output-mode lastfm-only


## 3. Recommend from top artists
Use when the request is based on a user's broader taste profile.

python run_pipeline.py top-artists-blend --user "<LASTFM_USER>" --period 1month --artist-count 5 --seed-count-per-artist 3 --similar-per-seed 5 --final-limit 20 --output-mode lastfm-only


## 4. Match recommendations to Spotify
Use when the user wants playable Spotify results but not necessarily a playlist.

python run_pipeline.py recent-tracks --user "<LASTFM_USER>" --recent-count 10 --final-limit 20 --output-mode spotify


## 5. Create Spotify playlist
Use when the user explicitly wants a playlist created.

python run_pipeline.py recent-tracks --user "<LASTFM_USER>" --recent-count 10 --final-limit 20 --output-mode spotify --create-playlist --playlist-name "Last.fm Recommendations"


## 6. Run Spotify auth
Use when Spotify token setup is required.

python auth.py


Optional explicit paths:

python auth.py --spotify-creds "<PATH_TO_SPOTIFY_CREDS_JSON>" --spotify-token "<PATH_TO_SPOTIFY_TOKEN_JSON>"


# Behavior Rules

- Prefer Last.fm for recommendation discovery
- Use Spotify only for:
  - search
  - playlist creation
  - playlist population
- If the user only wants suggestions, use `--output-mode lastfm-only`
- If the user wants Spotify results, use `--output-mode spotify`
- If the user wants a playlist created, add `--create-playlist`
- Never invent missing credentials
- Never fall back to ACP or agent execution

# Output Expectations

The scripts print JSON to stdout.

Return the JSON result directly or summarize it faithfully.

Typical fields include:
- `mode`
- `user`
- `seed_artist`
- `seed_tracks`
- `suggestions`
- `matched_tracks`
- `unmatched_tracks`
- `playlist`

# Error Handling

If the script exits with an error:
- surface stderr or the raised error message directly
- do not retry through ACP
- do not ask for an agentId
- do not claim the skill is unavailable because it is not a package

Common expected failures:
- missing Last.fm API key
- missing Last.fm username
- missing Spotify credentials
- missing Spotify token
- expired Spotify token without refresh token

# Notes

This skill is intentionally script-based for reliability.

It should work as long as:
- the skill folder is present
- Python is present
- credentials are configured
- commands are executed from the skill folder root

It must not depend on package installation, editable installs, or import path manipulation.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.98%
按下载量换算1,117

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills