Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub17 установок в других каталогах

Об этом скилле

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 recipe
  • category (string): One of: Entree, Side, Soup, Dessert
  • components (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 information
  • images (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'
  • unit: Unit of measurement
    • Volume: 'cup', 'tbsp', 'tsp'
    • Weight: 'oz', 'lb', 'g', 'kg'
    • Count: 'large', 'medium', 'small', 'cloves', 'whole'
    • Other: 'recipe', 'pinch', 'dash'
  • ingredient: The ingredient name
    • Descriptive: 'all-purpose flour', 'cremini mushrooms'
    • Simple: 'carrots', 'garlic', 'olive oil'

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'

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:

  1. Entree
  2. Side
  3. Soup
  4. Dessert

Defined in /js/components/RecipeGrid.js:20

Notes Field Handling

The RecipeModal.js component handles notes in two formats:

  1. String: Renders as single paragraph
  2. 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
Полный SKILL.md на GitHub

Установить recipe-manager в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

skill-report.json

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), без исполняемых скриптов.

Похожие скиллы

Сравнить recipe-manager с