recipe-new
Installation
SKILL.md
Your objective is to save the current pipeline as a reusable CocoRecipe template.
Pre-flight Check
Check that .cocoplus/flow.json exists and is valid JSON. If not:
Output: "No valid flow.json found. A completed pipeline is required to create a recipe. Run $plan and $build first." Then stop.
Check that ~/.coco/plugins/cocoplus/recipes/ exists (Windows: %APPDATA%\coco\plugins\cocoplus\recipes\). If not writable, output the error and stop.
Check for Name Conflict
If ~/.coco/plugins/cocoplus/recipes/<name>.json.template already exists:
Output: "A recipe named '' already exists. Overwrite it or choose a different name? (overwrite/rename)"
Wait for response.