Skip to content

heymegabyte/agent-skills / 15-site-generation

site-generation

Unverified

End-to-end AI website generation pipeline. Claude Opus 4.8 emits Bolt-style <boltArtifact> envelopes (multi-file, plan-first) that customize Vite+React+Tailwind templates from pre-researched business data. Pre-research via APIs, media acquisition, brand extraction, visual inspection via GPT Image 2 vision, R2 upload (per-file content-type by extension), D1 status updates. Supports all business types: SaaS, portfolio, non-profit, restaurant, salon, medical, legal, retail, tech.

FileKindSize
SKILL.mdskill md11.7 KB
_real-ua.mjsscript1.4 KB
blog-import.mjsscript10.5 KB
bolt-artifact-protocol.mdmarkdown8.4 KB
build-breaking-rules.mdmarkdown86.0 KB
build-image-redirects.mjsscript3.4 KB
build-prompts.mdmarkdown86.3 KB
check-routes.shexecutablescript904 B
domain-features.mdmarkdown17.1 KB
enhance-blog-posts.mjsscript12.9 KB
homepage-block-library.mdmarkdown12.6 KB
local-seo.mdmarkdown7.6 KB
media-acquisition.mdmarkdown39.2 KB
non-technical-owner-onboarding.mdmarkdown8.3 KB
page-set-expansion.mdmarkdown19.1 KB
pseo-templates.mdmarkdown13.3 KB
quality-gates.mdmarkdown46.6 KB
research-pipeline.mdmarkdown20.5 KB
scan-assets.mjsscript3.0 KB
small-business-mode.mdmarkdown9.6 KB
source-fidelity-loop.mdmarkdown10.0 KB
squarespace-full-crawl.mjsscript2.8 KB
template-improvements-100.mdmarkdown15.0 KB
template-system.mdmarkdown39.7 KB
validate-assets.mjsscript5.0 KB
validate-banned-slop.mjsscript4.6 KB
validate-brand-colors.mjsexecutablescript6.1 KB
validate-citations.mjsscript6.0 KB
validate-color-contrast.mjsscript5.2 KB
validate-favicon-set.mjsscript4.9 KB
validate-html-entities.mjsscript3.4 KB
validate-image-relevance.mjsscript6.1 KB
validate-internal-links.mjsscript4.3 KB
validate-jsonld-schema.mjsscript5.1 KB
validate-nap-consistency.mjsexecutablescript8.0 KB
validate-page-count.mjsscript4.1 KB
validate-page-set-completeness.mjsscript9.3 KB
validate-photo-authenticity.mjsexecutablescript10.0 KB
validate-pwa-kit.mjsscript7.0 KB
validate-route-metadata.mjsscript7.3 KB
validate-source-fidelity.mjsscript6.0 KB
validate-typography.mjsscript4.0 KB
verticals/local-business-site.mdmarkdown3.8 KB
verticals/nonprofit-site.mdmarkdown3.3 KB
verticals/restaurant-site.mdmarkdown2.6 KB

validate-favicon-set.mjs

View on GitHub
#!/usr/bin/env node
// validate-favicon-set.mjs — full favicon kit gate (rules/always.md "Every site")
// Mandatory 9 assets from real-favicongenerator (or ImageMagick fallback): favicon.ico,
// favicon-16x16.png, favicon-32x32.png, apple-touch-icon.png (180×180), android-chrome-
// 192x192.png, android-chrome-512x512.png, mstile-150x150.png, safari-pinned-tab.svg,
// + at least one maskable variant. Plus browserconfig.xml referencing mstile.
// Each PNG verified by file size sanity + image dimensions via image-size header parse.
// Usage: node validate-favicon-set.mjs <build-dir>
// Exit 0 = pass, exit 1 = fail.

import { readFileSync, statSync, existsSync } from 'node:fs';
import { join, resolve } from 'node:path';

const BUILD = resolve(process.argv[2] || '.');
const DIST = existsSync(join(BUILD, 'dist')) ? join(BUILD, 'dist') : BUILD;

if (!existsSync(DIST)) {
  console.error(`[validate-favicon-set] dist dir not found: ${DIST}`);
  process.exit(1);
}

const REQ = [
  { path: 'favicon.ico', minBytes: 100, maxBytes: 200_000 },
  { path: 'favicon-16x16.png', expect: [16, 16] },
  { path: 'favicon-32x32.png', expect: [32, 32] },
  { path: 'apple-touch-icon.png', expect: [180, 180] },
  { path: 'android-chrome-192x192.png', expect: [192, 192] },
  { path: 'android-chrome-512x512.png', expect: [512, 512] },
];

const OPTIONAL = [
  { path: 'mstile-150x150.png', expect: [150, 150] },
  { path: 'safari-pinned-tab.svg' },
  { path: 'browserconfig.xml' },
  { path: 'maskable-icon.png' },
  { path: 'android-chrome-maskable-512x512.png' },
];

function pngDimensions(buf) {
  // PNG IHDR at byte 16: width(4 BE) + height(4 BE)
  if (buf.length < 24) return null;
  if (buf[0] !== 0x89 || buf[1] !== 0x50 || buf[2] !== 0x4e || buf[3] !== 0x47) return null;
  const width = buf.readUInt32BE(16);
  const height = buf.readUInt32BE(20);
  return [width, height];
}

const failures = [];
const warnings = [];

for (const item of REQ) {
  const p = join(DIST, item.path);
  if (!existsSync(p)) {
    failures.push(`required favicon asset missing: ${item.path}`);
    continue;
  }
  const size = statSync(p).size;
  if (item.minBytes && size < item.minBytes) failures.push(`${item.path}: ${size} bytes below minimum ${item.minBytes}`);
  if (item.maxBytes && size > item.maxBytes) failures.push(`${item.path}: ${size} bytes above maximum ${item.maxBytes}`);
  if (item.expect && item.path.endsWith('.png')) {
    const buf = readFileSync(p);
    const dims = pngDimensions(buf);
    if (!dims) {
      failures.push(`${item.path}: not a valid PNG (dimensions unreadable)`);
    } else if (dims[0] !== item.expect[0] || dims[1] !== item.expect[1]) {
      failures.push(`${item.path}: dimensions ${dims[0]}×${dims[1]} (expected ${item.expect[0]}×${item.expect[1]})`);
    }
  }
}

let maskableFound = false;
for (const item of OPTIONAL) {
  const p = join(DIST, item.path);
  if (!existsSync(p)) {
    warnings.push(`optional favicon asset missing: ${item.path}`);
    continue;
  }
  if (/maskable/i.test(item.path)) maskableFound = true;
  if (item.expect && item.path.endsWith('.png')) {
    const buf = readFileSync(p);
    const dims = pngDimensions(buf);
    if (dims && (dims[0] !== item.expect[0] || dims[1] !== item.expect[1])) {
      warnings.push(`${item.path}: dimensions ${dims[0]}×${dims[1]} (expected ${item.expect[0]}×${item.expect[1]})`);
    }
  }
}

if (!maskableFound) {
  // verify webmanifest icons[] for purpose=maskable as alternate path
  const manifestPath = existsSync(join(DIST, 'site.webmanifest')) ? join(DIST, 'site.webmanifest') : existsSync(join(DIST, 'manifest.webmanifest')) ? join(DIST, 'manifest.webmanifest') : null;
  if (manifestPath) {
    try {
      const m = JSON.parse(readFileSync(manifestPath, 'utf8'));
      const icons = Array.isArray(m.icons) ? m.icons : [];
      if (!icons.some((i) => typeof i.purpose === 'string' && i.purpose.includes('maskable'))) {
        failures.push('no maskable icon found (no maskable-*.png on disk AND webmanifest icons[] missing purpose:"maskable")');
      }
    } catch {
      failures.push('no maskable icon found and webmanifest unparsable');
    }
  } else {
    failures.push('no maskable icon found and no webmanifest to fall back to');
  }
}

// browserconfig.xml referencing mstile
const bcPath = join(DIST, 'browserconfig.xml');
if (existsSync(bcPath)) {
  const xml = readFileSync(bcPath, 'utf8');
  if (!/mstile/i.test(xml)) warnings.push('browserconfig.xml present but does not reference mstile');
}

if (warnings.length) {
  console.warn(`\n[validate-favicon-set] ${warnings.length} warnings:`);
  warnings.forEach((w) => console.warn(`  ⚠ ${w}`));
}
if (failures.length) {
  console.error(`\n[validate-favicon-set] ${failures.length} failures:`);
  failures.forEach((f) => console.error(`  ✗ ${f}`));
  console.error('\n[validate-favicon-set] BUILD GATE FAILED — run real-favicongenerator pipeline');
  process.exit(1);
}
console.log(`[validate-favicon-set] ✓ all 6 required + maskable variants present with correct dimensions.`);
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall