بنقرة واحدة
validate-recipes
Check Cooklang recipes for syntax errors, warnings, and best practice issues
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Check Cooklang recipes for syntax errors, warnings, and best practice issues
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Import recipes from URLs or plain text and convert to Cooklang format
Create a new Cooklang recipe interactively from a description or template
Convert Cooklang recipes to Markdown, JSON, YAML, or other formats
Track kitchen inventory, find expiring items, and discover recipes you can make now
Plan weekly meals interactively and generate combined shopping lists
Structure recipe folders, audit metadata consistency, and set up configuration files
| name | validate-recipes |
| description | Check Cooklang recipes for syntax errors, warnings, and best practice issues |
Check .cook files for problems using CookCLI's doctor command. Reports:
Use this skill when:
Ask: "What should I validate?"
.cook files in a folderFor syntax validation:
cook doctor validate
For strict mode (CI/CD):
cook doctor validate --strict
For specific directory:
cook doctor validate -b /path/to/recipes
Present findings organized by severity:
For common issues, offer to fix automatically:
| Issue | Fix |
|---|---|
Deprecated >> metadata | Convert to YAML frontmatter |
Missing servings | Add with sensible default |
Multi-word ingredient without {} | Add braces |
| Missing blank lines between steps | Add them |
Ask: "Would you like me to fix these issues?"
Check aisle configuration completeness:
cook doctor aisle
This reports ingredients not categorized in aisle.conf.
User: "Validate my recipes"
Run:
cook doctor validate
Output interpretation:
Checking recipes...
ERROR in dinner/Pasta.cook:15
Invalid ingredient syntax: @ground black pepper
Fix: Use @ground black pepper{} for multi-word ingredients
WARNING in breakfast/Pancakes.cook:1
Deprecated metadata syntax: >> title: Pancakes
Fix: Use YAML frontmatter instead
INFO in desserts/Cake.cook
Missing 'servings' in metadata
Suggestion: Add servings for proper scaling
Checked 24 recipes: 1 error, 1 warning, 1 suggestion
Offering fix: "I found 1 error and 1 warning. Would you like me to fix them?
@ground black pepper to @ground black pepper{}>> metadata to YAML frontmatter"| Error | Cause | Solution |
|---|---|---|
| Invalid ingredient | Multi-word without {} | Add braces: @olive oil{} |
| Invalid quantity | Missing % for unit | Add: {500%g} not {500g} |
| Deprecated metadata | Using >> syntax | Convert to YAML frontmatter |
| Broken reference | Recipe file not found | Check path in @./path/Recipe{} |
| Invalid timer | Bad format | Use ~{15%minutes} |
Strict mode (--strict) treats warnings as errors. Use for:
cook doctor # Run all checks
cook doctor validate # Syntax validation only
cook doctor validate --strict # Strict mode
cook doctor aisle # Check aisle.conf coverage
cook doctor -b ~/recipes # Specify recipe directory