juicebox-core-workflow-b
Implement Juicebox candidate enrichment workflow. Use when enriching profile data, gathering additional candidate details, or building comprehensive candidate profiles. Trigger with phrases like "juicebox enrich profile", "juicebox candidate details", "enrich candidate data", "juicebox profile enrichment".
- License 许可
- MIT
- 最近更新
- 2026-03-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- juicebox-core-workflow-b
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Implement Juicebox candidate enrichment workflow. Use when enriching profile data, gathering additional candidate details, or building comprehensive candidate profiles. Trigger with phrases like "juicebox enrich profile", "juicebox candidate details", "enrich candidate data", "juicebox profile enrichment".
- allowed-tools
- Read, Write, Edit, Bash(npm:*), Bash(pip:*), Grep
- compatible-with
- claude-code, codex, openclaw
03 SKILL.md 正文
Juicebox Core Workflow B: Candidate Enrichment
Overview
Build comprehensive candidate profiles using Juicebox people search and enrichment. Covers profile data extraction, multi-source enrichment, experience timeline construction, and CRM-ready candidate record generation.
Prerequisites
- Juicebox API key
- Understanding of people search parameters
- CRM or ATS for candidate export
- Data validation rules for enriched profiles
Instructions
Step 1: Search and Retrieve Candidate Profiles
const JUICEBOX_API = 'https://api.juicebox.ai/v1';
async function searchCandidates(query: {
title?: string;
company?: string;
location?: string;
skills?: string[];
yearsExperience?: number;
}) {
const response = await fetch(`${JUICEBOX_API}/people/search`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.JUICEBOX_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: query.title,
filters: {
current_company: query.company,
location: query.location,
skills: query.skills,
min_years_experience: query.yearsExperience,
},
limit: 25,
}),
});
return response.json();
}
Step 2: Enrich Profile with Full Details
interface EnrichedProfile {
name: string;
headline: string;
location: string;
email?: string;
linkedin_url?: string;
current_company: string;
current_title: string;
experience: Array<{
company: string;
title: string;
startDate: string;
endDate?: string;
duration: string;
}>;
skills: string[];
education: Array<{ school: string; degree: string; year?: number }>;
}
async function enrichProfile(profileId: string): Promise<EnrichedProfile> {
const response = await fetch(`${JUICEBOX_API}/people/${profileId}/enrich`, {
headers: {
'Authorization': `Bearer ${process.env.JUICEBOX_API_KEY}`,
},
});
const data = await response.json();
return {
name: data.full_name,
headline: data.headline || '',
location: data.location || '',
email: data.email,
linkedin_url: data.linkedin_url,
current_company: data.current_company?.name || '',
current_title: data.current_title || '',
experience: (data.experience || []).map((exp: any) => ({
company: exp.company_name,
title: exp.title,
startDate: exp.start_date,
endDate: exp.end_date,
duration: calculateDuration(exp.start_date, exp.end_date),
})),
skills: data.skills || [],
education: data.education || [],
};
}
function calculateDuration(start: string, end?: string): string {
const startDate = new Date(start);
const endDate = end ? new Date(end) : new Date();
const months = Math.round((endDate.getTime() - startDate.getTime()) / (30 * 86400000)); # 86400000 = configured value
const years = Math.floor(months / 12);
const remainingMonths = months % 12;
return years > 0 ? `${years}y ${remainingMonths}m` : `${remainingMonths}m`;
}
Step 3: Batch Enrichment Pipeline
async function batchEnrich(profileIds: string[], concurrency = 3) {
const results: EnrichedProfile[] = [];
const errors: Array<{ id: string; error: string }> = [];
for (let i = 0; i < profileIds.length; i += concurrency) {
const batch = profileIds.slice(i, i + concurrency);
const batchResults = await Promise.allSettled(
batch.map(id => enrichProfile(id))
);
for (let j = 0; j < batchResults.length; j++) {
const result = batchResults[j];
if (result.status === 'fulfilled') {
results.push(result.value);
} else {
errors.push({ id: batch[j], error: result.reason?.message || 'Unknown' });
}
}
// Rate limiting
if (i + concurrency < profileIds.length) {
await new Promise(r => setTimeout(r, 1000)); # 1000: 1 second in ms
}
}
return { enriched: results, errors };
}
Step 4: Generate CRM-Ready Candidate Records
function toCRMRecord(profile: EnrichedProfile) {
return {
first_name: profile.name.split(' ')[0],
last_name: profile.name.split(' ').slice(1).join(' '),
email: profile.email,
title: profile.current_title,
company: profile.current_company,
location: profile.location,
linkedin: profile.linkedin_url,
source: 'juicebox',
total_experience_years: calculateTotalExperience(profile.experience),
top_skills: profile.skills.slice(0, 10).join(', '),
notes: `${profile.headline}\n\nExperience: ${profile.experience.length} roles`,
};
}
function calculateTotalExperience(experience: any[]): number {
const totalMonths = experience.reduce((sum, exp) => {
const start = new Date(exp.startDate);
const end = exp.endDate ? new Date(exp.endDate) : new Date();
return sum + Math.round((end.getTime() - start.getTime()) / (30 * 86400000)); # 86400000 = configured value
}, 0);
return Math.round(totalMonths / 12);
}
Error Handling
| Issue | Cause | Solution |
|---|---|---|
| No email found | Profile has no public email | Try alternative enrichment sources |
| Profile not found | Invalid profile ID | Validate IDs from search results |
| Rate limit | Too many concurrent requests | Reduce concurrency, add delays |
| Incomplete experience | Partial profile data | Mark as incomplete, flag for manual review |
Examples
Full Candidate Pipeline
const candidates = await searchCandidates({
title: 'Senior Software Engineer',
skills: ['TypeScript', 'React'],
location: 'San Francisco',
});
const ids = candidates.results.map((c: any) => c.id);
const { enriched, errors } = await batchEnrich(ids);
const crmRecords = enriched.map(toCRMRecord);
console.log(`Enriched ${enriched.length} candidates, ${errors.length} errors`);
Resources
Output
- Configuration files or code changes applied to the project
- Validation report confirming correct implementation
- Summary of changes made and their rationale
04 同仓库更多 Skills
azure-apim-architecture
Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.
apiops-deployment
Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.
apim-policy-authoring
Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.
api-security-review
Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.
jira-cli
Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.
calculator
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.