spotifust-spotify-api
Skill by gefydev
Explains the Spotify Web API auth, endpoint restrictions and data providers used in Spotifust. Written for developers editing src/api/ or debugging endpoint, login and lyrics problems.
Install spotifust-spotify-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/gefydev/spotifust /tmp/spotifust && mkdir -p ~/.claude/skills && cp -r /tmp/spotifust/.agents/skills/spotifust-spotify-api ~/.claude/skills/spotifust-spotify-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/gefydev/spotifust /tmp/spotifust && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/spotifust/.agents/skills/spotifust-spotify-api ~/.gemini/antigravity-cli/skills/spotifust-spotify-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install spotifust-spotify-api in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the Spotify Web API layer and third-party data providers used in Spotifust. It covers the rspotify 0.16 PKCE client, login through a custom spotifust:// callback, and keychain storage for refresh and session tokens. It also lists the development-mode endpoint restrictions measured on a real account, plus notes on latency, image selection, LRCLIB lyrics and Wikipedia artist bios.
It is written for developers editing src/api/ or debugging endpoint errors such as 403, 404 and 429. It also covers login and token problems, slow search, missing covers, missing lyrics and artist bios. Recipes show how to run read-only live tests against a real account and how to probe an endpoint's status, while the source says never to print tokens.
Written from the project's SKILL.md and checked against it.
What it can do
- Client and auth setupBuilds the rspotify PKCE client with the app's client id and the spotifust://callback redirect.
- Token storageKeeps refresh and session tokens in the keychain and reuses a session token with more than 5 minutes left.
- Error handlingRetries 429 responses after Retry-After and retries once on 401 for tokens that have expired.
- Dev-mode fallbacksLists endpoints that return 403 or 404 in development mode and the fallback used for each.
- Search performanceUses one search_multiple request with a 150 ms debounce and a 32-entry per-query cache.
- Image selectionPicks the smallest image at least 300px wide and thumbnails covers to 256px.
- Lyrics lookupQueries LRCLIB by primary artist, album and duration, with a title search fallback.
- Artist biosLooks up Wikipedia summaries using name variants and accepts only pages that match a music-act keyword check.
- Live endpoint probesProvides recipes for read-only tests against a real account and for checking endpoint status codes.
What you need
- A Spotify account for live tests
- Rust toolchain with cargo
- Spotifust source code
- OS keychain access (keyring)
Try asking
- Why does a Spotify artist endpoint return 403 in Spotifust?
- Write an ignored live test that probes an endpoint's status code.
- Why are lyrics empty for a track? Check the LRCLIB parsing.
Good to know
- The client id is a development-mode app, so some endpoints return 403 or 404.
- Revoked tokens that have not expired yet still log the user out (known debt in TODO.md).
- The in-memory MetadataCache is unused (debt).
- The custom protocol is registered only on Linux.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/spotifust-spotify-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to spotifust-spotify-api
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
spotifust-spotify-api: common questions
Why do some Spotify endpoints return 403 in Spotifust?
The app uses a development-mode client id. The source lists which endpoints return 403 or 404 and the fallback used for each.
Why were Spotifust lyrics empty?
LRCLIB responds in camelCase, and snake_case structs silently got None. The source identifies that as the cause.
How does Spotifust find Wikipedia artist bios?
It builds summary URLs from title segments, tries name variants, and accepts only pages that pass a music-act keyword check.
How do I install spotifust-spotify-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is spotifust-spotify-api free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is spotifust-spotify-api safe to use?
It scores 52 of 100. Grades: maintenance B, licence C, quality C. 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 spotifust-spotify-api?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
