distillx. / teardown 2026-07-22
← today's 5
VIRAL TODAY

tandpfun/wardrobe

Strong execution on the core user experience and technical architecture: local-first PWA with intelligent caching, scalable multi-step image generation, and honest AI outputs differentiate it from cloud competitors. However, the path to production requires immediate investment in security infrastructure (secrets rotation, client-side encryption, API scoping, audit logging) and supply-chain hygiene (Dependabot, SBOM, lock file verification) before scaling beyond single-user local deployments.

The 800-entry cache strategy and batch-size tuning are sound but untested against real power-user workloads (1000+ garments). Recommend: (1) add Vault/sealed-secrets for API keys, (2) implement libsodium.js encryption for IndexedDB/Cache API, (3) add rate limiting and logging to subagent calls, (4) enable Dependabot and npm audit CI gates, (5) stress-test large collections and profile memory/API spend.

Once these gates close, the project is positioned as a privacy-first, offline-capable premium alternative to existing wardrobe tools.

Beta
Architecture72Maturity38Security22Reusability64Documentation24Testing0
45 / 100

ReadyBase score: Fair, AI for well-tested areas only. Deterministic, no LLM.

How ReadyBase scores this →

Distill this: 16 ideas worth adopting

ranked shortlist
9.2
Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network

4 personas flag; transferred to any offline-capable app; cheap (service worker native); solves real mobile UX gap (network loss, cold-start). Tension with encryption resolves by adding client-side envelope without rearchitecture.

8.8
Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent

3 personas flag; generalizes to any multi-stage async (import, synthesis, validation); proven pattern; unlocks power-user scale (1000+ garments). Tension with audit/auth resolves by API scoping and logging layers orthogonal to orchestration.

8.4
Metadata validation and normalization functions (normalizeMetadata, normalizeBoundingBox) ensure incoming API data conforms to schema ranges and formats before processing

3 personas flag; reusable schema validators; low adoption cost (pure utility); prevents downstream corruption. Tension with injection mitigated by adding size/pattern limits (same function, minimal overhead).

7.9
Service worker implements trimming strategy to cap cached entries at a configurable limit (800) when a collection grows, freeing space by evicting oldest entries

3 personas flag; solves unbounded cache growth on mobile; already shipped; moderate tuning burden. Tension with integrity (cache poisoning) resolves via HMAC-SHA256 signatures on retrieval.

7.6
Responsive image API middleware intercepts requests at a standard path prefix and applies lazy format negotiation and width-based resizing via IPX storage adapter

3 personas flag; 30-60% payload reduction; improves time-to-interactive; leverages existing infrastructure. Friction: vendor lock-in to IPX; benefit is real (bandwidth cost + UX).

7.2
Image generation prompts enforce identity preservation and garment fidelity by rejecting synthetic polish and requiring recognition of specific closure construction, avoiding invented details

2 personas flag (CPO, Scrum Master); domain-specific but core differentiator (prevents 'too perfect' fantasy renders); low adoption friction (prompt already tuned). Risk: high sensitivity to model version; ongoing tuning per feedback.

6.8
CSS custom properties (--paper, --ink, --accent) centralize color theming across the application, enabling consistent branding without touching individual component styles

2 personas flag (CTO, CPO); transferable to any multi-brand deployment; near-zero adoption cost (native CSS). Unlocked value is white-label/partner licensing; already live, low friction to unlock.

6.4
Environment variable loading via loadEnv allows configuration-driven switching between model names, image quality, and reference data paths without code changes

1 persona flag (CTO); cheap deployment flexibility; high tension with secrets management. Adoption requires adding Vault/sealed-secrets infrastructure (moderate cost) but value is A/B testing + cost tuning without rebuild.

6.1
GitHub Actions workflow uses actions/setup-node with built-in caching and runs npm ci (clean install) instead of npm install to ensure reproducible builds on CI

1 persona flag (VPE); zero adoption cost (drop-in replacement); high tension with supply-chain controls (Dependabot + SBOM required). Benefit is sub-30s CI cycles; risk is silent propagation of compromised transitive deps without audit gates.

5.9
Large-collection optimization in skills bounds batch sizes for parallel image generation and tracks every outfit as it processes to prevent unbounded memory usage

2 personas flag (CPO, Scrum Master); unblocks power-user scale (500+ garments); already implemented. Friction: batch tuning per hardware profile, monitoring instrumentation needed.

5.4
Import workflow preserves source images unchanged while extracting garments into a temporary workspace, deferring permanent import until approval, reducing risk of data loss

1 persona flag (CPO); low adoption friction (already shipped); reduces anxiety-to-action for new users. Value is trust narrative + UX clarity (temp vs imported); not a technical differentiator.

5.1
Sharp library integration for image processing in scripts allows efficient validation, resizing, and metadata extraction before storing to local JSON database

1 persona flag (CTO); vendor directly used; low friction. Benefit is already realized; not a transferable pattern.

4.8
Vite config hot-reload server binds to 0.0.0.0 to support development on any network interface, with selective dependency optimization only for core libraries (react, react-dom)

1 persona flag (VPE); transferable idiom; low adoption cost (standard Vite). Benefit is remote dev unblocked + rebuild time reduction; niche for distributed teams.

4.3
React Strict Mode wrapper in main.jsx enables additional debugging and warnings at development time without affecting production builds

0 personas flag; transferable best practice; zero adoption cost (native React). Benefit is dev-time safety (warnings); limited scope.

4.1
Web app manifest sets display type to standalone and matches background_color with theme_color to ensure seamless full-screen experience when launched from home screen

1 persona flag (CTO); transferable PWA pattern; zero adoption cost (manifest native). Benefit is polish (seamless launch); already live.

3.7
SVG icon at public/icon.svg uses linear gradient fills with high contrast background to create visual depth while maintaining clarity at small sizes

0 personas flag; domain-specific; zero adoption friction. Benefit is aesthetic; not transferable.

What it does

Wardrobe is an OpenAI-powered, offline-first PWA that extracts individual garments from photos, generates identity-preserving modeled editorial images of each piece, and lets users curate complete outfits and generate lookbook photos at scale. All data lives locally in JSON; service workers cache images with intelligent trimming to keep the app usable on mobile devices with limited storage.

The wedge

Identity-preserving image generation: enforces that AI-generated outfit photos reject synthetic polish and accurately render specific garment details (closure construction, texture, color) rather than inventing idealized versions. Combined with local-first offline storage, this unlocks a trust-first alternative to cloud wardrobe apps that users perceive as both private and visually honest.

Truth gap

Claims offline-first privacy-first wardrobe app; ships core workflows but lacks production security controls (API auth/rate limits, client-side encryption, secrets management, supply-chain gates).

Findings board, 5 lenses on this repo

5 personas, 34 findings
CTO
Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent

Scales image generation from single requests to bounded-batch workflows handling large collections without unbounded memory or API token blowup; proven pattern transfers to any multi-stage async work (data import, synthesis, validation).

Cost Requires skill framework + structured output schema per phase; moderate effort to port existing sequential pipelines into phase gates with proper error isolation.

Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network

Eliminates cold-start latency and API dependency for read-heavy workloads; reduces server load and bandwidth cost at scale; survives network interruptions without user friction.

Cost Service worker cache invalidation and trimming strategy (800-entry cap) requires careful versioning; debugging offline-first flows is slower than server-centric.

Responsive image API middleware intercepts requests at a standard path prefix and applies lazy format negotiation and width-based resizing via IPX storage adapter

Decouples image optimization from component code; single code path handles data:, blob:, /api/ sources uniformly; content-negotiation at request time reduces asset variants and storage footprint.

Cost Requires IPX or equivalent; adds middleware layer; baking client breakpoints into server routes creates coupling if viewport patterns change.

Metadata validation and normalization functions (normalizeMetadata, normalizeBoundingBox) ensure incoming API data conforms to schema ranges and formats before processing

Blocks garbage data from corrupting downstream pipelines; centralizes one validation rule so fixes propagate everywhere; explicit contracts catch API contract drift early.

Cost Low; pure utility functions; marginal CPU cost at runtime.

Environment variable loading via loadEnv allows configuration-driven switching between model names, image quality, and reference data paths without code changes

Enables staging/prod parity and A/B testing without rebuild; reduces deployment friction for cost-sensitive tuning (model tier, batch size, image resolution).

Cost Trivial if already using Vite; requires .env template discipline and secrets management for API keys.

CSS custom properties (--paper, --ink, --accent) centralize color theming across the application, enabling consistent branding without touching individual component styles

Single source of truth for color changes; enables light/dark mode and theme swaps at runtime; scales to multi-brand deployments without forking CSS.

Cost Minimal; CSS-only; backwards-compatible with existing component styles.

CPO
Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent

Unlocks scalable, high-fidelity garment & outfit generation at collection scale; differentiates product by enforcing quality gates competitors skip (identity preservation, fidelity validation).

Cost Requires training content on phase-gate design; skill templates exist, so engineering ramp is low; adoption risk is user workflow adoption if quality expectations aren't met.

Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network

Solves wardrobe accessibility during network loss; critical for field use (shopping, travel) and signals premium UX vs cloud-only competitors; reduces support load.

Cost Implemented and working; zero adoption friction; productization is messaging and guaranteeing cache limits (trimming at 800 entries) don't surprise users.

Image generation prompts enforce identity preservation and garment fidelity by rejecting synthetic polish and requiring recognition of specific closure construction, avoiding invented details

Differentiator: prevents AI-generated 'too perfect' garment representations that undermine user trust; ensures modeled photos stay true to source inventory, not fantasy versions.

Cost Low; prompt engineering is done; main cost is documenting why this matters to users (trust narrative) and detecting/rejecting non-compliant outputs at review gate.

Import workflow preserves source images unchanged while extracting garments into a temporary workspace, deferring permanent import until approval, reducing risk of data loss

Removes destructive risk from the critical import journey; users keep originals; reduces anxiety-to-action for new users importing expensive wardrobe.

Cost Implemented and designed; adoption cost is UI clarity (show temp vs imported clearly) and possibly storage education (temp cleanup).

Responsive image API middleware intercepts requests at a standard path prefix and applies lazy format negotiation and width-based resizing via IPX storage adapter

Saves bandwidth and speeds load times for image-heavy wardrobe views; enables serving WebP/AVIF to capable browsers transparently.

Cost Vendor-locked to IPX; no adoption cost if already integrated; risk is IPX deprecation or performance regression under load.

CSS custom properties (--paper, --ink, --accent) centralize color theming across the application, enabling consistent branding without touching individual component styles

Enables white-label or brand-variant deployments (e.g., partner editions) with zero code changes; improves design velocity for A/B testing.

Cost Already live; no adoption friction; value is unlocked when productizing customization (dashboard for users to set brand colors, partner licensing).

Large-collection optimization in skills bounds batch sizes for parallel image generation and tracks every outfit as it processes to prevent unbounded memory usage

Enables power users (1000+ garments) to generate lookbooks without timeout or OOM; scales product beyond casual users without re-architecture.

Cost Implemented in skills; adoption cost is testing at scale (need real users with large collections) and surfacing progress (users trust long tasks more with feedback).

VPE
GitHub Actions CI with npm ci and node caching

Reproducible builds and sub-30s dependency install directly reduces cycle time and CI failure variance across team

Cost Zero, drop-in replacement for npm install in any npm project

Service worker cache eviction strategy (800-entry trim)

Prevents unbounded offline storage growth that would eventually break PWA reliability; shipping with known limits avoids post-launch production surprises

Cost Medium, requires monitoring cache hit/miss ratios and testing eviction under realistic workloads

Metadata validation and normalization (normalizeMetadata, normalizeBoundingBox)

Prevents downstream data corruption; catching invalid ranges early at import is 10x cheaper than debugging schema mismatches weeks later in production

Cost Low, reusable schema validators pay for themselves immediately on any API-fed pipeline

Multi-step skills with phase gates and structured output (generate-outfits/import-clothes)

Deterministic subagent orchestration with review-generate-verify gates catches quality regressions before assets reach users; unblocks parallel work without custom retry logic

Cost High, requires designing phase schemas and debugging agentic workflow failures, which have poor observability compared to traditional code

Local-first architecture with service worker caching

Enables feature parity offline; reduces server load and perceived latency, but increases test matrix complexity (online/offline/stale-cache paths)

Cost High, doubles testing burden; adds debugging friction for network-dependent features; requires monitoring cache coherence across app versions

CSS custom properties for centralized theming

Reduces design-to-code friction and enables runtime theme switching without full reload, improving velocity on visual iteration

Cost Near-zero, native CSS; only risk is prop naming consistency discipline

Vite hot-reload on 0.0.0.0 with selective dependency optimization

Unblocks remote development and reduces local rebuild time; selective optimization prevents cache invalidation churn

Cost Low, standard Vite idiom; document the optimization strategy to avoid future breakage

CISO
Environment variable loading via loadEnv allows configuration-driven switching between model names, image quality, and reference data paths without code changes

OpenAI API keys exposed in .env are easily leaked; no mention of secrets rotation, encryption at rest, or access controls on environment files

Cost Add dotenv validation, encrypt sensitive values, audit .env.example for hardcoded defaults, enforce CI secrets via sealed secrets or HashiCorp Vault

Metadata validation and normalization functions (normalizeMetadata, normalizeBoundingBox) ensure incoming API data conforms to schema ranges and formats before processing

Input validation only at schema layer; no sanitization for injection, path traversal, or resource exhaustion via oversized bounding boxes or unbounded metadata fields

Cost Add strict size limits, reject malicious patterns (../, null bytes), rate-limit metadata ingestion, log anomalies

Service worker implements trimming strategy to cap cached entries at a configurable limit (800) when a collection grows, freeing space by evicting oldest entries

Cache eviction is LRU-based with no integrity checks; attacker can poison cache with malicious images and force legitimate images out, or trigger DoS via cache thrashing

Cost Add cache entry signatures (HMAC-SHA256), validate on retrieval, implement cache versioning, audit cache clear on auth logout

GitHub Actions workflow uses actions/setup-node with built-in caching and runs npm ci (clean install) instead of npm install to ensure reproducible builds on CI

No supply-chain checks: lock file hash verification, SBOM generation, or dependency audit gates; compromised transitive deps (Sharp, Vite, OpenAI SDK) auto-propagate to main

Cost Add npm audit CI gate, enable Dependabot with auto-merge for security patches, require lock file signature, generate SBOM per build

Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network

Offline-first storage has no encryption; wardrobe JSON and cached images are cleartext in IndexedDB/Cache API; stolen phone or browser compromise exposes wardrobe metadata and personally identifiable image data

Cost Implement WalletStore or libsodium.js for client-side encryption; encrypt before cache write, decrypt on read; rotate key on sign-out

React components normalize API or generated image sources (data:, blob:, /api/) by routing them directly to img instead of through a third-party image optimization library

data: and blob: URLs bypass CSP protections; no Content-Security-Policy header blocks XSS via malicious AI-generated images with embedded script tags in EXIF or SVG payloads

Cost Add strict CSP (img-src https: 'self'), sanitize image EXIF/metadata, validate Content-Type headers, use nonce-based img-src for data: only if unavoidable

Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent

No authentication/authorization on subagent calls; no audit trail of who approved which outfit or image; no rate limits on OpenAI API usage; cost explosion or prompt injection via crafted garment metadata

Cost Add API key scoping per skill, log all agent invocations with user/timestamp, implement spending caps per user/day, validate agent output schemas strictly

SCRUM MASTER
Multi-step skills orchestrate parallel subagent work for visual asset generation with phase gates (review-generate-verify)

Enables scaling outfit generation across large wardrobes without engineering coordination overhead; reusable for future multi-step workflows

Cost Implement once, then standardize across remaining async tasks; moderate complexity in agent orchestration

Image generation prompts enforce identity preservation and garment fidelity by rejecting synthetic polish and requiring recognition of specific closure construction

Core differentiator: prevents AI-generated outfit photos from feeling generic or inaccurate; directly impacts user confidence and asset reusability

Cost Requires iterative prompt refinement and domain expertise; high sensitivity to model version; ongoing tuning per user feedback

Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near user before falling back to network

Addresses privacy-first use case and supports offline wardrobe browsing; reduces bandwidth costs and improves trust positioning; already partially shipped

Cost Service worker debugging tricky; cache strategy maintenance burden; expansion to multiple browser contexts adds complexity

Service worker implements trimming strategy to cap cached entries at configurable limit (800) when collection grows, freeing space by evicting oldest entries

Prevents unbounded cache growth and out-of-storage errors; critical for mobile devices and long-term retention of large wardrobes

Cost Already implemented; tuning the 800-entry threshold based on device storage profiles may require monitoring and A/B testing

Large-collection optimization in skills bounds batch sizes for parallel image generation and tracks every outfit as it processes to prevent unbounded memory usage

Unblocks generating lookbooks for 500+ garment collections; prevents OOM crashes and cost overruns on API calls; necessary for scaling to power users

Cost Requires profiling and batch-size tuning per hardware profile; instrumentation to track memory and API spend

Responsive image API middleware intercepts requests at standard path prefix and applies lazy format negotiation and width-based resizing via IPX storage adapter

Reduces image payload by 30-60% depending on device; improves time-to-interactive and reduces user data costs; leverages existing infrastructure

Cost Vendor lock-in to IPX library; format negotiation logic must handle legacy browser fallbacks

Metadata validation and normalization functions (normalizeMetadata, normalizeBoundingBox) ensure incoming API data conforms to schema ranges and formats before processing

Prevents data corruption and downstream processing errors from malformed garment imports; reduces user support burden

Cost Already implemented; extend as new metadata fields added (body type, care instructions, etc.)

Where the panel agrees

  • Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent (flagged_by: CTO; CPO; Scrum Master; signal_strength: 3)
  • Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network (flagged_by: CTO; CPO; VPE; Scrum Master; signal_strength: 4)
  • Service worker implements trimming strategy to cap cached entries at a configurable limit (800) when a collection grows, freeing space by evicting oldest entries (flagged_by: CTO; VPE; Scrum Master; signal_strength: 3)
  • Metadata validation and normalization functions (normalizeMetadata, normalizeBoundingBox) ensure incoming API data conforms to schema ranges and formats before processing (flagged_by: CTO; VPE; Scrum Master; signal_strength: 3)
  • CSS custom properties (--paper, --ink, --accent) centralize color theming across the application, enabling consistent branding without touching individual component styles (flagged_by: CTO; CPO; signal_strength: 2)
  • Responsive image API middleware intercepts requests at a standard path prefix and applies lazy format negotiation and width-based resizing via IPX storage adapter (flagged_by: CTO; CPO; Scrum Master; signal_strength: 3)

Tensions

  • Environment variable loading via loadEnv allows configuration-driven switching between model names, image quality, and reference data paths without code changes (severity: high; tension: CTO values deployment flexibility; CISO flags API key exposure in .env without encryption, secrets rotation, or access controls. Requires secrets management infrastructure (Vault, sealed-secrets) that adds adoption friction.)
  • Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network (severity: high; tension: CPO and VPE prize offline UX and reduced latency; CISO warns offline storage (IndexedDB/Cache API) stores wardrobe JSON and images in cleartext, exposing personally identifiable data on device compromise. Requires client-side encryption (libsodium.js) that doubles caching complexity.)
  • React components normalize API or generated image sources (data:, blob:, /api/) by routing them directly to img instead of through a third-party image optimization library (severity: medium; tension: CTO/CPO optimize for simplicity and format flexibility; CISO flags data: and blob: URLs bypass CSP, risking XSS via malicious EXIF or SVG payloads in AI-generated images. Requires strict CSP headers and EXIF sanitization.)
  • Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent (severity: high; tension: CTO/CPO/Scrum Master champion scalability and quality gates; CISO notes no authentication/authorization on subagent calls, no audit trail of approvals, and no rate limits on OpenAI API usage. Enables cost explosion and prompt injection via garment metadata. Requires API key scoping, logging, and spending caps.)
  • GitHub Actions workflow uses actions/setup-node with built-in caching and runs npm ci (clean install) instead of npm install to ensure reproducible builds on CI (severity: high; tension: VPE values reproducibility and speed; CISO flags no supply-chain controls (lock file verification, SBOM generation, npm audit gates). Compromised transitive deps (Sharp, Vite, OpenAI SDK) auto-propagate. Requires Dependabot, lock file signatures, and SBOM per build.)

Scorecard (the depth, if you want it)

72
Architecture

Local-first PWA with service worker caching (800-entry trim), multi-step phase-gated skills orchestrating parallel subagent work, and responsive image API middleware demonstrate coherent, transferable patterns. Metadata validation functions and CSS theming via custom properties show good separation of concerns. However, no authentication/authorization layer in agentic orchestration and storage (IndexedDB/Cache API) lack encryption design indicate incomplete offline-safety architecture. Will age well if security gaps close; currently couples OpenAI API keys into environment without scoping.

38
Maturity

End-to-end workflows (import, generate, curate) ship with bounded batch processing and phase gates. Service worker PWA is live. But production readiness gaps are severe: no error handling/retry logic evident for OpenAI API failures, no spending caps or rate limits on subagent calls (cost explosion risk), offline storage in cleartext exposes wardrobe metadata and images on device theft, API keys in plaintext .env with no rotation policy, CI/CD has no supply-chain controls (npm audit gates, lock file signatures, SBOM). README dated 6 days old (data stale). Large-collection testing (500+ garments) not documented. Fits 'Beta' claim but gaps must close before production scale.

22
Security

Critical gaps across all vectors: (1) Secrets: OpenAI API keys in plaintext .env, no encryption at rest, no rotation policy, no secrets manager. (2) Input validation: normalizeMetadata/normalizeBox catch schema drift but no sanitization for injection, path traversal, or oversized fields (DoS). (3) Offline storage: IndexedDB/Cache API store wardrobe JSON and images cleartext; stolen phone or browser compromise exposes personally identifiable data. (4) Agentic calls: no authentication, no audit trail of approvals, no rate limits (cost/prompt-injection risk). (5) Supply chain: npm ci reproducible but no Dependabot, no lock file signatures, no npm audit gates, no SBOM; compromised Sharp/Vite/OpenAI SDK auto-propagate. (6) Image sanitization: data:/blob: URLs bypass CSP; no EXIF stripping or XSS defense. (7) CI/CD: GitHub Actions reproducible but unguarded.

64
Reusability

Multi-step skills framework (phase gates, structured output, subagent orchestration) transfers cleanly to any multi-stage async workflow (data import, synthesis, validation). Metadata validation/normalization utilities are pure, reusable functions. Responsive image API middleware via IPX generalizes to any image-heavy app. Service worker cache eviction strategy (800-entry LRU trim) and Vite config patterns (hot-reload, selective optimization) are portable. CSS custom properties for theming enable white-label deployments. However, tight coupling to OpenAI SDK for image generation limits reuse; Sharp integration is direct, not abstracted. Local-first architecture transfers but requires encryption layer design for privacy-first ports. Overall: 60, 70% of technical decisions are vendorable; 30, 40% are domain-specific or OpenAI-coupled.

24
Documentation

README is 6 days old and summarizes features at surface level (import, generate, curate, offline) without diving into architecture, security posture, or operational maturity. Skill markdown files (.agents/skills/generate-outfits/SKILL.md, import-clothes/SKILL.md) explain phase-gate flow and bounded batching but lack prompt-engineering tuning details or large-collection test results. Outfit-image-prompt.md documents identity-preservation and fidelity rules but no validation metrics or failure modes. No docs on cache eviction strategy, API rate limits, secrets management, or error handling. .env.example lists OPENAI_API_KEY without explaining secrets rotation or scoping. CI workflow documented inline but no runbook for supply-chain failures or dependency audits. Docs overstate maturity ('production-ready PWA') without caveating security gaps.

0
Testing

ReadyBase ground truth confirms 0% test coverage (test presence proxy = 0/17, test quality = 0/3). No test files found in repo for import/generate workflows, service worker caching, metadata validation, image optimization, or React components. CI/CD runs 'npm run check' (likely lint-only; actual test gate absent). Shipped code lacks unit tests for normalizeMetadata/normalizeBoundingBox, service worker trimming logic, or phase-gate orchestration. No integration tests for import→generate→curate end-to-end flow. Large-collection stress tests (500+ garments) not evident. Error cases (API timeouts, invalid metadata, cache corruption) untested. This is a critical maturity blocker; no defense against regressions on scaling or prompt-engineering tuning.

Borrowing from this repo

target: understand this repo's architecture and extract reusable patterns
CallIdea & reasoningCost
adopt
Local-first architecture with service worker caching enables offline-capable PWAs by storing resources near the user before falling back to network

Core architectural pillar; public/sw.js is the single best file to read first for understanding the app's data-access layer

Read sw.js + manifest.webmanifest (~2 files); no implementation effort for extraction
adopt
Multi-step skills orchestrate parallel subagent work for visual asset generation tasks by defining phase gates (review-generate-verify) with structured output requirements per agent

Defines the agent execution model; SKILL.md files are the primary architecture docs for the agentic half of this repo

Read 2 SKILL.md files; pattern is implicit in prose, requires synthesis to formalize
adopt
Metadata validation and normalization functions (normalizeMetadata, normalizeBoundingBox) ensure incoming API data conforms to schema ranges and formats before processing

Clean, self-contained utility pattern; import-job-api.mjs shows the boundary between external API and internal schema

Single file read; functions are copy-paste reusable with type annotation additions
adopt
Service worker implements trimming strategy to cap cached entries at a configurable limit (800) when a collection grows, freeing space by evicting oldest entries

Extends the SW pattern with a concrete resource-management policy; completes the picture of how offline storage is governed

Already in sw.js (same file as idea 1); zero additional read cost
adapt
Responsive image API middleware intercepts requests at a standard path prefix and applies lazy format negotiation and width-based resizing via IPX storage adapter

Intercept-and-transform middleware shape is reusable; extract the routing pattern, replace IPX with any image backend

Read scripts/responsive-image-api.mjs; strip IPX-specific calls when reusing
skip
Image generation prompts enforce identity preservation and garment fidelity by rejecting synthetic polish and requiring recognition of specific closure construction, avoiding invented details

Domain-specific prompt tuning for fashion; no transferable architectural pattern

N/A
adopt
CSS custom properties (--paper, --ink, --accent) centralize color theming across the application, enabling consistent branding without touching individual component styles

Simplest reusable pattern in the repo; src/styles.css root-variable structure is a direct template for any multi-theme app

One file, one section; zero adaptation needed
adopt
Environment variable loading via loadEnv allows configuration-driven switching between model names, image quality, and reference data paths without code changes

Shows how the repo decouples model choice and data paths from code; .env.example is the canonical config contract to extract

Read .env.example; pattern is documentation, not code to port
adapt
GitHub Actions workflow uses actions/setup-node with built-in caching and runs npm ci (clean install) instead of npm install to ensure reproducible builds on CI

Standard CI pattern worth noting but not distinctive to this repo's architecture; adapt by applying npm ci + cache to target project

Trivial copy; add Dependabot config if supply-chain controls are needed
adopt
Large-collection optimization in skills bounds batch sizes for parallel image generation and tracks every outfit as it processes to prevent unbounded memory usage

Completes the agent orchestration pattern with concrete resource bounds; necessary to understand scale limits of the skill model

Documented in SKILL.md (same file as idea 2); zero additional cost
adapt
Import workflow preserves source images unchanged while extracting garments into a temporary workspace, deferring permanent import until approval, reducing risk of data loss

Staging-then-commit is a reusable UX/data-safety principle; extract the pattern, replace garment-specific steps with target domain

Read import-clothes/SKILL.md; domain vocabulary swap required
skip
Sharp library integration for image processing in scripts allows efficient validation, resizing, and metadata extraction before storing to local JSON database

Vendor library already in use; no architectural pattern to extract beyond 'use Sharp for image processing'

N/A
skip
Vite config hot-reload server binds to 0.0.0.0 to support development on any network interface, with selective dependency optimization only for core libraries (react, react-dom)

Dev tooling detail; not part of the app architecture; not worth including in a pattern extraction

N/A
skip
React Strict Mode wrapper in main.jsx enables additional debugging and warnings at development time without affecting production builds

Universal React best practice, not specific to this repo's architecture; already known

N/A
adapt
Web app manifest sets display type to standalone and matches background_color with theme_color to ensure seamless full-screen experience when launched from home screen

Part of the PWA architectural layer; extract as a two-field checklist item when documenting the local-first pattern

Already read alongside sw.js; no separate effort
skip
SVG icon at public/icon.svg uses linear gradient fills with high contrast background to create visual depth while maintaining clarity at small sizes

Aesthetic detail; no architectural or pattern extraction value

N/A

Read in this order: (1) public/sw.js to map the offline/caching architecture including the 800-entry trim policy; (2) .agents/skills/generate-outfits/SKILL.md and import-clothes/SKILL.md to extract the phase-gate agent orchestration model with batch bounds; (3) scripts/import-job-api.mjs for the normalize* utility pattern; (4) src/styles.css root block for the CSS variable theming system; (5) .env.example for the config contract. After reading, write a one-page architecture summary covering four pillars: local-first SW layer, agent skill orchestration, schema validation boundary, and CSS token theming. Biggest risk: the SKILL.md files likely contain implicit conventions (agent handoff contracts, output schema shapes) that are not fully self-describing, plan a second pass reading any referenced schema or prompt files to surface hidden coupling before treating the orchestration pattern as fully portable.

ReadyBase raw signals+
Documentation · README 6 days old → 10/1510
Test coverage · 0% test presence (proxy, set READYBASE_ALLOW_EXEC for real coverage) → 0/170
Test quality · no tests found → 0/30
CI/CD · CI: tests=false lint=false deploy=true → 5/105
Complexity · max 650 lines/file, 0% of files >800L (0/5), 5 funcs>50 → 7/107
Build · 0 env vars, docker=false, ci=true → 5/105
Dependencies · no dependencies → 15/1515
Bus factor · 1 unique committers → 0/150
Structure · 2 packages, avg depth 1.0 → 3/53
Method & data egress+
Local · Ollama336273 in / 27961 out · 483 calls
Cloud · Claude3111465 in / 84712 out · 41 calls · $2.5110
Contact us if you want to run this on your repo → Local, no-telemetry binary, your code never leaves your machine.