heymegabyte/agent-skills / 06-build-and-slice-loop
build-and-slice-loop
VerifiedUse 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.2 KB |
| admin-dashboard.md | markdown | 5.5 KB |
| ai-chat-widget.md | markdown | 6.0 KB |
| blog-and-content-engine.md | markdown | 6.2 KB |
| build-breaking-rules.md | markdown | 7.4 KB |
| chat-native-dashboard.md | markdown | 3.6 KB |
| contact-forms-and-endpoints.md | markdown | 6.7 KB |
| copilot-and-ai-features.md | markdown | 7.4 KB |
| custom-error-pages.md | markdown | 4.5 KB |
| data-tables.md | markdown | 7.7 KB |
| domain-provisioning.md | markdown | 4.6 KB |
| easter-eggs.md | markdown | 4.7 KB |
| empty-states-and-loading.md | markdown | 5.7 KB |
| file-uploads-and-storage.md | markdown | 6.7 KB |
| internationalization.md | markdown | 4.3 KB |
| keyboard-shortcuts-and-command-palette.md | markdown | 6.7 KB |
| microcopy-library.md | markdown | 8.0 KB |
| notification-center.md | markdown | 8.4 KB |
| onboarding-and-first-run.md | markdown | 5.0 KB |
| pre-digested-builds.md | markdown | 3.6 KB |
| pwa-kit.md | markdown | 6.8 KB |
| realtime-and-websockets.md | markdown | 7.2 KB |
| rich-text-editor.md | markdown | 7.4 KB |
| site-search.md | markdown | 4.0 KB |
| stripe-first-donations.md | markdown | 10.7 KB |
| web-manifest-system.md | markdown | 11.9 KB |
| webhook-system.md | markdown | 9.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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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 implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |