Setup Sandbox

by recoupable736a5a2b63b7No licenseListed Oct 9, 2026Updated Oct 9, 2026Repository updated 6 months ago

Set up the initial file system for a new sandbox. Fetches the account's organizations and artists via the Recoup CLI and scaffolds the folder structure. Use when a sandbox has just been created and has no existing file system. Before running, check if the sandbox already has an orgs/ directory — if it does, this skill is not needed.

ArchivedInstructions onlyDevOps & Cloud
AI-generated overview

Scaffolds a sandbox folder structure for an account's organizations and artists using the Recoup CLI.

What it does
This skill sets up the initial file system for a newly created sandbox. It fetches the account's organizations and their artists through the Recoup CLI, creates an orgs/{org}/artists/{artist-slug} directory for each artist, and writes a RECOUP.md identity file containing the artist name, slug, and ID. It then commits and pushes the new folders to the main branch.
When to use it
Use it when a sandbox has just been created and has no existing file system. It is not needed if the sandbox already contains an orgs/ directory.
Requirements
Requires the Recoup CLI with authenticated access (a Personal API Key, or an Org API Key plus the RECOUP_ACCOUNT_ID environment variable), git with push access to the main branch, and network access. It ships no scripts; it is instructions only.

Setup Sandbox

Create the folder structure for the connected account's organizations and artists.

Environment

  • RECOUP_ACCOUNT_ID — The account ID to fetch data for. Only needed when using an Org API Key. When using a Personal API Key, omit the --account flag and the CLI will use the authenticated account automatically.

Steps

  1. Check if RECOUP_ACCOUNT_ID is set. If set, use --account $RECOUP_ACCOUNT_ID on all CLI commands below. If not set, omit the --account flag.
  2. Run recoup orgs list --json [--account $RECOUP_ACCOUNT_ID] to get all organizations
  3. For each organization, run recoup artists list --org {organization_id} --json [--account $RECOUP_ACCOUNT_ID] to get its artists
  4. Create the folder structure and a RECOUP.md marker in each artist folder:
    • Use artistSlug from the CLI response as the exact directory name — never append UUIDs, IDs, or suffixes
    • If orgs/{org}/artists/{artist-slug}/ already exists, skip it
    • mkdir -p orgs/{org}/artists/{artist-slug} for each new artist
    • Write a RECOUP.md using the template below
  5. Commit and push:
    • git add -A && git commit -m "setup: create org and artist folders" && git push origin main

RECOUP.md

Every artist directory has a RECOUP.md at its root. This is the identity file — it connects the workspace to the Recoupable platform. The existence of this file means the workspace is active.

Fill it with data from the CLI response:

markdown
---artistName: {Artist Name}artistSlug: {artist-slug}artistId: {uuid-from-recoupable}---

Fields:

  • artistName — display name from the CLI (e.g. Gatsby Grace)
  • artistSlug — lowercase-kebab-case folder name (e.g. gatsby-grace)
  • artistId — the UUID from Recoup

Source and attribution

Source:recoupable/setup-sandboxat commit736a5a2

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal