Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

lastfm-openclawlastfm OpenClaw 开发

Agent Skill

lastfm-openclaw 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,176

周安装

424

GitHub Stars

公开资料未说明

下载量

3,392
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install lastfm-openclaw

简介

访问 Last.fm 用户个人资料、正在播放的内容、按时期划分的热门曲目/艺术家/专辑、喜欢的曲目以及可选的喜欢/不喜欢的曲目。

SKILL.md

name
lastfm
description
Access Last.fm user profile, now playing, top tracks/artists/albums by period, loved tracks, and optionally love/unlove tracks.
metadata

Last.fm Profile Skill

Retrieves Last.fm user listening data including now playing, top tracks/artists/albums by time period, and loved tracks. Optionally supports write operations (love/unlove tracks, scrobble) when LASTFM_SESSION_KEY is configured.

Required Environment Variables

  • LASTFM_API_KEY: Your Last.fm API key (get one at https://www.last.fm/api/account/create)
  • LASTFM_USERNAME: Your Last.fm username

Optional Environment Variables

  • LASTFM_SESSION_KEY: Required for write operations (love/unlove, scrobble)
  • LASTFM_API_SECRET: Required to sign write operations (love/unlove, scrobble)

Workflow

  1. Validate required environment variables are present
  2. Ensure dependencies (jq, curl) are available
  3. Determine which command the user is requesting
  4. Determine which command the user is requesting
  5. Construct API request to ws.audioscrobbler.com/2.0/
  6. Execute HTTP GET request with appropriate method and parameters
  7. Parse JSON response and format for user

Supported Commands

Read Operations (No Auth Required)

CommandDescriptionExample
now-playing, npCurrent or most recent track/lastfm np
top-tracks [period]Top tracks by period/lastfm top-tracks 7day
top-artists [period]Top artists by period/lastfm top-artists 1month
top-albums [period]Top albums by period/lastfm top-albums overall
lovedLoved tracks/lastfm loved
recent [limit]Recent tracks (default 10)/lastfm recent 20
profileUser profile info/lastfm profile

Time Periods

  • 7day - Last 7 days
  • 1month - Last 30 days
  • 3month - Last 90 days
  • 6month - Last 180 days
  • 12month - Last year
  • overall - All time (default if not specified)

Write Operations (Auth Required)

CommandDescriptionExample
love <artist> <track>Love a track/lastfm love "Radiohead" "Creep"
unlove <artist> <track>Unlove a track/lastfm unlove "Radiohead" "Creep"

API Request Construction

Base URL: https://ws.audioscrobbler.com/2.0/

Required parameters for all requests:

  • api_key: Value from LASTFM_API_KEY
  • format: json
  • method: API method name

User-specific requests also require:

  • user: Value from LASTFM_USERNAME

Method Parameters

MethodAdditional Parameters
user.getInfouser
user.getRecentTracksuser, limit (optional)
user.getTopTracksuser, period (optional)
user.getTopArtistsuser, period (optional)
user.getTopAlbumsuser, period (optional)
user.getLovedTracksuser
track.loveartist, track, sk (session key)
track.unloveartist, track, sk (session key)

Response Parsing

Now Playing Response

Extract from recenttracks.track[0]:

  • If @attr.nowplaying === "true": currently playing
  • artist.#text - Artist name
  • name - Track name
  • album.#text - Album name

Top Items Response

Extract array from:

  • toptracks.track[] for top tracks
  • topartists.artist[] for top artists
  • topalbums.album[] for top albums

Each item includes:

  • name - Item name
  • playcount - Play count
  • artist.name - Artist (for tracks/albums)
  • @attr.rank - Position in chart

Profile Response

Extract from user:

  • name - Username
  • realname - Real name (if set)
  • playcount - Total scrobbles
  • country - Country
  • registered - Account creation date
  • url - Profile URL

Guardrails

  • Never log or expose API keys or session keys in output
  • Rate limit: respect Last.fm's 5 requests/second limit
  • Write operations must fail gracefully if LASTFM_SESSION_KEY not set
  • All user inputs must be URL-encoded before API calls
  • Only connect to ws.audioscrobbler.com - no external endpoints
  • Handle missing data gracefully (e.g., no now playing, empty loved tracks)
  • Validate period parameter is one of: 7day, 1month, 3month, 6month, 12month, overall
  • Validate recent limit is numeric and within 1–200

Error Handling

Error CodeMeaningAction
10Invalid API keyTell user to check LASTFM_API_KEY
6Invalid parametersCheck required params are present
29Rate limit exceededWait and retry, inform user
26Suspended API keyDirect user to Last.fm support
4Authentication failedCheck session key for write ops

Example Output Formats

Now Playing

🎵 Now Playing:
"Track Name" by Artist Name
from Album Name

Or if not currently playing:

🎵 Last Played:
"Track Name" by Artist Name
Listened: [timestamp]

Top Tracks

🎵 Top Tracks (7 days):

1. "Track One" by Artist One (42 plays)
2. "Track Two" by Artist Two (38 plays)
3. "Track Three" by Artist Three (31 plays)
...

Profile

🎵 Last.fm Profile: username

📊 15,432 total scrobbles
🌍 United Kingdom
📅 Member since: Nov 2002
🔗 last.fm/user/username

Setup Instructions

  1. Get a Last.fm API key at https://www.last.fm/api/account/create
  2. Add to ~/.openclaw/openclaw.json:
{
  skills: {
    entries: {
      lastfm: {
        enabled: true,
        env: {
          LASTFM_API_KEY: "your_api_key_here",
          LASTFM_USERNAME: "your_username"
        }
      }
    }
  }
}
  1. For write operations, see {baseDir}/references/auth-guide.md

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

82.4%
按下载量换算2,795

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills