Skip to content

seo-skills/seo-audit-skill

seo-audit

Verified

Run the SEOmator CLI on a site and score it against 398 rules across 20 categories (SEO, technical, content, security, JS rendering, AI readiness), with reports an LLM can act on. It can also diff two audits to show what a deploy changed. Reach for it to find out why a site underperforms in search, to review a site's health, or to check a release before and after.

scripts/gen-tokens.mjs

View on GitHub
#!/usr/bin/env node
/**
 * Generate `ui/styles/tokens.css` from `src/design/tokens.ts`.
 *
 * The reporter inlines the tokens by calling `toCss()` at runtime; Vite and
 * Tailwind cannot do that, so the same function is written to a file the
 * stylesheet imports. The file is committed so a fresh clone renders before
 * anything is generated, and regenerated by a Vite plugin on every build —
 * `web:build`, `web:dev`, `electron:build` and `electron:dev` all invoke Vite
 * directly, so a `prebuild` script would cover only one of the four.
 *
 * `--check` fails when the committed file is stale, for CI.
 */
import { readFileSync, writeFileSync } from 'node:fs';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { dirname, resolve } from 'node:path';
import { createRequire } from 'node:module';

const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
const target = resolve(root, 'ui/styles/tokens.css');

/** Load `toCss()` without a build step, by stripping the types. */
async function loadToCss() {
  const source = readFileSync(resolve(root, 'src/design/tokens.ts'), 'utf8');
  const js = source
    .replace(/^export interface[\s\S]*?^}/gm, '')
    .replace(/: readonly \w+\[\]/g, '')
    .replace(/ as const/g, '')
    .replace(/^function declarations\(tokens: Record<string, string>, indent = '  '\): string \{/m,
             'function declarations(tokens, indent = "  ") {')
    .replace(/export function toCss\(\): string \{/, 'export function toCss() {');
  const module = await import(`data:text/javascript,${encodeURIComponent(js)}`);
  return module.toCss;
}

const toCss = await loadToCss();
const banner = `/*
 * GENERATED FILE — do not edit.
 *
 * Source: src/design/tokens.ts   Regenerate: npm run gen:tokens
 *
 * Emitted unlayered on purpose: the @theme block in tailwind.css aliases these
 * custom properties to themselves, which resolves only because unlayered CSS
 * outranks cascade layers.
 */
`;
const css = banner + toCss();

if (process.argv.includes('--check')) {
  let current = '';
  try {
    current = readFileSync(target, 'utf8');
  } catch {
    console.error('gen-tokens: ui/styles/tokens.css is missing. Run `npm run gen:tokens`.');
    process.exit(1);
  }
  if (current !== css) {
    console.error('gen-tokens: ui/styles/tokens.css is stale. Run `npm run gen:tokens`.');
    process.exit(1);
  }
  console.log('gen-tokens: tokens.css is up to date.');
} else {
  writeFileSync(target, css, 'utf8');
  console.log(`gen-tokens: wrote ${target.replace(root + '/', '')}`);
}

// Exported for the Vite plugin, which calls this file rather than shelling out.
export { toCss };
createRequire(import.meta.url);
pathToFileURL(target);
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall