Validate the structural integrity of a recipe after it has been created or modified in the cookbook file
Validates the structural integrity of a recipe after it has been created or modified in the cookbook file. Catches errors before they get committed โ missing fields, naming violations, duplicate IDs, infrastructure count drift, and more. Run this automatically after every recipe creation or modification workflow. Use full mode for new recipes and structural changes. Use quick mode for minor wording edits. Always address FIX_REQUIRED issues before committing the cookbook.
Cowork Recipe Integrity Validator
TL;DR
How To Start
STEP 1Specify the Recipe to Validate
-
recipe_id_to_validate
· string · required
The recipe ID that was just created or modified. Focuses validation on that specific recipe while also running cookbook-wide integrity checks. -
validation_mode
· string · optional · default: full
Validation depth. Options: “full” (all 10 checks plus cross-references), “quick” (checks A–F only — structural, skip cross-reference and infrastructure checks). -
called_by
· string · optional
Recipe ID of the calling recipe, used for audit logging.
Usage Examples
How AI Reads This Recipe
- LOAD THE RECIPE under review by reading the cookbook file and locating the target recipe via Grep. Parse the full Recipe() object. If the recipe is not found, produce a FIX_REQUIRED report immediately.
- EXECUTE THE 10-POINT CHECKLIST (Fernand persona). In full mode, run all 10 checks; in quick mode, run A–F only. Checks: A — Required Fields present. B — Recipe ID matches RCP-CWK-NNN-NAME-vN.NNa. C — Version string matches vN.NNa. D — Category is valid (SESSION, SAFETY, BRIDGE, or QA). E — Dependencies exist in cookbook or are Core references. F — Step numbering is sequential. G — Description not copy-pasted from parent. H — Required CRAFT status markers present. I — No duplicate recipe IDs. J — Infrastructure counts match actual.
- PRODUCE RECIPE_REVIEW_REPORT with passed/failed counts, issue details for each failure, and an ACCEPT or FIX_REQUIRED verdict.
- REPORT AND HAND OFF. If ACCEPT, report success. If FIX_REQUIRED, return control to Cat for remediation with specific failure details. Log via audit trail (R-12).
When to Use This Recipe
- Have just created a new recipe in the cookbook and need to verify structural integrity before committing.
- Have modified an existing recipe and want to confirm no structural damage was introduced.
- Want to check infrastructure count accuracy after multiple recipe additions or deletions.
- Are building a recipe creation workflow and need a post-creation validation gate.
Recipe FAQ
Q.What are the 10 checks?
Q.What is quick mode?
Q.Who is Fernand?
Q.What does FIX_REQUIRED mean?
Q.What are valid Cowork categories?
Q.How does the audit trail work?
Version History
Get this recipe with CRAFT for Claude Cowork
Cowork recipes ship bundled with CRAFT for Claude Cowork — there’s no separate download. Clone the framework once, and your AI runs every recipe automatically when invoked.
Pull anytime to stay on the latest version — free to clone, no login or email required.
Then start your session
Once CRAFT is in your project folder, open a new Cowork session and ask Claude to initialize. For example:
You
Claude
Not familiar with Git? Download as a ZIP
No command line needed. Just download, move, and unzip:
- Open the CRAFT framework repo on GitHub.
- Click the green Code button, then choose Download ZIP.
- Move the downloaded ZIP into your Claude Cowork project folder.
- Unzip it: double-click on Mac, or right-click → Extract All on Windows.
