agentleFS
agencystewagencystew/claude-skills-google-ads/skills/change-detective/SKILL.md

change-detective

Skill1 starsChanged 13 days agoApache-2.0View on GitHub

Works out why Google Ads performance changed by finding the day each campaign's clicks, cost, CPC, conversion rate or impression share shifted and lining it up with the change history, including auto-applied recommendations, then ranks the suspects with before-and-after numbers. Use when someone asks "why did performance change", "what happened on the 5th", "who changed what", "why did CPA jump", or after conversion-lag-check finds a real drop. Not for checking whether a drop is real (use conversion-lag-check first) or for writing the client update (use weekly-client-report).

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read references/account-profile.md when no profile is in the chat or project.

    line 21
  2. Distinctive:

    Ask for what is missing:

    line 26
  3. Distinctive:

    If the change history is missing, say the answer will only show when and where numbers moved, not why, and ask for it before guessing.

    line 41
  4. Very specific:

    Add --campaign "<text>" to focus on one campaign.

    line 47
  5. Distinctive:

    Read "Where the numbers moved".

    line 53
  6. Distinctive:

    If two changes share the top score, say they cannot be separated from the numbers.

    line 65
  7. Distinctive:

    Read references/field-notes.md when you rank suspects or when no row explains the shift.

    line 70
  8. Distinctive:

    Run the self-check, then answer with the output template.

    line 74
  9. Distinctive:

    Read-only. Never undo or change anything.

    line 77
  10. Distinctive:

    Call a change a suspect, never the proven cause.

    line 80
  11. Distinctive:

    Do not judge conversions on unsettled days.

    line 82
  12. Distinctive:

    Before vs after: [numbers].

    line 93
  13. Distinctive:

    Not explained by any change: [shift + checks to run].

    line 97
  14. Distinctive:

    Avoid: "Performance dropped because of recent changes." (no date, no change, no numbers).

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Change detective

Most "why did it drop" answers are guesses: someone remembers one change and blames it. This skill does it the way a good analyst would. It finds the exact day the numbers moved, then lists every change made in the days before, scores each one by timing, scope and whether that kind of change can move that metric, and shows before-and-after numbers. Changes made by Google's auto-applied recommendations are called out, because nobody remembers making them.

Step 0: account profile

Read references/account-profile.md when no profile is in the chat or project. Fields needed: currency, targets, typical conversion lag, who approves changes.

Inputs

Ask for what is missing:

  1. Daily campaign report (Campaigns view segmented by Day, or Report editor with Day and Campaign rows), last 60 to 90 days to yesterday. Columns: Campaign, Impr., Clicks, Cost, Conversions, Search lost IS (budget), Search lost IS (rank).
  2. Change history download: Change history page, same date range, download as CSV. Keep all users and tools; do not filter out Google's changes.
  3. Days to conversion report (Campaigns view, Segment > Conversions > Days to conversion, 90 days ending at least 30 days ago). Without it, ask for the usual lag and use --settle-days N. Live data: references/mcp-queries.md (read when the Google Ads MCP tools are connected; the API keeps only 30 days of change events).

If the change history is missing, say the answer will only show when and where numbers moved, not why, and ask for it before guessing.

Workflow

  1. Run: python scripts/change_detective.py --daily <daily.csv> --changes <changes.csv> --lag <lag.csv> --target-cpa <CPA> [--campaign-target "Implants=90"] Add --campaign "<text>" to focus on one campaign. Changes made at the same minute by the same person or tool are grouped (for example "3 changes: Keyword added ..."). The script reports shifts of at least 15% with strength 3 or more. These are settings, not Google rules: lower them with --min-pct and --min-t for small accounts, and say so in the answer.
  2. Read "Where the numbers moved". Each line is a shift: the first day the new level started, before and after levels, and strength (above 3 is a clear shift). Conversion metrics use lag-adjusted values on days at least half complete, so a conversion-rate shift can show up later than a clicks shift. Daily conversion rate is noisy on small campaigns; the before/after block (CPA vs target) is often the clearer signal for keyword and auto-applied changes.
  3. For each shift, read the suspects. Scores near 1.0 mean the change happened 0 to 1 days before, in that campaign, and is the kind of change that moves that metric. Use references/change-types.md (read when explaining why a type of change moves a metric).
  4. If two changes share the top score, say they cannot be separated from the numbers. Use the pattern of metrics to argue which is likelier (for example lost IS (rank) rising points to bidding, not ad text).
  5. For shifts with no suspect, list the outside causes to check: tracking, landing page, season, competitors (Auction insights). Read references/field-notes.md when you rank suspects or when no row explains the shift. Why: website and Tag Manager changes, and Google's own auto-apply settings, leave no row or only a hidden one.
  6. Run the self-check, then answer with the output template.

Guardrails

  • Read-only. Never undo or change anything. Suggest a fix as a draft for the approver, with the expected effect. Why: undoing the wrong change adds a second shock and makes the next diagnosis harder.
  • Call a change a suspect, never the proven cause. Why: timing is evidence, not proof.
  • Do not judge conversions on unsettled days. Why: they are dated by click and still arriving; clicks and cost have no lag.
  • Name the person or tool that made each change, including auto-applied recommendations. Why: the fix is often a setting (auto-apply) rather than the change itself.

Output template

What changed and why: [account], [window]

  1. [Campaign]: [metric] moved from [before] to [after] from [date]. Prime suspect: [change, date, who], because [timing + metric fit]. Before vs after: [numbers]. Confidence: [high/medium/low and why]. Draft fix: [what, for whom to approve]. (repeat, most important first)

Not explained by any change: [shift + checks to run].

Good: "Invisalign: lost IS (rank) jumped from 28% to 52% from 5 Nov, the day after Jo cut target CPA from £70 to £45 (4 Nov, 16:51). A tighter target makes Google bid lower, which shows up as rank loss. The RSA edit 2 minutes later is unlikely to move rank share." Avoid: "Performance dropped because of recent changes." (no date, no change, no numbers).

Self-check (run before answering)

  • Every suspect has a date, who made it, and before-and-after numbers.
  • Conversion claims use settled days only.
  • Same-day changes flagged as inseparable.
  • Auto-applied changes called out by name.
  • No change made; fixes are drafts with an approver.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.