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…
Об этом скилле
Recipe Manager Skill
Your Role
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.
When to Use This Skill
Invoke this skill when the user wants to:
- Add a new recipe
- Edit an existing recipe
- Fix recipe formatting or structure
- Validate recipe data
- Convert recipe formats
- Bulk update recipe properties
Recipe Data Schema (Structured Object Format)
Standard Recipe Structure
'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
}
Required Fields
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 instructions
Optional Fields
notes(string or array): Additional tips or informationimages(array): URLs to recipe photos
Ingredient Object Structure
Required Fields (per ingredient)
amount: Number or fraction string- Numbers:
2,0.5,1.5 - Fractions:
'1/2','1/4','1/3'
- Numbers:
unit: Unit of measurement- Volume:
'cup','tbsp','tsp' - Weight:
'oz','lb','g','kg' - Count:
'large','medium','small','cloves','whole' - Other:
'recipe','pinch','dash'
- Volume:
ingredient: The ingredient name- Descriptive:
'all-purpose flour','cremini mushrooms' - Simple:
'carrots','garlic','olive oil'
- Descriptive:
Optional Fields (per ingredient)
prep: Preparation instructions- Cutting:
'diced','minced','sliced','chopped' - State:
'softened','melted','room temperature' - Additional:
'divided','plus more to taste','Pinot Noir recommended'
- Cutting:
Examples
// 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' }
Scaling Logic (New)
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);
}
Display Formatting
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"
Category Order
Recipes display in this category order:
- Entree
- Side
- Soup
- Dessert
Defined in /js/components/RecipeGrid.js:20
Notes Field Handling
The RecipeModal.js component handles notes in two formats:
- String: Renders as single paragraph
- Array: Renders each item as separate paragraph
// 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."
]
Component Groups
Common component patterns:
- Simple recipes: Single component (e.g., 'Ingredients')
- Complex recipes: Multiple components (e.g., 'Dough', 'Filling', 'Topping')
- Sauces: Often separate component (e.g., 'Base', 'Sauce')
Validation Checklist
When adding/editing recipes, verify:
- Slug is kebab-case (lowercase, hyphens)
- Name is human-readable
- Category is one of: Entree
Установить recipe-manager в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл recipe-manager?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл recipe-manager запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic