lennoxsaint/Threadify-workflows / plugins/claude/skills/threadify-vault-setup
threadify-vault-setup
VerifiedBuild a selected Threads/YouTube starter Vault with source previews, approval and saved-item verification. Use when the creator asks to set up inspiration sources, not for bulk export.
scripts/engine/urls.mjs
View on GitHubexport function canonicalSourceUrl(value) {
const url = new URL(value);
if (!['http:', 'https:'].includes(url.protocol) || url.username || url.password) throw new Error('Public HTTP source URL required.');
url.hash = '';
for (const name of [...url.searchParams.keys()]) if (/^utm_|^(fbclid|igshid|si)$/i.test(name)) url.searchParams.delete(name);
if (/^(www\.)?threads\.(net|com)$/.test(url.hostname)) {
url.hostname = 'www.threads.com'; url.protocol = 'https:'; url.search = '';
url.pathname = url.pathname.replace(/\/$/, '');
}
if (['youtu.be', 'www.youtu.be', 'youtube.com', 'www.youtube.com', 'm.youtube.com'].includes(url.hostname)) {
const id = url.hostname.endsWith('youtu.be') ? url.pathname.slice(1)
: url.searchParams.get('v') ?? url.pathname.match(/^\/(?:shorts|embed)\/([^/]+)/)?.[1];
if (id && /^[\w-]{11}$/.test(id)) return `https://www.youtube.com/watch?v=${id}`;
}
url.searchParams.sort();
return url.href;
}
export function importSourceType(url) {
const canonical = canonicalSourceUrl(url);
if (/^https:\/\/www\.threads\.com\/@[^/]+\/post\/[^/?]+$/.test(canonical)) return 'threads';
if (/^https:\/\/www\.youtube\.com\/watch\?v=[\w-]{11}$/.test(canonical)) return 'youtube';
throw new Error('Setup supports selected Threads posts and YouTube videos only.');
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |