360 Secure SkillHub
360 安全技能中心

Discogs Claw

接收含唱片查询词的 JSON 输入,调用 Discogs API 检索唱片,返回低、中、高品相价格建议以及在售数量与最低价,并以结构化 JSON 输出。需要 Discogs API Token,依赖 curl 与 jq。

分类:生活
abreumatheus
abreumatheus
热度 18.17
最近更新 2026-05-11 17:26:10

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add abreumatheus/discogs-claw
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
discogs-claw
description
Search for vinyl record prices on Discogs using curl. Retrieves Low, Median, and High price suggestions based on condition.
metadata
{"clawdbot":{"emoji":"💿","requires":{"bins":["jq","curl"]}}}

Discogs Claw

Search for vinyl record prices on Discogs using the Discogs API.

Setup

Option 1: Environment Variable (Recommended)

export DISCOGS_TOKEN="your_discogs_token_here"

Option 2: Config file

Located on ~/.openclaw/credentials/discogs.json or /data/.openclaw/credentials/discogs.json

{
  "DISCOGS_TOKEN": "your_discogs_token_here"
}

Usage

Run the Skill

The skill accepts a JSON input containing the search query.

# Example search
echo '{"query": "Daft Punk - Random Access Memories"}' | ./scripts/discogs.sh

Example Output

This is an example json output after running the script:

{
  "title": "Daft Punk - Random Access Memories",
  "prices": {
    "low": "25.00 USD",
    "median": "35.00 USD",
    "high": "60.00 USD"
  },
  "marketplace": {
    "num_for_sale": 150,
    "lowest_price": "22.50 USD"
  }
}

With this data the agent should output a very objective response containing only the data abvoe and ignoring further historical details about the record. Just the title with artist and pricing information. It should ever use emojis.

Requirements

  • curl
  • jq
  • Discogs API Token (DISCOGS_TOKEN)