agentleFS
AnthropicKnown publisheranthropics/commerce-agents/merchant-agent/skills/performance-insights/SKILL.md

performance-insights

Skill3.2k starsChanged 3 months agoApache-2.0View on GitHub

Explaining how the business is doing, meaning why a metric moved, which segment drove it, pace against a comparable, progress against goals the operator has stated, and questions over sales, traffic, conversion, and customers or this operation's equivalents that the snapshot alone does not answer. Not needed when the snapshot's headline figures and their change on the prior period answer the question, how a period went included.

Trending

Quiet since September.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 29 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the anthropics/commerce-agents repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about anthropics/commerce-agents

The biggest 5 of 29 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 29

Talked about on GitHub, Bluesky and Hacker News (29 times).

On GitHub · 23

18 more on GitHub

On Bluesky · 4

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When the question is pace against a comparable (this run against the last run of the same thing, or against its peers at the same point in …

    line 24
  2. Distinctive:

    When the data holds no comparable (a first run, a first season), say so, give the pace on its own terms, and offer the nearest substitute …

    line 26
  3. Very specific:

    Check candidate causes against tool data for the same dates: campaign windows from get_campaign_performance, stockouts or sell-outs from …

    line 34
  4. Distinctive:

    Call something the cause only when its timing lines up and the movement sits in the segment it would affect.

    line 35
  5. Very specific:

    When a present_metrics call is refused as ungrounded, present the retrieved series again with the picks corrected to names the tools …

    line 46
  6. Distinctive:

    Before the component, give the takeaway with its baseline ("sales are down 12% on the prior week, and one category is 9 of those points"), …

    line 47
  7. Distinctive:

    When the movement traces to something operational, make the last chip the hand-off to the flow that acts on it.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Performance insights

Below, "segment" means whatever unit this operation reports on: a category, a listing, a property, a plan, or an event.

Give the operator a takeaway they can act on, the figure behind it, and the comparison it rests on, and say which reads it came from.

Where the figures come from

  • Start with get_business_snapshot for the period asked about: the headline figures, the prior period (compare_to and the change percentages), and the alert counts that every later figure is read against. Then use query_metrics for one metric over time, narrowed to a segment when the question is about part of the operation.
  • Take margin and stock from get_pricing_context and get_listing, and campaign spend and revenue from get_campaign_performance; the snapshot does not carry them.
  • Report a series the backend does not hold (an error, an empty series, a different metric name than you asked for) as unavailable, and say which question that leaves open.
  • Show a figure you work out from returned data (a run rate, a shortfall, a sell-out date at the current pace) with its inputs beside it.
  • The latest date in a returned series is the latest date the data covers. A period that runs past it is partial; say so before comparing it with a complete one.

The comparison

  • Choose the comparison period for the question and name it: the prior period for how the week went, the same period last year for a swing that could be seasonal, before and after a change when the question is about that change.
  • Compare a partial period with the matching part of the baseline, or say the comparison is partial against complete; give both end dates.
  • When the question is pace against a comparable (this run against the last run of the same thing, or against its peers at the same point in the cycle), fetch the comparable as its own query_metrics series, name it, and say why it is comparable.
  • When the two series came back under different names, put both in present_metrics as returned. When they differ only by period, they share a name: query the current period last, present it, and give the comparable's figures in the text with their period. Either way, state the gap at the same point in the cycle instead of the two totals.
  • When the data holds no comparable (a first run, a first season), say so, give the pace on its own terms, and offer the nearest substitute the data holds, labeled as one. Do not build a comparable from memory of similar cases.

Explaining a movement

  • Say first what moved, by how much, and against which baseline; then investigate.
  • Confirm the movement before explaining it. A partial period, a gap in the series, or an unusual baseline accounts for many reported drops; when one of those is the explanation, say so and stop.
  • Locate it: query by segment and name the segment that accounts for most of the movement, with its share.
  • Separate mix from level. An average falls when the unit price fell and also when cheaper units made up more of the total; say which one the returned series show, or say that you cannot tell until the segments are queried.
  • Check candidate causes against tool data for the same dates: campaign windows from get_campaign_performance, stockouts or sell-outs from get_inventory_alerts or the listing, price moves from get_pending_changes or a change applied this conversation.
  • Call something the cause only when its timing lines up and the movement sits in the segment it would affect; otherwise report a correlation and name the read that would settle it.
  • Grade your confidence in words that match the evidence: a finding when the data shows it, a lead when it partly does, and "not visible in the data" when nothing does.

Goals and patterns the operator has stated

  • A target stated in this conversation or held in recall_memories turns a summary into a pace report: the figure so far, the share of the period elapsed, and what the rest of the period must average, computed from returned figures. Do not supply a target the operator has not stated.
  • Recall the seasonal patterns the operator has stated before calling a swing unusual, and say which pattern it does or does not fit. Save a goal or pattern stated during this flow with save_memory, so later summaries can pace against it.

Presenting the answer

  • End with present_metrics. Each pick names a measure a tool returned this conversation, under the tool's name for it and with its segment (sales, sales:kids-room, conversion_rate). A single date's value, a difference between two series, and a projection are not picks; they belong in the text.
  • When a present_metrics call is refused as ungrounded, present the retrieved series again with the picks corrected to names the tools returned.
  • Before the component, give the takeaway with its baseline ("sales are down 12% on the prior week, and one category is 9 of those points"), the comparison used, and the one caveat that changes how to read the figures.
  • When the movement traces to something operational, make the last chip the hand-off to the flow that acts on it.

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.