Setup Sandbox

作者 recoupable736a5a2b63b7無授權條款收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 個月前更新

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.

已封存僅含說明DevOps & Cloud
AI 產生的概覽

使用 Recoup CLI 為帳號的組織與藝人建立沙盒資料夾結構。

功能
此技能會為新建立的沙盒設定初始檔案系統。它透過 Recoup CLI 取得帳號的組織及其藝人,為每位藝人建立 orgs/{org}/artists/{artist-slug} 目錄,並寫入包含藝人名稱、slug 與 ID 的 RECOUP.md 身分檔案。接著它會提交並將新資料夾推送到 main 分支。
適用情境
適用於沙盒剛建立且尚無檔案系統時。若沙盒中已存在 orgs/ 目錄,則不需要使用。
執行需求
需要已驗證身分的 Recoup CLI(個人 API 金鑰,或組織 API 金鑰加上 RECOUP_ACCOUNT_ID 環境變數)、具備 main 分支推送權限的 git,以及網路存取。此技能不附帶指令碼,僅為操作說明。

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

來源與署名

來源:recoupable/setup-sandbox提交736a5a2

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架