Open-source analytics skills for your AI agent

Your agent can get the number.
The job is knowing what to do with it.

Requesting a metric is cheap now. Sizing a move against the goal and recommending the next step still takes an analyst. aftergrid teaches your agent that work.

Works with a CSV, a notebook, or the SQL connection your agent already has. Nothing else to set up.

Same four rows. Three answers.

Conversion fell.
Someone says roll back signup.

Before
8.8%
After
6.2%

The math is right. It points the team at the wrong fix.

analysis-review Challenge the rollback claim before the meeting.

Install the skills and run them

Synthetic four-row CSV on GitHub · the 900 plan is a stated teaching assumption · panels show the target diagnosis and recommendation, not a model transcript

Install two skills. Paste the prompts.

diagnose-change and make-the-call run the four-row case. Drop the --skill flag to install all fourteen.

npx skills add patrickjmorris/aftergrid --skill diagnose-change make-the-call
Or have your agent install them.

Paste this into Claude Code or Codex. Codex’s workspace sandbox blocked the write when tested; here is what was checked.

Install the aftergrid analytics skills into this project.
01The analyst’s job

A number is the input.
The call is the output.

Pulling a metric is one step. A good analyst does the work before and after the query.

Then use the same skills on your own CSV, notebook, or warehouse.

What the agent refusesChoose a workflow
02In practice

Seven cases,
data and code included.

A conversion drop that was a traffic shift. MRR growth that hid $80 of churn. A causal headline on self-selected retention. A follow-up that re-tests last week’s lesson. A YouTube rule change sized on real creator data, and how it was built. Two real analyses of New York open data.

Explore the examples
OVERALL CONVERSION8.8%→6.2%Direct ↑ 1ppPaid ↑ 1pp
Synthetic lab · conversion

Conversion fell. Both channels improved.

The rollback meeting. Total down, both channels up.

Follow the analysis
430Before+90New+20Expand−20Contract−80Churn440After
Synthetic lab · revenue

MRR grew. The starting customers shrank.

Headline +$10. Starting customers −$80. Reconcile before you celebrate.

Follow the analysis
FOLLOW-UP CONVERSION6.2%→8.0%Lesson retrievedMix + paid rate, not a reverse
Synthetic lab · lesson reuse

Conversion recovered. Was it the same mechanism?

Last time it was mix. Check before repeating the story.

Follow the analysis
WEEK-4 RETENTION60%vs40%Observed associationNot a cause
Synthetic lab · review

Retention was 50% higher. Did onboarding cause it?

A mandate and a forecast sitting on a self-selected 60% vs 40%.

Follow the analysis
LONG-FORM VIEWS, SAME CREATORS, ONE MONTH OLD1.00x→1.74xSame channels, same age: +74%A counting rule, not fans
Real data · Sports YouTube

Sports YouTube’s fall 2026 will look like a record season. The new view count is the leading reason

Real data from 746 sports creator channels across 14 sports. Same creators, same video age: long-form views rose 74% after YouTube changed how it counts a view, in the same weeks the football and soccer seasons began. What it means for creators, clubs, leagues, and sponsors.

Agent-reviewed · not human-approvedFollow the analysis
SIX SKILLS, IN ORDER1 grill-question2 explore-data3 define-metric4 diagnose-change5 make-the-call6 analysis-review
Real data · Process

How the sports YouTube deck was built

Six aftergrid skills took one real question from a raw view count to a 10-slide deck someone can act on. What each skill did, what it caught, and the move you can reuse on your own data.

Follow the analysis
Congestion pricingInconclusiveMember e-bike shareAnswered
Real open data · NYC

Two questions about New York

Real taxi, weather, and bike data. One inconclusive answer, one descriptive one, dead ends kept.

Draft Findings · not publication-approvedFollow the analysis
03The skills

Pick the skill
the work needs.

13 skills run on your existing files and SQL connections. setup-aftergrid adds the optional Engine. Not sure where to start? Run ask-aftergrid.

14 skills

04Fieldnotes

The habits
behind the skills.

Four essays on the judgment around the query.

05From the maintainer

Built by an analyst.
Available for hire.

I’m Patrick Morris. I ran data for ESPN+ as it grew to 25 million subscribers and built the experimentation platform at The New York Times. Agents got good at fetching the number. They still could not tell a product lead whether it mattered. I built these skills to close that gap.

About the project

Next time a metric moves,
bring a recommendation, not just the number.

Install two skills and paste the four-row prompts. See how far your agent gets past the rollback.

Try the four-row case