search-terms-audit-run
Run the full Google Ads "Search Terms Audit" end to end and publish it as a hosted PorterMetrics dashboard. This is the ENTRY POINT / orchestrator for the…
от portermetricsample★ 22 звезды на GitHub
Установить search-terms-audit-run в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Search Terms Audit — Runner (discover → full pull → analyze → publish)
The single flow that turns an account into a hosted PorterMetrics search-terms dashboard. It composes
the cluster: classifier (tags) + performance (money) +
insights (the dollar card) → porter-reporting search-terms-page
(the render) → a Porter report.
TWO HARD RULES (do not regress — both were real failures)
Rule 1 — pull the COMPLETE search-terms report; never a sample
The analysis MUST run on every search term in the period, not a top-N slice. A sampled pull makes keyword cards look sparse ("this keyword only has 2 terms?") and undercounts every dollar figure.
- Query with a high limit (
limit: 10000) sorted by cost desc. Pull the whole report. - Large results auto-persist to a file (the tool returns a path when the payload exceeds the
inline cap — PolicyMe's May report is ~2,290 rows / 288 KB). Do not try to read it inline:
process that file with
jq/python, hand the rows to the engines. This is the supported path for big accounts — never fall back to a smalllimitto keep the result inline. - The engines (labeling / performance / insights) always run on the FULL row set → the tags, totals and the insights card reflect the entire account.
Rule 2 — always show the analysis date range on the report
Every published report MUST display the period it covers. Read date_range_resolved
({date_from, date_to}) from the query_data response and render it as a labeled subtitle in the
report header (e.g. "Google Ads · May 1–31, 2026"). A report with no visible period is incomplete —
the reader cannot tell what window the numbers describe.
The dashboard term-coverage rule (live-fetch is unlimited; a baked snapshot is capped)
- Live-fetch report (the account's connection renders server-side): Porter pulls the FULL report at view time → it shows every term, no cap, and refreshes. Prefer this whenever the connection is healthy.
- Baked snapshot (connection reauth-blocked → the data is inlined into
report.js): a single baked bundle holds only ~300 term-rows. Beyond that, the inlinedvar PAGE = {…}line exceeds the tooling's per-read token cap (~25k tokens ≈ ~45 KB on one line), and the deployed file can no longer be read back to be edited/updated — a verified incident that left a report stuck. So when baking a large account:- The analysis still covers everything (Rule 1) —
insights/totals are computed on the full row set. - The cards show the top keywords by spend, whole keywords only (never truncate a single keyword's terms mid-way — that recreates the "too few terms" bug), ≤~20 terms each, up to ~300 rows.
- Label the coverage honestly in the subtitle: e.g. "top 15 of 136 keywords by spend (≤20 terms each) · insights computed on all 2,290 terms". Never silently drop terms.
- Keep the inlined
PAGEline under the read cap; if a fuller list is needed, that's a CSV export or a live-fetch report, not a bigger baked bundle.
- The analysis still covers everything (Rule 1) —
- A small account (e.g. Harper, 85 rows) shows everything either way — no cap applies.
Operate (the end-to-end steps)
- Discover the account:
list_accounts(component_name="google-ads", query="<name>")→ the full account dict (id, name, component_name, source_user_id, company_id). - Pull the full report (
../performance/references/tools.mdfield set + keyword text):query_data(..., limit: 10000, sort cost desc). Capturedate_range_resolved. If the result persisted to a file, read rows from there. - Per-account context (
context.json): brand lexicon, competitor lexicon, themodel(lead_gen/ecommerce— setlead_genwhen an account values its leads, the verified Eastpointe trap),brand_campaign_markers. Derive from account signals; confirm the doubtful. - Run the engines on the FULL rows:
classifier(tags) →performance(money, model-aware) →insights(the dollar lanes, measured-vs-estimated split). - Adapt to the page shape (porter-reporting
adapter.js): term-centric → keyword cards. Apply the coverage rule above for the cards; keepinsightsfrom the full data; setperiodfrom step 2. - Publish as a Porter report ([
report-create-and-deploy] flow): a live-fetch report when the account's Google Ads connection renders server-side, else a baked snapshot (data inlined, no chart) when the connection is reauth-blocked — the snapshot always renders. Either way the report header shows the date range (Rule 2) and the coverage label. - Reply with the hosted URL + the period + who it's shared with.
Gotchas (verified)
- Cost scale:
google_ads_cost_microsis returned already in currency — do **
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл search-terms-audit-run?
Run the full Google Ads "Search Terms Audit" end to end and publish it as a hosted PorterMetrics dashboard. This is the ENTRY POINT / orchestrator for the search-terms cluster: discover the account, pull the COMPLETE search-terms report, run the analysis engines (classifier + performance + insights), adapt to the reporting page shape, and deploy it as a Porter report (live-fetch when the account's connection is healthy, or a baked snapshot otherwise). Use whenever the user wants "the search terms audit", "the search-terms dashboard", "publish/deploy the search terms report", or "run the audit on account X". The skill ends at a hosted Porter dashboard URL, not at a local HTML file.
Как установить скилл search-terms-audit-run?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл search-terms-audit-run запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…