Skip to content
Skillv1.0.0

linktree-core-workflow-a

Execute Linktree primary workflow: Profile & Links Management. Trigger: "linktree profile & links management", "primary linktree workflow".

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (skills/.curated/linktree-core-workflow-a/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill linktree-core-workflow-a. Copyright stays with the author (MIT).

Linktree — Profile & Links Management

Overview

Manages the complete lifecycle of a Linktree profile and its links through the Linktree REST API. This skill covers retrieving profile metadata, creating new links with positioning and thumbnails, updating existing link properties, listing all links for a profile, and reordering links by position. Use this workflow when building integrations that programmatically manage a creator's or brand's link-in-bio page — for example, syncing product launches, rotating seasonal promotions, or bulk-importing links from a spreadsheet. All operations use bearer token authentication against the Linktree API.

Prerequisites

  • Linktree Developer Account — register at linktr.ee/marketplace/developer
  • API Key — set LINKTREE_API_KEY in your environment
  • Node.js >= 18 and TypeScript >= 5.0
  • Linktree SDK — install with npm install @linktree/sdk

Instructions

Step 1: Get Profile

try {
  const profile = await client.profiles.get('myprofile');
  console.log(`Bio: ${profile.bio}`);
  console.log(`Links: ${profile.links.length}`);
} catch (err: any) {
  if (err.status === 404) throw new Error('Profile not found — verify the username');
  throw err;
}

Step 2: Create a Link

try {
  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}`);
} catch (err: any) {
  if (err.status === 422) throw new Error(`Validation failed: ${err.message}`);
  if (err.status === 429) console.warn('Rate limited — retry after backoff');
  throw err;
}

Step 3: Update Link

try {
  await client.links.update(link.id, {
    title: 'Updated Title',
    archived: false
  });
} catch (err: any) {
  if (err.status === 404) throw new Error(`Link ${link.id} not found — it may have been deleted`);
  throw err;
}

Step 4: List All Links

try {
  const links = await client.links.list({ profile_id: profile.id });
  links.forEach(l => console.log(`${l.position}: ${l.title} → ${l.url}`));
} catch (err: any) {
  if (err.status === 401) throw new Error('Invalid API key — check LINKTREE_API_KEY');
  throw err;
}

Error Handling

Error Status Cause Resolution
Unauthorized 401 Missing or expired LINKTREE_API_KEY Regenerate key in developer dashboard
Not Found 404 Invalid profile username or deleted link ID Verify the resource exists before operating
Validation Error 422 Malformed URL, missing required field, or duplicate position Check request body against API schema
Rate Limited 429 Too many requests in window Implement exponential backoff (start at 1s)
Server Error 500 Linktree API outage Retry with backoff; check status.linktr.ee

Output

A successful workflow produces a fully configured Linktree profile with an ordered set of active links. Each link includes an id, title, url, position (zero-indexed), thumbnail URL, and archived status. The profile object contains the username, bio, avatar URL, and a links array reflecting the current ordering. Use the returned link IDs for subsequent update or delete operations in downstream workflows.

Resources

Next Steps

See linktree-core-workflow-b.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-linktree-core-9d608d/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-linktree-core-9d608d.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-linktree-core-9d608d",
  "kind": "skill",
  "name": "linktree-core-workflow-a",
  "description": "Execute Linktree primary workflow: Profile & Links Management. Trigger: \"linktree profile & links management\", \"primary linktree workflow\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "saas",
      "linktree",
      "social",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Execute Linktree primary workflow: Profile & Links Management. Trigger: \"linktree profile & links management\", \"primary linktree workflow\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "skills/.curated/linktree-core-workflow-a/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/skills/.curated/linktree-core-workflow-a/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/skills/.curated/linktree-core-workflow-a/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "Write,",
      "Edit,",
      "Bash(npm:*),",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Linktree — Profile & Links Management\n\n## Overview\n\nManages the complete lifecycle of a Linktree profile and its links through the\nLinktree REST API. This skill covers retrieving profile metadata, creating new\nlinks with positioning and thumbnails, updating existing link properties, listing\nall links for a profile, and reordering links by position. Use this workflow when\nbuilding integrations that programmatically manage a creator's or brand's\nlink-in-bio page — for example, syncing product launches, rotating seasonal\npromotions, or bulk-importing links from a spreadsheet. All operations use",
  "cost": {
    "context_tokens": 928
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-linktree-core-9d608d/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.