Generates a human-friendly cheatsheet file from a CRAFT cookbook
Each entry carries a standard 5-field header plus a body rendered at three detail levels: Brief (1 sentence), Simple (2โ3 sentences, default), and Detailed (1โ2 paragraphs). Supports single-cookbook or ALL-cookbooks mode, four output formats (txt, md, docx, html), and auto-revises stale entries when source recipe versions advance.
Cookbook Cheatsheet Generator
TL;DR
How To Start
STEP 1Configure the Generation
-
cookbook_id
· string · required
Cookbook to generate a cheatsheet for. Options: CORE, COWORK, CWK-ADM-VOL1..VOL8, ADMIN, BRAND-ID, STUDIO, ALL. Legacy ADMIN excluded from ALL unless include_legacy=true. -
level
· string · optional · default: “all” · options: brief | simple | detailed | all
Detail level. “all” renders all three levels in one file. -
format
· string · optional · default: “txt” · options: txt | md | docx | html | all
Output format. “txt” is the CRAFT canonical plaintext. “all” produces every format. -
mode
· string · optional · default: “auto” · options: auto | report | both
Stale-entry handling. “auto” overwrites stale entries. “report” emits drift report only. “both” does both. -
dry_run
· boolean · optional · default: false
Validate everything but write nothing. Preview to stdout. -
include_legacy
· boolean · optional · default: false
When cookbook_id=ALL, include legacy ADMIN cookbook. Default false (R-8 gate). -
force
· boolean · optional · default: false
Regenerate even if source hash unchanged. -
output_dir
· string · optional · default: “cheatsheets/”
Destination directory for cheatsheet files.
Usage Examples
EXAMPLE 1Standard single-cookbook generation
EXAMPLE 2Drift report only
EXAMPLE 3All cookbooks, force regeneration
How AI Reads This Recipe
- Validate parameters. Verify cookbook_id is valid. If ALL, enumerate active cookbooks via filesystem discovery. Exclude legacy ADMIN unless include_legacy=true. Verify output_dir. Check format=html pipeline availability.
- Load source cookbook. Read the cookbook file. Compute sha256. Parse into recipe model (id, title, version, category, status, purpose, quick_reference, body_text). If parse fails, abort this cookbook and continue.
- Detect drift. Compare per-recipe versions against existing cheatsheet. Identify stale entries. If source hash unchanged and force=false, short-circuit.
- Render entries. For each recipe: emit standard 5-field header. Render Brief (1 sentence), Simple (2–3 sentences), and/or Detailed (1–2 paragraphs) body per selected level. Insert “BODY GENERATION DEFERRED” stub if generation fails.
- Write output per mode. Auto: write cheatsheet, overwrite stale. Report: drift report only. Both: write both. Dry-run: suppress all writes.
- Render alternate formats. Markdown per template notes. Docx via docx skill. HTML via CWK-ADM-040 pipeline (skip if unavailable).
- Version and hash. Compute cheatsheet version (first gen = v1.00a). Embed header block with version, timestamp, source path, sha256, recipe count, generator ID.
- Report. Run summary: cookbooks processed, entries rendered, stale entries revised, files produced, failures.
When To Use This Recipe
Recipe FAQ
What’s the difference between Brief, Simple, and Detailed levels?
How does drift detection work?
What formats are supported?
Is the cheatsheet the source of truth?
What are orchestrator-class recipes?
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.
