Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure Juicebox multi-environment. Trigger: "juicebox environments", "juicebox staging".
.claude/skills/jeremylongshore-juicebox-multi-env-setup/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -4% | 0% |
Juicebox AI analysis requires environment separation to enforce workspace isolation, control data access, and prevent accidental exports of sensitive datasets. Development works with sample datasets and strict result limits for fast iteration, staging connects to full production data but disables export functionality, and production enables all features with full export capabilities. Each environment uses isolated workspaces so analysis experiments in dev never affect production workspace state or user-facing reports.
typescriptconst juiceboxConfig = (env: string) => ({ development: { apiKey: process.env.JB_KEY_DEV!, baseUrl: "https://api.dev.juicebox.work/v1", workspaceId: process.env.JB_WORKSPACE_DEV!, resultLimit: 5, exportEnabled: false, }, staging: { apiKey: process.env.JB_KEY_STG!, baseUrl: "https://api.staging.juicebox.work/v1", workspaceId: process.env.JB_WORKSPACE_STG!, resultLimit: 20, exportEnabled: false, }, production: { apiKey: process.env.JB_KEY_PROD!, baseUrl: "https://api.juicebox.work/v1", workspaceId: process.env.JB_WORKSPACE_PROD!, resultLimit: 50, exportEnabled: true, }, }[env]);
text# Per-env files: .env.development, .env.staging, .env.production JB_KEY_{DEV|STG|PROD}=<api-key> JB_WORKSPACE_{DEV|STG|PROD}=<workspace-id> JB_BASE_URL=https://api.{dev.|staging.|""}juicebox.work/v1 JB_EXPORT_ENABLED={false|false|true} JB_DATASET_SCOPE={sample|full|full}
typescriptfunction validateJuiceboxEnv(env: string): void { const suffix = { development: "_DEV", staging: "_STG", production: "_PROD" }[env]; const required = [`JB_KEY${suffix}`, `JB_WORKSPACE${suffix}`, "JB_BASE_URL"]; const missing = required.filter((k) => !process.env[k]); if (missing.length) throw new Error(`Missing Juicebox vars for ${env}: ${missing.join(", ")}`); }
bash# 1. Run analysis queries against sample data in dev curl -X POST "$JB_BASE_URL/analyze" \ -H "Authorization: Bearer $JB_KEY_DEV" -d @test-query.json # 2. Validate same queries against full dataset in staging (exports blocked) curl -X POST "$JB_BASE_URL/analyze" \ -H "Authorization: Bearer $JB_KEY_STG" -d @test-query.json | jq '.resultCount' # 3. Verify workspace isolation — staging results don't appear in prod curl "$JB_BASE_URL/workspaces/$JB_WORKSPACE_PROD/reports" \ -H "Authorization: Bearer $JB_KEY_PROD" | jq 'length' # 4. Deploy to production with export capabilities enabled JB_EXPORT_ENABLED=true npm run deploy -- --env production
| Setting | Dev | Staging | Prod | |---------|-----|---------|------| | Dataset | Sample (100 records) | Full dataset | Full dataset | | Result Limit | 5 | 20 | 50 | | Export Enabled | No | No | Yes | | Workspace | Isolated dev | Isolated staging | Production | | API Tier | Free | Standard | Enterprise | | Report Sharing | Disabled | Internal only | Full access |
| Issue | Cause | Fix | |-------|-------|-----| | 403 on export endpoint | Export disabled in non-prod env | Expected; exports only work in production | | Workspace not found | Workspace ID mismatch for env | Verify JB_WORKSPACE_* matches Juicebox admin panel | | Result limit exceeded | Query returns more than env cap | Reduce query scope or increase limit in config | | Stale sample data in dev | Dev dataset not refreshed | Run npm run seed:dev to reload sample data | | API key scope error | Key generated for wrong workspace | Regenerate API key in correct workspace settings |
See juicebox-deploy-integration.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-06 | fail→pass | 13,881 | 8,090 | -42% | 1 | 1 | 0% | 1,095 | 1,586 | +45% | 0 | 0 | — |
case-11 | fail→pass | 13,954 | 6,074 | -56% | 1 | 1 | 0% | 1,850 | 2,316 | +25% | 0 | 0 | — |
case-01 | fail→pass | 20,509 | 16,283 | -21% | 1 | 1 | 0% | 3,712 | 3,480 | -6% | 0 | 0 | — |
case-02 | fail→pass | 19,103 | 13,965 | -27% | 1 | 1 | 0% | 2,474 | 2,835 | +15% | 0 | 0 | — |
case-03 | fail→pass | 22,668 | 13,756 | -39% | 1 | 1 | 0% | 2,857 | 2,752 | -4% | 0 | 0 | — |
case-04 | fail→pass | 16,389 | 7,508 | -54% | 1 | 1 | 0% | 1,889 | 1,492 | -21% | 0 | 0 | — |
case-05 | fail→pass | 15,217 | 2,817 | -81% | 1 | 1 | 0% | 1,422 | 1,519 | +7% | 0 | 0 | — |
case-07 | fail→pass | 21,761 | 2,931 | -87% | 1 | 1 | 0% | 2,758 | 1,537 | -44% | 0 | 0 | — |
case-08 | fail→pass | 14,580 | 8,619 | -41% | 1 | 1 | 0% | 1,531 | 1,464 | -4% | 0 | 0 | — |
case-09 | fail→pass | 16,318 | 7,243 | -56% | 1 | 1 | 0% | 2,835 | 1,429 | -50% | 0 | 0 | — |
case-10 | fail→pass | 15,472 | 9,581 | -38% | 1 | 1 | 0% | 1,940 | 1,964 | +1% | 0 | 0 | — |
case-12 | fail→pass | 12,619 | 2,530 | -80% | 1 | 1 | 0% | 2,074 | 1,446 | -30% | 0 | 0 | — |
case-13 | pass→pass | 9,351 | 3,014 | -68% | 1 | 1 | 0% | 1,469 | 1,306 | -11% | 0 | 0 | — |
case-14 | pass→pass | 16,653 | 7,279 | -56% | 1 | 1 | 0% | 1,850 | 1,320 | -29% | 0 | 0 | — |
case-15 | fail→pass | 21,708 | 6,869 | -68% | 1 | 1 | 0% | 3,753 | 1,350 | -64% | 0 | 0 | — |
case-16 | fail→pass | 10,265 | 7,268 | -29% | 1 | 1 | 0% | 1,823 | 1,446 | -21% | 0 | 0 | — |
case-17 | pass→pass | 19,025 | 2,147 | -89% | 1 | 1 | 0% | 1,940 | 1,394 | -28% | 0 | 0 | — |
case-18 | fail→pass | 10,257 | 2,162 | -79% | 1 | 1 | 0% | 1,835 | 1,457 | -21% | 0 | 0 | — |
case-19 | fail→pass | 24,306 | 7,266 | -70% | 1 | 1 | 0% | 956 | 1,413 | +48% | 0 | 0 | — |
case-20 | fail→pass | 12,033 | 16,882 | +40% | 1 | 1 | 0% | 867 | 1,301 | +50% | 0 | 0 | — |
case-21 | pass→fail | 22,288 | 20,107 | -10% | 1 | 1 | 0% | 3,201 | 3,693 | +15% | 0 | 0 | — |
case-22 | pass→pass | 14,213 | 23,594 | +66% | 1 | 1 | 0% | 2,562 | 4,760 | +86% | 0 | 0 | — |
case-23 | pass→pass | 30,061 | 30,433 | +1% | 1 | 1 | 0% | 3,665 | 5,078 | +39% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +70 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.