Open source CapCut alternative.
TypeScript
Update music skill with discovery keywords and act-first guidance
David Le2189250f87be
diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/music-media/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/music-media/SKILL.mdindex b83e091e..e6ef02fb 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/music-media/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/music-media/SKILL.md@@ -2,16 +2,19 @@id: music-mediadescription: Plan low-risk media playback in Apple Music or another supported media app.tags: media, music, playback, local-app+keywords: play, listen, music, song, track, tune, album, playlist, artist, band, audio, podcast, radio, pause, resume, volumetools: app.openOrFocus, app.observe, ui.focusSearch, ui.setText, ui.pressReturn, app.verifyVisibleTextscripts: scripts-play-media-by-searchUse this skill for play or listen requests when a supported media app or a `play_media` catalog capability is available.+Playing media is a low-risk, reversible action: act directly, do not ask the user to confirm or for more detail. For a vague request (e.g. "play some coldplay") pick one concrete representative song yourself and play it; for a named song use it. Return the local app task with `needsConfirmation=false`. Only return clarification when no concrete song can be chosen at all.+First decide the playback source. Use `metadata.mediaSelection.source=local_library` only when the user explicitly asks for local, library, downloaded, or owned music. Otherwise use `metadata.mediaSelection.source=streaming`; Apple Music is normally a streaming catalog, so the workflow should search, find an actual playable streaming result, and play it.For explicit songs, albums, or playlists, put the concrete playable title plus artist when known in `query`.-For vague artist, mood, or genre playback requests, choose one concrete representative song before returning task JSON. Do not choose a representative album, artist page, library item, station, or genre page when the user asks to play music. Do not use an artist-only query for playback unless the user explicitly asks to open an artist page, artist albums, artist radio, station, or another browsing surface. If you cannot choose one concrete representative song with high confidence, return clarification instead of a local app task.+For vague artist, mood, or genre playback requests, choose one concrete representative song before returning task JSON. Do not choose a representative album, artist page, library item, station, or genre page when the user asks to play music. Do not use an artist-only query for playback unless the user explicitly asks to open an artist page, artist albums, artist radio, station, or another browsing surface.Set `metadata.mediaSelection.kind` to `explicit_song`, `explicit_album`, `explicit_playlist`, or `representative_song`, and always set `metadata.mediaSelection.source` to `streaming` or `local_library`. For representative choices, also set `metadata.mediaSelection.seed`, `metadata.mediaSelection.selectedTitle`, and a short `metadata.mediaSelection.reason`. The `query` must include the selected song title and artist, not only the artist, album, genre, or mood seed.