Skip to main content
AI/MLjeremylongshore

linktree-hello-world

'Create a minimal working Linktree example.

Stars
2,267
Source
jeremylongshore/claude-code-plugins-plus-skills
Updated
2026-05-31
Slug
jeremylongshore--claude-code-plugins-plus-skills--linktree-hello-world
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/jeremylongshore/claude-code-plugins-plus-skills/HEAD/plugins/saas-packs/linktree-pack/skills/linktree-hello-world/SKILL.md -o .claude/skills/linktree-hello-world.md

Drops the SKILL.md into .claude/skills/linktree-hello-world.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

Linktree Hello World

Overview

Minimal working examples demonstrating core Linktree API functionality.

Instructions

Step 1: Get Profile

const profile = await client.profiles.get('myprofile');
console.log(`Bio: ${profile.bio}`);
console.log(`Links: ${profile.links.length}`);

Step 2: Create a Link

const link = await client.links.create({
  profile_id: profile.id,
  title: 'My Website',
  url: 'https://example.com',
  position: 0,  // Top of list
  thumbnail: 'https://example.com/icon.png'
});
console.log(`Created link: ${link.id}`);

Step 3: Update Link

await client.links.update(link.id, {
  title: 'Updated Title',
  archived: false
});

Step 4: List All Links

const links = await client.links.list({ profile_id: profile.id });
links.forEach(l => console.log(`${l.position}: ${l.title} → ${l.url}`));

Error Handling

Error Cause Solution
Auth error Invalid credentials Check LINKTREE_API_KEY
Not found Invalid endpoint Verify API URL
Rate limit Too many requests Implement backoff

Resources

Next Steps

See linktree-local-dev-loop.