with one click
recipe-manager
Helps add, edit, validate, and manage recipe data in recipes.js. Use this when the user wants to create new recipes, modify existing ones, fix recipe formatting, or validate recipe structure.
Helps add, edit, validate, and manage recipe data in recipes.js. Use this when the user wants to create new recipes, modify existing ones, fix recipe formatting, or validate recipe structure.
| name | recipe-manager |
| description | Helps add, edit, validate, and manage recipe data in recipes.js. Use this when the user wants to create new recipes, modify existing ones, fix recipe formatting, or validate recipe structure. |
You specialize in managing recipe data for CookMode V2. You help users create, edit, and maintain recipe entries in the recipes.js file following the established schema and patterns.
Invoke this skill when the user wants to:
'recipe-slug': {
name: 'Display Name',
category: 'Entree' | 'Side' | 'Soup' | 'Dessert',
components: {
'Component Name': [
{
amount: number | string, // 2, 0.5, '1/4', '1/3'
unit: string, // 'cup', 'tbsp', 'oz', 'lb', etc.
ingredient: string, // 'carrots', 'olive oil'
prep: string // Optional: 'diced', 'minced'
}
]
},
instructions: [
'Step 1 instructions',
'Step 2 instructions'
],
notes: 'Single string' | ['Array', 'of', 'strings'],
images: ['url1.jpg', 'url2.jpg'] // optional
}
name (string): Display name of the recipecategory (string): One of: Entree, Side, Soup, Dessertcomponents (object): Ingredient lists grouped by component (array of objects)instructions (array): Step-by-step cooking instructionsnotes (string or array): Additional tips or informationimages (array): URLs to recipe photosamount: Number or fraction string
2, 0.5, 1.5'1/2', '1/4', '1/3'unit: Unit of measurement
'cup', 'tbsp', 'tsp''oz', 'lb', 'g', 'kg''large', 'medium', 'small', 'cloves', 'whole''recipe', 'pinch', 'dash'ingredient: The ingredient name
'all-purpose flour', 'cremini mushrooms''carrots', 'garlic', 'olive oil'prep: Preparation instructions
'diced', 'minced', 'sliced', 'chopped''softened', 'melted', 'room temperature''divided', 'plus more to taste', 'Pinot Noir recommended'// Simple ingredient
{ amount: 2, unit: 'cups', ingredient: 'flour' }
// With preparation
{ amount: 1, unit: 'large', ingredient: 'onion', prep: 'diced' }
// Fraction amount
{ amount: '1/4', unit: 'tsp', ingredient: 'salt' }
// Complex prep note
{ amount: 5, unit: 'large', ingredient: 'carrots', prep: 'peeled and sliced into large chunks' }
// Non-standard unit
{ amount: 1, unit: 'recipe', ingredient: 'mashed potatoes', prep: 'or serve with rice' }
Much simpler with object format!
function scaleIngredient(ingredientObj, multiplier) {
const scaledAmount = parseAmount(ingredientObj.amount) * multiplier;
return {
...ingredientObj,
amount: scaledAmount
};
}
function parseAmount(amount) {
if (typeof amount === 'number') return amount;
if (amount.includes('/')) {
const [num, den] = amount.split('/').map(Number);
return num / den;
}
return parseFloat(amount);
}
function formatIngredient(obj, orderCount = 1) {
const scaledAmount = parseAmount(obj.amount) * orderCount;
const prep = obj.prep ? `, ${obj.prep}` : '';
return `${scaledAmount.toFixed(2)} ${obj.unit} ${obj.ingredient}${prep}`;
}
// Examples:
// { amount: 2, unit: 'cups', ingredient: 'flour' }
// → "2.00 cups flour"
// { amount: 1, unit: 'large', ingredient: 'onion', prep: 'diced' }
// → "1.00 large onion, diced"
// { amount: '1/4', unit: 'tsp', ingredient: 'salt', prep: 'plus more to taste' }
// → "0.25 tsp salt, plus more to taste"
Recipes display in this category order:
Defined in /js/components/RecipeGrid.js:20
The RecipeModal.js component handles notes in two formats:
// Single note
notes: "Use a hand mixer for whipped texture."
// Multiple notes
notes: [
"Use a hand mixer for whipped texture.",
"Pairs well with mushroom bourguignon."
]
Common component patterns:
When adding/editing recipes, verify:
amount, unit, ingredient fieldsamount is a number or fraction string ('1/2', '1/4')unit is a string (never empty)ingredient is a string (never empty)prep is optional stringamount, unit, ingredient fieldsprep field for preparation notesOld string format:
'2 cups all-purpose flour, sifted'
New object format:
{ amount: 2, unit: 'cups', ingredient: 'all-purpose flour', prep: 'sifted' }
Use ChatGPT/Claude to batch convert:
"Convert these recipe ingredients to structured format with amount, unit, ingredient, prep fields"
When importing from external sources:
recipes.js: /Users/adamfehse/Documents/gitrepos/cookmodeV2/recipes.js
This file is loaded as a global window.RECIPES object and accessed by:
App.js - Passes to RecipeGrid and RecipeModalRecipeGrid.js - Displays cards and filtersRecipeModal.js - Shows full recipe details'chocolate-chip-cookies': {
name: 'Chocolate Chip Cookies',
category: 'Dessert',
components: {
'Dough': [
{ amount: 2, unit: 'cups', ingredient: 'all-purpose flour' },
{ amount: 1, unit: 'tsp', ingredient: 'baking soda' },
{ amount: 0.5, unit: 'tsp', ingredient: 'salt' },
{ amount: 1, unit: 'cup', ingredient: 'butter', prep: 'softened' },
{ amount: 0.75, unit: 'cup', ingredient: 'granulated sugar' },
{ amount: 0.75, unit: 'cup', ingredient: 'brown sugar' },
{ amount: 2, unit: 'large', ingredient: 'eggs' },
{ amount: 2, unit: 'tsp', ingredient: 'vanilla extract' }
],
'Mix-ins': [
{ amount: 2, unit: 'cups', ingredient: 'chocolate chips' }
]
},
instructions: [
'Preheat oven to 375°F.',
'Mix flour, baking soda, and salt in a bowl.',
'Cream butter and sugars until fluffy.',
'Beat in eggs and vanilla.',
'Gradually blend in flour mixture.',
'Stir in chocolate chips.',
'Drop rounded tablespoons onto ungreased cookie sheets.',
'Bake 9-11 minutes or until golden brown.'
],
notes: 'For chewier cookies, slightly underbake and let cool on baking sheet.'
}
Use this to convert existing recipes:
Convert this recipe to JavaScript object format with the following structure:
- amount: number or fraction string ('1/2', '1/4')
- unit: string (cup, tbsp, tsp, oz, lb, etc.)
- ingredient: string (the ingredient name)
- prep: string (optional, preparation notes like 'diced', 'softened')
[Paste recipe here]
Remember: Keep recipes cook-friendly and maintainable!
低频巡检 Skill for ordinary non-Goal Codex controller windows that need active, ETA-aware monitoring of background worker/review/planning threads. Use to keep the monitor alive until a terminal state, reduce context pollution and token spend, avoid over-polling, minimize expected wasted waiting time, and decide the next allowed action only after a final report, failure, or blocker appears.
Structured persuasion for tech leads, PMs, and founders—not activity logs. Five scenarios (kickoff, status update, wrap-up, investor pitch, solution selling) on one 5-part framework (Hook→Context→Proposal→Evidence→Ask). AI prompts for missing materials and audience context; pre-submit checklist. Claude Code plugin; Cursor, Codex, and chat via prompts.
Rewrite, edit, tighten, punch up, or diagnose user-provided prose while preserving the user's voice, intent, facts, stance, rhythm, humor, and formality. Use for emails, posts, essays, internal docs, website copy, speeches, bios, captions, cover letters, or requests to make writing clearer, shorter, more natural, less AI-sounding, more fun, more persuasive, warmer, sharper, or more like the user. Do not use for pure from-scratch drafting unless the user provides source text or asks for a draft in an established voice.
Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.
Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing/typography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.
Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.