Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimize Juicebox performance. Trigger: "juicebox performance", "optimize juicebox".
.claude/skills/jeremylongshore-juicebox-performance-tuning/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -11% | 0% |
Juicebox's AI analysis API handles dataset uploads, analysis queue wait times, and result pagination. Large dataset uploads (100K+ rows) can block the analysis pipeline, while queue contention during peak hours increases wait times. Result sets from broad queries return thousands of profiles requiring efficient pagination. Caching search results, batching enrichment calls, and managing upload chunking reduces end-to-end analysis time by 40-60% and keeps interactive searches responsive.
typescriptconst cache = new Map<string, { data: any; expiry: number }>(); const TTL = { search: 300_000, profile: 600_000, analysis: 900_000 }; async function cached(key: string, ttlKey: keyof typeof TTL, fn: () => Promise<any>) { const entry = cache.get(key); if (entry && entry.expiry > Date.now()) return entry.data; const data = await fn(); cache.set(key, { data, expiry: Date.now() + TTL[ttlKey] }); return data; } // Analysis results are expensive — cache 15 min. Searches expire at 5 min.
typescriptasync function enrichBatch(client: any, profileIds: string[], batchSize = 50) { const results = []; for (let i = 0; i < profileIds.length; i += batchSize) { const batch = profileIds.slice(i, i + batchSize); const res = await client.enrichBatch({ profile_ids: batch, fields: ['skills_map', 'contact'] }); results.push(...res.profiles); if (i + batchSize < profileIds.length) await new Promise(r => setTimeout(r, 300)); } return results; }
typescriptimport { Agent } from 'https'; const agent = new Agent({ keepAlive: true, maxSockets: 8, maxFreeSockets: 4, timeout: 60_000 }); // Longer timeout for dataset uploads and analysis queue responses
typescriptasync function withRateLimit(fn: () => Promise<any>): Promise<any> { try { return await fn(); } catch (err: any) { if (err.status === 429) { const backoff = parseInt(err.headers?.['retry-after'] || '10') * 1000; await new Promise(r => setTimeout(r, backoff)); return fn(); } throw err; } }
typescriptconst metrics = { searches: 0, enrichments: 0, cacheHits: 0, queueWaitMs: 0, errors: 0 }; function track(op: 'search' | 'enrich', startMs: number, cached: boolean) { metrics[op === 'search' ? 'searches' : 'enrichments']++; metrics.queueWaitMs += Date.now() - startMs; if (cached) metrics.cacheHits++; }
| Issue | Cause | Fix | |-------|-------|-----| | Analysis queue timeout | Peak hour contention | Schedule large analyses off-peak, increase client timeout | | 429 on bulk enrichment | Too many concurrent enrichment calls | Batch to 50 profiles with 300ms interval | | Upload failure on large dataset | Payload exceeds limit or connection drop | Chunk into 10K-row segments, retry failed chunks | | Slow broad search | Unfiltered query returning thousands of results | Add location/skills/title filters, set limit=20 |
See juicebox-reference-architecture.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 20,000 | 20,891 | +4% | 1 | 1 | 0% | 3,963 | 4,549 | +15% | 0 | 0 | — |
case-02 | fail→fail | 22,657 | 19,204 | -15% | 1 | 1 | 0% | 4,588 | 4,091 | -11% | 0 | 0 | — |
case-03 | fail→pass | 40,307 | 27,025 | -33% | 1 | 1 | 0% | 6,036 | 4,480 | -26% | 0 | 0 | — |
case-04 | pass→pass | 27,131 | 20,940 | -23% | 1 | 1 | 0% | 4,641 | 4,306 | -7% | 0 | 0 | — |
case-05 | fail→pass | 17,729 | 13,150 | -26% | 1 | 1 | 0% | 2,118 | 2,503 | +18% | 0 | 0 | — |
case-06 | fail→pass | 16,729 | 3,908 | -77% | 1 | 1 | 0% | 3,192 | 1,746 | -45% | 0 | 0 | — |
case-07 | pass→pass | 23,186 | 2,882 | -88% | 1 | 1 | 0% | 2,530 | 1,509 | -40% | 0 | 0 | — |
case-08 | fail→pass | 20,224 | 12,376 | -39% | 1 | 1 | 0% | 2,521 | 2,233 | -11% | 0 | 0 | — |
case-09 | fail→pass | 14,956 | 3,167 | -79% | 1 | 1 | 0% | 1,668 | 1,623 | -3% | 0 | 0 | — |
case-10 | fail→pass | 21,190 | 13,585 | -36% | 1 | 1 | 0% | 3,458 | 2,980 | -14% | 0 | 0 | — |
case-11 | fail→pass | 16,677 | 8,751 | -48% | 1 | 1 | 0% | 1,935 | 1,677 | -13% | 0 | 0 | — |
case-12 | fail→pass | 21,497 | 9,366 | -56% | 1 | 1 | 0% | 2,493 | 2,580 | +3% | 0 | 0 | — |
case-13 | fail→pass | 27,604 | 17,642 | -36% | 1 | 1 | 0% | 1,649 | 1,845 | +12% | 0 | 0 | — |
case-14 | fail→pass | 26,754 | 19,032 | -29% | 1 | 1 | 0% | 3,139 | 3,869 | +23% | 0 | 0 | — |
case-15 | fail→pass | 15,229 | 2,794 | -82% | 1 | 1 | 0% | 2,066 | 1,366 | -34% | 0 | 0 | — |
case-16 | pass→pass | 18,206 | 11,686 | -36% | 1 | 1 | 0% | 2,773 | 2,320 | -16% | 0 | 0 | — |
case-17 | fail→pass | 11,415 | 4,031 | -65% | 1 | 1 | 0% | 1,999 | 1,634 | -18% | 0 | 0 | — |
case-18 | pass→pass | 29,159 | 16,532 | -43% | 1 | 1 | 0% | 2,944 | 3,053 | +4% | 0 | 0 | — |
case-19 | pass→pass | 30,872 | 11,173 | -64% | 1 | 1 | 0% | 3,190 | 3,376 | +6% | 0 | 0 | — |
case-20 | pass→pass | 17,192 | 11,300 | -34% | 1 | 1 | 0% | 1,824 | 2,183 | +20% | 0 | 0 | — |
case-21 | pass→pass | 15,770 | 16,385 | +4% | 1 | 1 | 0% | 3,260 | 3,285 | +1% | 0 | 0 | — |
case-22 | pass→pass | 13,356 | 2,353 | -82% | 1 | 1 | 0% | 1,830 | 1,493 | -18% | 0 | 0 | — |
case-23 | pass→pass | 12,115 | 7,373 | -39% | 1 | 1 | 0% | 1,870 | 1,397 | -25% | 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. The headline lift of +57 percentage points is the difference between those two pass rates over the 23 comparable cases.
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.