lennoxsaint/Threadify-workflows / plugins/claude/skills/threadify-youtube-synthesizer
threadify-youtube-synthesizer
VerifiedTurn one YouTube URL or pasted transcript into three evidence-backed hooks and one source-gated long-form Threads draft in the creator's voice, using twelve immutable templates and thirty-six attributed originals.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.3 KB |
| references/integrity.v1.json | config | 5.1 KB |
| references/originals.v1.json | config | 118.0 KB |
| references/template-gallery.md | markdown | 108.4 KB |
| references/templates.v1.json | config | 105.3 KB |
| references/threadify-001.md | markdown | 3.7 KB |
| references/upstream-attribution.md | markdown | 1.4 KB |
| references/workflow-manifest.json | config | 6.0 KB |
| references/workflow-readme.md | markdown | 3.0 KB |
| references/youtube-synthesizer-delivery.v1.json | config | 10.3 KB |
| references/youtube-synthesizer.v1.json | config | 18.6 KB |
| scripts/youtube-synthesizer-captions.mjs | script | 665 B |
| scripts/youtube-synthesizer-cli.mjs | script | 3.6 KB |
| scripts/youtube-synthesizer-delivery.mjs | script | 19.6 KB |
| scripts/youtube-synthesizer.mjs | script | 28.8 KB |
scripts/youtube-synthesizer-cli.mjs
View on GitHub#!/usr/bin/env node
import fs from 'node:fs';
import path from 'node:path';
import {
extractTranscript,
loadIntegrityLock,
loadOriginalLibrary,
loadTemplateLibrary,
synthesize,
validateOriginalLibrary,
validateIntegrityLock,
validateOutput,
validateTemplateLibrary,
} from './youtube-synthesizer.mjs';
function fail(message) {
console.error(message);
process.exitCode = 1;
}
function parseArgs(args) {
const out = { _: [] };
for (let index = 0; index < args.length; index += 1) {
const item = args[index];
if (!item.startsWith('--')) out._.push(item);
else if (['--allow-yt-dlp'].includes(item)) out[item.slice(2)] = true;
else {
const value = args[index + 1];
if (value === undefined || value.startsWith('--')) throw new Error(`missing_value:${item}`);
out[item.slice(2)] = value;
index += 1;
}
}
return out;
}
function writeResult(result, outputFile) {
const json = JSON.stringify(result, null, 2) + '\n';
if (outputFile) fs.writeFileSync(path.resolve(outputFile), json, { flag: 'wx' });
else process.stdout.write(json);
}
async function main() {
const [command, ...rest] = process.argv.slice(2);
const args = parseArgs(rest);
if (command === 'extract') {
if (!args.url) throw new Error('extract_requires_--url');
let pastedContent = null;
let pastedFormat = null;
if (args.pasted) {
const pastedPath = path.resolve(args.pasted);
pastedContent = fs.readFileSync(pastedPath, 'utf8');
pastedFormat = path.extname(pastedPath).slice(1) || 'txt';
}
const result = await extractTranscript({
url: args.url,
language: args.language ?? 'en',
pastedContent,
pastedFormat,
allowYtDlp: Boolean(args['allow-yt-dlp']),
ytDlpExecutable: args['yt-dlp-executable'] ?? 'yt-dlp',
});
writeResult(result, args.out);
return;
}
if (command === 'synthesize') {
if (!args.input) throw new Error('synthesize_requires_--input');
const input = JSON.parse(fs.readFileSync(path.resolve(args.input), 'utf8'));
const result = synthesize(input, {
templateLibrary: args.templates ? loadTemplateLibrary(path.resolve(args.templates)) : loadTemplateLibrary(),
originalLibrary: args.originals ? loadOriginalLibrary(path.resolve(args.originals)) : loadOriginalLibrary(),
integrityLock: args.integrity ? loadIntegrityLock(path.resolve(args.integrity)) : loadIntegrityLock(),
});
writeResult(result, args.out);
return;
}
if (command === 'audit-library') {
const templates = args.templates ? loadTemplateLibrary(path.resolve(args.templates)) : loadTemplateLibrary();
const originals = args.originals ? loadOriginalLibrary(path.resolve(args.originals)) : loadOriginalLibrary();
const integrity = args.integrity ? loadIntegrityLock(path.resolve(args.integrity)) : loadIntegrityLock();
const result = {
templates: validateTemplateLibrary(templates, originals),
originals: validateOriginalLibrary(originals, templates),
integrity: validateIntegrityLock(templates, originals, integrity),
};
writeResult(result, args.out);
if (!result.templates.ok || !result.originals.ok || !result.integrity.ok) process.exitCode = 1;
return;
}
if (command === 'validate') {
if (!args.input) throw new Error('validate_requires_--input');
const result = validateOutput(JSON.parse(fs.readFileSync(path.resolve(args.input), 'utf8')));
writeResult(result, args.out);
if (!result.ok) process.exitCode = 1;
return;
}
throw new Error('usage: extract|synthesize|audit-library|validate');
}
main().catch((error) => fail(JSON.stringify({ error: error.message, attempts: error.attempts ?? [] })));
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 |