Agent skill
juicebox-sdk-patterns
Apply production Juicebox SDK patterns. Trigger: "juicebox patterns", "juicebox best practices".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/juicebox-pack/skills/juicebox-sdk-patterns
SKILL.md
Juicebox SDK Patterns
Singleton Client
let instance: JuiceboxClient | null = null;
export function getClient(): JuiceboxClient {
if (!instance) instance = new JuiceboxClient({ apiKey: process.env.JUICEBOX_API_KEY });
return instance;
}
Batch Search with Dedup
async function batchSearch(queries: string[]): Promise<Profile[]> {
const seen = new Set<string>();
const all: Profile[] = [];
for (const q of queries) {
const r = await client.search({ query: q, limit: 20 });
for (const p of r.profiles) {
if (!seen.has(p.linkedin_url)) { seen.add(p.linkedin_url); all.push(p); }
}
}
return all;
}
Error Wrapper
async function safeCall<T>(fn: () => Promise<T>): Promise<T | null> {
try { return await fn(); }
catch (e: any) {
if (e.status === 429) { await new Promise(r => setTimeout(r, 5000)); return fn(); }
return null;
}
}
Resources
Next Steps
Apply in juicebox-core-workflow-a.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?