Experiment card

From stevehuang0115/crewly · View interactive version

Experiment card is an AI agent skill from the GitHub repository stevehuang0115/crewly. Attach an experiment to an optimisation ticket — hypothesis ("change X → metric Y from a to b"), a Search Console or GA4 metric (via seo-ops), an observation window (default 14 days). Crewly captures the baseline when the change ships, measures it when the window ends, labels it worked / didn't / in

How to use this skill

Skill file

Experiment Card

A ticket that is meant to move a number (rewrite a title, add FAQ schema,

shorten the inquiry form) should carry an experiment, so we learn whether it

worked instead of assuming it did. Create the card before the change ships;

Crewly does the rest:

  1. Ship — when the linked ticket reaches done (or you run ship), the

windows are fixed and the baseline is fetched right away: the

windowDays days that had settled before the ship day. The ship time is

the ticket's move to done in its log. If you link a ticket that is

already done and its log has no done time, create asks for

--shipped-at (when the change went live).

  1. Wait — the observation window is the windowDays days after the ship

day. Nothing to do; don't re-check it by hand.

  1. Measure — once those days have settled (Search Console +3 days, GA4

+2), Crewly fetches the result and labels it:

across both windows, fewer than 30 clicks/sessions).

  1. Learn — your prediction (recorded at ship with --confidence) is

resolved, the result is appended to the wiki experiment log

(llm-curated/experiments/log.md), the owner gets it, and a project

ticket gets a log line. show has the whole timeline (the run's trace).

Create

The metric comes from the seo-ops skill, so you need a seo-ops site config

(--config, absolute path; it names the GSC property / GA4 property and the

service-account credentials).

# Search Console: organic clicks to one page, on a project ticket
bash execute.sh create --hypothesis "FAQ schema on the H-1B guide → organic clicks from 120 to 160" \
  --source gsc --measure clicks --page https://visa.careerengine.us/h1b-guide \
  --from 120 --to 160 --config /abs/path/ce.seo-ops.json --project ce-site --ticket CE-31 --confidence 0.6

# GA4: inquiry-form submissions (all channels), on a harness ticket
bash execute.sh create --hypothesis "3-field inquiry form → submissions from 8 to 14 per two weeks" \
  --source ga4 --measure events --event generate_lead --channel all \
  --config /abs/path/ce.seo-ops.json --tkt TKT-212

direction defaults to decrease). Filters: --page URL, --query Q,

--page-match / --query-match exact|contains.

events (--event NAME) and conversions (GA4 key events; --event NAME

for one of them). Filter: --page /landing-path (a full URL is reduced to

its path; the query string is dropped).

can't be told apart.

Measure a ticket-autopilot period (owner / orchestrator / team lead)

When the owner lets a project's ticket autopilot drive a feature, one card

measures both the business number and how autonomous the run was:

bash execute.sh create --autopilot --project <project id> --label feed \
  --hypothesis "Autopilot drives /feed for 4 weeks → feed card clicks up" \
  --source ga4 --measure events --event feed_card_click --channel all \
  --config /abs/path/ce.seo-ops.json --metric-label "Feed card clicks" \
  --metric "ga4:sessions:page=/feed,pageMatch=contains,channel=all" \
  --window-days 28 [--started-at ISO]

before it. The card is running right away.

the process numbers. Use --metric-label to name the metric.

metrics, each with its own baseline, result and verdict. Keys: page,

pageMatch, query, queryMatch, event, channel, label, config

(default: --config). The primary metric gives the verdict.

per shipped ticket, from the autopilot stats of the same windows.

(outcome verdicts + process) at the end. Everything is in the timeline.

Follow it

bash execute.sh list --status running
bash execute.sh show --id EXP-3          # baseline, result, verdict, timeline
bash execute.sh ship --id EXP-3          # only if it has no ticket, or shipped before the ticket closed
bash execute.sh measure --id EXP-3       # only after dueAt; normally automatic
bash execute.sh cancel --id EXP-3 --reason "change reverted"

If a fetch keeps failing (credentials, property access) the owner is told

once with the error; after 6 failures in a row it retries once a day.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.