SCALIX help

← All tools

build_cro_report

Reports and briefs skill low risk

Part of the CRO Audit Agent.

What it does

OLDER 9-CHAPTER FORMAT, used only when the user asks for that deck. The report CONTRACT of the CRO deck and its validator. Called without arguments it returns the contract: a JSON schema whose every text field carries the maximum length of the box it lands in on the deck and a description naming the evidence that feeds it (onboarding document, web_fetch_landing_page sections, Clarity, PageSpeed, Quality Scores, competitor pages), plus report_chapters (which field feeds which slide), the design summary and fill rules. Called with report=<filled JSON> it validates: success with counts when the report is complete and within budgets, otherwise invalid_argument with every problem listed by field path (e.g. section_audits.3.fix: String should have at most 150 characters) so Claude can fix and retry. Each priority action is a ranked row of 'Fix These First' (the row number is the rank): title, why it matters, evidence {value, source, period}, before, after, metric_to_move, ease (hours | days | needs dev) and owner; an action whose evidence value has no number, or whose after is not a real fix (blank, TBD, N/A, NOT VERIFIED), is rejected — it belongs in its section's Issues. It renders nothing. Output without report: {success, data:{format_source, report_chapters, design, contract, fill_rules, next}, warnings}; with report: {success, data:{valid, counts, next}} or the error envelope with errors:[{field, problem}]. The deck format is the source of truth (the nine chapters — Business Context, Industry Analysis, Page Sections Map, Page Order, Priority Actions, Section-by-Section Audit, Competitor Analysis, Funnel Comparison, Executive Summary — in the Scalix CRO template: white slides, Archivo + Plus Jakarta Sans, bold black titles, the logo on the cover and closing). There is no master prompt: everything needed is in these three tools.

When to use it

Use only when the user asks for the older 9-chapter CRO deck: once without arguments to get the contract, then with report=... until it validates, then call cro_deck_template. The CRO audit (cro_collect_brief) builds its deck without it.

Inputs

NameTypeRequiredDescription
reportobjectnoThe filled report (the JSON contract returned by build_cro_report without arguments). Omit it to get the contract.

Safeguards

Policy

The contract only structures evidence already collected; never invent a number, a quote or a customer to fill a field — write NOT VERIFIED in the field instead — except in a priority action, which needs a number a tool returned and a real fix, or it is not a priority. Competitor names are the user's brand names. Sections are the list the CRO lead signed off.

Reminder

Fill every field within its budget; validate before building; write the CRO score and the A/B test last. Missing-section checklist items are assessed explicitly (present, weak or missing).

Errors

Error classMeansWhat to doRetry
invalid_argumentThe report has N problem(s); the first is <field>: <problem>.Fix every field listed in errors (path + problem) and call build_cro_report again.no

Edge cases

  • Lists have min/max counts: 2-3 objections, 3-5 priority actions, 1-3 competitors, 3-10 comparison rows, 3-6 gap tiles.
  • sections_map takes MISSING rows last with number '--'.
  • A section audit uses fix OR recommendations; copy_rewrites, before_after, layout_recommendation and missing_elements add extra slides only when present.
  • priority_actions are ranked, most important first; evidence.value must carry the number a tool returned (e.g. '12.1 s LCP') and after must be the fix itself, else the action is rejected with its field path.