Setlist fm

From mvanhorn/printing-press-library · View interactive version

Setlist fm is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Every Setlist.fm endpoint, plus offline analytics no API call can return — tour shape, song frequency, what's overdue, setlist prediction. Trigger phrases: `predict the setlist`, `what songs are overdue for`, `look up setlist for`, `how often does X play Y`, `compare these two tours`, `use setlist-f

How to use this skill

Skill file

Setlist.fm — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the setlist-fm-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install setlist-fm --cli-only

```

  1. Verify: setlist-fm-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/setlist-fm/cmd/setlist-fm-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Reach for this CLI whenever an agent or user needs to reason across many of an artist's setlists at once — predicting a show, finding an overdue song, counting how often a cover is played, comparing two tours, or building a dashboard of a user's attended history. Use the raw search/get commands for one-shot lookups; use the transcendence commands (predict, overdue, tour shape, compare, attended stats) when you need an aggregate the API cannot return in one call. The 2-RPS rate limit makes this CLI strictly faster than any live-API wrapper for repeated questions.

When Not to Use This CLI

Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Predictive analytics

_When an agent or fan asks 'what will they play tonight', this answers it with confidence-ranked output instead of forcing a manual scrape of the last ten setlists._

```bash

setlist-fm-pp-cli predict 'Radiohead' --last 10 --songs 22 --agent

```

_Answers the canonical fan question ('when was the last time they played X?') without burning 50 API calls._

```bash

setlist-fm-pp-cli song-stats 'Radiohead' 'Paranoid Android' --agent

```

_Lets an agent predict the 'wildcard' slot of a setlist without re-fetching the artist's whole tour._

```bash

setlist-fm-pp-cli overdue 'Radiohead' --top 10 --agent

```

_Lets agents narrate band history without re-fetching the full setlist history._

```bash

setlist-fm-pp-cli song-gap 'Radiohead' 'Creep' --agent

```

Tour analytics

_Gives an agent a one-shot summary of how an artist is structuring a tour, replacing dozens of read calls._

```bash

setlist-fm-pp-cli tour-shape 'Radiohead' --tour 'A Moon Shaped Pool Tour' --agent

```

_Surfaces tour evolution in one call for review/journalism workflows._

```bash

setlist-fm-pp-cli compare 'Phoenix' --tour 'Ti Amo Tour' --tour 'Alpha Zulu Tour' --agent

```

_Lets agents answer 'what do they always close with?' offline._

```bash

setlist-fm-pp-cli encore 'Radiohead' --agent

```

_Lets agents reason about artist-venue affinity without dozens of API calls._

```bash

setlist-fm-pp-cli venue-loyalty 'Phish' --agent

```

Discovery

_Surfaces fan-discovery moments (rare covers, recurring covers) for journalism or curation._

```bash

setlist-fm-pp-cli covers 'Phoebe Bridgers' --top 20 --agent

```

_Lets agents answer 'what changed between these two shows' without parsing two responses by hand._

```bash

setlist-fm-pp-cli setlist-diff 53e3ab04 7be1aaa0 --agent

```

_Surfaces one-off oddities (one-time covers, abandoned originals) for rare-finding workflows._

```bash

setlist-fm-pp-cli debut 'Phoenix' --agent

```

Collector tools

_Delivers a one-shot collector dashboard that the website does not produce._

```bash

setlist-fm-pp-cli attended-stats dave42 --agent

```

_Fan-festival use case; gives a delightful tangible output the API was never going to ship._

```bash

setlist-fm-pp-cli bingo 'Radiohead' --songs 25

```

_Lets a daily-digest agent stay current without re-syncing the full history._

```bash

setlist-fm-pp-cli since 2026-05-01T00:00:00Z --artist 'Radiohead' --agent

```

_Turns a concert log into something an agent or user can listen to in one command — the bridge between data and ear that no wrapper builds._

```bash

setlist-fm-pp-cli playlist 'Radiohead' --last 1 --output csv > radiohead-last-show.csv

```

Command Reference

Artists & Setlists

Search

Venues, Cities & Users

Analytics (offline, from local store)

Sync & Utilities

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

setlist-fm-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

Predict tonight's setlist

setlist-fm-pp-cli sync artist 'Radiohead' --max-pages 5 && setlist-fm-pp-cli predict 'Radiohead' --last 10 --songs 22 --agent --select songs.name,songs.probability,songs.last_played

Sync the recent tour into the store, then output a ranked setlist prediction with only the three fields an agent needs — drops a 30 KB response to ~2 KB.

What's overdue for a comeback?

setlist-fm-pp-cli overdue 'Phish' --top 10 --agent

Lists the ten songs Phish has gone the longest without playing, ordered by show-count gap.

Compare two tours

setlist-fm-pp-cli compare 'Phoenix' --tour 'Ti Amo Tour' --tour 'Alpha Zulu Tour' --agent

Shows song overlap, dropped songs, debuts, and set-position shifts between two named tours.

Build a fan bingo card

setlist-fm-pp-cli bingo 'The National' --songs 25

Generates a printable 5×5 card of the most-likely-to-play songs for the next show.

My concert dashboard

setlist-fm-pp-cli attended-stats myUsername --agent

Returns total shows, unique artists/songs/venues, biggest streak, longest gap — the dashboard the website doesn't render.

Auth Setup

Get a free API key at https://www.setlist.fm/settings/api. The CLI looks for SETLISTFM_API_KEY in the environment and falls back to SETLIST_FM_API_KEY for compatibility with existing Python and JavaScript tooling. Run setlist-fm-pp-cli auth set-token <key> to persist it in the config file. All requests automatically throttle to 2 RPS and surface 429 responses with a backoff hint.

Run setlist-fm-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

setlist-fm-pp-cli artist get a74b1b7f-71a5-4011-9441-d0b5e4122711 --agent --select mbid,name

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

setlist-fm-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
setlist-fm-pp-cli feedback --stdin < notes.txt
setlist-fm-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.setlist-fm-pp-cli/feedback.jsonl. They are never POSTed unless SETLIST_FM_FEEDBACK_ENDPOINT is set AND either --send is passed or SETLIST_FM_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

setlist-fm-pp-cli profile save briefing --json
setlist-fm-pp-cli --profile briefing artist get a74b1b7f-71a5-4011-9441-d0b5e4122711
setlist-fm-pp-cli profile list --json
setlist-fm-pp-cli profile show briefing
setlist-fm-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show setlist-fm-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:

```bash

go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/setlist-fm/cmd/setlist-fm-pp-mcp@latest

```

  1. Register with Claude Code:

```bash

claude mcp add setlist-fm-pp-mcp -- setlist-fm-pp-mcp

```

  1. Verify: claude mcp list

Direct Use

  1. Check if installed: which setlist-fm-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

setlist-fm-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: setlist-fm-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.