appworld-spotify-playlist-duration-not-count
AppWorld Spotify tasks that select or start a playlist whose total duration must cover a fixed activity length. Use when playlist search or library endpoints return song_ids without durations and the plan might treat len(song_ids) as a proxy for total time.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 394
- Forks
- 23
01 前言 Front Matter
- name
- appworld-spotify-playlist-duration-not-count
- flashrsi
- { "level": "topic", "algorithm": "evo_harness", "source_task_ids": [ "b0a8eae_3" ] }
- description
- AppWorld Spotify tasks that select or start a playlist whose total duration must cover a fixed activity length. Use when playlist search or library endpoints return song_ids without durations and the plan might treat len(song_ids) as a proxy for total time.
03 SKILL.md 正文
AppWorld Spotify: sum song durations, not song counts
When a playlist must cover a time-based duration requirement, do not use the
number of song_ids as a proxy for total time.
Rules
- Playlist search/library endpoints expose
song_idsbut not per-song durations. For each candidate playlist, callshow_songfor eachsong_idand sum the durations. - Print one sample
show_songresponse first and use only the duration field actually returned/documented there; do not assume its name.
total = sum(
apis.spotify.show_song(song_id=sid)["<duration_field>"]
for sid in candidate["song_ids"]
)
- Only select or start a playlist whose summed duration meets or exceeds the required duration.
Verification
Before answering, confirm every candidate was compared by summed show_song
durations, not by len(song_ids). If any candidate was compared by count,
recompute its total duration from actual song durations and re-check the
requirement.
04 同仓库更多 Skills
dynamic-resources
Example skill loaded from resources_discover
hermes-agent
Use the FlashRSI Hermes Snapshot's headless Python runtime, tools, sessions, and compression paths.
skill-installer
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
review-agent
Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.
plugin-creator
Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.