Skip to content

krusty93/relego / .agents/skills/impeccable

impeccable

Flagged

Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.

FileKindSize
SKILL.mdskill md10.4 KB
agents/impeccable_asset_producer.tomlconfig9.7 KB
agents/impeccable_documenter.tomlconfig3.2 KB
agents/impeccable_finish_reviewer.tomlconfig13.5 KB
agents/impeccable_manual_edit_applier.tomlconfig6.9 KB
agents/openai.yamlconfig235 B
reference/adapt.mdmarkdown10.1 KB
reference/adapt.native.mdmarkdown3.8 KB
reference/android.mdmarkdown4.0 KB
reference/animate.mdmarkdown5.1 KB
reference/audit.mdmarkdown7.7 KB
reference/audit.native.mdmarkdown8.2 KB
reference/bolder.mdmarkdown3.5 KB
reference/clarify.mdmarkdown4.5 KB
reference/colorize.mdmarkdown4.4 KB
reference/craft-floor.mdmarkdown5.4 KB
reference/craft.mdmarkdown555 B
reference/critique.mdmarkdown44.6 KB
reference/degraded/asset-producer.mdmarkdown9.9 KB
reference/degraded/documenter.mdmarkdown3.3 KB
reference/degraded/finish-reviewer.mdmarkdown13.6 KB
reference/degraded/manual-edit-applier.mdmarkdown7.0 KB
reference/delight.mdmarkdown3.6 KB
reference/distill.mdmarkdown5.6 KB
reference/doctor.mdmarkdown5.3 KB
reference/document.mdmarkdown26.9 KB
reference/extract.mdmarkdown3.4 KB
reference/harden.mdmarkdown8.3 KB
reference/hooks.mdmarkdown12.8 KB
reference/init.mdmarkdown11.2 KB
reference/ios.mdmarkdown3.7 KB
reference/layout.mdmarkdown5.0 KB
reference/live-setup.mdmarkdown7.2 KB
reference/live.mdmarkdown35.0 KB
reference/new-work.mdmarkdown43.1 KB
reference/onboard.mdmarkdown7.6 KB
reference/operate.mdmarkdown4.0 KB
reference/optimize.mdmarkdown7.4 KB
reference/overdrive.mdmarkdown9.0 KB
reference/polish.mdmarkdown5.5 KB
reference/quieter.mdmarkdown4.8 KB
reference/routing.mdmarkdown2.8 KB
reference/shape.mdmarkdown3.5 KB
reference/typeset.mdmarkdown5.1 KB
reference/visualize.mdmarkdown16.3 KB
scripts/command-metadata.jsonconfig7.7 KB
scripts/concept-seed.mjsscript38.7 KB
scripts/context-signals.mjsscript13.7 KB
scripts/context.mjsscript63.6 KB
scripts/critique-storage.mjsscript8.3 KB
scripts/detect-csp.mjsscript6.6 KB
scripts/detect.mjsscript620 B
scripts/detector/browser/injected/index.mjsscript89.0 KB
scripts/detector/cli/main.mjsscript18.5 KB
scripts/detector/design-system.mjsscript48.5 KB
scripts/detector/detect-antipatterns-browser.jsscript388.1 KB
scripts/detector/detect-antipatterns.mjsscript1.8 KB
scripts/detector/engines/browser/detect-url.mjsscript15.8 KB
scripts/detector/engines/regex/detect-text.mjsscript52.1 KB
scripts/detector/engines/static-html/css-cascade.mjsscript44.9 KB
scripts/detector/engines/static-html/detect-html.mjsscript13.0 KB
scripts/detector/engines/visual/screenshot-contrast.mjsscript6.4 KB
scripts/detector/findings.mjsscript766 B
scripts/detector/node/file-system.mjsscript7.6 KB
scripts/detector/profile/profiler.mjsscript4.4 KB
scripts/detector/registry/antipatterns.mjsscript27.2 KB
scripts/detector/rules/checks.mjsscript248.7 KB
scripts/detector/shared/color.mjsscript23.0 KB
scripts/detector/shared/constants.mjsscript4.6 KB
scripts/detector/shared/fonts.mjsscript852 B
scripts/detector/shared/inline-ignores.mjsscript6.0 KB
scripts/detector/shared/page.mjsscript252 B
scripts/doctor.mjsscript11.3 KB
scripts/embed-prompt.mjsscript7.7 KB
scripts/generate-image.mjsscript11.2 KB
scripts/hook-admin.mjsscript30.9 KB
scripts/hook-before-edit.mjsscript19.6 KB
scripts/hook-lib.mjsscript100.5 KB
scripts/hook.mjsscript2.7 KB
scripts/lib/artifact-schema.mjsscript3.8 KB
scripts/lib/composition-catalog.mjsscript10.0 KB
scripts/lib/concept-catalog.mjsscript19.4 KB
scripts/lib/design-parser.mjsscript26.8 KB
scripts/lib/impeccable-config.mjsscript21.8 KB
scripts/lib/impeccable-paths.mjsscript4.9 KB
scripts/lib/is-generated.mjsscript2.4 KB
scripts/lib/live-path-globs.mjsscript847 B
scripts/lib/open-system-browser.mjsscript848 B
scripts/lib/provider.mjsscript327 B
scripts/lib/roll-selection.mjsscript17.4 KB
scripts/lib/staleness-deep.mjsscript20.9 KB
scripts/lib/staleness-notice.mjsscript6.5 KB
scripts/lib/staleness.mjsscript22.9 KB
scripts/lib/surface-briefs.mjsscript6.0 KB
scripts/lib/target-args.mjsscript1.1 KB
scripts/lib/target-slug.mjsscript1.0 KB
scripts/lib/template-extensions.mjsscript5.3 KB
scripts/live-accept.mjsscript35.0 KB
scripts/live-browser-dom.jsscript4.2 KB
scripts/live-browser-ignores.jsscript10.1 KB
scripts/live-browser-session.jsscript3.2 KB
scripts/live-browser.jsscript490.4 KB
scripts/live-commit-manual-edits.mjsscript39.9 KB
scripts/live-complete.mjsscript4.7 KB
scripts/live-copy-edit-agent.mjsscript32.7 KB
scripts/live-discard-manual-edits.mjsscript1.6 KB
scripts/live-inject.mjsscript17.2 KB
scripts/live-insert.mjsscript9.8 KB
scripts/live-manual-edit-evidence.mjsscript11.6 KB
scripts/live-poll.mjsscript15.8 KB
scripts/live-resume.mjsscript6.0 KB
scripts/live-server.mjsscript67.9 KB
scripts/live-status.mjsscript2.6 KB
scripts/live-target.mjsscript934 B
scripts/live-wrap.mjsscript38.2 KB
scripts/live.mjsscript12.6 KB
scripts/live/accept-css.mjsscript22.0 KB
scripts/live/accept-verify.mjsscript2.7 KB
scripts/live/browser-script-parts.mjsscript3.6 KB
scripts/live/completion.mjsscript1.4 KB
scripts/live/event-validation.mjsscript9.4 KB
scripts/live/frameworks/astro.mjsscript1.7 KB
scripts/live/frameworks/detect-utils.mjsscript2.1 KB
scripts/live/frameworks/index.mjsscript5.7 KB
scripts/live/frameworks/journal.mjsscript7.0 KB
scripts/live/frameworks/nextjs.mjsscript1.7 KB
scripts/live/frameworks/nuxt.mjsscript5.1 KB
scripts/live/frameworks/script-src.mjsscript699 B
scripts/live/frameworks/static-html.mjsscript656 B
scripts/live/frameworks/sveltekit.mjsscript1.8 KB
scripts/live/frameworks/tag-strategy.mjsscript10.6 KB
scripts/live/frameworks/tanstack-start.mjsscript1.6 KB
scripts/live/frameworks/vite-generic.mjsscript1.3 KB
scripts/live/generation-preflight.mjsscript5.8 KB
scripts/live/insert-ui.mjsscript15.3 KB
scripts/live/instructions.mjsscript12.9 KB
scripts/live/manual-apply.mjsscript34.1 KB
scripts/live/manual-edit-routes.mjsscript14.6 KB
scripts/live/manual-edits-buffer.mjsscript5.0 KB
scripts/live/poll-lanes.mjsscript759 B
scripts/live/project-ignores.mjsscript6.3 KB
scripts/live/roots.mjsscript20.4 KB
scripts/live/session-store.mjsscript22.4 KB
scripts/live/source-lock.mjsscript3.6 KB
scripts/live/source-search.mjsscript4.2 KB
scripts/live/svelte-ast.mjsscript38.2 KB
scripts/live/svelte-component.mjsscript51.1 KB
scripts/live/sveltekit-adapter.mjsscript10.7 KB
scripts/live/tanstack-adapter.mjsscript9.1 KB
scripts/live/ui-surfaces.mjsscript3.5 KB
scripts/live/vocabulary.mjsscript7.0 KB
scripts/modern-screenshot.umd.jsscript28.6 KB
scripts/palette.mjsscript55.5 KB
scripts/pin.mjsscript6.5 KB
scripts/serve-question.mjsscript118.9 KB
scripts/surface-brief.mjsscript2.5 KB

scripts/live/project-ignores.mjs

View on GitHub
/**
 * Project detector waivers for the live overlay (issue #639, hardened in the
 * PR #645 follow-up). One place decides what the /live.js prelude serializes
 * as window.__IMPECCABLE_PROJECT_IGNORES__:
 *
 *   ignoreRules   detector.ignoreRules, unioned across every live root.
 *   ignoreValues  detector.ignoreValues entries ({rule, value, files?}),
 *                 deduped across roots; createdAt/reason stay local.
 *   ignoreFiles   detector.ignoreFiles globs, unioned across roots, so a
 *                 wholly waived page scans to zero findings in the overlay
 *                 just as it reports nothing through the CLI and the hook.
 *   roots         served-root prefixes derived from the inject config's own
 *                 `files` globs. Never derived from the ignore globs: one
 *                 entry scoped to prototype/library/** would lend
 *                 prototype/library/ as a candidate prefix to every page,
 *                 and that rule would suppress site-wide (issue #639).
 *   pageFiles     the inject config's `files` expanded to real project
 *                 files, so the browser can resolve a URL to the one file it
 *                 actually serves instead of trying every root (PR #645
 *                 review: with src/ and public/ both served, /foo.html must
 *                 not borrow src/foo.html's waivers while actually serving
 *                 public/foo.html).
 *
 * Config is read from every root the live session spans: the appRoot the
 * server chdir'd onto, plus contextRoot and repoRoot when they differ. The
 * edit hook keys the same config at the session cwd (the repo root in a
 * monorepo, via resolveCacheCwd), and `impeccable detect` reads it from its
 * invocation cwd, so reading only the appRoot silently dropped every waiver
 * in exactly the monorepo layouts the roots manifest exists for. Reading is
 * additive across roots, matching readConfig's own union of config.json and
 * config.local.json.
 *
 * In a monorepo, roots and pageFiles are serialized repo-relative (the
 * appRoot's path inside the repo is prefixed), so waivers spelled from
 * either root match through the resolver's suffix expansion.
 */
import fs from 'node:fs';
import path from 'node:path';
import { readConfig } from '../hook-lib.mjs';
import { resolveFiles } from '../live-inject.mjs';
import { resolveLiveConfigPath } from '../lib/impeccable-paths.mjs';

// Serializing thousands of page identities into every /live.js response
// helps nobody; past this cap pageFiles is omitted and the resolver falls
// back to the served-root common ancestor, which is correct, just less
// precise about cross-root duplicates.
const PAGE_FILES_CAP = 500;

export function collectProjectDetectorIgnores({ appRoot, contextRoot, repoRoot, scriptsDir } = {}) {
  const configRoots = [];
  for (const dir of [appRoot, contextRoot, repoRoot]) {
    if (typeof dir !== 'string' || !dir) continue;
    const resolved = path.resolve(dir);
    if (!configRoots.includes(resolved)) configRoots.push(resolved);
  }
  if (configRoots.length === 0) configRoots.push(process.cwd());

  const ignoreRules = new Set();
  const ignoreFiles = new Set();
  const valueEntries = new Map();
  for (const dir of configRoots) {
    // readConfig merges config.json with the gitignored config.local.json
    // and type-checks both, exactly as the edit hook reads the same pair.
    const config = readConfig(dir);
    for (const rule of Array.isArray(config.ignoreRules) ? config.ignoreRules : []) {
      if (typeof rule === 'string' && rule.trim()) ignoreRules.add(rule);
    }
    for (const glob of Array.isArray(config.ignoreFiles) ? config.ignoreFiles : []) {
      if (typeof glob === 'string' && glob.trim()) ignoreFiles.add(glob);
    }
    for (const entry of Array.isArray(config.ignoreValues) ? config.ignoreValues : []) {
      if (!entry || typeof entry !== 'object') continue;
      // readConfig already normalized rule/value and folded `file` into
      // `files`; serve only what the browser matches on.
      const serialized = {
        rule: entry.rule,
        value: entry.value,
        ...(Array.isArray(entry.files) && entry.files.length > 0 ? { files: entry.files } : {}),
      };
      const key = JSON.stringify([serialized.rule, serialized.value,
        Array.isArray(serialized.files) ? [...serialized.files].sort() : []]);
      if (!valueEntries.has(key)) valueEntries.set(key, serialized);
    }
  }

  const served = readLiveServedPages({ appRoot: configRoots[0], repoRoot, scriptsDir });
  return {
    ignoreRules: [...ignoreRules],
    ignoreValues: [...valueEntries.values()],
    ignoreFiles: [...ignoreFiles],
    roots: served.roots,
    pageFiles: served.pageFiles,
  };
}

function readLiveServedPages({ appRoot, repoRoot, scriptsDir }) {
  let live = null;
  try {
    const configPath = resolveLiveConfigPath({ cwd: appRoot, scriptsDir });
    live = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
  } catch {
    // No readable inject config: the browser matches URL paths as-is.
    return { roots: [], pageFiles: [] };
  }
  const files = Array.isArray(live?.files)
    ? live.files.filter((glob) => typeof glob === 'string' && glob)
    : [];

  // A monorepo appRoot serializes identities repo-relative, so waivers
  // spelled from either root match through the resolver's suffix expansion.
  let prefix = '';
  if (typeof repoRoot === 'string' && repoRoot) {
    const rel = path.relative(path.resolve(repoRoot), path.resolve(appRoot)).split(path.sep).join('/');
    if (rel && !rel.startsWith('..') && !path.isAbsolute(rel)) prefix = `${rel}/`;
  }

  const roots = [...new Set(files.map((glob) => {
    const wildcardAt = glob.search(/[*?{]/);
    const head = wildcardAt === -1 ? glob : glob.slice(0, wildcardAt);
    const cut = head.lastIndexOf('/');
    return prefix + (cut > -1 ? head.slice(0, cut + 1) : '');
  }))];

  let pageFiles = [];
  try {
    pageFiles = resolveFiles(appRoot, { ...live, files })
      .filter((rel) => {
        // resolveFiles passes literal entries through even when they do not
        // exist; a missing file is nobody's identity.
        try { return fs.statSync(path.join(appRoot, rel)).isFile(); } catch { return false; }
      })
      .map((rel) => prefix + rel);
  } catch {
    pageFiles = [];
  }
  if (pageFiles.length > PAGE_FILES_CAP) pageFiles = [];

  return { roots, pageFiles };
}
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: 471kUpdated 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: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated 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