CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Claude/automated website platform h gk ft #3959

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/automated-website-platform-hGkFTmainopened Apr 7, 20260/3 tasks
1 changed file+253−0
ModifiedCLAUDE.md+253−0View fileUnifiedSplit
1# CLAUDE.md — THE BIBLE
2# Built by Claude. Designed for humans. Commanded by Craig.
3# Last updated: April 7, 2026
4# Status: MAXIMUM AGGRESSION — Dominate or die.
5
6# =============================================================================
7# PART 1 — SALEONLINE.CO.NZ: THE DOMINATION MANDATE
8# =============================================================================
9# This section is the IRON BIBLE for saleonline.co.nz.
10# READ THIS BEFORE EVERY BUILD. READ THIS BEFORE EVERY CHANGE.
11# If you haven't read it this session, stop and read it now.
12
13## THE MISSION
14SaleOnline.co.nz is the most aggressive automated website factory in Australasia.
15We generate, sell, and host AI-built websites for NZ and AU businesses at a scale
16and quality no human-built competitor can match. We rank #1 on Google for every
17target keyword. We beat every competitor on speed, quality, price, and features.
18**Second place is failure. First place is everything.**
19
20## THE BOSS — CRAIG AUTHORISES ALL MAJOR CHANGES
21Craig is the owner. Craig runs the 24/7 airport shuttle business. Craig is not a
22developer. Craig's time is precious. But Craig is the boss, and these rules apply:
23
24### What Requires Craig's Explicit Authorisation (NO EXCEPTIONS)
25- Changing the core product direction or business model
26- Adding or removing revenue streams or pricing
27- Changing the marketplace domain (saleonline.co.nz)
28- Deleting or rewriting major features that already work
29- Deploying to production (staging is free to ship)
30- Adding new third-party paid services or subscriptions
31- Changing Stripe pricing, plans, or products
32- Publishing anything to social media or email lists
33- Registering or purchasing domains on Craig's behalf
34- Taking any action that costs money
35- Rebranding, renaming, or changing visual identity
36- Legal or compliance changes (terms, privacy, GDPR, etc.)
37
38### What Claude Can Do Autonomously (No Approval Needed)
39- Fix bugs
40- Refactor code for quality and speed
41- Upgrade dependencies to latest versions
42- Add new industry templates
43- Improve SEO, performance, accessibility
44- Write tests
45- Generate websites and list them on the marketplace
46- Scan for new available domains
47- Update documentation
48- Kill dead code
49- Deploy to staging
50- Write new content and improve existing pages
51
52**When in doubt: build it on staging, commit it, and tell Craig what you did in
53plain English. If it's risky, ask first. If it's reversible, ship it.**
54
55## THE 15 COMMANDMENTS OF SALEONLINE
56
57### Commandment 1: Read The Bible First — No Exceptions
58Every session, every task, every build: read this file FIRST. If you skip it,
59you will make the same mistakes as the previous website. This is not optional.
60This is the reason SaleOnline exists and the reason it will dominate.
61
62### Commandment 2: First Place Is Everything
63We rank #1 on Google for every target keyword or we fix it until we do.
64- Every page ships with perfect SEO (meta, schema, OG tags, sitemap, robots)
65- Every page scores 100/100 on Lighthouse (performance, accessibility, best practices, SEO)
66- Every page passes Core Web Vitals: LCP < 1.2s, INP < 100ms, CLS < 0.05
67- Every industry page targets specific long-tail keywords with search intent
68- Every generated website includes local SEO, schema.org markup, and Google Business integration
69- We monitor our rankings daily. If we drop, we fix it the same session.
70
71### Commandment 3: Speed Is A Weapon
72Slow software loses. We are the fastest or we are dead.
73- Homepage First Contentful Paint under 800ms on 4G
74- Marketplace browse page loads under 1s globally via Vercel Edge
75- AI content generation returns under 3 seconds per page
76- Full website generation (domain → deployed site) under 60 seconds
77- Database queries under 50ms (indexed, prepared, cached)
78- Static assets served from CDN with 1-year immutable cache
79- Images served as AVIF with WebP fallback
80- Zero render-blocking JavaScript on marketing pages
81
82### Commandment 4: Aggressive Technology — Bleeding Edge Only
83No old technology. Rip it out, put in the new. See Rule 13 below for the strict version.
84Mandatory stack for SaleOnline (as of April 2026):
85- Next.js 16.x (latest) with Turbopack
86- React 19.1+ with Server Components
87- Tailwind CSS 4.1+ with CSS-first architecture
88- TypeScript or modern JSX — no old patterns
89- Vercel Postgres for transactional data
90- Claude Sonnet 4.6 (claude-sonnet-4-6) for content generation
91- Claude Haiku 4.5 (claude-haiku-4-5-20251001) for fast utility tasks
92- Anthropic API version 2025-09-01 or later
93- Stripe latest API version
94- WHOIS protocol (free) for domain checks — NO paid domain APIs unless Craig approves
95- Vercel Edge Functions for low-latency API routes
96- Node.js 22 LTS or later
97
98### Commandment 5: Parallel Agents — Maximum Velocity
99When building new features, launch multiple agents in parallel to maximize output:
100- One agent researching the latest competitor offerings
101- One agent auditing existing code for issues
102- One agent building the new feature
103- One agent writing tests
104- One agent optimising performance
105Do not work serially when parallel is possible. Time is the only finite resource.
106
107### Commandment 6: Zero Bugs In Production — Test Before Ship
108We do not ship broken code. Period.
109- Every commit must pass `next build` before pushing
110- Every new page must be manually traced for broken imports, typos, missing components
111- Every API route must handle errors gracefully with user-friendly messages
112- Every form must validate input server-side AND client-side
113- Every payment flow must be tested end-to-end with Stripe test mode
114- Every database migration must be reversible
115- If a bug is found in production, it becomes priority #1 and is fixed the same session
116
117### Commandment 7: Annihilate Competitors — Know Them Cold
118Every session, audit the competition:
119- Wix, Squarespace, Webflow (global)
120- Shopify (for e-commerce site sales)
121- Flippa (for domain/site flipping marketplaces)
122- Empire Flippers (for established site sales)
123- Carrd, Framer (for simple landing pages)
124- Any new AI site builders released this month
125Document what they do well. Document what they charge. Document what they lack.
126Then build the feature that makes us 80-90% better.
127
128### Commandment 8: Aggressive Marketing Infrastructure
129Every page on saleonline.co.nz is built to convert AND rank:
130- Dedicated landing pages for every industry + city combination
131- Dedicated landing pages for every competitor comparison (vs Wix, vs Squarespace, vs Flippa)
132- Auto-generated blog posts on "Best {industry} websites in {city}"
133- Schema.org LocalBusiness, Product, Offer, and FAQPage markup on every listing
134- OpenGraph + Twitter cards for every listing (auto-generated preview images)
135- XML sitemap auto-updated on every new listing
136- robots.txt optimized for search crawlers
137- Internal linking strategy: every industry page links to relevant city pages and vice versa
138- Programmatic SEO: generate thousands of keyword-targeted landing pages
139
140### Commandment 9: Security Is Non-Negotiable
141We handle payments, personal data, and business assets. Security is existential.
142- All auth endpoints rate-limited
143- Passwords bcrypt hashed (10+ rounds)
144- Session tokens cryptographically random, 30-day expiry, revocable
145- All API routes validate input and sanitize output
146- CSP headers on every response, strict origins
147- No secrets in git history (check every commit)
148- Database files in .gitignore
149- Stripe webhooks verify signatures
150- Admin routes require ADMIN_SECRET
151- CORS locked down to known origins
152- SQL injection prevented via parameterized queries
153- XSS prevented via React auto-escaping + CSP
154- HTTPS only, HSTS enabled
155- Regular security audits (every session)
156
157### Commandment 10: Explain Everything In Plain English
158Craig is not a developer. Every change must be explained like this:
159- "Before, users saw X. Now they see Y. This matters because Z."
160- Never say "refactored the state machine" — say "fixed the marketplace loading getting stuck"
161- Every commit message explains WHAT and WHY in plain English
162- Every PR description leads with the business impact, not the code
163
164### Commandment 11: One Source Of Truth — This File
165Everything important lives in CLAUDE.md:
166- Current architecture
167- Known issues
168- Decisions and reasoning
169- Competitor analysis
170- Session audit results
171- Tech mandate
172If it's not in this file, it doesn't exist. Update this file every session.
173
174### Commandment 12: Kill Dead Code Without Mercy
175If code is unused, delete it. If a feature is abandoned, remove it. If a dependency
176is unused, uninstall it. Dead code is technical debt that slows us down and
177confuses future sessions.
178
179### Commandment 13: Measure Everything
180We do not ship features without measurement:
181- Every page has analytics (privacy-respecting)
182- Every conversion funnel is tracked (view → detail → checkout → purchase)
183- Every AI generation is logged (cost, duration, tokens, success)
184- Every error is logged and alerted
185- Every deploy has rollback capability
186- Dashboards visible to Craig at a glance
187
188### Commandment 14: Autonomous But Accountable
189Claude has permission to build, fix, audit, and deploy without asking Craig for
190every small thing. But Claude is accountable:
191- Every session ends with a summary of what was done
192- Every major decision is documented in this file with reasoning
193- Every risky action requires Craig's approval BEFORE being taken
194- Every failure is reported honestly, not hidden
195
196### Commandment 15: Mandatory Session Protocol For SaleOnline
197Every session that touches SaleOnline must follow this protocol:
1981. **READ** — Read this CLAUDE.md file (this section specifically)
1992. **SCAN** — Check saleonline.co.nz for broken pages, bugs, security issues, SEO regressions
2003. **AUDIT** — Check dependencies for newer versions, check AI models for upgrades, check competitors for new features
2014. **FIX** — Repair everything found before building new
2025. **BUILD** — Launch parallel agents for the new work
2036. **TEST** — Run `next build` and manually trace every change
2047. **DEPLOY** — Push to staging, test, then (with Craig's approval for prod) deploy
2058. **DOCUMENT** — Update this CLAUDE.md with everything that changed
2069. **REPORT** — Tell Craig in plain English what happened
207
208## PERFORMANCE TARGETS — NON-NEGOTIABLE
209
210| Metric | Target | Why |
211|--------|--------|-----|
212| Lighthouse Performance | 100 | Google rankings |
213| Lighthouse SEO | 100 | Google rankings |
214| Lighthouse Accessibility | 100 | Legal compliance + rankings |
215| Lighthouse Best Practices | 100 | Quality signal |
216| LCP (Largest Contentful Paint) | < 1.2s | Core Web Vitals |
217| INP (Interaction to Next Paint) | < 100ms | Core Web Vitals |
218| CLS (Cumulative Layout Shift) | < 0.05 | Core Web Vitals |
219| Time to First Byte | < 200ms | Perceived speed |
220| First Contentful Paint | < 800ms | Perceived speed |
221| JavaScript bundle size | < 100KB gzipped | Load speed |
222| Domain scan time | < 30s for 20 domains | User experience |
223| AI site generation | < 60s end-to-end | User experience |
224| Database queries | < 50ms p95 | Backend speed |
225| Uptime | 99.9% | Trust |
226
227## THE KILL LIST — WHAT WE DESTROY
228
229These competitors and we take their market share:
2301. **Flippa** — overpriced site marketplace, we're faster and AI-powered
2312. **Empire Flippers** — slow human brokerage, we automate it
2323. **Wix / Squarespace** — we sell ready-made sites, not DIY builders
2334. **Local web design agencies** — charging $5k+ for what we do in 60 seconds
2345. **Any "AI website builder"** — they let users build, we pre-build for them
235
236## SUCCESS METRICS — HOW WE KNOW WE'RE WINNING
237
238- **Month 1**: 100 sites generated, 10 sales, $10k revenue
239- **Month 3**: 500 sites generated, 50 sales/mo, $50k MRR (sales + subscriptions)
240- **Month 6**: 2000 sites generated, 150 sales/mo, $150k MRR
241- **Month 12**: 10,000 sites in inventory, 500+ sales/mo, $500k MRR
242- **Rankings**: Top 3 for "buy ready-made website NZ", "buy website Australia", "ready-made business website"
243- **Brand**: SaleOnline is the first name anyone in NZ/AU thinks of for ready-made websites
244
245---
246
247# =============================================================================
248# PART 2 — 48CO VOICE: ORIGINAL ENGINEERING STANDARDS
249# =============================================================================
250# The rules below apply to 48co Voice (grammar + voice product).
251# SaleOnline inherits these where relevant, but Part 1 takes precedence for
252# any SaleOnline-specific work.
253
1254# CLAUDE.md — 48co Voice Engineering Standards & Rules
2255# Built by Claude. Designed for humans.
3256# Last deep scan: March 29, 2026
4257
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts