appworld-spotify-set-based-aggregate-verification
AppWorld Spotify cleanup or bulk tasks where an aggregate state such as "an album is downloaded iff every song in it is downloaded" determines keep or remove decisions. Use when printed ID lists could be misread and per-item downloaded counts must be exact.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 394
- Forks
- 23
01 前言 Front Matter
- name
- appworld-spotify-set-based-aggregate-verification
- flashrsi
- { "level": "topic", "algorithm": "evo_harness", "source_task_ids": [ "229360a_1" ] }
- description
- AppWorld Spotify cleanup or bulk tasks where an aggregate state such as "an album is downloaded iff every song in it is downloaded" determines keep or remove decisions. Use when printed ID lists could be misread and per-item downloaded counts must be exact.
03 SKILL.md 正文
AppWorld Spotify: verify aggregate ID membership with sets
When keep/remove decisions depend on every member of a collection having a property, do not eyeball a printed ID list.
Rules
- Build the downloaded/property ID set once from the returned list.
- Check each album or playlist against that set programmatically:
downloaded = set(downloaded_song_ids)
for album_id, song_ids in albums.items():
all_downloaded = set(song_ids).issubset(downloaded)
downloaded_count = len(set(song_ids) & downloaded)
- Use set intersection/subset for membership checks. A printed list such as
[4, 8, 19, 21, 23, ...]is easy to misread; do not classify by eye. - Recompute any per-item downloaded counts from the sets, not from memory or earlier written reasoning.
Verification
Before answering, rerun the set logic and confirm each all-downloaded vs
partial classification matches issubset, and that reported counts equal the
computed intersection sizes.
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.