Instant Site — Agent-Operated Foreign Trade Independent Sites
Instant Site helps an agent build, deploy, update, and SEO-optimize static foreign trade independent sites. The default stack is HTML/CSS/JS, DESIGN.md, Cloudflare Pages (Wrangler), JSON state files, and scheduled agent operations.
Operating Principles
- Static first — Generate crawlable HTML/CSS/JS. Do not use pure CSR/SPAs for SEO-critical pages.
- Cloudflare Pages first — Use Cloudflare Pages as the default deployment provider via Wrangler with a user-provided Cloudflare API Token; use Surge.sh as fallback when Cloudflare account/token setup is unavailable or the user explicitly requests the simpler fallback host.
- DESIGN.md required — Generate or reuse a DESIGN.md before building pages.
- SEO by default — Every page needs title, description, canonical, Open Graph, Twitter Card, and relevant JSON-LD.
- State in files — Use
site.config.json, .instant-site/state.json, and related JSON files instead of relying on chat history.
- Review risky publishing — Default to
review_required for new commercial content, product claims, pricing, certifications, legal text, and domain changes.
- Multi-site isolation — When operating multiple sites, read each site's config and state separately; never reuse canonical URLs, sitemap URLs, or domains across sites.
- Design quality matters — Prevent generic AI-looking sites. Infer design direction before template selection. Avoid default slop patterns. Follow layout discipline. Use real visuals.
- Token authorization must be safe and explicit — For Cloudflare Pages deployment, guide non-technical users to create a minimal-scope Cloudflare API Token, verify with
CLOUDFLARE_API_TOKEN=<token> npx wrangler whoami, never store or log the token, and continue only after token auth succeeds. For novice users, explain Cloudflare account and API Token setup in the user's preferred language when possible; default to simple English and avoid country-specific assumptions.
Read Documents by Task
Before execution, read the appropriate workflow document:
| Task |
Read First |
| From-zero site generation |
docs/workflows/site-generation.md → templates/pages/site-generation-checklist.md |
| Responsive design |
docs/workflows/responsive-design.md → CSS framework template |
| Image acquisition |
docs/workflows/image-acquisition.md → docs/tool-registry.md (Image Acquisition section) |
| Deployment |
docs/workflows/deployment.md → templates/deployment-checklist.md |
| SEO audit |
docs/workflows/seo-audit.md → docs/seo-operations.md |
| Multi-language / RTL |
docs/workflows/multilingual-rtl.md |
| Content operations |
docs/content-lifecycle.md → templates/content-plan.example.json |
| Multi-site management |
docs/multi-site-operations.md → templates/sites.registry.example.json |
| Publishing review |
docs/review-gates.md |
| Buyer context |
docs/buyer-context.md → templates/buyer-context.example.json |
| Tool reference |
docs/tool-registry.md |
| State files |
docs/site-state.md |
Design Quality Rules
Design Read Before Template Selection
Before selecting or generating a DESIGN.md, state one line:
Reading this as: <page kind> for <audience>, with a <vibe> language, leaning toward <template>.
Anti-Slop Defaults
Avoid these LLM-signature patterns unless the brief explicitly calls for them:
- Inter plus slate plus purple gradient as default palette
- Centered hero sections as default layout
- Three equal feature cards in a row
- Fake dashboard or product screenshots built from styled divs
- Decorative status dots, section-number eyebrows, scroll cues, version labels
- Plain text wordmarks for invented social-proof logo walls
- Em-dashes in visible copy
- Fake-precise metrics without a source
- Text-only "minimalism" without real visuals
Layout Discipline
- Hero must fit the initial viewport without scroll
- Hero subtext max 20 words, max 4 lines
- Hero stack max 4 text elements
- Desktop navigation height at or below 80px
- Every multi-column section must collapse below 768px
- CTA labels must not wrap on desktop
Responsive Design Rules
Required viewport meta (every page):
<meta name="viewport" content="width=device-width, initial-scale=1">
Breakpoint targets:
| Size |
Width |
Devices |
| Mobile |
≤ 480px |
Phones |
| Tablet |
768px-1024px |
Tablets, iPad |
| Desktop |
≥ 1024px |
Laptops, monitors |
Touch target minimum: All buttons, links, inputs ≥ 44px height (WCAG 2.5.5)
Input font size: 16px minimum to prevent iOS auto-zoom
Mobile-first strategy: Start with mobile styles, expand for larger screens
Key responsive patterns:
- Hero: Stack vertically on mobile, two columns on tablet/desktop
- Grids: 1 column mobile → 2 columns tablet → 3-4 columns desktop
- Navigation: Horizontal on desktop, hamburger menu on mobile
- Tables: Stack as cards or horizontal scroll on mobile
Testing devices: iPhone SE (375px), iPhone 14 (390px), iPad (768px), Desktop (1280px)
See docs/workflows/responsive-design.md for complete CSS framework and patterns.
Visual Asset Strategy
Every major landing page needs a visual asset plan:
- Hero visual
- 1-3 supporting visuals
- OG image for social sharing
Priority order:
User-provided assets → Generated images → Free stock images → Placeholder (draft only)
Free stock sources (all commercial-use, no attribution required):
- Unsplash — Hero backgrounds, general business photos
- Pexels — Products, industrial settings, machinery
- Pixabay — Fallback, vectors/illustrations
- Burst by Shopify — E-commerce, consumer goods
Search workflow:
- Use brave-search/web-fetch/scrapling skills to search stock sites
- Keywords:
{industry} professional, {product} equipment, manufacturing plant
- Download to
assets/images/, integrate with proper alt text
Rules:
- Never ship production pages with placeholder images
- Never use images from non-commercial sources (Google Images, Pinterest)
- All images must have descriptive alt text
- See
docs/workflows/image-acquisition.md for complete workflow
Review Gates and Claim Safety
Human Approval Required
Default to approval before:
- First launch
- New product pages and blog articles
- Brand positioning changes
- Pricing, lead time, certification, compliance, or legal claims
- Contact method and custom domain changes
- Page deletion
Low-Risk Automation
When review-policy.json allows:
- sitemap updates
- robots sitemap URL correction
- lastmod updates
- minor metadata completion
- internal links to already approved pages
- approved draft publishing
- deployment verification
- health checks
- SEO audit report generation
Claim Safety
Do not invent or exaggerate:
- factory size or production capacity
- certifications, patents, or compliance guarantees
- customer names, case studies, or test results
- prices, delivery times, or warranty terms
If a claim is useful but unverified, mark it as needing confirmation in needsConfirmation array.
Project Structure
Recommended user site structure:
customer-site/
site.config.json
buyer-context.json
content-plan.json
seo-profile.json
review-policy.json
DESIGN.md
index.html
products/
index.html
{slug}.html
blog/
index.html
{slug}.html
assets/
css/styles.css
js/main.js
images/
robots.txt
sitemap.xml
.instant-site/
state.json
deployments.json
content-calendar.json
buyer-context.json
For multi-site workspace:
workspace/
sites.registry.json
sites/
site-a/
site-b/
Quick Start
Ask an agent:
Build an English B2B foreign trade site for the following brand and products.
Use the b2b-industrial DESIGN.md template.
Generate site.config.json, DESIGN.md, index.html, product pages, about.html,
contact.html, robots.txt, and sitemap.xml.
Prepare a publish review before deployment.
Minimum inputs:
- Brand name and tagline
- Target markets and languages
- Product list, features, applications, and target keywords
- Certifications or proof points (verified)
- Contact email and primary CTA
- Cloudflare Pages project name or preferred Pages subdomain
- Optional custom domain
- Optional Surge fallback domain
- Design template selection
- Publishing policy:
review_required, hybrid, or auto_publish
Best For
- B2B foreign trade websites (machinery, tools, hardware, OEM/ODM)
- B2C consumer goods and lifestyle brands targeting overseas markets
- Product catalog and single-product landing pages
- Small brand independent sites
- Static marketing sites with repeatable content and SEO operations
Limitations
- Cloudflare Pages supports
_headers and _redirects — Use for CSP, HSTS, custom caching, and redirect rules
- Surge.sh fallback cannot add custom headers — Use Cloudflare Pages when security headers required
- Custom domains may require dashboard/DNS confirmation — Wrangler deploys to
.pages.dev automatically; custom domain activation may need Cloudflare dashboard
- External SEO data requires authorization — Do not claim rankings without Search Console access
- curl cannot detect JS-injected schema — Use browser tools for JSON-LD verification
- FormSubmit first submission needs confirmation — Remind user to check email
- Static sites use FormSubmit for forms — No server-side processing
Current SEO Guidance
- Use INP, not deprecated FID
- Do not use deprecated HowTo schema
- FAQPage helpful for clarity but doesn't guarantee rich results
- Keep SEO-critical content in static HTML
- Core Web Vitals: LCP < 2.5s, INP < 200ms, CLS < 0.1
License
MIT
1---2name: instant-site3description: Build, deploy, update, and SEO-optimize static foreign trade independent sites using HTML/CSS/JS, DESIGN.md templates, Cloudflare Pages (Wrangler), and scheduled agent operations. Use for from-zero site generation, static deployment, scheduled content operations, SEO audits, and multi-site independent site operations.4---56# Instant Site — Agent-Operated Foreign Trade Independent Sites78Instant Site helps an agent build, deploy, update, and SEO-optimize static foreign trade independent sites. The default stack is HTML/CSS/JS, DESIGN.md, Cloudflare Pages (Wrangler), JSON state files, and scheduled agent operations.910## Operating Principles11121. **Static first** — Generate crawlable HTML/CSS/JS. Do not use pure CSR/SPAs for SEO-critical pages.132. **Cloudflare Pages first** — Use Cloudflare Pages as the default deployment provider via Wrangler with a user-provided Cloudflare API Token; use Surge.sh as fallback when Cloudflare account/token setup is unavailable or the user explicitly requests the simpler fallback host.143. **DESIGN.md required** — Generate or reuse a DESIGN.md before building pages.154. **SEO by default** — Every page needs title, description, canonical, Open Graph, Twitter Card, and relevant JSON-LD.165. **State in files** — Use `site.config.json`, `.instant-site/state.json`, and related JSON files instead of relying on chat history.176. **Review risky publishing** — Default to `review_required` for new commercial content, product claims, pricing, certifications, legal text, and domain changes.187. **Multi-site isolation** — When operating multiple sites, read each site's config and state separately; never reuse canonical URLs, sitemap URLs, or domains across sites.198. **Design quality matters** — Prevent generic AI-looking sites. Infer design direction before template selection. Avoid default slop patterns. Follow layout discipline. Use real visuals.209. **Token authorization must be safe and explicit** — For Cloudflare Pages deployment, guide non-technical users to create a minimal-scope Cloudflare API Token, verify with `CLOUDFLARE_API_TOKEN=<token> npx wrangler whoami`, never store or log the token, and continue only after token auth succeeds. For novice users, explain Cloudflare account and API Token setup in the user's preferred language when possible; default to simple English and avoid country-specific assumptions.2122## Read Documents by Task2324Before execution, read the appropriate workflow document:2526| Task | Read First |27|------|------------|28| **From-zero site generation** | `docs/workflows/site-generation.md` → `templates/pages/site-generation-checklist.md` |29| **Responsive design** | `docs/workflows/responsive-design.md` → CSS framework template |30| **Image acquisition** | `docs/workflows/image-acquisition.md` → `docs/tool-registry.md` (Image Acquisition section) |31| **Deployment** | `docs/workflows/deployment.md` → `templates/deployment-checklist.md` |32| **SEO audit** | `docs/workflows/seo-audit.md` → `docs/seo-operations.md` |33| **Multi-language / RTL** | `docs/workflows/multilingual-rtl.md` |34| **Content operations** | `docs/content-lifecycle.md` → `templates/content-plan.example.json` |35| **Multi-site management** | `docs/multi-site-operations.md` → `templates/sites.registry.example.json` |36| **Publishing review** | `docs/review-gates.md` |37| **Buyer context** | `docs/buyer-context.md` → `templates/buyer-context.example.json` |38| **Tool reference** | `docs/tool-registry.md` |39| **State files** | `docs/site-state.md` |4041## Design Quality Rules4243### Design Read Before Template Selection4445Before selecting or generating a DESIGN.md, state one line:46```text47Reading this as: <page kind> for <audience>, with a <vibe> language, leaning toward <template>.48```4950### Anti-Slop Defaults5152Avoid these LLM-signature patterns unless the brief explicitly calls for them:53- Inter plus slate plus purple gradient as default palette54- Centered hero sections as default layout55- Three equal feature cards in a row56- Fake dashboard or product screenshots built from styled divs57- Decorative status dots, section-number eyebrows, scroll cues, version labels58- Plain text wordmarks for invented social-proof logo walls59- Em-dashes in visible copy60- Fake-precise metrics without a source61- Text-only "minimalism" without real visuals6263### Layout Discipline6465- Hero must fit the initial viewport without scroll66- Hero subtext max 20 words, max 4 lines67- Hero stack max 4 text elements68- Desktop navigation height at or below 80px69- Every multi-column section must collapse below 768px70- CTA labels must not wrap on desktop7172### Responsive Design Rules7374**Required viewport meta** (every page):75```html76<meta name="viewport" content="width=device-width, initial-scale=1">77```7879**Breakpoint targets**:80| Size | Width | Devices |81|------|-------|---------|82| Mobile | ≤ 480px | Phones |83| Tablet | 768px-1024px | Tablets, iPad |84| Desktop | ≥ 1024px | Laptops, monitors |8586**Touch target minimum**: All buttons, links, inputs ≥ 44px height (WCAG 2.5.5)8788**Input font size**: 16px minimum to prevent iOS auto-zoom8990**Mobile-first strategy**: Start with mobile styles, expand for larger screens9192**Key responsive patterns**:93- Hero: Stack vertically on mobile, two columns on tablet/desktop94- Grids: 1 column mobile → 2 columns tablet → 3-4 columns desktop95- Navigation: Horizontal on desktop, hamburger menu on mobile96- Tables: Stack as cards or horizontal scroll on mobile9798**Testing devices**: iPhone SE (375px), iPhone 14 (390px), iPad (768px), Desktop (1280px)99100See `docs/workflows/responsive-design.md` for complete CSS framework and patterns.101102### Visual Asset Strategy103104Every major landing page needs a visual asset plan:105- Hero visual106- 1-3 supporting visuals107- OG image for social sharing108109**Priority order**:110```111User-provided assets → Generated images → Free stock images → Placeholder (draft only)112```113114**Free stock sources (all commercial-use, no attribution required)**:115- **Unsplash** — Hero backgrounds, general business photos116- **Pexels** — Products, industrial settings, machinery117- **Pixabay** — Fallback, vectors/illustrations118- **Burst by Shopify** — E-commerce, consumer goods119120**Search workflow**:1211. Use brave-search/web-fetch/scrapling skills to search stock sites1222. Keywords: `{industry} professional`, `{product} equipment`, `manufacturing plant`1233. Download to `assets/images/`, integrate with proper alt text124125**Rules**:126- Never ship production pages with placeholder images127- Never use images from non-commercial sources (Google Images, Pinterest)128- All images must have descriptive alt text129- See `docs/workflows/image-acquisition.md` for complete workflow130131## Review Gates and Claim Safety132133### Human Approval Required134135Default to approval before:136- First launch137- New product pages and blog articles138- Brand positioning changes139- Pricing, lead time, certification, compliance, or legal claims140- Contact method and custom domain changes141- Page deletion142143### Low-Risk Automation144145When `review-policy.json` allows:146- sitemap updates147- robots sitemap URL correction148- lastmod updates149- minor metadata completion150- internal links to already approved pages151- approved draft publishing152- deployment verification153- health checks154- SEO audit report generation155156### Claim Safety157158Do not invent or exaggerate:159- factory size or production capacity160- certifications, patents, or compliance guarantees161- customer names, case studies, or test results162- prices, delivery times, or warranty terms163164If a claim is useful but unverified, mark it as needing confirmation in `needsConfirmation` array.165166## Project Structure167168Recommended user site structure:169```text170customer-site/171 site.config.json172 buyer-context.json173 content-plan.json174 seo-profile.json175 review-policy.json176 DESIGN.md177 index.html178 products/179 index.html180 {slug}.html181 blog/182 index.html183 {slug}.html184 assets/185 css/styles.css186 js/main.js187 images/188 robots.txt189 sitemap.xml190 .instant-site/191 state.json192 deployments.json193 content-calendar.json194 buyer-context.json195```196197For multi-site workspace:198```text199workspace/200 sites.registry.json201 sites/202 site-a/203 site-b/204```205206## Quick Start207208Ask an agent:209```text210Build an English B2B foreign trade site for the following brand and products.211Use the b2b-industrial DESIGN.md template.212Generate site.config.json, DESIGN.md, index.html, product pages, about.html,213contact.html, robots.txt, and sitemap.xml.214Prepare a publish review before deployment.215```216217Minimum inputs:218- Brand name and tagline219- Target markets and languages220- Product list, features, applications, and target keywords221- Certifications or proof points (verified)222- Contact email and primary CTA223- Cloudflare Pages project name or preferred Pages subdomain224- Optional custom domain225- Optional Surge fallback domain226- Design template selection227- Publishing policy: `review_required`, `hybrid`, or `auto_publish`228229## Best For230231- B2B foreign trade websites (machinery, tools, hardware, OEM/ODM)232- B2C consumer goods and lifestyle brands targeting overseas markets233- Product catalog and single-product landing pages234- Small brand independent sites235- Static marketing sites with repeatable content and SEO operations236237## Limitations238239- **Cloudflare Pages supports `_headers` and `_redirects`** — Use for CSP, HSTS, custom caching, and redirect rules240- **Surge.sh fallback cannot add custom headers** — Use Cloudflare Pages when security headers required241- **Custom domains may require dashboard/DNS confirmation** — Wrangler deploys to `.pages.dev` automatically; custom domain activation may need Cloudflare dashboard242- **External SEO data requires authorization** — Do not claim rankings without Search Console access243- **curl cannot detect JS-injected schema** — Use browser tools for JSON-LD verification244- **FormSubmit first submission needs confirmation** — Remind user to check email245- **Static sites use FormSubmit for forms** — No server-side processing246247## Current SEO Guidance248249- Use INP, not deprecated FID250- Do not use deprecated HowTo schema251- FAQPage helpful for clarity but doesn't guarantee rich results252- Keep SEO-critical content in static HTML253- Core Web Vitals: LCP < 2.5s, INP < 200ms, CLS < 0.1254255## License256257MIT