Add web-frontend, web-project-audit and web-project-scaffold-containerized-python skills

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Neil Bantoc 2026-11-04 14:46:25 -08:00
parent 59fc08fa5f
commit 5201aa9bd5
63 changed files with 3042 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# API & Backend
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Server code in this repo: endpoints and business logic.
**Look for:** framework (route handlers, Express/Fastify/Hono/Nest, serverless functions); endpoint list and methods; input validation; error format; middleware chain; rate limiting; external service integrations (payments, email, storage); OpenAPI/GraphQL schema; BFF patterns.
## Findings

View file

@ -0,0 +1,11 @@
# Architecture & Layering
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Overall shape: rendering model, layers, boundaries, data flow.
**Look for:** SPA vs SSR/SSG/ISR vs islands; client/server boundary (`use client`, server components, loaders); layering (UI → hooks/stores → services/API clients → backend → DB); domain types vs DTOs; where business logic lives; shared packages; unidirectional data flow; layer violations (components calling DB, fetch scattered in UI).
## Findings

View file

@ -0,0 +1,11 @@
# Auth & Security
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Identity, access control and security posture.
**Look for:** auth provider/library; session vs JWT; where tokens live (httpOnly cookie vs storage); route/middleware protection; role/permission checks; CSRF/CORS config; security headers/CSP; input sanitization/XSS (`dangerouslySetInnerHTML`, `v-html`); secrets handling (env vars, which are exposed to the client); dependency on `secret-files.txt` entries by name only.
## Findings

View file

@ -0,0 +1,11 @@
# Background Jobs & Async Work
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Work that runs without a user waiting.
**Look for:** cron/scheduled functions; queues and workers (BullMQ, Inngest, …); webhooks received; email sending; revalidation/ISR triggers; service-worker background sync and push; build-time data generation; long-running processes.
## Findings

View file

@ -0,0 +1,11 @@
# Build & Tooling
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Package manager, workspaces, bundler/framework config, TypeScript setup, scripts, lint/format, versions.
**Look for:** package manager + lockfile type; workspaces/monorepo tool (pnpm/npm/yarn workspaces, Turborepo, Nx); framework + bundler and versions from package.json; tsconfig strictness, path aliases, project references; package.json scripts (dev/build/test/lint); env var loading (`import.meta.env`, `process.env`, `NEXT_PUBLIC_*`) and where it is validated; ESLint/Prettier/Biome config; browserslist/targets; build plugins.
## Findings

View file

@ -0,0 +1,11 @@
# Data Fetching & API Clients
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How the frontend gets and mutates data.
**Look for:** TanStack Query/SWR/Apollo/tRPC/plain fetch; API client wrappers, base URLs, interceptors, auth headers; request/response typing and runtime validation (Zod); caching, invalidation, optimistic updates; pagination/infinite scroll; error and retry handling; server actions; realtime (WebSocket/SSE).
## Findings

View file

@ -0,0 +1,11 @@
# Deployment & CI
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How code gets to users.
**Look for:** CI workflows (steps, checks, caching); hosting target (Vercel, Netlify, Cloudflare, Docker/K8s, static host); Dockerfiles and compose; environment separation (preview/staging/prod); env var injection; release/versioning; database migration step in deploy.
## Findings

View file

@ -0,0 +1,11 @@
# Features (user perspective)
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** What the product lets users do, as implemented.
**Look for:** one entry per user-perceivable capability (`feature-<name>`): what it lets the user do, entry point (route/page/component), and any background part (emails, notifications, scheduled reports, offline support).
## Findings

View file

@ -0,0 +1,11 @@
# File Organization
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How the codebase is laid out and named.
**Look for:** by-feature vs by-type vs framework-convention (file-based routes); where components, hooks, stores, services, utils live; barrel files; path aliases in use; naming conventions (PascalCase components, kebab-case files, `.client`/`.server` suffixes); co-located tests/styles/stories; outliers.
## Findings

View file

@ -0,0 +1,11 @@
# Forms & Validation
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How input is collected and validated.
**Look for:** form library; schema validation shared between client and server; field components; error display; submission handling and pending states; file uploads; multi-step forms.
## Findings

View file

@ -0,0 +1,11 @@
# Internationalization & Accessibility
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Language support and accessible UI as implemented.
**Look for:** i18n library, locale detection, message files (count locales from `ledger` / excluded files), formatting via `Intl`; RTL support; semantic HTML, ARIA usage, focus management, keyboard support, skip links, reduced-motion handling, alt text practices, a11y lint rules/tests.
## Findings

View file

@ -0,0 +1,13 @@
# Module Interactions
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How modules call each other and what data crosses each boundary. One entry per interaction (caller → callee for one purpose). "Module" means a workspace package; in a single-package app, use top-level feature/layer directories (e.g. `src/features/*`, `src/lib/*`, `server/`) instead.
**Look for:** imports of another package/feature; props/callbacks and context passed across feature boundaries; route params and search params between pages; client → server calls (fetch, server actions, tRPC, GraphQL) and their request/response types; server → DB/external API calls; events (custom events, event bus, BroadcastChannel, postMessage); shared stores read/written by several modules; queue/job payloads; webhook payloads; service-worker messages; shared DB tables/cache keys written by one module and read by another; layer violations.
**Each entry states:** **Kind** (`user-facing`: started by a user action or feeding what is on screen, including the request/response of a page load; `background`: no user waiting, e.g. cron, queue workers, webhooks, service-worker sync/push, revalidation, build-time generation, startup init), **From → To** (module + function/component, `path:line`), **Mechanism**, **Data passed** (types in each direction, where mapping/validation happens), **Trigger**.
## Findings

View file

@ -0,0 +1,11 @@
# Observability
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Errors, logs, analytics, monitoring.
**Look for:** error tracking (Sentry, …) client and server; error boundaries; logging library and format; analytics/event tracking and which events; feature flags; health checks; tracing.
## Findings

View file

@ -0,0 +1,11 @@
# Observations
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Cross-cutting notes no single category owns.
**Look for:** inconsistencies (two mechanisms for one job, with counts); migrations in progress; dead code suspicions; risky patterns; comment-vs-code mismatches; strengths worth keeping.
## Findings

View file

@ -0,0 +1,11 @@
# Performance
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Mechanisms that affect load and runtime speed.
**Look for:** code splitting and lazy loading; image optimization (`next/image`, srcset); font loading; bundle analysis config; memoization patterns; virtualization of long lists; prefetching; web-vitals reporting; heavy dependencies imported on the client.
## Findings

View file

@ -0,0 +1,11 @@
# Persistence & Storage
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Where data is stored, server and client.
**Look for:** database + ORM/query builder (Prisma, Drizzle, …); schema and migrations; connection handling; caching layers (Redis, in-memory, HTTP cache); object storage; client storage (localStorage, IndexedDB, cookies); seed data.
## Findings

View file

@ -0,0 +1,11 @@
# Rendering & Delivery
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Where and when HTML is produced.
**Look for:** CSR/SSR/SSG/ISR per route; streaming and Suspense boundaries; hydration strategy/islands; caching directives (`revalidate`, `cache`, `Cache-Control`, CDN headers); edge vs node runtimes; static export; prerendered routes.
## Findings

View file

@ -0,0 +1,11 @@
# Routing & Navigation
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How URLs map to screens and how users move between them.
**Look for:** file-based vs config routes; layouts and nested routes; dynamic segments; route guards/middleware and redirects; loaders/actions; search-param state; 404/error boundaries; links vs programmatic navigation; i18n route prefixes; deep links.
## Findings

View file

@ -0,0 +1,11 @@
# State Management
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Client state: where it lives and how it changes.
**Look for:** local component state; context; stores (Redux/Zustand/Jotai/Pinia/XState); URL as state; persisted state (localStorage); derived state; global vs feature stores; server-state caches used as client state; prop drilling hot spots.
## Findings

View file

@ -0,0 +1,11 @@
# Styling & Theming
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How visual design is expressed in code.
**Look for:** Tailwind / CSS Modules / Sass / CSS-in-JS / plain CSS; design tokens (CSS variables, Tailwind theme); dark mode mechanism; fonts and how they load; responsive approach (breakpoints, container queries); global styles and resets; hard-coded colors/sizes vs tokens; animation approach.
## Findings

View file

@ -0,0 +1,11 @@
# Testing
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** How the code is tested.
**Look for:** unit/integration runner (Vitest/Jest); component testing (Testing Library); e2e (Playwright/Cypress); API mocking (MSW); fixtures/factories; visual/snapshot tests; Storybook stories and interaction tests; coverage config; which areas are tested and which are not.
## Findings

View file

@ -0,0 +1,11 @@
# UI Components
> Audit library doc. Findings come from reading source files — never from README/docs.
> Each pattern is one `### [slug] Title` entry (written via `audit.sh finding`), with an exemplar file.
> Further files that repeat a known pattern are logged with `audit.sh also`, not re-described.
**Scope:** Component architecture and the design system as implemented.
**Look for:** component library (own design system, shadcn/Radix, MUI, …); primitives vs composites; variants API (cva, props); icon set; layout components; composition patterns (slots, compound components, render props); modals/toasts; component size and reuse; duplicated components.
## Findings