RECOUP.md with one checkbox per step before any API call, then tick each box and persist captured values back to the frontmatter as you go. The file becomes the workflow state, and a fresh turn can resume by reading it.
Prerequisites
$RECOUP_ACCESS_TOKEN— Bearer token forapi.recoupable.dev$RECOUP_ORG_ID— the org the artist should belong to (recommended in sandboxes)- An artist name to create (e.g.
ARTIST_NAME="The Weeknd")
- Create + identify —
POST /api/artists, then find the canonical Spotify match - Enrich —
PATCHthe artist with image/label/socials, then run a web search for narrative context and additional socials - Synthesize + persist — generate a knowledge-base report, save it (RECOUP.md tree or hosted URL), then optionally
PATCHtheknowledgesarray
Step 0: Scaffold the workspace BEFORE any API call
Pick a slug, make the directory, and write the initialRECOUP.md template — frontmatter holds the values the chain captures (filled as you go); body holds the unchecked steps:
orgs/ directory. Don’t proceed to step 1 until the file exists on disk.
After every step that follows, do two writes back to RECOUP.md: tick the checkbox for the step you just ran (- [ ] → - [x]) and persist any captured value into the frontmatter. Later steps read those values from the frontmatter — never re-derive what’s already saved.
Resuming a partial setup
If$ARTIST_DIR/RECOUP.md already exists, do not re-scaffold and do not re-run completed steps. Read the file, find the first unchecked item, and resume from there using the values already saved in the frontmatter:
Step 1: Create the artist
account_id as $ARTIST_ID — every subsequent step needs it. organization_id is optional but should be included when running inside a sandbox so the artist is scoped to the right org.
See Create Artist for the full request/response schema.
After this step: write artistId: $ARTIST_ID into the frontmatter and tick - [ ] 1. → - [x] 1. in RECOUP.md.
Step 2: Find the canonical Spotify match
genres, followers.total, and popularity from $MATCH for the KB report later.
See Spotify Search for the full query parameters and response schema.
After this step: write spotifyArtistId, spotifyProfileUrl, and imageUrl into the frontmatter, save genres / followers.total / popularity to the ## Notes section, and tick - [ ] 2. → - [x] 2..
Step 3: Set basic profile + Spotify URL
OnePATCH covers the image and the Spotify social URL. Use uppercase platform keys in profileUrls (the API matches platforms case-sensitively — see the reference table below).
update_account_info ×2, update_artist_socials ×2). Add label to the body once you discover one in the web research (step 4). See Update Artist for the full body schema.
After this step: tick - [ ] 3. → - [x] 3..
Step 4: Run web research
Don’t usePOST /api/research/deep here — it tends to hang in sandboxes and returns paraphrased prose. One bounded web search covers biography, press coverage, cultural narrative, and recent feature/collab announcements.
## Research section of RECOUP.md — the raw JSON or a tight markdown summary so step 8 can compose from it. Tick - [ ] 4. → - [x] 4..
Step 5: Pull the Spotify catalog
$SPOTIFY_ARTIST_ID is the value you exported in step 2.
See Spotify Top Tracks, Spotify Artist Albums, and Spotify Album for full schemas.
After this step: populate the artist’s releases/ folder — write one releases/{release-slug}/RELEASE.md per album (album slugs are bare, -ep / -single / -compilation suffixes for other types) using the per-album GET /api/spotify/album?id=$ALBUM_ID response, and write the top tracks snapshot to releases/top-tracks.md. RELEASE.md is the 18-section master release-management document (project snapshot, identifiers, narrative, audience, DSP strategy, marketing, social, PR, visuals, physical/merch/touring, team, budget, KPI tracking, links hub, plus Outstanding Deliverables and a Document History log) — Step 5 fills the Spotify-derivable fields and leaves the rest as ⚠️ TBD. The full template + the field-by-field Spotify mapping live in the artist-workspace skill at references/release-template.md. Tick - [ ] 5. → - [x] 5..
Step 6: Search the web for additional socials
## Notes section so step 7 can read them without re-querying. Tick - [ ] 6. → - [x] 6..
Step 7: PATCH the artist with the discovered socials
- [ ] 7. → - [x] 7..
Step 8: Synthesize the knowledge base
Combine the web research (## Research section), the Spotify catalog (releases/), and the discovered socials into a comprehensive markdown report. Recommended sections:
- Artist biography and origin
- Discography highlights (top tracks + key albums)
- Spotify presence (genres, listener count, notable playlists)
- Social media footprint
- Recent activity / press
- Notable collaborations and achievements
RECOUP.md you scaffolded in Step 0 — add it as a ## Knowledge base section below the checklist. The path is:
artist-workspace skill’s filesystem conventions, so future sandbox sessions can read both the checklist and the KB without needing a hosted URL.
After this step: tick - [ ] 8. → - [x] 8.. With every box ticked, the artist is fully set up.
Platform key reference
profileUrls keys are uppercase platform identifiers, inferred from the URL host. Recognized platforms:
URLs that don’t match any of these are silently skipped — they won’t be saved.
What this workflow doesn’t enforce
There’s no server-side orchestrator forcing each step to run in order — the chain is honor-system. TheRECOUP.md checklist is what gives you determinism in practice: as long as you tick boxes and persist values after each step, a fresh turn (or a different agent) can pick up exactly where the last one stopped. If you skip a checkbox or skip the persist, the next turn won’t know that step ran and may either redo it or, worse, treat downstream calls as ready when they aren’t.
A few constraints to honor:
- Run steps in order. The frontmatter values written at one step are the inputs for later steps.
- Don’t continue past a 4xx/5xx without recovery. Leave the box unchecked, write the error to
## Notes, and resolve before resuming. - Treat the file as the source of truth. If something isn’t on disk, don’t assume it ran.
