spotify-history
Skill by sundial-org
Fetches a user's Spotify listening history, top artists and top tracks, and music recommendations through the Spotify Web API. Built for an AI assistant that answers questions about a user's music taste after a one-time OAuth setup.
Install spotify-history
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills /tmp/awesome-openclaw-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-openclaw-skills/skills/spotify-history ~/.claude/skills/spotify-historyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills /tmp/awesome-openclaw-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-openclaw-skills/skills/spotify-history ~/.gemini/antigravity-cli/skills/spotify-historyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The spotify-history skill lets an AI assistant read a user's Spotify listening data through the Spotify Web API. It can fetch recent plays, top artists and top tracks over short, medium or long time ranges. It can also generate recommendations based on top artists, and make raw calls to any Spotify endpoint.
Setup requires a Spotify Developer App, a stored Client ID and Client Secret, and a one-time OAuth authorization. Tokens are saved locally with 0600 permissions and refresh automatically when expired. The skill suits people who want their assistant to analyze music taste or suggest artists that are not already in their library.
Written from the project's SKILL.md and checked against it.
What it can do
- recentFetches the user's recent listening history.
- top-artistsLists top artists for a chosen time range.
- top-tracksLists top tracks for a chosen time range.
- recommendGenerates recommendations based on the user's top artists.
- jsonMakes a raw API call to any Spotify endpoint, such as /me.
What you need
- Spotify account
- Spotify Developer App with Client ID and Client Secret
- Python 3
- Bash for the setup wizard
- Browser, or the headless authorization flow
Try asking
- What have I been listening to recently?
- Who are my top artists over the last 6 months?
- Recommend new music based on my top artists.
Good to know
- Requires a one-time OAuth setup before use.
- All listed scopes are read scopes for listening history, top items and playback state.
- Time ranges are approximate: short_term is about 4 weeks and medium_term about 6 months.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/spotify-history/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to spotify-history
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
spotify-history: common questions
Where are Spotify tokens stored?
Tokens are saved to ~/.config/spotify-clawd/token.json with 0600 permissions. They refresh automatically when expired.
What time ranges can I query?
short_term covers about the last 4 weeks, medium_term about the last 6 months (the default), and long_term all time.
Can I authorize Spotify without a browser?
Yes. The --headless flag lets you open the auth URL on any device and paste the callback URL back when prompted.
How do I install spotify-history?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is spotify-history free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is spotify-history safe to use?
It scores 53 of 100. Grades: maintenance D, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to spotify-history?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
