Linktree hello world
'Create a minimal working Linktree example.From its SKILL.md
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill linktree-hello-worldAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.6 KB, 315 tokens by cl100k_base, as published. Nobody here has run it
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.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.