Skip to content

docs: make the campaign agent guide the starting point - #72

Open
next-devin wants to merge 5 commits into
mainfrom
campaign-docs-entry
Open

next-devin wants to merge 5 commits into
mainfrom
campaign-docs-entry

Conversation

@next-devin

Copy link
Copy Markdown
Contributor

Make the agent guide the first Campaigns navigation item and the general starting point for new builds, existing repositories and saved Maps. The guide links to the appropriate continuation, with the configured Page Kit recipe and optional Workspace clearly scoped.

Remove the conflicting Olympus default recommendation, show Apollo families first, and point template selection to the current catalog. Direct campaign pricing to Campaigns App Offers & Discounts.

Validation: NEXT_TELEMETRY_DISABLED=1 npm run build and npm run check passed (agent surfaces, 71 authored-page frontmatter checks, markup and links; 0 link errors). Inspected the generated agent guide locally at mobile width.

Related merchant documentation: NextCommerceCo/docs#80. This documentation work does not close or expand campaigns-os #716.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
developer-docs 0b259da Commit Preview URL

Branch Preview URL
Nov 26 2026, 10:37 AM

Comment thread content/docs/campaigns/templates.mdx Resolved
Comment thread content/docs/campaigns/index.mdx Resolved
Comment thread content/docs/campaigns/index.mdx Resolved
Comment thread scripts/generate-agent-setup.mjs Resolved
Comment thread components/campaign-templates-grid.tsx Resolved
@kilo-code-bot

kilo-code-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • content/agent-setup.md

Incremental re-review of 14eaf12..0b259da: the saved-Map continuation now sits inside the entry-point table's "Continue with" cell, and the standalone Workspace paragraph after the section-closing sentence is gone, so the previous placement finding is resolved. The remaining row text orders the Campaigns OS continuation command first and the Workspace Handoff second, matching the generated guide's Saved Map bullet. Version marker, absolute-link rule and the check-agent-surfaces needles for this file are unaffected. External URLs were not fetched (no network access in this sandbox).

Previous Review Summaries (3 snapshots, latest commit 14eaf12)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 14eaf12)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
content/agent-setup.md 28 The Workspace paragraph still adds a second, unranked continuation path for a saved Map ("its Handoff provides the prompt for continuing with an agent"), alongside the entry-point table's "Campaigns OS continuation command" (line 24) and line 85's campaigns-os next, and it still sits after the sentence that closes the entry-point section (line 26).
Files Reviewed (7 files)
  • components/campaign-templates-grid.tsx - 0 issues
  • content/agent-setup.md - 1 issue
  • content/docs/campaigns/index.mdx - 0 issues
  • content/docs/campaigns/meta.json - 0 issues
  • content/docs/campaigns/page-kit.mdx - 0 issues
  • content/docs/campaigns/templates.mdx - 0 issues
  • scripts/generate-agent-setup.mjs - 0 issues

Verification Notes

Reviewed against AGENTS.md. Re-checked in current code: the Apollo-first TEMPLATES order, the meta.json nav entry, the /docs/agent-setup link, the "picker catalog" / "template browser" naming across all five pages, the restored Offers sentence at index.mdx:184, and the new "Campaigns OS Start" label in index.mdx:15 and generate-agent-setup.mjs:59.

Not verified: the live content of campaigns.nextcommerce.com/start/, campaigns.nextcommerce.com/templates/, campaign-map.nextcommerce.com/, and the upstream build-packet.md#changing-a-campaign-after-handoff heading, because this environment has no network access. npm run build / npm run check were not run in read-only review mode.

Fix these issues in Kilo Cloud

Previous review (commit 3e1abeb)

Status: 5 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 3
SUGGESTION 2
Issue Details (click to expand)

WARNING

File Line Issue
content/docs/campaigns/index.mdx 15 "Page Kit setup recipe" mislabels campaigns.nextcommerce.com/start/. This repo documented that URL as the Campaigns OS Start guide that "also provides the Workspace/Map route" (ce437eb) and a configure-in-dashboard → map in Workspace → copy Handoff flow (7504f93). The new label also contradicts the Workspace domain (campaign-map.nextcommerce.com) asserted in the same sentence, and index.mdx:18 already describes the real Page Kit CLI, making three undifferentiated "Page Kit" entry points.
scripts/generate-agent-setup.mjs 59 The canonical agent prompt (served byte-for-byte as /agent-setup/prompt.md, per check-agent-surfaces.mjs:130) now describes /start/ as "the Page Kit setup recipe ... for a new static project with its campaign and offers already configured". Per the repo's own history that page is a plan-and-handoff flow, not a scaffolder, and this wording steers agents away from the Workspace/Handoff route the next bullet presents as the saved-Map entry point.
content/docs/campaigns/templates.mdx 12 The new "picker catalog" / "template browser" split is applied only here and in content/agent-setup.md:58. index.mdx:105 still calls templates.json "the [current catalog]", and index.mdx:296 / page-kit.mdx:110 still call it "the [template catalog]". The promoted browser URL is not mentioned on either sibling page, so the same file now has three names across the section.

SUGGESTION

File Line Issue
content/agent-setup.md 28 The new "Handoff provides the prompt for continuing" is a second, unranked continuation route for a saved Map, alongside the entry-point table row at line 24 ("The Campaigns OS continuation command for that artifact") and line 85's campaigns-os next. Also placed after the sentence that closes the section.
content/docs/campaigns/index.mdx 183 The Offers rewrite replaces "These are the rules the SDK and campaign templates use for pricing and savings" with "Use this setup when building with the SDK and campaign templates", losing the only statement of how Offers relate to SDK pricing.
Files Reviewed (5 files)
  • components/campaign-templates-grid.tsx - 0 issues
  • content/agent-setup.md - 1 issue
  • content/docs/campaigns/index.mdx - 2 issues
  • content/docs/campaigns/templates.mdx - 1 issue
  • scripts/generate-agent-setup.mjs - 1 issue

Previous Findings Re-verified

All five findings from the prior review at ac48618 were re-checked against the current HEAD 3e1abeb and are resolved; they are not carried forward.

  • Catalog naming (templates.mdx:12, agent-setup.md:58) — resolved: the two artifacts are now distinguished as "picker catalog" (templates.json) and "template browser" (campaigns.nextcommerce.com/templates/). A residual half-application to the sibling pages is reported above as a new finding.
  • "Workspace" undefined (index.mdx:15) — resolved: defined in the canonical content/agent-setup.md:28 as an optional visual planning tool, with Map and Handoff defined alongside it.
  • Inconsistent label for campaigns.nextcommerce.com/start/ — resolved as to naming consistency: both index.mdx:15 and generate-agent-setup.mjs:59 now say "Page Kit setup recipe". A separate issue with that name is reported above.
  • Unverified external anchor build-packet.md#changing-a-campaign-after-handoff (generate-agent-setup.mjs:60, agent-setup.md:46) — resolved: the anchor is now applied consistently in the canonical source and the generator, and the author reported verifying the upstream heading by GET. Not re-verified here (see notes).
  • TEMPLATES array order (campaign-templates-grid.tsx) — resolved: the array is now Apollo-first (apollo, apollo-mv-single-step, then the rest), and templates.mdx:14 uses the component's default ordering. The slugs prop is still used by index.mdx:107, so it is not dead code.

Verification Notes

Reviewed against AGENTS.md / CLAUDE.md; AGENTS.md is the public contract for agents reading this repository and was used as the evidence standard for the terminology findings.

Verified locally: the removed slugs list in templates.mdx covered exactly the same 8 templates as the TEMPLATES array in the same order, so <CampaignTemplatesGrid /> renders identically to the previous explicit list; the new array order matches the previous slugs order exactly; CampaignTemplatesGrid is registered in components/mdx.tsx, so no import is needed for the now-props-less usage; check-agent-surfaces.mjs:154 still asserts the prompt does not contain --template apollo, which the PR does not violate; scripts/validate-links.mjs resolves only internal content/docs links and fragments, so none of the external URLs or external anchors in this PR are covered by CI. The two "prior documentation" quotations above are verbatim from git show ce437eb:content/docs/campaigns/index.mdx and git show 7504f93:content/docs/campaigns/index.mdx.

Not verified (no network access in this environment): reachability or current content of https://campaigns.nextcommerce.com/start/, https://campaigns.nextcommerce.com/templates/, https://campaign-map.nextcommerce.com/, and https://docs.nextcommerce.com/docs/apps/campaigns-app/campaigns-offers-and-discounts; and the existence of the build-packet.md#changing-a-campaign-after-handoff heading upstream. The /start/ findings are therefore based on this repository's own prior description of that URL rather than on the live page — the wording should be confirmed against the current page before merging.

Not re-run: npm run build / npm run check were not executed (read-only review mode).

Fix these issues in Kilo Cloud

Previous review (commit ac48618)

Status: 5 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 4
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
content/docs/campaigns/templates.mdx 12 Two different URLs are now both called the "current template catalog". This line points at campaigns.nextcommerce.com/templates/, but index.mdx:105, index.mdx:296, page-kit.mdx:110 and the canonical agent prompt content/agent-setup.md:56 still call campaign-cart-starter-templates/.../templates.json the catalog. The prompt is the machine surface, so agent and human get different catalogs.
content/docs/campaigns/index.mdx 15 "Workspace" is used as a product term but is defined nowhere in the repo, including the canonical content/agent-setup.md, which uses "saved Map". Same for "saved Workspace Map" (templates.mdx:16) and scripts/generate-agent-setup.mjs:61.
content/docs/campaigns/index.mdx 15 The campaigns.nextcommerce.com/start/ link is labelled "Campaigns OS setup recipe" here but "configured-campaign setup recipe" at scripts/generate-agent-setup.mjs:59, with different gating conditions. "Campaigns OS" elsewhere in the repo means the campaigns-os GitHub CLI, not this domain.
scripts/generate-agent-setup.mjs 60 New unverified external deep-link anchor #changing-a-campaign-after-handoff. The canonical source content/agent-setup.md:44 links the same file with no anchor and no repo file references that heading. validate-links.mjs only resolves internal links, so CI cannot catch a broken external anchor.

SUGGESTION

File Line Issue
components/campaign-templates-grid.tsx 23 The "Default pick" framing was removed here, but TEMPLATES still lists olympus first and the component renders array order when no slugs prop is passed. A future caller omitting slugs reinstates the Olympus-first default. Related: unknown slugs values are silently dropped with no error.
Files Reviewed (5 files)
  • components/campaign-templates-grid.tsx - 1 issue
  • content/docs/campaigns/index.mdx - 2 issues
  • content/docs/campaigns/meta.json - 0 issues
  • content/docs/campaigns/templates.mdx - 1 issue
  • scripts/generate-agent-setup.mjs - 1 issue

Verification Notes

Reviewed against AGENTS.md / CLAUDE.md; AGENTS.md is the public contract for agents reading this repository and was used as the evidence standard for the terminology findings.

Verified locally: the slugs prop in templates.mdx covers exactly the same 8 templates as the TEMPLATES array and only reorders them (Apollo first); CampaignTemplatesGrid is registered in components/mdx.tsx, so no import is required; all 8 referenced preview images exist in public/assets/templates/; the meta.json link-page pattern matches the existing [Playground](/playground) entry; the new Page Kit guide link resolves to an existing /docs/campaigns/page-kit page; toPlainMarkdown drops the new self-closing CampaignTemplatesGrid tag, so the campaigns bundle keeps no MDX residue.

Not verified (no network access in this environment): reachability of https://campaigns.nextcommerce.com/start/, https://campaigns.nextcommerce.com/templates/, https://campaign-map.nextcommerce.com/, https://docs.nextcommerce.com/docs/apps/campaigns-app/campaigns-offers-and-discounts, and the existence of the build-packet.md#changing-a-campaign-after-handoff heading upstream. The merchant-docs URL does match an existing operator_docs path in content/capabilities.yaml.

Fix these issues in Kilo Cloud


Reviewed by deepseek-v4.1-flash-1017 · Input: 45K · Output: 6.7K · Cached: 582.4K

Comment thread content/docs/campaigns/index.mdx Resolved
Comment thread scripts/generate-agent-setup.mjs Resolved
Comment thread content/docs/campaigns/templates.mdx Resolved
Comment thread content/agent-setup.md Resolved
Comment thread content/docs/campaigns/index.mdx Resolved
Comment thread content/agent-setup.md Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant