/tl-cli:connector-impactfrom tl-cli
Joins Impact (impact.com) performance data to ThoughtLeaders sponsorships, matching partners to channels and videos. Answers questions about conversion, actions, cost per action, and creator performance across both platforms.
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.
Impact records what happened after the click (clicks, actions, sales revenue, commission). TL records what happened before it (creator, video, go-live date, views, price). This skill joins the two.
Read before any analysis:
references/impact-to-tl-mapping.md: terms, metrics, match keys, dates, costs, currency.references/impact-schema.md: Impact objects, fields and traps.tl skill: business-glossary.md, postgres-schema.md, and elasticsearch-schema.md
for video lookups.Not for: an Impact-only question (Impact's MCP answers it directly); a TL-only question (use the
tl skill); a renew or don't-renew verdict (build the join here, then apply Performance Grade
in the tl skill's glossary; this skill sets no grade).
This skill only reads Impact. It never creates, changes, approves, reverses or deletes anything there, on any route, whatever the user's login or token would allow. Use only these calls:
| Route | Allowed calls |
|---|---|
| Impact MCP | query_performance, list_partners, investigate_order_action, list_action_inquiries, get_action_inquiry |
| Impact API | GET requests to the resources in the schema |
| CSV export | Reading the files the user supplies (also on the MCP route, stage 2) |
If the user asks for a change in Impact (approve or reverse an action, resolve an inquiry, message or edit a partner, change a contract, payout or setting), say this skill only reads, point them to Impact's website, and carry on with the run.
Files the run creates go in a temporary folder that is deleted when the run ends. The user's own exports stay where they are. If the user wants results saved, offer and wait for a yes.
If the user asks what the skill does, how it works or what they can ask, run no queries: answer from
references/help.md, sized to the question, then offer to start. Answer a term question mid-run
from help.md or the mapping, then continue.
publish_date in the last 12 months, to today.autonomous, --auto, "all of it" or "don't stop to ask": all three views, default window, no
questions.GROUP BY in TL SQL, grouped query_performance in Impact). Compute
every sum and ratio with SQL or a code step, never by hand.tl balance, the rate
(0.3 credits a sponsorship row), and the most this run could cost, against the user's limit if
they gave one. The only charged call before the exact quote is one probe, named in advance:
tl sponsorships list for the brand with --limit 1, which returns total for 0.3 credits.
Then quote the run (deal pull, adlink read, coverage count, video lookups) beside the balance.
If the quote is above the user's limit or a tenth of the balance, ask before reading. Price
any other raw read with tl db pg --pricing / tl db es --pricing (1 credit each) after the
quote. Keep a running total from each response's usage.credits_charged, failed reads
included, and report it with the results. Write "credits", never "cr".tl db pg call has LIMIT and OFFSET; every tl db es body has size
and from; follow next_offset until has_more is false. tl sponsorships list returns at
most 500 rows a page, so page it too.total, stop, name the read and the
missing count, and ask before going on. A creator silently dropped becomes "not booked through
TL" and gets a wrong cost.Contacts[] or an action's customer fields
(CustomerId, CustomerStatus, CustomerCountry, CustomerRegion, CustomerCity, Oid,
Note) into a table, a note or a calculation; the report is per partner and per deal. Read a channel's social_links by named
platform key only (youtube, tiktok, instagram); never select the whole column or its
_emails array. The video index copy of the links has e-mails removed.tl whoami --json and read profile.persona and profile.flags.publisher in flags
without advertiser), stop and say a media-buyer login is required: a seller login returns
the creator's own deals, so the report would be about the wrong company.tl brands find "<name>", never in SQL.Pull the brand's sold deals with no date filter: earlier videos still drive sales inside the
window, and sold deals with no publish_date are listed too (mapping 4.2).
tl sponsorships list status:sold brand:"<brand name>" --limit 500 --offset 0 --json
tl skill's postgres-schema.md (For bulk handle/name lookups in SQL):
channel name, handle, the handle in url and named platform handles, against common_name and
url. If more than one record matches, list them with their URLs and ask which to include
("all" means one creator across platforms). Then run one paged pull per channel id with
channel:<channel_id> added, never the brand's whole list filtered afterwards.id, publish_date, price, projected_views_at_purchase_date, article_id, channel_id, channel,
common_name, brand_id, status, cpm and views.brand: is a partial name match. Keep only rows whose brand_id is the brand resolved in
setup, and name any row left out.publish_date are
listed under it (mapping 4.2). Report the count of deals live after the window end.publish-date-end on tl sponsorships list is inclusive. In SQL, bound dates per mapping 1.2.Then read the join keys the list lacks, for the deal ids pulled, and join on deal id:
SELECT al.id, al.tracking_url, al.media_url,
al.conversions, al.revenue
FROM thoughtleaders_adlink al
WHERE al.id IN (<deal ids>)
LIMIT 500 OFFSET 0
thoughtleaders_adlink alone, with only these columns. The deal rows are already
brand-scoped, and every joined table is charged per row. Do not widen the select to find a
field; if the join needs one that is not here, say so and stop. If a column is rejected, follow
the mapping's opening rule.views is its TL views. For deals with no views, resolve the video id (mapping
1.4) and look them up once before calling any of them "no TL views":tl db es '{"size": <number of ids>, "from": 0, "query": {"terms": {"id": ["<video id>", "..."]}},
"_source": ["id", "views", "projected_views", "publication_date"]}' --json
list_partners, GET .../MediaPartners, or a
partner list export; report partner filters are capped). For named creators, search only for their partners, by alias (mapping
3.1).GET .../Actions filtered with
ActionDateStart / ActionDateEnd, or the Advanced Action Listing export. On the MCP route,
ask for that export: no MCP tool returns each action's state, promo code or SharedId. Group by
partner, date, state and event type.query_performance, a ReportExport,
or a Performance by Partner / by Day report).CSV route: name the reports to export (Performance by Partner, Performance by Day, Advanced Action Listing) with the run's dates, states and partners, plus any column the default view hides.
If the route only gives lifetime totals, say decay over time is unavailable.
Match each partner to TL with every key in mapping 3.2, then look for per-video evidence (mapping 3.3). Record partner id, channel id(s), key, confidence and group (mapping 4.4).
Properties[] URL and handle on the partner, plus its link and name, and collect
every TL channel any of them reaches, even after a strong match. Two or more channels trigger
the multi-channel or agency rule below.ILIKE on names.tl channels find "<link>",
say its TL data takes about a day, and report it from Impact only until then. Run
tl channels find only on a channel TL has or a link the user gave: on an unknown name it
queues a channel for indexing.curl): it
registers a click in the brand's account. A link on the brand's own short domain stays
unresolved.Apply mapping 4 (per-deal windows with per-video evidence, otherwise the go-live timeline; social
platforms per 4.5; for creators not booked through TL the user confirms which videos they paid
for) and mapping 2. Build periods by summing each partner's daily numbers between go-live dates.
If a TL deal's conversions or revenue differs from Impact, show both, labelled; never
overwrite or average.
In this order:
tl glossary's business terms, not table names. Draw a chart only when asked, as SVG.total; a short read stopped the run.Contacts[], customer field or e-mail address read or shown.ILIKE; no tracking link opened; no
tl channels find on an unknown name; agencies split or asked.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thoughtleaders-io/thoughtleaders-cli --plugin tl-cli10 skills in this plugin
/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...".
/tl-brand-creator-connectionFind the honest connections between a brand and a YouTube creator, built
on a reusable, evidence-backed profile from the creator's own words, with
an optional creator brief the creator can work from. Invoke whenever the
user asks for a "brand-creator connection", "creator-brand connection",
"personal angle for [channel]", "creator profile", "what do we know about
[creator]", "find self references", "creator brief", "creator talking
points", "a brief I can send the creator", "creator-facing brief",
"talking points for [channel]", or `/tl-brand-creator-connection`. It mines the
creator's transcripts for first-person disclosures, verifies every retained
quote against its timestamped source, resolves contradictions and
sensitivity, and writes a reusable fact ledger. With a brand, it also
researches the brand, produces a connection map a brand can read (a fit
verdict and creative concepts built on the creator's own moments; thin fit
and no fit are valid verdicts), and can produce a creator-ready brief
whose talking points are built from the creator's own gems and lead to the
brand: the brand's own brief mirrored when it sent one, a six-section
fallback when it did not. Social and web identity research is OPT-IN;
the creator-facing brief is OPT-IN and asks once for the brand's brief
and what it is promoting. With neither choice stated, ask once
for the missing choices before paid research; autonomous/fast runs use
transcripts only and skip the creator-facing brief. Also invoke for HELP
asks about this skill; explain the modes and choices without running
queries.
Other plugins' skills for the same job