Skip to content

heymegabyte/agent-skills / 06-build-and-slice-loop

build-and-slice-loop

Verified

Use when implementing features or streaming OnePrompt site builds. Complete vertical slices with real content, strict TypeScript and Zod. Parallel section/data work, deterministic assembly, granular patches and immediate valid previews.

FileKindSize
SKILL.mdskill md7.2 KB
admin-dashboard.mdmarkdown5.5 KB
ai-chat-widget.mdmarkdown6.0 KB
blog-and-content-engine.mdmarkdown6.2 KB
build-breaking-rules.mdmarkdown7.4 KB
chat-native-dashboard.mdmarkdown3.6 KB
contact-forms-and-endpoints.mdmarkdown6.7 KB
copilot-and-ai-features.mdmarkdown7.4 KB
custom-error-pages.mdmarkdown4.5 KB
data-tables.mdmarkdown7.7 KB
domain-provisioning.mdmarkdown4.6 KB
easter-eggs.mdmarkdown4.7 KB
empty-states-and-loading.mdmarkdown5.7 KB
file-uploads-and-storage.mdmarkdown6.7 KB
internationalization.mdmarkdown4.3 KB
keyboard-shortcuts-and-command-palette.mdmarkdown6.7 KB
microcopy-library.mdmarkdown8.0 KB
notification-center.mdmarkdown8.4 KB
onboarding-and-first-run.mdmarkdown5.0 KB
pre-digested-builds.mdmarkdown3.6 KB
pwa-kit.mdmarkdown6.8 KB
realtime-and-websockets.mdmarkdown7.2 KB
rich-text-editor.mdmarkdown7.4 KB
site-search.mdmarkdown4.0 KB
stripe-first-donations.mdmarkdown10.7 KB
web-manifest-system.mdmarkdown11.9 KB
webhook-system.mdmarkdown9.5 KB

domain-provisioning.md

View on GitHub
---
name: "Domain Provisioning"
version: "2.0.0"
updated: "2026-04-23"
description: "Auto-provision new domains with CF Worker, DNS, SSL, and a gorgeous animated placeholder — NOT a boring 'coming soon.' Full dark theme with gradient mesh, animated orbs, newsletter signup, meta tags, favicon set, Easter egg, multi-language support, and Megabyte Labs branding. Triggers when new project folder appears."
---

# Domain Provisioning

## Placeholder Requirements

The placeholder is NOT a placeholder — it's the first impression. It must be:

### Visual

- Full-screen dark theme (#060610 background)
- Animated gradient mesh with floating cyan/blue orbs (CSS only, no libraries)
- Domain name in Space Grotesk 700 as hero headline
- "Something extraordinary is being built." subtext in Sora 400
- Subtle particle effect or noise overlay
- Responsive at 375px and 1280px

### Functional

- Newsletter signup form (connected to Listmonk via `13-observability-and-growth`)
- Turnstile captcha on the form (`05/shared-api-pool`)
- Contact — `brian@megabyte.space` (mailto link)
- Megabyte Labs logo in footer
- Easter egg (`06/easter-eggs` — AI chooses what)
- Language selector (EN + ES minimum, `01-operating-system`)

### SEO & Meta

- Full OG tags (title, description, image)
- Twitter Card (`summary_large_image`)
- Favicon set (generated via Ideogram, skill 12)
- JSON-LD — Organization + WebSite
- `robots.txt` and `sitemap.xml` (`06/web-manifest-system`)
- `site.webmanifest` (`06/web-manifest-system`)

### Performance

- Zero external JS dependencies
- Inline CSS (no external stylesheet requests)
- Total page weight < 100KB (excluding favicon)
- LCP < 1 second

## Setup Steps

### 1. Initialize Project

```bash
mkdir -p src public
npm init -y
npm install hono wrangler --save-dev
```

### 2. Create wrangler.toml

```toml
name = "domain-name"
main = "src/index.ts"
compatibility_date = "2025-01-01"
compatibility_flags = ["nodejs_compat"]
account_id = "${CLOUDFLARE_ACCOUNT_ID}"

routes = [
  { pattern = "domain.com", custom_domain = true },
  { pattern = "www.domain.com", custom_domain = true }
]
```

### 3. Create Worker (src/index.ts)

```typescript
import { Hono } from 'hono';
const app = new Hono();

app.get('*', (c) => {
  // Return gorgeous placeholder HTML
  return c.html(placeholderHTML, 200, {
    'Content-Security-Policy': "default-src 'self'; style-src 'unsafe-inline'; ...",
    'X-Content-Type-Options': 'nosniff',
    'X-Frame-Options': 'DENY',
    'Strict-Transport-Security': 'max-age=31536000',
  });
});

export default app;
```

### 4. Generate Brand Assets

- Logo via Ideogram (3 variations, pick best)
- Favicon set via Pillow processing
- OG image (1200x630, domain name + brand colors)

### 5. Deploy

```bash
npx wrangler deploy
# Purge cache
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  --data '{"purge_everything":true}'
```

### 6. Configure DNS (if new subdomain)

```bash
curl -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/dns_records" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"CNAME","name":"subdomain","content":"domain-name.workers.dev","proxied":true}'
```

### 7. Verify

- Visit the live URL
- Test newsletter signup form
- Take screenshots at 1280px and 375px
- Verify meta tags with social card validators
- Run axe-core accessibility audit

## Animated Background CSS (No Libraries)

```css
.orbs {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}
.orb:nth-child(1) {
  width: 400px; height: 400px;
  background: #00E5FF;
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.orb:nth-child(2) {
  width: 300px; height: 300px;
  background: #50AAE3;
  bottom: -5%; right: -5%;
  animation-delay: -7s;
}
.orb:nth-child(3) {
  width: 250px; height: 250px;
  background: #8B5CF6;
  top: 40%; left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}
```

## GitHub Auto-Config (First Deploy)

After first deploy, automatically:

1. Set repo description — `gh repo edit --description "Meta description text"`
2. Set homepage URL — `gh repo edit --homepage "https://domain.com"`
3. Add topics — `gh repo edit --add-topic "cloudflare,hono,emdash"`
4. Generate README.md from site content
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall