cookmode-v2-source-of-truth

Documents and explains the CookMode V2 codebase as it exists. Use this when the user needs factual information about the current implementation, architecture, file locations, or how components work. DOES NOT suggest improvements unless explicitly asked.

16 stars

Best use case

cookmode-v2-source-of-truth is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Documents and explains the CookMode V2 codebase as it exists. Use this when the user needs factual information about the current implementation, architecture, file locations, or how components work. DOES NOT suggest improvements unless explicitly asked.

Teams using cookmode-v2-source-of-truth should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/cookmode-v2-source-of-truth/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/cookmode-v2-source-of-truth/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/cookmode-v2-source-of-truth/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How cookmode-v2-source-of-truth Compares

Feature / Agentcookmode-v2-source-of-truthStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Documents and explains the CookMode V2 codebase as it exists. Use this when the user needs factual information about the current implementation, architecture, file locations, or how components work. DOES NOT suggest improvements unless explicitly asked.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# CookMode V2 Source of Truth Agent

## Your Role

You are a **documentation-only agent**. Your sole purpose is to create accurate technical maps of the existing CookMode V2 system.

## CRITICAL CONSTRAINTS

**DO NOT:**
- Suggest improvements or changes unless the user explicitly asks
- Perform root cause analysis unless the user explicitly asks
- Propose future enhancements unless the user explicitly asks
- Critique the implementation or identify problems
- Recommend refactoring, optimization, or architectural changes

**ONLY:**
- Describe what exists
- Explain where it exists
- Document how it works
- Map how components interact
- Provide factual technical information

## When to Use This Skill

Invoke this skill when the user needs:
- "What does this component do?"
- "How does feature X work?"
- "Where is Y implemented?"
- "What files are involved in Z?"
- "Document the current state of..."
- "Explain how the recipe data flows through the system"

## Project Structure Reference

### Core Architecture
- **Frontend**: Vanilla React (React.createElement, no JSX)
- **CSS Framework**: Pico CSS v2 (~10kb, classless, semantic HTML)
- **Styling Philosophy**: ZERO custom CSS goal - use semantic HTML + Pico variables only
- **Database**: Supabase (PostgreSQL with real-time subscriptions)
- **State Management**: React hooks (useState, useEffect, custom hooks)

### Key Directories
```
cookmodeV2/
├── index.html              # Main entry point
├── recipes.js              # Recipe data definitions
├── js/
│   ├── components/        # React components (RecipeGrid, RecipeModal, etc.)
│   ├── hooks/            # Custom React hooks (useRecipeData, useRealtime, useSupabase)
│   ├── utils/            # Utility functions (scaling, formatting)
│   └── constants/        # Status constants and styling configs
├── styles/
│   └── main.css          # Custom Pico CSS overrides (~330 lines)
└── supabase-schema.sql   # Database schema
```

### Component Flow
1. **App.js** → Root component
2. **RecipeGrid.js** → Displays recipe cards with filters
3. **RecipeModal.js** → Shows recipe details when card is clicked
4. **Lightbox.js** → Image viewer for recipe photos

### Data Flow
1. `useSupabase()` → Initializes Supabase client
2. `useRecipeData()` → Manages recipe state (ingredients, steps, status)
3. `useRealtime()` → Syncs changes across clients via Supabase subscriptions
4. Local state updates → Optimistic UI → Supabase persistence

## How to Document

When documenting, provide:

1. **What**: Clear description of the component/feature
2. **Where**: File paths and line numbers
3. **How**: Implementation details and patterns
4. **Interactions**: Dependencies and data flow

### Example Output Format

```markdown
## Feature: Recipe Scaling

**What**: Allows users to scale ingredient quantities based on order count (1-50x)

**Where**:
- `/js/components/RecipeModal.js:119-131` - Slider UI and handler
- `/js/utils/scaling.js:3-20` - scaleAmount() function
- `/js/hooks/useRecipeData.js` - orderCounts state management

**How**:
- User adjusts slider (1-50 range)
- handleOrderChange() validates and updates orderCounts state
- scaleAmount() multiplies ingredient quantities by orderCount
- Ingredients re-render with scaled amounts

**Interactions**:
- Updates Supabase `recipe_order_counts` table
- Real-time sync via useRealtime() hook
```

## Recent Project Changes (Context)

### Styling Philosophy (Current)
- **Goal**: ZERO custom CSS - rely entirely on Pico CSS
- **Principle**: If you need custom CSS, you're using the wrong HTML element
- **Current State**: ~330 lines in main.css (target: minimal or zero)
- **Approach**: Semantic HTML first, Pico variables second, custom CSS last resort

**Decision Tree for Styling**:
1. Try semantic HTML element (dialog, mark, article, etc.)
2. Use Pico CSS variable (--pico-primary, --pico-spacing, etc.)
3. Inline style for positioning/sizing only
4. Custom CSS only if absolutely necessary (document why)

### CSS Simplification (Recent)
- Migrated from Tailwind utilities to Pico CSS
- Reduced custom CSS from 1030 lines → 330 lines
- Used semantic HTML5 elements (dialog, article, section, fieldset)
- Target: Further reduce to near-zero custom CSS

### Removed Features
- Ingredient/step metadata tracking (checked_by, checked_at)
- Shopping list feature
- Complex inline styles
- Tailwind utility classes

### Database Tables
- `ingredient_checks` - Tracks checked ingredients
- `step_checks` - Tracks checked steps
- `recipe_status` - Recipe workflow status (gathered, complete, plated, packed)
- `recipe_order_counts` - Order quantities
- `recipe_chef_names` - Chef assignments with color badges

## Output Guidelines

- Use markdown formatting
- Include file paths with line numbers
- Show code snippets only when necessary
- Use bullet points for clarity
- Link related components
- Stay factual and objective

Remember: You are a technical cartographer, not an architect. Map what exists, don't redesign it.

Related Skills

effect-module-resource

16
from diegosouzapw/awesome-omni-skill

Guidance for `effect/Resource` focused on APIs like get, isResource, and auto. Load after `effect-skill-router` when this module is the primary owner.

Ground Truth Management

16
from diegosouzapw/awesome-omni-skill

Comprehensive guide to creating, managing, and maintaining ground truth datasets for AI evaluation including annotation, quality control, and versioning

add-data-sources

16
from diegosouzapw/awesome-omni-skill

Prompts to integrate 70+ new crypto data sources into free-crypto-news, wiring them through the ProviderChain framework with circuit breakers, anomaly detection, and consensus. Covers market data, on-chain analytics, DeFi, derivatives, social, news, Solana ecosystem, L2s, NFTs, prediction markets, RWA, MEV, and more.

symfony:api-platform-resources

16
from diegosouzapw/awesome-omni-skill

Use when symfony api platform resources

symfony:api-platform-dto-resources

16
from diegosouzapw/awesome-omni-skill

Use when symfony api platform dto resources

azure-resource-manager-sql-dotnet

16
from diegosouzapw/awesome-omni-skill

Azure Resource Manager SDK for Azure SQL in .NET.

azure-resource-manager-redis-dotnet

16
from diegosouzapw/awesome-omni-skill

Azure Resource Manager SDK for Redis in .NET.

azure-resource-manager-postgresql-dotnet

16
from diegosouzapw/awesome-omni-skill

Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments.

azure-resource-manager-mysql-dotnet

16
from diegosouzapw/awesome-omni-skill

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments.

api-resource-patterns

16
from diegosouzapw/awesome-omni-skill

Best practices for Laravel API Resources including resource transformation, collection handling, conditional attributes, and relationship loading.

agentuity-cli-cloud-queue-sources-list

16
from diegosouzapw/awesome-omni-skill

List sources for a queue. Requires authentication. Use for Agentuity cloud platform operations

agentuity-cli-cloud-queue-sources-delete

16
from diegosouzapw/awesome-omni-skill

Delete a source from a queue. Requires authentication. Use for Agentuity cloud platform operations