skills/development/architecture-and-devops/ai-website-deployment/SKILL.md
Deploy AI-generated websites to production using modern hosting platforms
npx skillsauth add lunartech-x/superpowers AI Website DeploymentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Deploy websites created with AI coding assistants to production using Vercel, Netlify, Cloudflare Pages, or GitHub Pages.
After an AI assistant generates your website code, follow this workflow to deploy it live:
# Install Vercel CLI
npm i -g vercel
# Deploy from project directory
vercel
# Follow prompts to:
# - Link to Vercel account
# - Configure project settings
# - Deploy to preview URL
# Deploy to production
vercel --prod
# Install Netlify CLI
npm i -g netlify-cli
# Login and initialize
netlify login
netlify init
# Deploy draft
netlify deploy
# Deploy to production
netlify deploy --prod
# Install Wrangler CLI
npm i -g wrangler
# Login
wrangler login
# Deploy
wrangler pages deploy ./dist
# In your repo, enable GitHub Pages:
# Settings → Pages → Source: GitHub Actions
# Or use gh-pages package
npm i -g gh-pages
gh-pages -d dist
vercel.json){
"version": 2,
"builds": [
{ "src": "package.json", "use": "@vercel/next" }
],
"routes": [
{ "src": "/(.*)", "dest": "/" }
]
}
netlify.toml)[build]
command = "npm run build"
publish = "dist"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Set in dashboard or wrangler.toml
# Build command: npm run build
# Build output directory: dist
# Root directory: /
// vite.config.js
export default {
base: '/', // or '/repo-name/' for GitHub Pages
build: {
outDir: 'dist'
}
}
// next.config.js
module.exports = {
output: 'export', // For static export
// or leave default for Vercel serverless
}
# No build step needed
# Just deploy the folder containing index.html
vercel ./public
# or
netlify deploy --dir=./public
# Vercel
vercel env add VARIABLE_NAME
# Netlify
netlify env:set VARIABLE_NAME "value"
# Cloudflare
wrangler secret put VARIABLE_NAME
.env Files# .env.production
VITE_API_URL=https://api.example.com
NEXT_PUBLIC_API_KEY=xxx
[!WARNING] Never commit secrets to git. Use platform environment variables for sensitive data.
vercel domains add yourdomain.com
# Update DNS: Add CNAME record pointing to cname.vercel-dns.com
netlify domains:add yourdomain.com
# Update DNS per Netlify instructions
# Add custom domain in Cloudflare dashboard
# If using Cloudflare DNS, it's automatic
# .github/workflows/deploy.yml
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install & Build
run: |
npm ci
npm run build
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID }}
vercel-project-id: ${{ secrets.PROJECT_ID }}
vercel-args: '--prod'
npm run build succeeds locallyrobots.txt and sitemap.xml present (SEO)| Feature | Vercel | Netlify | Cloudflare | GitHub Pages | |---------|--------|---------|------------|--------------| | Free Tier | Generous | Generous | Generous | Unlimited | | Build Time | Fast | Fast | Very Fast | Moderate | | Serverless | ✅ Edge Functions | ✅ Functions | ✅ Workers | ❌ | | Best For | Next.js, React | Static, JAMstack | Speed-critical | Simple sites | | Custom Domain | ✅ Free | ✅ Free | ✅ Free | ✅ Free |
# Check build logs
vercel logs
netlify build
# Common fixes:
# - Missing dependencies in package.json
# - Node version mismatch (specify in config)
# - Environment variables not set
# For SPAs, add redirect rule:
# All routes → /index.html
# Vercel: vercel.json rewrites
# Netlify: _redirects file or netlify.toml
# Check base path in build config
# Ensure paths are relative or use correct base URL
tools
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
testing
Access AlphaFold 200M+ AI-predicted protein structures. Retrieve structures by UniProt ID, download PDB/mmCIF files, analyze confidence metrics (pLDDT, PAE), for drug discovery and structural biology.
development
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market news/sentiment, insider transactions, GDP, CPI, treasury yields, gold/silver/oil prices, Bitcoin/crypto prices, forex exchange rates, or calculating technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands). Requires a free API key from alphavantage.co.
development
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.