/tl-cli:tl-channel-authenticityfrom tl-cli
Vets YouTube channels for fake views, bot comments, and non-organic engagement before or after sponsorships. Returns a 0–100 authenticity score with ranked red flags via CLI and comment classification.
Ships in tl-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Takes a channel (handle / URL / numeric id / name) — or adlink:<id> for a
sponsorship drill-down — and returns a 0–100 authenticity score plus ranked
red-flag findings. Built and calibrated from real bought-view and comment-farm
investigations.
skills/_shared/tl_data.py) and the tl CLI (tl db pg/fb/es,
tl channels similar); channel resolution lives in
scripts/channel_lookup.py.python3 .claude/skills/_shared/tl_data.py preflight # must print "OK"
If this errors with cli_unavailable, tell the user to run tl auth login
(or set TL_API_KEY). Comment scraping additionally needs yt-dlp
(pip install yt-dlp) — it uses the android InnerTube client so no cookies
or API key are required.
Phase 1 — collect. From the scripts/ dir:
python3 analyze_channel.py "<handle|url|id|name|adlink:ID>"
This runs Groups A + B + C(rule-based), scrapes ≥10 latest longforms
(+ highest-view + most-recently-sponsored), and prints a JSON envelope with
state_path, llm_batch_path, and llm_batch_size.
If the ref matches multiple channels (common for names with localized
dupes), Phase 1 exits (code 4) with {"error":"ambiguous_channel", "candidates":[{id,name,subscribers}…]} instead of guessing. Show the
candidates to the user — they're ordered by subscriber count, highest first
(the most likely intended) — let them pick, then re-run Phase 1 with that
numeric id.
Phase 2 — classify comments (run the subagent TWICE). Read
llm_batch_path (a JSON array of {i, text, author}) and send it to the
youtube-comment-classifier agent via the Agent tool
(subagent_type: youtube-comment-classifier) twice — two separate calls on
the same batch. Prepend one context line: channel niche: cat <content_category>, language <language> (both values are in the envelope).
Each call returns a strict JSON array
[{"i":N,"label":"organic|generic-template|bot-like|promotional|spam"}]; save
each reply verbatim to its own file (e.g. /tmp/ca_llm1.json,
/tmp/ca_llm2.json).
Why twice: single-pass LLM labeling wobbles ±10pts, so finalize majority-votes the two passes to keep the reported organic share stable. Sophisticated AI-comment farms read as clean English at normal volume — only the classifier catches them, so this pass is essential.
If the batch is empty (channel had almost no comments), skip the subagent and
pass an empty array [] — near-zero comments is itself the loudest signal,
and Group C already penalizes it.
Phase 3 — finalize (pass both classifier files):
python3 analyze_channel.py --finalize <state_path> /tmp/ca_llm1.json /tmp/ca_llm2.json
This applies the LLM verdict, computes the composite score, writes the final
JSON + markdown report to /tmp, and prints the report. Present that report
to the user (it's already formatted — peer comparison, group scores, ranked
flags, verdict).
Three groups, each scored 0–100 independently (start at 100, subtract fixed
per-flag penalties). Final = simple mean of the three. Two hard
overrides force FRAUD_LIKELY (score capped at 39) regardless of the mean:
(1) Group C — non-organic audience (<30% organic from the classifier, or a
dead comment section); (2) Group B — concealed/misrepresented performance
(≥2 sold+published sponsored videos deleted/unlisted, or one with ≥5k views;
or ≥3 high-view videos scrubbed with ≥15% of tracked views gone).
Bands: ≥90 CLEAN · ≥70 MINOR_FLAGS · ≥40 MIXED · <40 FRAUD_LIKELY.
engagement_ratios.py,
peer_cohort.py): like/comment rates measured against a niche-matched peer
baseline, plus audience-size sanity checks across longforms vs shorts.view_curves.py,
anomaly_detector.py, video_integrity.py): view-over-time curves that
don't behave like organic growth (bursts without engagement, guarantee
cliffs at round numbers, frozen likes, subs flat while views surge), plus
intent-aware detection of deleted/unlisted videos used to conceal or
misrepresent performance (benign re-uploads are excluded).comment_scraper.py, comment_analyzer.py
Full catalogue + thresholds: references/red-flags.md. The exact tl queries
each check issues live in the scripts; the underlying channel/video/adlink
schema is documented in the tl skill (skills/tl/references/).
Offer to log the verdict (channel, score, top flags, date) to a "Channel
Vetting Log" sheet via the gws skill if the user wants an audit trail.
If you discover a new robust signal, add it to references/red-flags.md and
a penalty to references/scoring.md (self-improvement).
references/comment-patterns.md (opens in a new tab)references/peer-cohort.md (opens in a new tab)references/red-flags.md (opens in a new tab)references/scoring.md (opens in a new tab)scripts/_io_utf8.py (opens in a new tab)scripts/analyze_channel.py (opens in a new tab)scripts/anomaly_detector.py (opens in a new tab)scripts/channel_lookup.py (opens in a new tab)scripts/comment_analyzer.py (opens in a new tab)scripts/comment_scraper.py (opens in a new tab)scripts/engagement_ratios.py (opens in a new tab)scripts/peer_cohort.py (opens in a new tab)scripts/report.py (opens in a new tab)scripts/resolve_channel.py (opens in a new tab)scripts/score.py (opens in a new tab)scripts/video_integrity.py (opens in a new tab)scripts/view_curves.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thoughtleaders-io/thoughtleaders-cli --plugin tl-cli10 skills in this plugin
/connector-impactJoin a brand's Impact (impact.com) data to ThoughtLeaders data: each Impact partner matched to a
TL channel and, where Impact can tell videos apart, to the exact TL sponsorship; otherwise a
go-live timeline of the creator's TL videos against Impact results. TL views, price and CPM sit
beside Impact clicks, actions, sales revenue and commission. Also covers creators the brand
never booked through TL, and brands with no TL bookings. Brand side only: a media-buyer `tl`
login and a brand (advertiser) Impact account. Invoke when the user wants Impact numbers read
against TL data: "how did our sponsorships convert in Impact", "Impact performance for
[creator/brand]", "which TL creators drove the most actions", "actions per 1,000 views",
"cost per action on our sponsorships", "is [creator] declining", "match Impact partners to our
channels", "what does [Impact term] mean in TL", or any question mixing Impact terms (Partner,
Action, Action Cost, Total Cost, Program, PromoCode, SharedId) with TL data. The user supplies
the Impact connection (Impact MCP, Impact API or a CSV export) and a `tl` login. Read-only:
it never changes anything in Impact. Asks which view (deal scorecard, creator rollup, decay
over time) when the request doesn't say. Also invoke for help asks about this skill; answered
from the guide, no queries run.
/tlQuery and analyze YouTube sponsorship data using the `tl` CLI. Use this skill for finding channels, brands and sponsorships, and for data exploration, including counts, metrics, trends, time-series, distributions, single-record drill-downs, revenue / pipeline-weighting math, view-curve analysis, cross-source business questions. Examples: "How many deals did we close last quarter?", "What's the weighted pipeline by sales owner?", "Show me the view curve for video X", "Find mentions of Surfshark in transcripts", "Investigate this video", "Find channels...", "Find brands...".
Other plugins' skills for the same job