thoughtleaders-cli 0.7.0__tar.gz → 0.7.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/.claude-plugin/plugin.json +1 -1
  2. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/.gitignore +3 -1
  3. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/AGENTS.md +1 -1
  4. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/PKG-INFO +3 -2
  5. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/README.md +2 -1
  6. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/agents/youtube-comment-classifier.md +2 -2
  7. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/pyproject.toml +1 -1
  8. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl/SKILL.md +3 -0
  9. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/SKILL.md +3 -2
  10. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/_io_utf8.py +1 -1
  11. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/analyze_channel.py +2 -2
  12. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/report.py +1 -1
  13. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/tl_cli.py +1 -1
  14. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-import/SKILL.md +1 -0
  15. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-keyword-research/SKILL.md +2 -0
  16. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/SKILL.md +1 -0
  17. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/SKILL.md +3 -0
  18. thoughtleaders_cli-0.7.2/skills/tl-top-partnerships/SKILL.md +101 -0
  19. thoughtleaders_cli-0.7.2/skills/tl-top-partnerships/scripts/top_partnerships.py +335 -0
  20. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-views-guarantee/SKILL.md +1 -0
  21. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/__init__.py +1 -1
  22. thoughtleaders_cli-0.7.2/src/tl_cli/_typer_utils.py +23 -0
  23. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/auth/commands.py +2 -1
  24. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/balance.py +2 -1
  25. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/brands.py +2 -1
  26. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/channels.py +2 -1
  27. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/credits.py +2 -1
  28. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/db.py +2 -1
  29. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/deals.py +2 -1
  30. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/describe.py +2 -1
  31. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/doctor.py +3 -2
  32. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/matches.py +2 -1
  33. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/proposals.py +2 -1
  34. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/recommender.py +2 -1
  35. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/reports.py +2 -1
  36. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/schema.py +2 -1
  37. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/setup.py +41 -5
  38. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/snapshots.py +2 -1
  39. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/sponsorships.py +2 -1
  40. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/uploads.py +2 -1
  41. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/whoami.py +2 -1
  42. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/main.py +2 -0
  43. thoughtleaders_cli-0.7.2/tests/test_setup.py +41 -0
  44. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/.claude-plugin/marketplace.json +0 -0
  45. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/.github/workflows/python-publish.yml +0 -0
  46. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/API.md +0 -0
  47. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/CLAUDE.md +0 -0
  48. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/LICENSE +0 -0
  49. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/agents/tl-analyst.md +0 -0
  50. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/hooks/hooks.json +0 -0
  51. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/hooks/scripts/load-tl-skill.mjs +0 -0
  52. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/hooks/scripts/post-usage.sh +0 -0
  53. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/hooks/scripts/pre-check.sh +0 -0
  54. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl/references/business-glossary.md +0 -0
  55. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl/references/elasticsearch-schema.md +0 -0
  56. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl/references/firebolt-schema.md +0 -0
  57. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl/references/postgres-schema.md +0 -0
  58. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/.gitignore +0 -0
  59. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/references/comment-patterns.md +0 -0
  60. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/references/peer-cohort.md +0 -0
  61. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/references/red-flags.md +0 -0
  62. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/references/scoring.md +0 -0
  63. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/anomaly_detector.py +0 -0
  64. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/comment_analyzer.py +0 -0
  65. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/comment_scraper.py +0 -0
  66. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/engagement_ratios.py +0 -0
  67. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/peer_cohort.py +0 -0
  68. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/resolve_channel.py +0 -0
  69. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/score.py +0 -0
  70. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/video_integrity.py +0 -0
  71. {thoughtleaders_cli-0.7.0/skills/channel-authenticity → thoughtleaders_cli-0.7.2/skills/tl-channel-authenticity}/scripts/view_curves.py +0 -0
  72. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-keyword-research/scripts/probe.py +0 -0
  73. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/examples/e2e_findings.md +0 -0
  74. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/examples/golden_queries.md +0 -0
  75. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/columns_brands.md +0 -0
  76. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/columns_channels.md +0 -0
  77. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/columns_content.md +0 -0
  78. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/columns_sponsorships.md +0 -0
  79. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/intelligence_filterset_schema.json +0 -0
  80. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/intelligence_widget_schema.json +0 -0
  81. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/report_glossary.md +0 -0
  82. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/sortable_columns.json +0 -0
  83. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/sponsorship_filterset_schema.json +0 -0
  84. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/sponsorship_widget_schema.json +0 -0
  85. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/references/widgets.md +0 -0
  86. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/column_builder.md +0 -0
  87. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/database_query.md +0 -0
  88. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/name_resolver.md +0 -0
  89. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/sample_judge.md +0 -0
  90. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/similar_channels.md +0 -0
  91. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/topic_matcher.md +0 -0
  92. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-report-builder/tools/widget_builder.md +0 -0
  93. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/columns_brands.md +0 -0
  94. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/columns_channels.md +0 -0
  95. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/columns_content.md +0 -0
  96. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/columns_sponsorships.md +0 -0
  97. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/intelligence_filterset_schema.json +0 -0
  98. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/intelligence_widget_schema.json +0 -0
  99. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/report_glossary.md +0 -0
  100. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/sortable_columns.json +0 -0
  101. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/sponsorship_filterset_schema.json +0 -0
  102. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/sponsorship_widget_schema.json +0 -0
  103. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-save-report/references/widgets.md +0 -0
  104. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/skills/tl-views-guarantee/scripts/vg.py +0 -0
  105. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/_completions.py +0 -0
  106. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/auth/__init__.py +0 -0
  107. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/auth/finalize.py +0 -0
  108. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/auth/login.py +0 -0
  109. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/auth/pkce.py +0 -0
  110. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/auth/token_store.py +0 -0
  111. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/client/__init__.py +0 -0
  112. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/client/errors.py +0 -0
  113. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/client/http.py +0 -0
  114. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/__init__.py +0 -0
  115. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/_comments_common.py +0 -0
  116. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/bulk_import.py +0 -0
  117. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/commands/changelog.py +0 -0
  118. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/config.py +0 -0
  119. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/filters.py +0 -0
  120. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/hints.py +0 -0
  121. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/output/__init__.py +0 -0
  122. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/output/formatter.py +0 -0
  123. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/src/tl_cli/self_update.py +0 -0
  124. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/__init__.py +0 -0
  125. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_auth.py +0 -0
  126. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_describe.py +0 -0
  127. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_filters.py +0 -0
  128. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_http_auth.py +0 -0
  129. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_output.py +0 -0
  130. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_reports.py +0 -0
  131. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/tests/test_sponsorships.py +0 -0
  132. {thoughtleaders_cli-0.7.0 → thoughtleaders_cli-0.7.2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tl-cli",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "ThoughtLeaders CLI — query sponsorship deals, channels, brands, uploads, and intelligence from the terminal",
5
5
  "author": {
6
6
  "name": "ThoughtLeaders",
@@ -6,4 +6,6 @@ dist/
6
6
  build/
7
7
  .pytest_cache/
8
8
  .ruff_cache/
9
- .vscode/
9
+ .vscode/
10
+ env
11
+ .claude/settings.local.json
@@ -53,7 +53,7 @@ This repo is also a Claude Code plugin, and can directly be installed as one.
53
53
 
54
54
  - **`tl`** — the main skill for querying ThoughtLeaders data. Default for any sponsorship / channel / brand / upload / report question.
55
55
  - **`tl-keyword-research`** — invoke whenever the user wants to find videos or channels by **content keywords** (topics, concepts, niches) that aren't covered by a curated recommender tag, OR to validate that a candidate channel's content actually touches a given topic. Returns `{operator, keywords:[{keyword,count}]}` from a ranked ES probe over `title` / `summary` / `transcript`; the caller then runs the actual content search with the surviving high-count terms. **Do not compose keyword sets by hand for `tl db es` content searches — delegate to this skill first.** See `skills/tl/SKILL.md` → *Channel & video discovery* for the four-path decision tree and when to use this vs the recommender / raw SQL.
56
- - **`tl-import`**, **`tl-save-report`**, **`adapt-tl-data`**, **`tl-views-guarantee`** — narrower workflows; the skill files document their own triggers.
56
+ - **`tl-import`**, **`tl-save-report`**, **`adapt-tl-data`**, **`tl-views-guarantee`**, **`tl-top-partnerships`** — narrower workflows; the skill files document their own triggers. `tl-top-partnerships` is brand-user-facing: ranks a brand's sold sponsorships by live eCPM vs the sold-date projection and delivers a two-tab Google Sheet via `gws`.
57
57
 
58
58
  ### Skill content boundaries
59
59
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thoughtleaders-cli
3
- Version: 0.7.0
3
+ Version: 0.7.2
4
4
  Summary: ThoughtLeaders CLI — query sponsorship data, channels, brands, and intelligence
5
5
  Project-URL: Homepage, https://thoughtleaders.io
6
6
  Project-URL: Repository, https://github.com/ThoughtLeaders-io/thoughtleaders-cli
@@ -68,7 +68,7 @@ ThoughtLeaders CLI — query sponsorship data, channels, brands, and intelligenc
68
68
  - [duckdb](https://duckdb.org/)
69
69
  - [yt-dlp](https://github.com/yt-dlp/yt-dlp)
70
70
 
71
- For automated installs on MacOS, prefer installing Homebrew and use the pipx package manager, but ask the user if they have the admin access (sudo) password first. If not, proceed by using `uv` and installing everything locally.
71
+ For automated installs on MacOS, prefer installing Python and the requirements on Homebrew and use the pipx package manager, but ask the user if they have the admin access (sudo) password first. If not, proceed by using `uv`.
72
72
 
73
73
  ## Install
74
74
 
@@ -280,6 +280,7 @@ The plugin ships several focused skills (installed by all the `tl setup *` comma
280
280
  - **`tl-report-builder`** — builds TL reports (channels / brands / sponsorships / videos) from natural-language requests. Produces an in-chat preview by default; saves a real campaign when the user is explicit ("save", "create the report").
281
281
  - **`tl-import`** / **`bulk-import`** — superuser-only; bulk-add or exclude lists of channels, brands, videos, or sponsorships against a report.
282
282
  - **`tl-views-guarantee`** — sizes a multi-video sponsorship buy for a channel, returning the video bundle size, views guarantee, and likelihood to hit.
283
+ - **`tl-top-partnerships`** — brand-user performance report. Ranks a brand's sold sponsorships by live eCPM vs the sold-date projection, aggregates per channel, and delivers a two-tab Google Sheet ("By Deal" / "By Channel") via `gws`. Uses only public CLI commands (`tl whoami`, `tl sponsorships list`).
283
284
 
284
285
  ## Output Formats
285
286
 
@@ -40,7 +40,7 @@ ThoughtLeaders CLI — query sponsorship data, channels, brands, and intelligenc
40
40
  - [duckdb](https://duckdb.org/)
41
41
  - [yt-dlp](https://github.com/yt-dlp/yt-dlp)
42
42
 
43
- For automated installs on MacOS, prefer installing Homebrew and use the pipx package manager, but ask the user if they have the admin access (sudo) password first. If not, proceed by using `uv` and installing everything locally.
43
+ For automated installs on MacOS, prefer installing Python and the requirements on Homebrew and use the pipx package manager, but ask the user if they have the admin access (sudo) password first. If not, proceed by using `uv`.
44
44
 
45
45
  ## Install
46
46
 
@@ -252,6 +252,7 @@ The plugin ships several focused skills (installed by all the `tl setup *` comma
252
252
  - **`tl-report-builder`** — builds TL reports (channels / brands / sponsorships / videos) from natural-language requests. Produces an in-chat preview by default; saves a real campaign when the user is explicit ("save", "create the report").
253
253
  - **`tl-import`** / **`bulk-import`** — superuser-only; bulk-add or exclude lists of channels, brands, videos, or sponsorships against a report.
254
254
  - **`tl-views-guarantee`** — sizes a multi-video sponsorship buy for a channel, returning the video bundle size, views guarantee, and likelihood to hit.
255
+ - **`tl-top-partnerships`** — brand-user performance report. Ranks a brand's sold sponsorships by live eCPM vs the sold-date projection, aggregates per channel, and delivers a two-tab Google Sheet ("By Deal" / "By Channel") via `gws`. Uses only public CLI commands (`tl whoami`, `tl sponsorships list`).
255
256
 
256
257
  ## Output Formats
257
258
 
@@ -2,7 +2,7 @@
2
2
  name: youtube-comment-classifier
3
3
  description: >
4
4
  Classifies a batch of YouTube comments as organic vs bot/spam/template for
5
- the channel-authenticity skill's fake-engagement detection. Use when you
5
+ the tl-channel-authenticity skill's fake-engagement detection. Use when you
6
6
  have a JSON array of scraped comments and need a fast, cheap per-comment
7
7
  authenticity judgment. Returns strict JSON only.
8
8
  model: haiku
@@ -14,7 +14,7 @@ color: yellow
14
14
 
15
15
  You judge whether YouTube comments come from a real, engaged human audience or
16
16
  from engagement padding (bots, comment farms, generic filler). You are used by
17
- the `channel-authenticity` skill to vet channels before ThoughtLeaders books a
17
+ the `tl-channel-authenticity` skill to vet channels before ThoughtLeaders books a
18
18
  paid sponsorship, so false "organic" verdicts cost real money — be skeptical.
19
19
 
20
20
  ## Input
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "thoughtleaders-cli"
7
- version = "0.7.0"
7
+ version = "0.7.2"
8
8
  description = "ThoughtLeaders CLI — query sponsorship data, channels, brands, and intelligence"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: tl
3
+ tl-blurb: data analyst (smart query router)
3
4
  description: |
4
5
  Query 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...".
5
6
  ---
@@ -433,6 +434,8 @@ If unsure about what information to find where, read the [references/postgresql-
433
434
 
434
435
  If a user asks for one of the **Unavailable** items, say so explicitly and propose the closest `tl`-based approximation rather than silently degrading.
435
436
 
437
+ If the user requests a chart, create it as a SVG graphic.
438
+
436
439
  ### Discovery & system
437
440
  ```bash
438
441
  tl describe # List all resources with credit costs (free)
@@ -1,5 +1,6 @@
1
1
  ---
2
- name: channel-authenticity
2
+ name: tl-channel-authenticity
3
+ tl-blurb: vet a channel for fake views
3
4
  description: >
4
5
  Detect non-organic views / fake engagement / bot comments on a YouTube
5
6
  channel before booking (or after delivering) a sponsorship. Use when asked
@@ -33,7 +34,7 @@ investigations.
33
34
  ## Setup check
34
35
 
35
36
  ```bash
36
- cd .claude/skills/channel-authenticity/scripts
37
+ cd .claude/skills/tl-channel-authenticity/scripts
37
38
  python3 tl_cli.py preflight # must print "OK"
38
39
  ```
39
40
  If this errors with `cli_unavailable`, tell the user to run `tl auth login`
@@ -1,4 +1,4 @@
1
- """Shared UTF-8 I/O setup for the channel-authenticity scripts.
1
+ """Shared UTF-8 I/O setup for the tl-channel-authenticity scripts.
2
2
 
3
3
  YouTube data is full of non-ASCII: channel names, comment text, emoji.
4
4
  On POSIX the default I/O encoding is already UTF-8, but on Windows the
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env python3
2
- """channel-authenticity orchestrator — two-phase (subagent in the middle).
2
+ """tl-channel-authenticity orchestrator — two-phase (subagent in the middle).
3
3
 
4
4
  Phase 1 (collect):
5
5
  analyze_channel.py "<ref>"
@@ -128,7 +128,7 @@ def finalize(state_path: str, llm_paths: list[str]) -> dict:
128
128
 
129
129
 
130
130
  def main() -> None:
131
- ap = argparse.ArgumentParser(description="channel-authenticity orchestrator")
131
+ ap = argparse.ArgumentParser(description="tl-channel-authenticity orchestrator")
132
132
  ap.add_argument("ref", nargs="?", help="channel handle/url/id or adlink:<id>")
133
133
  ap.add_argument(
134
134
  "--finalize",
@@ -120,7 +120,7 @@ def render(state: dict) -> str:
120
120
  L.append("")
121
121
  L.append("---")
122
122
  L.append(
123
- "_Generated by the `channel-authenticity` skill. Data via the "
123
+ "_Generated by the `tl-channel-authenticity` skill. Data via the "
124
124
  "ThoughtLeaders CLI; comments scraped fresh from YouTube._"
125
125
  )
126
126
  return "\n".join(L)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env python3
2
- """Single data-access seam for the channel-authenticity skill.
2
+ """Single data-access seam for the tl-channel-authenticity skill.
3
3
 
4
4
  Every TL data getter shells out to the ``tl`` CLI (``tl db pg/fb/es``,
5
5
  ``tl channels similar``), so the skill works for anyone with a ThoughtLeaders
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: tl-import
3
+ tl-blurb: bulk-import lists into a report
3
4
  description: Import a list of channels, brands, uploads (videos), or sponsorships into a ThoughtLeaders report — either an existing report (caller supplies `campaign_id` or a TL report URL) or a fresh new one (skill creates a minimal container, then populates). Superuser-only. **Trigger on explicit intent to import the listed entities into a report**, NOT on the mere presence of a list (a user can paste a list and want analysis, comparison, or similar-channel discovery — those go to `tl-cli:tl`). The deciding question is: *would the user be satisfied if those exact entities ended up as the report's contents, no transformation?* If yes, this is the skill. Phrasings: "import these channels into report 1234", "add brands to campaign 5678", "exclude these channels from report Z", "bulk-add these videos to report X", "create a new report with these channels: <list>", "make a campaign containing these brands: <list>".
4
5
  ---
5
6
 
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: tl-keyword-research
3
+ tl-blurb: rank content-search keywords
3
4
  description: |
4
5
  Broaden and rank a set of content-search keywords. Invoke when the user wants to find videos or channels by content keywords (topics, concepts, niches) — not by ID or exact name. Takes one or more seed keywords (or an NL phrase), proposes related candidates, probes Elasticsearch for each one against the `title` / `summary` / `transcript` fields, and returns a strict JSON object `{"keywords":[{"keyword","count"},...]}` sorted descending by document count. The output is meant to feed the next step (typically a `tl db es` content search with the surviving high-count keywords).
5
6
  ---
@@ -163,3 +164,4 @@ Each probe is `size:0` + `track_total_hits:true` with no aggregations — no row
163
164
  5. `keywords` array is sorted descending by `count`.
164
165
  6. Each entry has exactly `keyword` (string) and `count` (integer).
165
166
  7. The seed keyword(s) appear in the output.
167
+ 8. If the user requests a chart, create it as a SVG graphic
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: tl-report-builder
3
+ tl-blurb: build a TL report from scratch
3
4
  description: |
4
5
  **MANUAL-INVOCATION-ONLY skill — do NOT auto-trigger on natural-language report requests.** This skill is invoked explicitly by the user (via the `/tl-report-builder` slash command, by naming the skill directly, or via some other unambiguous indication). Phrases like "build me a report", "make a campaign", "find me channels with filters Y", or "save this as a report" do NOT route here automatically. Those phrases go to other skills: the `tl` skill (for analysis / exploration of channels / brands / videos / sponsorships), `tl-save-report` (for persisting an in-chat session's result set as a saved report — filter-style or list-style), or `tl-import` (for adding identifiers to an existing report). This skill itself builds a brand-new TL report config from scratch through a heavy four-phase orchestration (routing → schema + validation → columns → widgets), covering the four report types: content/videos (1), brands (2), channels (3), sponsorships/deals (8). Only fire it when the user has explicitly chosen this path — there's almost always a lighter skill that's the right answer.
5
6
 
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: tl-save-report
3
+ tl-blurb: save a session as a report
3
4
  description: |
4
5
  Save the results of an in-chat data-exploration session as a TL report. Triggers when the user wants to persist a channels / brands / videos (uploads) / sponsorships list or filtered set they've been working with — phrases like "save this as a report", "save the list", "turn this into a campaign", "persist this", "make a report from what you found", "save the result", "I want to come back to this".
5
6
  ---
@@ -502,6 +503,8 @@ Echo the saved URL + ID, plus a follow-up offer for refinement:
502
503
 
503
504
  The follow-up offer matters because **FilterSet changes (keywords, demographics, M2M lists) can't be patched in place** via `tl reports update` — they require saving a new variant. Surface that limitation only if the user actually asks to change FilterSet fields.
504
505
 
506
+ If the user requests a chart, create it as a SVG graphic.
507
+
505
508
  ### On failure
506
509
 
507
510
  If the command exits non-zero, the CLI prints the error on stderr (shape: `Error (NNN): <detail>` for most codes; specific lines for 401/402/403). **Surface the error verbatim** — do NOT silently report success.
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: tl-top-partnerships
3
+ description: External brand-user performance report. Ranks a brand's sponsorships by effective CPM once the sponsored videos went live, and compares live eCPM against the sold-date projection. Use whenever a brand user asks "which of my sponsorships performed best", "top partnerships this year", "best ROI deals", "effective CPM on my deals", "which sponsorships overperformed", "/top-partnerships", or any variation of "show me my best-performing sponsorships". This is the brand-side equivalent of internal performance reporting — fire it eagerly any time a brand wants to look back at their booked deals through a performance lens, even if they don't say the words "CPM" or "eCPM".
4
+ ---
5
+
6
+ # Top Partnerships (Brand-side)
7
+
8
+ Helps a brand look back at their sold sponsorships and see which ones delivered the lowest effective CPM (eCPM) once the videos went live, vs the projection at sale.
9
+
10
+ ## Triggers
11
+
12
+ - `/top-partnerships` — defaults to calendar YTD
13
+ - `/top-partnerships <range>` — e.g. `/top-partnerships 2025`, `/top-partnerships "last 12 months"`, `/top-partnerships "Q1 2026"`
14
+ - Natural language: "top partnerships this year", "best sponsorships", "which deals performed best", "effective CPM on my deals", "show me my best ROI sponsorships"
15
+
16
+ ## What this skill computes
17
+
18
+ For every sold sponsorship the brand has where the video has actually gone live (has a `publish_date` and a non-null live `views` count):
19
+
20
+ - **Sold-date eCPM** = `price / projected_views_at_purchase_date * 1000`
21
+ - The projection captured on the adlink at the moment the deal was sold. This is the eCPM the brand "agreed to."
22
+ - **Live eCPM** = `price / views * 1000`
23
+ - The actual eCPM now that the video has accumulated views.
24
+ - **View ratio** = `views / projected_views_at_purchase_date`
25
+ - >1 means the video out-delivered its projection.
26
+ - **Delta** = `live_eCPM - sold_date_eCPM`
27
+ - Negative delta = the deal got *cheaper* per view than promised (good for the brand). Positive delta = the deal underdelivered.
28
+
29
+ It also pulls **future bookings** — any sponsorship with status sold / proposal_approved / pending and a send date strictly after today — and tags each deal and each channel with the earliest future send date, or "Re-book - no future spot" if none exists. This turns the report into an actionable list, not just a backward look.
30
+
31
+ ## Output
32
+
33
+ A Google Sheet with two tabs, owned by the caller's Google account:
34
+
35
+ - **By Deal** — one row per sponsorship, ranked by live eCPM (best first). Columns: rank, channel, title, video_url, send_date, publish_date, price, promised_views, live_views, view_ratio, sold_date_ecpm, live_ecpm, delta_ecpm, measurable, next_booking.
36
+ - **By Channel** — one row per channel, aggregated across all that channel's deals in range. Combined live eCPM is `sum(price) / sum(live_views) * 1000` (volume-weighted, not an average of CPMs). Sorted by combined live eCPM. Columns: channel, deals, measurable_deals, total_price_usd, total_promised_views, total_live_views, view_ratio, sold_date_ecpm, live_ecpm, delta_ecpm, next_booking.
37
+
38
+ In chat: a short summary + top-10 channels table + the sheet URL.
39
+
40
+ ## Workflow
41
+
42
+ ### Step 1 — Resolve the brand
43
+
44
+ Run `tl whoami --json` and read the `brands` array.
45
+
46
+ - One brand → use it silently.
47
+ - Zero brands → tell the user this skill is for brand-user profiles and stop.
48
+ - Multiple brands → ask which one. Don't guess.
49
+
50
+ ### Step 2 — Resolve the time range
51
+
52
+ Default = calendar YTD (Jan 1 of the current year through today).
53
+
54
+ Accept these forms in the user's input:
55
+
56
+ - `2025` or `"2024"` → that full calendar year
57
+ - `"last 12 months"` → trailing 12 months ending today
58
+ - `"Q1 2026"`, `"Q4 2025"` → that quarter
59
+ - `"YTD"` → explicit current YTD
60
+ - Anything else → ask the user to clarify, don't silently pick
61
+
62
+ Convert to a `send-date-start` / `send-date-end` pair (YYYY-MM-DD strings). Use `send_date` as the time anchor because that is when the sponsorship actually ran for the brand — purchase_date can be months earlier.
63
+
64
+ ### Step 3 — Run the script
65
+
66
+ ```bash
67
+ python3 <SKILL_DIR>/scripts/top_partnerships.py \
68
+ --brand "<BRAND_NAME>" \
69
+ --send-date-start <YYYY-MM-DD> \
70
+ --send-date-end <YYYY-MM-DD>
71
+ ```
72
+
73
+ `<SKILL_DIR>` resolves to this skill's directory at invocation time (same convention as `tl-views-guarantee`, `tl-keyword-research`).
74
+
75
+ The script does everything: pulls sold deals in range (paginated), pulls all future bookings, computes per-deal and per-channel metrics, creates a Google Sheet with two tabs, shares it back to the caller, and prints a markdown summary plus the sheet URL.
76
+
77
+ It uses `tl` for data and `gws` for sheet creation. Both must be on PATH and authed.
78
+
79
+ ### Step 4 — Present the result
80
+
81
+ Take the script's stdout as-is. It already contains:
82
+
83
+ 1. **Summary line** — total sold deals, measurable count, median live eCPM, count overperforming.
84
+ 2. **Top 10 channels by combined live eCPM** — markdown table with the Next booking column bolded when it says "Re-book."
85
+ 3. **Sheet URL** — point the user at the two tabs.
86
+
87
+ If more than half the top-10 channels show "Re-book", call that out in one sentence as the headline action item. If most of the top channels already have follow-ups booked, congratulate briefly and stop.
88
+
89
+ Keep the writeup tight. No em dashes, no "just wanted to", no hedging. The data does the talking.
90
+
91
+ ## Brand-user mode notes
92
+
93
+ - This skill assumes a brand-user `tl` auth. It uses only public CLI commands (`tl whoami`, `tl sponsorships list`) — no `tl db pg` and no Elasticsearch.
94
+ - The `tl sponsorships list` endpoint already filters to deals the calling profile is allowed to see, so passing `brand:"<name>"` is a belt-and-braces filter rather than a privacy boundary.
95
+ - View counts come from TL's own tracking on the `views` field returned by the CLI. They're the same numbers the brand sees in the TL dashboard, so the eCPMs are reconcilable with what they see in-app.
96
+ - Don't include creators' contact emails, internal notes, or owner_* fields in the brand-facing output. The script already drops them from the CSV.
97
+
98
+ ## Edge cases worth mentioning to the user (only if they apply)
99
+
100
+ - A deal that ran very recently (last 14-28 days) may show a misleadingly high Live eCPM because views are still accumulating. Mention this only if more than half the top-10 deals have a send date inside the last 28 days.
101
+ - If the brand has zero measurable deals in the range, say so plainly and suggest broadening the range (e.g., last 12 months).