Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implement Juicebox reference architecture. Trigger: "juicebox architecture", "recruiting platform design".
.claude/skills/jeremylongshore-juicebox-reference-architecture/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 32% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 9% | 0% |
Production architecture for AI-powered candidate analysis integrations with Juicebox. Designed for recruiting teams needing automated dataset ingestion from job descriptions, intelligent candidate scoring and ranking, result caching for repeated searches, and seamless export to ATS platforms like Greenhouse and Lever. Key design drivers: search result freshness, candidate deduplication across sources, outreach sequencing, and analysis pipeline throughput for high-volume hiring.
Recruiter Dashboard ──→ Search Service ──→ Cache (Redis) ──→ Juicebox API
↓ /search
Queue (Bull) ──→ Analysis Worker /profiles
↓ /outreach
ATS Export Service ──→ Greenhouse/Lever
↓
Webhook Handler ←── Juicebox Eventstypescriptclass CandidateSearchService { constructor(private juicebox: JuiceboxClient, private cache: CacheLayer) {} async findAndRank(criteria: SearchCriteria): Promise<RankedCandidate[]> { const cacheKey = `search:${this.hashCriteria(criteria)}`; const cached = await this.cache.get(cacheKey); if (cached) return cached; const results = await this.juicebox.search(criteria); const ranked = results.profiles.map(p => ({ ...p, score: this.scoreCandidate(p, criteria) })) .sort((a, b) => b.score - a.score); await this.cache.set(cacheKey, ranked, CACHE_CONFIG.searchResults.ttl); return ranked; } async exportToATS(candidates: string[], jobId: string, ats: 'greenhouse' | 'lever'): Promise<ExportResult> { const deduped = await this.deduplicateAgainstATS(candidates, jobId, ats); return this.juicebox.export({ profiles: deduped, destination: ats, job_id: jobId }); } }
typescriptconst CACHE_CONFIG = { searchResults: { ttl: 1800, prefix: 'search' }, // 30 min — candidate pools shift slowly profiles: { ttl: 3600, prefix: 'profile' }, // 1 hr — profile data stable short-term analysisRuns: { ttl: 7200, prefix: 'analysis' }, // 2 hr — analysis results are expensive to recompute atsState: { ttl: 300, prefix: 'ats' }, // 5 min — ATS pipeline freshness for dedup outreach: { ttl: 60, prefix: 'outreach' }, // 1 min — sequence status changes frequently }; // New search invalidates matching cached results; ATS export clears ats cache for that job
typescriptclass RecruitingPipeline { private queue = new Bull('juicebox-events', { redis: process.env.REDIS_URL }); async onSearchComplete(searchId: string, results: RankedCandidate[]): Promise<void> { await this.queue.add('analyze', { searchId, candidateIds: results.map(r => r.id) }, { attempts: 3, backoff: { type: 'exponential', delay: 2000 } }); } async processOutreachEvent(event: OutreachEvent): Promise<void> { if (event.type === 'reply_received') await this.flagForRecruiterReview(event); if (event.type === 'bounced') await this.markInvalid(event.candidateId); await this.syncStatusToATS(event); } }
typescriptinterface SearchCriteria { role: string; skills: string[]; location?: string; experienceYears?: number; companySize?: string; } interface RankedCandidate { id: string; name: string; title: string; company: string; score: number; skills: string[]; profileUrl: string; } interface OutreachSequence { id: string; candidateId: string; jobId: string; steps: OutreachStep[]; status: 'active' | 'replied' | 'bounced' | 'opted-out'; } interface ExportResult { exported: number; duplicatesSkipped: number; atsJobId: string; }
| Component | Failure Mode | Recovery | |-----------|-------------|----------| | Candidate search | Juicebox API timeout | Retry with reduced result count, serve cached results if available | | Analysis pipeline | Scoring model latency spike | Queue with timeout, return unscored results with flag | | ATS export | Greenhouse rate limit | Batch retry with exponential backoff, notify recruiter on persistent failure | | Outreach sequence | Email bounce | Mark candidate invalid, remove from active sequences, update ATS | | Webhook handler | Duplicate event delivery | Idempotency key on event ID + candidate ID |
See juicebox-deploy-integration.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-14 | fail→fail | 19,283 | 23,754 | +23% | 1 | 1 | 0% | 2,589 | 4,177 | +61% | 0 | 0 | — |
case-13 | fail→fail | 20,848 | 19,225 | -8% | 1 | 1 | 0% | 2,301 | 4,021 | +75% | 0 | 0 | — |
case-15 | fail→pass | 17,122 | 10,786 | -37% | 1 | 1 | 0% | 2,772 | 2,175 | -22% | 0 | 0 | — |
case-05 | pass→pass | 25,017 | 20,540 | -18% | 1 | 1 | 0% | 3,282 | 4,527 | +38% | 0 | 0 | — |
case-06 | pass→pass | 42,804 | 24,434 | -43% | 1 | 1 | 0% | 4,062 | 4,819 | +19% | 0 | 0 | — |
case-01 | fail→pass | 27,446 | 28,616 | +4% | 1 | 1 | 0% | 4,378 | 5,790 | +32% | 0 | 0 | — |
case-02 | fail→fail | 32,810 | 31,240 | -5% | 1 | 1 | 0% | 4,908 | 5,928 | +21% | 0 | 0 | — |
case-03 | fail→fail | 25,886 | 27,972 | +8% | 1 | 1 | 0% | 4,103 | 5,430 | +32% | 0 | 0 | — |
case-04 | pass→pass | 23,323 | 19,706 | -16% | 1 | 1 | 0% | 3,339 | 4,056 | +21% | 0 | 0 | — |
case-07 | pass→pass | 23,647 | 17,689 | -25% | 1 | 1 | 0% | 3,066 | 4,360 | +42% | 0 | 0 | — |
case-08 | fail→fail | 19,535 | 19,926 | +2% | 1 | 1 | 0% | 3,629 | 3,952 | +9% | 0 | 0 | — |
case-09 | fail→pass | 14,565 | 9,438 | -35% | 1 | 1 | 0% | 2,166 | 2,058 | -5% | 0 | 0 | — |
case-10 | fail→pass | 18,676 | 16,576 | -11% | 1 | 1 | 0% | 3,065 | 3,183 | +4% | 0 | 0 | — |
case-11 | pass→pass | 22,219 | 11,370 | -49% | 1 | 1 | 0% | 2,620 | 2,294 | -12% | 0 | 0 | — |
case-12 | fail→pass | 14,537 | 13,605 | -6% | 1 | 1 | 0% | 2,411 | 2,632 | +9% | 0 | 0 | — |
case-16 | fail→pass | 12,833 | 7,055 | -45% | 1 | 1 | 0% | 1,843 | 1,610 | -13% | 0 | 0 | — |
case-17 | fail→pass | 15,927 | 3,277 | -79% | 1 | 1 | 0% | 1,743 | 1,813 | +4% | 0 | 0 | — |
case-18 | pass→pass | 16,461 | 5,008 | -70% | 1 | 1 | 0% | 2,259 | 2,019 | -11% | 0 | 0 | — |
case-19 | pass→pass | 18,463 | 13,578 | -26% | 1 | 1 | 0% | 2,120 | 2,416 | +14% | 0 | 0 | — |
case-20 | fail→fail | 20,056 | 23,642 | +18% | 1 | 1 | 0% | 2,524 | 3,976 | +58% | 0 | 0 | — |
case-21 | fail→pass | 16,141 | 15,242 | -6% | 1 | 1 | 0% | 2,585 | 3,747 | +45% | 0 | 0 | — |
case-22 | pass→pass | 11,144 | 7,910 | -29% | 1 | 1 | 0% | 1,778 | 1,653 | -7% | 0 | 0 | — |
case-23 | pass→pass | 14,469 | 2,655 | -82% | 1 | 1 | 0% | 1,335 | 1,652 | +24% | 0 | 0 | — |
case-24 | pass→pass | 25,053 | 17,776 | -29% | 1 | 1 | 0% | 3,086 | 3,166 | +3% | 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. 24 cases were attempted. The headline lift of +33 percentage points is the difference between those two pass rates over the 24 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.