From linktree-pack
Provides TypeScript patterns for Linktree SDK: singleton client and error wrapper with 429 rate limit retry. Useful for SaaS social link integrations.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin linktree-packThis skill is limited to using the following tools:
```typescript
Provides TypeScript examples for Linktree API: get profiles, create/update/list links. Useful for testing Linktree SaaS integration.
Provides TypeScript patterns for MindTickle SDK: singleton client and error wrapper with 429 retry. Useful for robust API integrations.
Provides TypeScript patterns for Lucidchart SDK including singleton client and error wrapper with rate-limit retry. Useful for stable API integrations.
Share bugs, ideas, or general feedback.
let instance: any = null;
export function getClient() {
if (!instance) instance = createLinktreeClient({ apiKey: process.env.LINKTREE_API_KEY });
return instance;
}
async function safe<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(); }
console.error('Linktree error:', e.message);
return null;
}
}
Apply in linktree-core-workflow-a.