/marketplace:build-golden-set [search | recsys]from marketplace
Assemble or improve a golden query set (for search) or golden intent set (for recsys) for offline evaluation of a two-sided marketplace. Use when asking "build me a golden set for search", "add regression cases from last quarter's incidents", "grow our golden set from query logs", "what queries should I test my ranking change against?", "I need an eval set for the similar-listings module", "curate offline eval cases for our homefeed recsys", or "we need a golden set before we can review relevance changes". Pulls candidate queries from the data warehouse query logs, clusters by intent class, adds hand-curated regression cases from the gotchas log, captures must-appear and must-not-appear assertions, records provenance, and writes to golden-set.md in the company's marketplace-context skill. Prerequisite for /marketplace:review-change on any search-branch change.
Ships in marketplace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Golden sets are the foundation of pre-ship confidence for search and recsys changes. This skill assembles one from real data and known regressions, then grows it over time.
/marketplace:build-golden-set search
/marketplace:build-golden-set recsys
/marketplace:build-golden-set # asks which type
Read:
golden-set.md — the existing golden set, if any. Don't duplicate cases.events.md — to know which tables hold query logs and impression historygotchas.md — most important. Every prior incident is a regression candidate.marketplace.md — to know what the primary conversion event issurfaces.md — to pick the target surface(s)Targets ~~search engine — builds queries + expected-result assertions.
Targets ~~personalisation engine — builds user archetypes + expected-recommendation assertions.
If the argument is ambiguous, ask.
Which search surface? Some systems have multiple (autocomplete, full search, zero-result fallback). Default to the main full-search surface.
From ~~data warehouse (query logs):
-- Top queries by 30-day volume
SELECT
query_text,
COUNT(*) AS n,
AVG(clicked) AS ctr,
AVG(result_count) AS avg_result_count,
AVG(zero_result) AS zero_result_rate
FROM search_log
WHERE event_date >= CURRENT_DATE - INTERVAL 30 DAYS
AND surface_id = '{{surface}}'
GROUP BY 1
ORDER BY n DESC
LIMIT 100
Then cluster the queries by intent class:
For each cluster, pick 3-5 representative queries — high-volume + hard-case + edge-case.
gotchas.mdFor every past incident with a query signature, add the exact query that broke. These are the most valuable cases — they catch the same bug from reappearing.
If gotchas.md is thin, ask: "Any past search regressions you remember? Give me the query that broke."
Critical: negative tests (must NOT appear) catch more regressions than positive tests. Examples:
For each cluster, propose at least one negative test.
For each query, record:
| Field | Content |
|-------|---------|
| Query | "{{text}}" |
| Intent class | {{class}} |
| Volume | {{30d count}} |
| Must appear in top-N | {{listing_ids or feature filter, e.g., "geo=brighton AND pet_friendly=dog"}} |
| Must NOT appear | {{listing_ids or filter}} |
| Ordering constraint | {{e.g., "listing X must rank above listing Y"}} (optional) |
| Provenance | {{log | hand-curated | regression-from gotchas.md#case}} |
| Notes | {{edge cases, gotchas, ambiguity}} |
Prefer feature-filter assertions ("any listing matching geo=brighton AND pet=dog") over listing-ID assertions — they survive listing churn.
Show the draft to the user, ask for corrections, then write to golden-set.md in the context skill (or to a path the user specifies if no context skill exists).
Homefeed? Similar listings? Saved search alert? Email? Each has different archetypes.
From ~~data warehouse:
-- Sample users from each key cohort
WITH cohorts AS (
SELECT
user_id,
CASE
WHEN DATE_DIFF(CURRENT_DATE, signup_date, DAY) < 7 THEN 'new_paid'
WHEN DATE_DIFF(CURRENT_DATE, signup_date, DAY) < 90 THEN 'recent_paid'
WHEN first_booking_date IS NULL THEN 'paid_no_booking'
ELSE 'repeat'
END AS cohort,
home_country,
role,
primary_pet_type
FROM users
WHERE active = TRUE
)
SELECT * FROM cohorts
SAMPLE 1 ROWS PER cohort, role, home_country
For each cohort × role × key geo, pick a representative user and define the archetype.
Cold-start is the highest-leverage case for recsys golden sets. Always include:
gotchas.mdEvery recsys incident that affected a cohort is a candidate archetype. Add one user per cohort-based regression.
For each archetype, record:
| Field | Content |
|-------|---------|
| Archetype | {{cohort × role × geo × key constraint}} |
| Expected top-N features | {{e.g., "majority should be role=opposite AND geo=same-country AND pet_match=true"}} |
| Forbidden features | {{e.g., "no listings flagged cold-start-only", "no listings with 0 reviews"}} |
| Diversity constraint | {{optional — e.g., "top-10 must include ≥ 3 distinct suppliers"}} |
| Provenance | {{synthetic | sampled from logs | regression from gotchas.md#case}} |
| Notes | {{edge cases}} |
Prefer feature-based expected sets over item-ID-based sets — listings churn, features don't.
Same as Branch A.
Golden sets are living documents. Every diagnosed incident (via /marketplace:diagnose) should add at least one new case. Prompt the user:
"The diagnosis revealed a regression in {{pattern}}. Do you want to add {{n}} case(s) to the golden set?"
Apply these quality rules:
gotchas.md: regression prevention is the whole point.This skill reads from ~~search engine, ~~data warehouse, and ~~personalisation engine but never writes. File writes are limited to golden-set.md in the user's context skill (and only with confirmation).
/marketplace:build-golden-set search
Pulls 30d of queries, clusters, proposes cases, captures assertions, writes to context skill.
/marketplace:build-golden-set search
If a golden set exists, go into iteration mode: enumerate unresolved cases from gotchas.md, propose new tests, merge.
/marketplace:build-golden-set recsys
Ask which surface, pull archetypes, capture expected top-N features, write.
/marketplace:bootstrap-context — run first to ensure a home for the golden set/marketplace:review-change — the primary consumer of this artefact/marketplace:diagnose — every diagnosis session is an opportunity to add casesWhat SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/bootstrap-contextGenerate or improve a company-specific marketplace-context skill by extracting knowledge from engineers and from the connected stack.
BOOTSTRAP MODE - Triggers: "Create a marketplace context skill", "Set up marketplace personalisation for our stack", "Help me create a skill for our recsys", "Generate a marketplace context skill for [company]", "Bootstrap our recsys context" → Discovers surfaces / events / indexes / recipes / observability via MCPs, asks targeted questions, generates an initial skill with reference files.
ITERATION MODE - Triggers: "Add context about [domain]", "The context skill needs more info about [topic]", "Update the marketplace context skill with [surfaces/events/indexes/recipes]", "Improve the [domain] section of the context skill" → Loads existing skill, asks targeted questions, appends/updates reference files.
Use when engineers want Claude to understand their company's specific two-sided marketplace — the two sides, monetization model, surfaces, event taxonomy, index mappings, personalisation recipes, observability, KPIs, liquidity state, and known gotchas. The generated skill becomes the source of truth that every other /marketplace:* command loads before running.
/build-observabilityDesign observability for a search, recommender, or personalisation surface in a two-sided marketplace. Use when asking "build a dashboard for the homefeed", "what monitors do we need for search relevance?", "we have no observability on the paywall surface", "design SLOs for the recsys", "what metrics should I track for a new ranker?", "build alerting for death-spiral detection", or "what's the minimum observability for a ranked surface at production scale?".
Produces a design for `~~observability` dashboards, monitors, SLOs, and alert routing tailored to the surface type (search, recsys, pre-member, hybrid). Canonical output format is Datadog when that's the connected provider. Covers the standard metric set for ranked surfaces — Gini, coverage, top-N staleness, nDCG@k, freshness, cold-start conversion, booking conversion, side-cap balance, p95 latency, error rate, model version gauge, filter miss rate — plus surface-specific additions. Emits dashboard JSON and monitor definitions when the observability MCP is connected.
Other plugins' skills for the same job
npx claudepluginhub pproenca/dot-claude --plugin marketplace