Agent Skills: Linktree SDK Patterns

|

UncategorizedID: jeremylongshore/claude-code-plugins-plus-skills/linktree-sdk-patterns

Install this agent skill to your local

pnpm dlx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/HEAD/plugins/saas-packs/linktree-pack/skills/linktree-sdk-patterns

Skill Files

Browse the full folder contents for linktree-sdk-patterns.

Download Skill

Loading file tree…

plugins/saas-packs/linktree-pack/skills/linktree-sdk-patterns/SKILL.md

Skill Metadata

Name
linktree-sdk-patterns
Description
|

Linktree SDK Patterns

Singleton Client

let instance: any = null;
export function getClient() {
  if (!instance) instance = createLinktreeClient({ apiKey: process.env.LINKTREE_API_KEY });
  return instance;
}

Error Wrapper

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;
  }
}

Resources

Next Steps

Apply in linktree-core-workflow-a.