Spotify Skills for Claude - Production Spotify Integration + Complete Skills Toolkit
Quick Start β’ Features β’ Documentation β’ Examples β’ Tools
Spotify Skills for Claude is a comprehensive development platform that combines:
- π΅ Production Spotify API Skill - Fully-featured example with OAuth 2.0 and 40+ methods
- π οΈ Automated Development Tools - Create, validate, and package skills effortlessly
- π Educational Resources - Complete guides teaching skill creation from first principles
- π Official Specifications - The authoritative Agent Skills Spec v1.0
- π¨ 6 Curated Examples - Real-world skill patterns from Anthropic
Whether you want to use the Spotify skill or create your own skills, this project provides everything you need.
flowchart TB
subgraph "Claude Desktop"
CLAUDE[Claude AI Assistant]
end
subgraph "Spotify Skill Package"
SKILL[SKILL.md<br/>Main Documentation]
subgraph "Scripts (Python Tools)"
SC[spotify_client.py<br/>40+ API Methods]
PC[playlist_creator.py<br/>5 Creation Strategies]
CG[cover_art_generator.py<br/>Image Generation]
end
subgraph "References"
API_REF[api_reference.md<br/>API Documentation]
AUTH[authentication_guide.md<br/>OAuth 2.0 Setup]
LLM_GUIDE[COVER_ART_LLM_GUIDE.md<br/>Design Instructions]
end
end
subgraph "Development Tools"
INIT[init_skill.py<br/>Create New Skills]
VAL[validate_skill.py<br/>Structure Validation]
PKG[package_skill.py<br/>Distribution Packaging]
end
subgraph "Spotify Web API"
AUTH_API[OAuth 2.0<br/>Authentication]
subgraph "API Endpoints"
PLAYLIST_API[Playlist Management<br/>Create, Update, Delete]
SEARCH_API[Search & Discovery<br/>Tracks, Artists, Albums]
PLAYBACK_API[Playback Control<br/>Play, Pause, Skip]
USER_API[User Data<br/>Profile, Top Items, History]
IMAGE_API[Cover Upload<br/>ugc-image-upload]
end
end
subgraph "Image Generation Pipeline"
SVG[SVG Generation<br/>Text + Colors]
PNG[PNG Conversion<br/>cairosvg]
OPT[Image Optimization<br/>Pillow/JPEG]
end
%% Main Flow
CLAUDE -->|Loads Skill| SKILL
SKILL -->|References| SC
SKILL -->|References| PC
SKILL -->|References| CG
SKILL -->|Links To| API_REF
SKILL -->|Links To| AUTH
SKILL -->|Links To| LLM_GUIDE
%% Authentication Flow
SC -->|OAuth 2.0| AUTH_API
CG -->|OAuth 2.0| AUTH_API
AUTH -->|Guides| AUTH_API
%% API Operations
SC -->|GET/POST/PUT/DELETE| PLAYLIST_API
SC -->|Search Queries| SEARCH_API
SC -->|Control Commands| PLAYBACK_API
SC -->|Data Retrieval| USER_API
PC -->|Uses| SC
PC -->|Creates Playlists| PLAYLIST_API
PC -->|Searches Content| SEARCH_API
%% Cover Art Flow
CG -->|Analyzes Content| SC
CG -->|Reads Instructions| LLM_GUIDE
CG -->|Generates| SVG
SVG -->|Converts| PNG
PNG -->|Optimizes| OPT
OPT -->|Uploads| IMAGE_API
%% Development Tools
INIT -.->|Creates| SKILL
VAL -.->|Validates| SKILL
PKG -.->|Packages| SKILL
%% Styling
classDef claude fill:#FF6B35,stroke:#333,stroke-width:3px,color:#fff
classDef skill fill:#4A90E2,stroke:#333,stroke-width:2px,color:#fff
classDef script fill:#50C878,stroke:#333,stroke-width:2px,color:#fff
classDef reference fill:#9B59B6,stroke:#333,stroke-width:2px,color:#fff
classDef tool fill:#F39C12,stroke:#333,stroke-width:2px,color:#333
classDef api fill:#1DB954,stroke:#333,stroke-width:2px,color:#fff
classDef image fill:#E91E63,stroke:#333,stroke-width:2px,color:#fff
class CLAUDE claude
class SKILL skill
class SC,PC,CG script
class API_REF,AUTH,LLM_GUIDE reference
class INIT,VAL,PKG tool
class AUTH_API,PLAYLIST_API,SEARCH_API,PLAYBACK_API,USER_API,IMAGE_API api
class SVG,PNG,OPT image
-
spotify_client.py(838 lines, 40+ methods)- OAuth 2.0 authentication with auto-refresh
- Playlist management (CRUD operations)
- Search (tracks, artists, albums, playlists)
- Playback control (play, pause, skip, volume, shuffle)
- User data (profile, top items, saved tracks)
- Recommendations engine
- Audio features analysis
- Network access detection
-
playlist_creator.py(332 lines, 5 strategies)- Create by artist/band name
- Create by theme/mood keywords
- Create by lyrical content
- Create from song lists
- Create from AI recommendations
- Deduplication & batch processing
-
cover_art_generator.py(565 lines)- Content-driven design analysis
- SVG generation with text wrapping
- PNG conversion (cairosvg)
- Image optimization (Pillow)
- Direct upload to Spotify
- 20+ theme presets (legacy)
- WCAG 2.1 AA compliance
api_reference.md- Complete Spotify API documentationauthentication_guide.md- OAuth 2.0 setup instructionsCOVER_ART_LLM_GUIDE.md- Content analysis & color psychology guide
init_skill.py- Bootstrap new skill projectsvalidate_skill.py- Verify skill structure & contentpackage_skill.py- Create distributable .skill packages
Primary Use: Create and manage Spotify playlists, search music, control playback
β‘ UNIQUE CAPABILITY: Image Generation
This skill can generate images - something Claude cannot do natively! It creates custom SVG-based cover art and converts them to PNG images, bypassing Claude's built-in limitation.
- π¨ Custom Cover Art Generation: Auto-generate thumbnail-readable playlist cover images with:
- SVG β PNG image generation (Claude cannot generate images natively!)
- Automatic text wrapping for long playlist titles
- 20+ mood themes (summer, chill, energetic, romantic, nostalgic, etc.)
- 15+ genre color schemes (rock, jazz, electronic, blues, indie, etc.)
- 10 artist-specific moods (Beatles, Queen, Pink Floyd, Nirvana, etc.)
- Large typography (60-96px fonts) optimized for thumbnail readability
- 80% text width for maximum visibility at all sizes
- Smart element spacing to prevent overlap
- WCAG 2.1 compliant - Accessibility-first design with high contrast
- Comprehensive LLM guide - Detailed instructions for quality generation
- Intelligent Playlist Creation: Create playlists by artist, theme, lyrics, or song list
- Playlist Management: Create, update, delete, add/remove tracks
- Search & Discovery: Find tracks, artists, albums, playlists
- Playback Control: Play, pause, skip, volume, shuffle, and repeat
- User Data: Access profile, top items, and listening history
- Authentication: OAuth 2.0 with automatic token refresh
- Network Detection: Automatic error messages for blocked access
- Environment Setup:
.envfile support with example template
Cover Art Features:
- Large typography (60-96px) optimized for thumbnail visibility
- Text spans 80% of cover width for readability
- Smart element spacing prevents overlap
- Theme/genre/artist-appropriate color schemes
- Auto-optimization for Spotify's size requirements
For Advanced App Development:
- Robust error handling with
SpotifyAPIWrapper - Credential validation with clear error messages
- Data export for React/static web apps (see
ADVANCED_USAGE.md) - User Data: Access profile, top items, and listening history
- Recommendations: AI-powered music discovery
# Create a new skill from template
python tools/init_skill.py my-new-skill --path ./
# Validate skill structure and content
python tools/validate_skill.py ./my-new-skill
# Package skill for distribution
python tools/package_skill.py ./my-new-skill ./dist- Complete Guide - Step-by-step skill creation process
- Interactive Workbook - Fill-in-the-blank planning templates
- 6 Example Patterns - From minimal to advanced complexity
- Official Spec - Agent Skills Specification v1.0
π New to this project? Start with GETTING_STARTED.md for a simple 5-step setup guide!
- Enable network access in Claude Desktop (Settings β Developer β Allow network egress)
- Install dependencies:
pip install -r requirements.txt(includes image generation libraries!) - Get Spotify credentials from developer.spotify.com/dashboard
- Get refresh token:
python get_refresh_token.py - Test:
python spotify-api/scripts/test_credentials.py - β¨ Generate cover art:
python spotify-api/test_cover_art.py(Creates actual image files!)
Full instructions: GETTING_STARTED.md
-
Initialize a new skill:
python tools/init_skill.py my-api-skill --path ./
-
Study example patterns:
- Browse
examples/for 6 curated patterns - Read
Guide/SKILL_CREATION_GUIDE.mdfor principles
- Browse
-
Implement and validate:
# Develop your skill code my-api-skill/SKILL.md # Validate structure python tools/validate_skill.py ./my-api-skill # Package for distribution python tools/package_skill.py ./my-api-skill
| Document | Description |
|---|---|
| GETTING_STARTED.md | Start here - Simple 5-step setup guide |
| USER_GUIDE.md | Complete usage guide with examples |
| Document | Description |
|---|---|
| Guide/SKILL_CREATION_GUIDE.md | Complete skill creation tutorial |
| Guide/SKILL_CREATION_WORKBOOK.md | Interactive planning templates |
| Guide/ADVANCED_SKILL_EXAMPLES.md | 5 detailed skill patterns |
| agent_skills_spec.md | Official Agent Skills Spec v1.0 |
| Document | Description |
|---|---|
| tools/README.md | Development tools documentation |
| examples/README.md | 6 curated skill patterns |
| examples/EXAMPLES_REFERENCE.md | Detailed pattern analysis |
This project includes documentation for 6 curated skill patterns from the Anthropic Skills repository:
| Pattern | Complexity | Best For |
|---|---|---|
| template-skill | β Minimal | Quick start, learning basics |
| internal-comms | ββ Simple | Multi-mode workflows |
| theme-factory | ββ Medium | Reference libraries |
| brand-guidelines | βββ Medium | Visual/template skills |
| mcp-server | βββ Advanced | Technical guides |
| slack-gif-creator | ββββ Advanced | Complex toolkits |
Plus the Spotify API skill as a production-ready API integration example!
See examples/README.md for detailed pattern comparison.
We welcome contributions! Whether you're fixing bugs, improving docs, or creating new examples - your help makes this project better.
- π Report bugs - Open an issue
- π‘ Suggest features - Request a feature
- π Improve docs - Fix typos, clarify instructions, add examples
- π§ Submit code - Fork, code, test, and open a PR
- π¨ Share skills - Add your example skill to
examples/
# Fork and clone
git clone https://github.com/YOUR-USERNAME/spotify-skill.git
cd spotify-skill
# Set up environment
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r spotify-api/requirements.txt
# Make changes and validate
python tools/validate_skill.py ./spotify-api
# Open PR!Full guidelines: CONTRIBUTING.md
- π Bug fixes
- π Documentation improvements
- π¨ New example skill patterns
- β¨ Feature enhancements
Join the discussion: GitHub Discussions
Located in tools/ directory:
| Tool | Purpose |
|---|---|
| init_skill.py | Create new skills from template with proper structure |
| validate_skill.py | Validate SKILL.md format, YAML frontmatter, naming conventions |
| package_skill.py | Package skills as distributable .zip files |
# Create a new skill
python tools/init_skill.py weather-api --path ./skills
# Validate before distribution
python tools/validate_skill.py ./skills/weather-api
# Package for sharing
python tools/package_skill.py ./skills/weather-api ./distspotify-skill/
βββ spotify-api/ # Production Spotify skill
β βββ SKILL.md # Main skill documentation
β βββ scripts/ # Python API wrapper (40+ methods)
β βββ references/ # API and auth guides
βββ tools/ # Development utilities
β βββ init_skill.py # Skill initializer
β βββ validate_skill.py # Skill validator
β βββ package_skill.py # Skill packager
βββ examples/ # Curated skill patterns
β βββ README.md # Pattern comparison
β βββ EXAMPLES_REFERENCE.md # Detailed analysis
βββ Guide/ # Educational content
β βββ SKILL_CREATION_GUIDE.md
β βββ SKILL_CREATION_WORKBOOK.md
β βββ ADVANCED_SKILL_EXAMPLES.md
βββ agent_skills_spec.md # Official specification
- Read
Guide/SKILL_CREATION_GUIDE.mdsections 1-3 - Browse
examples/README.mdfor pattern overview - Study the Spotify skill as a complete example
- Complete
Guide/SKILL_CREATION_WORKBOOK.md - Deep-dive
examples/EXAMPLES_REFERENCE.md - Create your first skill using the tools
- Compare multiple patterns from
examples/ - Study Spotify skill's production architecture
- Implement complex skills with mixed patterns
This project includes proper security practices:
- β
.envfiles for credentials (never committed) - β OAuth 2.0 authorization code flow
- β Automatic token refresh
- β
.gitignorefor sensitive files β οΈ Never commit API credentials to version control
This project integrates content from multiple sources:
- Spotify Skill Code: Custom implementation (use freely)
- Development Tools: Apache License 2.0 (from Anthropic Skills)
- Agent Skills Spec: Apache License 2.0 (from Anthropic)
- Example Documentation: Apache License 2.0 (referencing Anthropic Skills)
See INTEGRATION_SUMMARY.md for complete licensing details.
Special thanks to:
- Anthropic PBC - For open-sourcing the Agent Skills system and exemplar skills
- Spotify - For providing the comprehensive Web API
- Claude - For the amazing AI capabilities that make skills possible
- Official Claude Skills Docs: https://support.claude.com/en/articles/12512198-how-to-create-custom-skills
- Anthropic Skills Repository: https://github.com/anthropics/skills
- Spotify Web API: https://developer.spotify.com/documentation/web-api
- Agent Skills Blog Post: https://anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills
- π Read the complete documentation
- π Report issues
- π‘ Join discussions
- π View changelog
- π€ Contributing guidelines
Built with β€οΈ for the Claude Skills community
β Star this repo if you find it helpful!
Current Release: v0.9.0 β’ Download Skill