[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DKF674YPCE3P3K87X7MGW0":3,"skill-same:01M7DKF674YPCE3P3K87X7MGW0":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7DKF674YPCE3P3K87X7MGW0","printable-recipe-card",null,"Turn any online recipe (a HelloFresh link, a food blog, AllRecipes, NYT Cooking, Serious Eats, Minimalist Baker, a pasted recipe, or a screenshot or PDF of one) into a clean 2-page printable recipe card PDF. Page 1 has the photo, the ingredients, and an info bar. Page 2 is all steps. It doubles as an offline archive copy. Along the way it fixes broken recipe data such as missing prep steps, \"1 unit\" amounts, meat stock in veggie recipes, and inconsistent names. Use this whenever the user shares a recipe link or recipe text and wants a card, printable, PDF, offline copy, or \"make this one into a card like the others\", or says a site's print or PDF button is broken. Also use it for follow-ups like \"do this one too\" or \"and this one\".","geekbrownbear\u002FAI-Skills","geekbrownbear","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F28054088?v=4","01M7DKF4KX8FDPCG71DT38G3AR","Abhi Saini","01M7DKF4N2PGX4VBQMV8JD3VQC",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"printable-recipe-card\"\ndescription: \"Turn any online recipe (a HelloFresh link, a food blog, AllRecipes, NYT Cooking, Serious Eats, Minimalist Baker, a pasted recipe, or a screenshot or PDF of one) into a clean 2-page printable recipe card PDF. Page 1 has the photo, the ingredients, and an info bar. Page 2 is all steps. It doubles as an offline archive copy. Along the way it fixes broken recipe data such as missing prep steps, \\\"1 unit\\\" amounts, meat stock in veggie recipes, and inconsistent names. Use this whenever the user shares a recipe link or recipe text and wants a card, printable, PDF, offline copy, or \\\"make this one into a card like the others\\\", or says a site's print or PDF button is broken. Also use it for follow-ups like \\\"do this one too\\\" or \\\"and this one\\\".\"\n---\n\n# Printable Recipe Card\n\nThe user prints these cards to cook from instead of reading a phone. They also keep the PDFs\nas an offline archive in case a recipe site disappears. So each card needs to be:\n- **Complete**: every ingredient, quantity, temperature, and time from the original.\n- **Correct**: obvious data errors are fixed.\n- **Easy to read at the stove.**\n\nThe look is based on HelloFresh's printed cards: a big photo, a green ingredient panel, and\nsteps with titles and bullets, with ingredient names in bold.\n\n## Configuration\n\nThis skill can save each finished card to a Google Drive folder and log it in a Google Sheet\n(step 8). Those two destinations belong to each user, so they are **not filled in**. Fill them\nin here, or let the skill ask on first use.\n\n```\nLOCAL_FOLDER      = \u003CUNSET>   # full path of the recipe-card folder on the user's computer,\n                              # inside a Google Drive for desktop synced location\nDRIVE_FOLDER_ID   = \u003CUNSET>   # ID of that same folder in Google Drive (the string after \u002Ffolders\u002F in its URL)\nSPREADSHEET_ID    = \u003CUNSET>   # ID of the tracking sheet (the string between \u002Fd\u002F and \u002Fedit in its URL)\nSHEET_TAB         = Sheet1    # tab name inside the sheet\n```\n\n**Check these before starting any recipe.** If any value still reads `\u003CUNSET>`:\n1. Say in one line that Drive saving and sheet logging are not set up yet.\n2. Ask the user (AskUserQuestion works well) for the three values, or whether to skip Drive and\n   the sheet and just deliver the PDF. Tell them where to find each one:\n   - Folder path: right-click the folder in File Explorer or Finder and copy its path. It must be\n     inside the Google Drive for desktop folder so it syncs.\n   - Folder ID: open the folder in drive.google.com and copy the last part of the URL.\n   - Sheet ID: open the sheet and copy the part of the URL between `\u002Fd\u002F` and `\u002Fedit`.\n3. Use the answers for the rest of the session. Do not edit this file. Suggest they paste the\n   values into the Configuration block (or save them in their memory or notes) so they are not\n   asked again.\n4. If they choose to skip, run steps 1 to 7 only and say that step 8 was skipped by choice.\n\nIf the sheet is brand new and row 1 is empty, write the header row first: Name, Course, Cuisine,\nType, Saved Recipe, Original Recipe. If the sheet already has a different column layout, ask the\nuser how to map the six values instead of changing their layout.\n\nThe Drive and Sheets connectors run as whichever Google account the user connected to Claude.\nThat account must be able to see the folder and edit the sheet. If the folder lives in a\ndifferent Google account (a personal Drive for desktop sync, say), the folder and sheet need to\nbe shared with the connected account.\n\n## Standing preferences\n\n- **Page 1** has:\n  - a header: title, subtitle, a stats line (time, servings, calories, protein), and up to 3 tags\n  - the hero photo on the left, with ingredients to its right\n  - a full-width info bar along the bottom: the intro blurb (no \"Hello\" heading) and Before you start, Cooking tools, Pantry\n    ingredients and Allergens, a 2-column Nutrition table, and Notes\n\n  There is **no** \"Not included in your delivery\" block, **no** \"Some of the produce…\" note, and\n  **no** logo.\n- **Page 2** is only the steps, full width. There is **no** \"Cook for YOUR Crowd\" section. The\n  whole back page goes to the method, so long recipes fit:\n  - photo steps: up to 8 (3 or 4 columns by 2 rows)\n  - text-only steps: up to about 12 (2–4 columns)\n- Use real quantities, never \"1 unit\". Whole-item counts (1 lime, 2 buns) are fine.\n- If a recipe is labeled vegetarian or tofu but contains meat-based stock, swap in veggie stock\n  everywhere. Don't change the protein in recipes that are genuinely meat recipes.\n- Fix obvious errors without asking, then list every fix in the reply.\n- If Drive and sheet saving is configured (see Configuration), every finished card is also saved\n  to the user's recipe folder and logged in their tracking sheet (step 8).\n\n## Workflow\n\n### 1. Get the recipe\n\nRun `python scripts\u002Ffetch_recipe.py \u003Curl> \u002Fhome\u002Fclaude\u002Fwork` (use a fresh work directory for\neach recipe).\n- **HelloFresh**: you get ingredient icons, a photo for every step, and 2|4 serving amounts.\n- **Most other recipe sites**: the script reads the schema.org Recipe data, which gives the hero\n  photo, ingredient lines, steps, yield, times, and nutrition. Some sites also include step photos.\n- **Exit code 2 (blocked or no structured data)**: see Fallback below.\n\n### Fallback\n\nMany sites (AllRecipes, Budget Bytes, Serious Eats, Cookie and Kate, and others) block the\ncontainer's curl. When that happens:\n1. Call `web_fetch` on the user's URL. It usually works where curl doesn't, and it returns the\n   page text, often including image URLs.\n2. Try to download the main photo URL from that result with `curl -L -o img\u002Fhero.jpg \u003Curl>`.\n   Image CDNs are usually not blocked. Check the file with `file`.\n3. If there's still no photo, build without one. The ingredients then take the full width of\n   page 1.\n4. If the user pasted text or uploaded a screenshot or PDF, work straight from that.\n5. Note any \"Recipe Notes\" or FAQ tips on the page (storage, substitutions, make-ahead). They\n   go in the card's Notes section because they're valuable in an archive copy.\n\n### 2. Look at the photos and set focal points\n\nMake a contact sheet of the downloaded images and view it. Check three things:\n- **The hero is the finished dish.** If not, use the final plated step photo.\n- **The photos match the recipe.** On HelloFresh they often show a different protein; see\n  the fixes reference.\n- **Step photos are usable.** Tiny images or images with text overlays are better left out.\n\nThen **choose a focal point for every image you use.** The card crops each photo to a\nlandscape box, and by default it keeps the dead center. Blog photos are often tall phone shots\n(for example 1200x2133), so a center crop can land on the background, a cookbook, or empty\ncounter instead of the food. To fix that:\n1. Make a second contact sheet with horizontal gridlines labeled 0.1 to 0.9 down the side of each\n   image (PIL `ImageDraw` works) and view it.\n2. For each image, read off where the food or the action in that step sits, and write it as\n   `[fx, fy]` (fractions of the full image; 0,0 is top-left). Set `hero_focus` for the hero and\n   `focus` on each step. Tall images mostly need `fy`; wide images mostly need `fx`.\n3. Aim the crop at what the step is about (the mixer beaters in \"Cream Together\", the candy in\n   \"Add Candy\"), not just at the largest blob of food.\n4. After building, check the crops in step 6 and adjust any focal point that cut off the subject.\n\n### 3. Audit and fix\n\nRead `references\u002Ffixes-and-quantities.md` and go through its checklist. It has a general\nsection for any recipe and a HelloFresh section for the errors those recipes usually have.\n\n### 4. Write the spec\n\nSave it as `\u002Fhome\u002Fclaude\u002Fwork\u002Fspec.json` following `references\u002Fspec-format.md`. Key points:\n\n- **Steps**: group the method into logical stages. Aim for 4–9 steps without photos, or 6 with\n  photos. Blog recipes often have 10–15 tiny steps; don't pad them out or merge them\n  aggressively. Name the stages (\"Bake Tofu\", \"Make Sauce\", \"Fry & Serve\") and\n  rewrite each in your own concise words. Keep every quantity, temperature, time, and doneness\n  cue. Bold the ingredient names, times, and temperatures that someone glancing at the card\n  needs. Put 4-serving variants and \"(you'll use the rest later)\" notes in `\u003Cg>`. Put the steps\n  in real cooking order: start the longest-running task first, and flag parallel work with\n  `\u003Cg>While X cooks:\u003C\u002Fg>`.\n- **Time**: recalculate the real start-to-plate time with the overlapping work taken into\n  account (checklist item 11). Don't copy the site's figure.\n- **Ingredients**: HelloFresh cards use the icon grid with `\"2 | 4\"` amounts. Everything else\n  uses list mode:\n  - Split each ingredient into `amount` (quantity and unit, like \"2-3 TBSP\" or \"4 cloves\") and\n    `name` (with the prep, like \"garlic, minced\").\n  - Keep the recipe's own ingredient groups (Sauce, Topping) as `{\"section\": ...}` rows.\n  - List every ingredient, including salt and oil. There is no \"shipped\" concept for\n    non-HelloFresh recipes, so leave out `pantry` or use it only for \"to taste\" extras.\n  - Keep the original yield. Don't rescale unless the user asks.\n- **Hello \u002F Before you start**: write one short, useful sentence for each in your own words:\n  what makes the dish good, and one prep tip. Don't copy the site's intro prose.\n- **Prep ahead** (`prep_ahead`, 2–3 bullets): always include it. List what can be done earlier\n  in the day, or days before, so dinner goes faster. Each bullet should say when to do it and\n  how to store it. Good candidates:\n  - pressing tofu earlier in the day so it is well drained by dinner\n  - cooking grains ahead (day-old rice is better for fried rice)\n  - mixing sauces, dressings, and marinades\n  - quick-pickling\n  - chopping sturdy veg (carrots, onions, peppers)\n  - making dough\n  - toasting nuts\n\n  Skip anything that suffers from sitting, such as cut avocado or apple, dressed greens, or\n  anything meant to be crispy. These bullets appear under \"Before you start\" in the page 1 info\n  bar.\n- **Nutrition**: include it if the source gives it. If the source doesn't list nutrition, leave\n  it out and don't make numbers up.\n- **Allergens**: work them out from the ingredients (soy, wheat or gluten, milk, eggs, peanuts,\n  tree nuts, sesame, fish, shellfish).\n- **Tips and tricks** (many blogs have a dozen or more): keep only the ones a cook wouldn't\n  guess and that change the result, and cap Notes at about 4 bullets of one or two lines each.\n  Put a tip inline in the step it applies to when it is a quick cue (`\u003Cg>It goes from amber to\n  burnt fast.\u003C\u002Fg>`) or a specific mistake to avoid. Put it in Notes when it covers the whole\n  recipe: storage life and why, freezing, swaps, shortcuts, and judging doneness by a visual\n  cue instead of time. Fold ingredient-choice tips into the ingredient line (\"instant pudding\n  mix, not cook-and-serve\"). Drop common sense (\"read the recipe first\", \"use fresh\n  ingredients\"), repeats of what a step already says, and reader comments. The card is a page\n  to cook from, so a tip that needs more than two lines is a sign to cut it down.\n- **Source**: set `source` to the URL without `https:\u002F\u002F`. The footer adds \"Saved \u003Cdate>\" for\n  the archive.\n- **Tags**: 1–3 short tags, like Veggie, Vegan, Quick, Gluten-Free, or Spicy.\n\n### 5. Build\n\nRun:\n`python scripts\u002Fbuild_card.py \u002Fhome\u002Fclaude\u002Fwork\u002Fspec.json \"\u002Fmnt\u002Fuser-data\u002Foutputs\u002F\u003CRecipe-Name>-Recipe-Card.pdf\"`\n\nThe script sizes the info bar to its content and uses one text size for all steps. When steps\nhave photos, it shrinks the photos before the text, so the text stays readable. It shrinks text\nonly as a last resort. It prints `WARNING:` lines for anything that\nstill overflows, such as a step, an info-bar column, the ingredient list, or a dropped tag. Fix every\nwarning. Trim the wording or merge steps. If the info bar is too tall, shorten the Hello, tip,\nor Notes text. Then rebuild.\n\n### 6. Check visually\n\nRender both pages with `pdftoppm -r 70 -png` and view them. Look for:\n- Text colliding with other text.\n- A cramped step that would be hard to read while cooking.\n- A photo that is cropped badly (the subject cut off or the crop landing on background). Fix it by\n  changing `hero_focus` or the step's `focus`, not by swapping the photo.\n\nFix and rebuild before delivering.\n\n### 7. Deliver\n\nSend the PDF with `SendUserFile` (or `present_files` if that is the tool the session offers).\nThen do step 8 unless the user asked for the card only. Keep the reply short: a bulleted list of\nthe fixes you made, which quantities are estimates, and anything that's missing (for example, no\nphoto because the site blocked it, or no nutrition listed). Add one line on where the card was\nsaved and which sheet row it got, or why that was skipped.\n\nFor several recipes at once, run steps 1–6 for each one in its own work directory, then deliver\nall the PDFs together and do step 8 for all of them.\n\n### 8. Save to Drive and log it in the sheet\n\nSkip this step when the user chose to skip it, or when the Configuration values are unset and\nthey declined to provide them. Otherwise do it after the card is built and delivered.\n\n**Locations** come from the Configuration section: `LOCAL_FOLDER` (the synced folder on the\nuser's computer), `DRIVE_FOLDER_ID` (the same folder as the Drive connector sees it),\n`SPREADSHEET_ID` and `SHEET_TAB`. The sheet columns A to F are Name, Course, Cuisine, Type, Saved\nRecipe, Original Recipe.\n\n**Steps**\n1. **Reach the folder.** Call `device_list_dir` on `LOCAL_FOLDER`. If it says the folder is\n   not connected, call `device_request_folder_access` for that one folder (reason: copy finished\n   recipe cards into the synced recipe card folder). The user has to approve a dialog on their\n   computer, and a new chat needs this again. If the device tools are missing, the request times\n   out, or it is declined, go to Fallback.\n2. **Write the file.** Call `device_commit_files` with `stagedPath` set to the PDF in\n   `\u002Fmnt\u002Fuser-data\u002Foutputs\u002F` and `devicePath` set to `LOCAL_FOLDER` plus the same file name.\n   Several cards can go in one call. Do not use `device_bash` for this, because that shell can be\n   unavailable. If `device_list_dir` shows a card with the same name, only overwrite it when the\n   user asked to rebuild that recipe, and pass the listed `mtimeMs` as `expectedMtimeMs`.\n3. **Confirm it reached Drive.** Search with the Drive connector:\n   `parentId = '\u003CDRIVE_FOLDER_ID>' and title = '\u003Cfile name>'`. Syncing can take a\n   minute, so retry a few times with a short wait between tries. Accept the result when its\n   `fileSize` equals the local file's size in bytes, and take the file `id` from it. Compare against the size of the final PDF in\n   `\u002Fmnt\u002Fuser-data\u002Foutputs\u002F` (`stat -c %s`), not a remembered number. If Drive has a different\n   size, the commit picked up an older copy of the file (this happens if the card was rebuilt\n   shortly before the commit). Re-commit it with `expectedMtimeMs` set to the `mtimeMs` that\n   `device_list_dir` shows for that file, then check again. If it never\n   shows up, do not log a row. Tell the user the file is in their local folder and the sync has not\n   finished.\n4. **Add the row.** Read column A of the sheet (`SPREADSHEET_ID`, `SHEET_TAB`) first. If the recipe name is already there, skip the\n   append and say so. Otherwise append one row to the tab: Name (the recipe title as on the card),\n   Course, Cuisine, Type, Saved Recipe (`https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F\u003Cid>\u002Fview`), and Original\n   Recipe (the source URL, left blank for the user's own recipes). Reuse the labels already in the\n   sheet; on an empty sheet use the header names from Configuration. Course is one of Dessert, Main Dish, Breakfast, Beverage, Bread, Side, Appetizer, or\n   Condiment. Cuisine is a specific cuisine such as Korean, Thai, or Mexican. Type is the dish form,\n   such as Tofu, Pasta, Soup, Sandwich, or Cookies.\n\nNever put a PDF into Drive by pasting its base64 text into the Drive connector's `create_file`.\nA 60 KB card arrived as 13 KB that way and was unusable.\n\n**Fallback.** If the folder cannot be reached, the user still has the PDF from step 7. Say in one\nline that the Drive copy and the sheet row were skipped and why. They can drag the file into the\nfolder and ask for the row afterward.","# Printable Recipe Card\n\nThe user prints these cards to cook from instead of reading a phone. They also keep the PDFs\nas an offline archive in case a recipe site disappears. So each card needs to be:\n- **Complete**: every ingredient, quantity, temperature, and time from the original.\n- **Correct**: obvious data errors are fixed.\n- **Easy to read at the stove.**\n\nThe look is based on HelloFresh's printed cards: a big photo, a green ingredient panel, and\nsteps with titles and bullets, with ingredient names in bold.\n\n## Configuration\n\nThis skill can save each finished card to a Google Drive folder and log it in a Google Sheet\n(step 8). Those two destinations belong to each user, so they are **not filled in**. Fill them\nin here, or let the skill ask on first use.\n\n```\nLOCAL_FOLDER      = \u003CUNSET>   # full path of the recipe-card folder on the user's computer,\n                              # inside a Google Drive for desktop synced location\nDRIVE_FOLDER_ID   = \u003CUNSET>   # ID of that same folder in Google Drive (the string after \u002Ffolders\u002F in its URL)\nSPREADSHEET_ID    = \u003CUNSET>   # ID of the tracking sheet (the string between \u002Fd\u002F and \u002Fedit in its URL)\nSHEET_TAB         = Sheet1    # tab name inside the sheet\n```\n\n**Check these before starting any recipe.** If any value still reads `\u003CUNSET>`:\n1. Say in one line that Drive saving and sheet logging are not set up yet.\n2. Ask the user (AskUserQuestion works well) for the three values, or whether to skip Drive and\n   the sheet and just deliver the PDF. Tell them where to find each one:\n   - Folder path: right-click the folder in File Explorer or Finder and copy its path. It must be\n     inside the Google Drive for desktop folder so it syncs.\n   - Folder ID: open the folder in drive.google.com and copy the last part of the URL.\n   - Sheet ID: open the sheet and copy the part of the URL between `\u002Fd\u002F` and `\u002Fedit`.\n3. Use the answers for the rest of the session. Do not edit this file. Suggest they paste the\n   values into the Configuration block (or save them in their memory or notes) so they are not\n   asked again.\n4. If they choose to skip, run steps 1 to 7 only and say that step 8 was skipped by choice.\n\nIf the sheet is brand new and row 1 is empty, write the header row first: Name, Course, Cuisine,\nType, Saved Recipe, Original Recipe. If the sheet already has a different column layout, ask the\nuser how to map the six values instead of changing their layout.\n\nThe Drive and Sheets connectors run as whichever Google account the user connected to Claude.\nThat account must be able to see the folder and edit the sheet. If the folder lives in a\ndifferent Google account (a personal Drive for desktop sync, say), the folder and sheet need to\nbe shared with the connected account.\n\n## Standing preferences\n\n- **Page 1** has:\n  - a header: title, subtitle, a stats line (time, servings, calories, protein), and up to 3 tags\n  - the hero photo on the left, with ingredients to its right\n  - a full-width info bar along the bottom: the intro blurb (no \"Hello\" heading) and Before you start, Cooking tools, Pantry\n    ingredients and Allergens, a 2-column Nutrition table, and Notes\n\n  There is **no** \"Not included in your delivery\" block, **no** \"Some of the produce…\" note, and\n  **no** logo.\n- **Page 2** is only the steps, full width. There is **no** \"Cook for YOUR Crowd\" section. The\n  whole back page goes to the method, so long recipes fit:\n  - photo steps: up to 8 (3 or 4 columns by 2 rows)\n  - text-only steps: up to about 12 (2–4 columns)\n- Use real quantities, never \"1 unit\". Whole-item counts (1 lime, 2 buns) are fine.\n- If a recipe is labeled vegetarian or tofu but contains meat-based stock, swap in veggie stock\n  everywhere. Don't change the protein in recipes that are genuinely meat recipes.\n- Fix obvious errors without asking, then list every fix in the reply.\n- If Drive and sheet saving is configured (see Configuration), every finished card is also saved\n  to the user's recipe folder and logged in their tracking sheet (step 8).\n\n## Workflow\n\n### 1. Get the recipe\n\nRun `python scripts\u002Ffetch_recipe.py \u003Curl> \u002Fhome\u002Fclaude\u002Fwork` (use a fresh work directory for\neach recipe).\n- **HelloFresh**: you get ingredient icons, a photo for every step, and 2|4 serving amounts.\n- **Most other recipe sites**: the script reads the schema.org Recipe data, which gives the hero\n  photo, ingredient lines, steps, yield, times, and nutrition. Some sites also include step photos.\n- **Exit code 2 (blocked or no structured data)**: see Fallback below.\n\n### Fallback\n\nMany sites (AllRecipes, Budget Bytes, Serious Eats, Cookie and Kate, and others) block the\ncontainer's curl. When that happens:\n1. Call `web_fetch` on the user's URL. It usually works where curl doesn't, and it returns the\n   page text, often including image URLs.\n2. Try to download the main photo URL from that result with `curl -L -o img\u002Fhero.jpg \u003Curl>`.\n   Image CDNs are usually not blocked. Check the file with `file`.\n3. If there's still no photo, build without one. The ingredients then take the full width of\n   page 1.\n4. If the user pasted text or uploaded a screenshot or PDF, work straight from that.\n5. Note any \"Recipe Notes\" or FAQ tips on the page (storage, substitutions, make-ahead). They\n   go in the card's Notes section because they're valuable in an archive copy.\n\n### 2. Look at the photos and set focal points\n\nMake a contact sheet of the downloaded images and view it. Check three things:\n- **The hero is the finished dish.** If not, use the final plated step photo.\n- **The photos match the recipe.** On HelloFresh they often show a different protein; see\n  the fixes reference.\n- **Step photos are usable.** Tiny images or images with text overlays are better left out.\n\nThen **choose a focal point for every image you use.** The card crops each photo to a\nlandscape box, and by default it keeps the dead center. Blog photos are often tall phone shots\n(for example 1200x2133), so a center crop can land on the background, a cookbook, or empty\ncounter instead of the food. To fix that:\n1. Make a second contact sheet with horizontal gridlines labeled 0.1 to 0.9 down the side of each\n   image (PIL `ImageDraw` works) and view it.\n2. For each image, read off where the food or the action in that step sits, and write it as\n   `[fx, fy]` (fractions of the full image; 0,0 is top-left). Set `hero_focus` for the hero and\n   `focus` on each step. Tall images mostly need `fy`; wide images mostly need `fx`.\n3. Aim the crop at what the step is about (the mixer beaters in \"Cream Together\", the candy in\n   \"Add Candy\"), not just at the largest blob of food.\n4. After building, check the crops in step 6 and adjust any focal point that cut off the subject.\n\n### 3. Audit and fix\n\nRead `references\u002Ffixes-and-quantities.md` and go through its checklist. It has a general\nsection for any recipe and a HelloFresh section for the errors those recipes usually have.\n\n### 4. Write the spec\n\nSave it as `\u002Fhome\u002Fclaude\u002Fwork\u002Fspec.json` following `references\u002Fspec-format.md`. Key points:\n\n- **Steps**: group the method into logical stages. Aim for 4–9 steps without photos, or 6 with\n  photos. Blog recipes often have 10–15 tiny steps; don't pad them out or merge them\n  aggressively. Name the stages (\"Bake Tofu\", \"Make Sauce\", \"Fry & Serve\") and\n  rewrite each in your own concise words. Keep every quantity, temperature, time, and doneness\n  cue. Bold the ingredient names, times, and temperatures that someone glancing at the card\n  needs. Put 4-serving variants and \"(you'll use the rest later)\" notes in `\u003Cg>`. Put the steps\n  in real cooking order: start the longest-running task first, and flag parallel work with\n  `\u003Cg>While X cooks:\u003C\u002Fg>`.\n- **Time**: recalculate the real start-to-plate time with the overlapping work taken into\n  account (checklist item 11). Don't copy the site's figure.\n- **Ingredients**: HelloFresh cards use the icon grid with `\"2 | 4\"` amounts. Everything else\n  uses list mode:\n  - Split each ingredient into `amount` (quantity and unit, like \"2-3 TBSP\" or \"4 cloves\") and\n    `name` (with the prep, like \"garlic, minced\").\n  - Keep the recipe's own ingredient groups (Sauce, Topping) as `{\"section\": ...}` rows.\n  - List every ingredient, including salt and oil. There is no \"shipped\" concept for\n    non-HelloFresh recipes, so leave out `pantry` or use it only for \"to taste\" extras.\n  - Keep the original yield. Don't rescale unless the user asks.\n- **Hello \u002F Before you start**: write one short, useful sentence for each in your own words:\n  what makes the dish good, and one prep tip. Don't copy the site's intro prose.\n- **Prep ahead** (`prep_ahead`, 2–3 bullets): always include it. List what can be done earlier\n  in the day, or days before, so dinner goes faster. Each bullet should say when to do it and\n  how to store it. Good candidates:\n  - pressing tofu earlier in the day so it is well drained by dinner\n  - cooking grains ahead (day-old rice is better for fried rice)\n  - mixing sauces, dressings, and marinades\n  - quick-pickling\n  - chopping sturdy veg (carrots, onions, peppers)\n  - making dough\n  - toasting nuts\n\n  Skip anything that suffers from sitting, such as cut avocado or apple, dressed greens, or\n  anything meant to be crispy. These bullets appear under \"Before you start\" in the page 1 info\n  bar.\n- **Nutrition**: include it if the source gives it. If the source doesn't list nutrition, leave\n  it out and don't make numbers up.\n- **Allergens**: work them out from the ingredients (soy, wheat or gluten, milk, eggs, peanuts,\n  tree nuts, sesame, fish, shellfish).\n- **Tips and tricks** (many blogs have a dozen or more): keep only the ones a cook wouldn't\n  guess and that change the result, and cap Notes at about 4 bullets of one or two lines each.\n  Put a tip inline in the step it applies to when it is a quick cue (`\u003Cg>It goes from amber to\n  burnt fast.\u003C\u002Fg>`) or a specific mistake to avoid. Put it in Notes when it covers the whole\n  recipe: storage life and why, freezing, swaps, shortcuts, and judging doneness by a visual\n  cue instead of time. Fold ingredient-choice tips into the ingredient line (\"instant pudding\n  mix, not cook-and-serve\"). Drop common sense (\"read the recipe first\", \"use fresh\n  ingredients\"), repeats of what a step already says, and reader comments. The card is a page\n  to cook from, so a tip that needs more than two lines is a sign to cut it down.\n- **Source**: set `source` to the URL without `https:\u002F\u002F`. The footer adds \"Saved \u003Cdate>\" for\n  the archive.\n- **Tags**: 1–3 short tags, like Veggie, Vegan, Quick, Gluten-Free, or Spicy.\n\n### 5. Build\n\nRun:\n`python scripts\u002Fbuild_card.py \u002Fhome\u002Fclaude\u002Fwork\u002Fspec.json \"\u002Fmnt\u002Fuser-data\u002Foutputs\u002F\u003CRecipe-Name>-Recipe-Card.pdf\"`\n\nThe script sizes the info bar to its content and uses one text size for all steps. When steps\nhave photos, it shrinks the photos before the text, so the text stays readable. It shrinks text\nonly as a last resort. It prints `WARNING:` lines for anything that\nstill overflows, such as a step, an info-bar column, the ingredient list, or a dropped tag. Fix every\nwarning. Trim the wording or merge steps. If the info bar is too tall, shorten the Hello, tip,\nor Notes text. Then rebuild.\n\n### 6. Check visually\n\nRender both pages with `pdftoppm -r 70 -png` and view them. Look for:\n- Text colliding with other text.\n- A cramped step that would be hard to read while cooking.\n- A photo that is cropped badly (the subject cut off or the crop landing on background). Fix it by\n  changing `hero_focus` or the step's `focus`, not by swapping the photo.\n\nFix and rebuild before delivering.\n\n### 7. Deliver\n\nSend the PDF with `SendUserFile` (or `present_files` if that is the tool the session offers).\nThen do step 8 unless the user asked for the card only. Keep the reply short: a bulleted list of\nthe fixes you made, which quantities are estimates, and anything that's missing (for example, no\nphoto because the site blocked it, or no nutrition listed). Add one line on where the card was\nsaved and which sheet row it got, or why that was skipped.\n\nFor several recipes at once, run steps 1–6 for each one in its own work directory, then deliver\nall the PDFs together and do step 8 for all of them.\n\n### 8. Save to Drive and log it in the sheet\n\nSkip this step when the user chose to skip it, or when the Configuration values are unset and\nthey declined to provide them. Otherwise do it after the card is built and delivered.\n\n**Locations** come from the Configuration section: `LOCAL_FOLDER` (the synced folder on the\nuser's computer), `DRIVE_FOLDER_ID` (the same folder as the Drive connector sees it),\n`SPREADSHEET_ID` and `SHEET_TAB`. The sheet columns A to F are Name, Course, Cuisine, Type, Saved\nRecipe, Original Recipe.\n\n**Steps**\n1. **Reach the folder.** Call `device_list_dir` on `LOCAL_FOLDER`. If it says the folder is\n   not connected, call `device_request_folder_access` for that one folder (reason: copy finished\n   recipe cards into the synced recipe card folder). The user has to approve a dialog on their\n   computer, and a new chat needs this again. If the device tools are missing, the request times\n   out, or it is declined, go to Fallback.\n2. **Write the file.** Call `device_commit_files` with `stagedPath` set to the PDF in\n   `\u002Fmnt\u002Fuser-data\u002Foutputs\u002F` and `devicePath` set to `LOCAL_FOLDER` plus the same file name.\n   Several cards can go in one call. Do not use `device_bash` for this, because that shell can be\n   unavailable. If `device_list_dir` shows a card with the same name, only overwrite it when the\n   user asked to rebuild that recipe, and pass the listed `mtimeMs` as `expectedMtimeMs`.\n3. **Confirm it reached Drive.** Search with the Drive connector:\n   `parentId = '\u003CDRIVE_FOLDER_ID>' and title = '\u003Cfile name>'`. Syncing can take a\n   minute, so retry a few times with a short wait between tries. Accept the result when its\n   `fileSize` equals the local file's size in bytes, and take the file `id` from it. Compare against the size of the final PDF in\n   `\u002Fmnt\u002Fuser-data\u002Foutputs\u002F` (`stat -c %s`), not a remembered number. If Drive has a different\n   size, the commit picked up an older copy of the file (this happens if the card was rebuilt\n   shortly before the commit). Re-commit it with `expectedMtimeMs` set to the `mtimeMs` that\n   `device_list_dir` shows for that file, then check again. If it never\n   shows up, do not log a row. Tell the user the file is in their local folder and the sync has not\n   finished.\n4. **Add the row.** Read column A of the sheet (`SPREADSHEET_ID`, `SHEET_TAB`) first. If the recipe name is already there, skip the\n   append and say so. Otherwise append one row to the tab: Name (the recipe title as on the card),\n   Course, Cuisine, Type, Saved Recipe (`https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F\u003Cid>\u002Fview`), and Original\n   Recipe (the source URL, left blank for the user's own recipes). Reuse the labels already in the\n   sheet; on an empty sheet use the header names from Configuration. Course is one of Dessert, Main Dish, Breakfast, Beverage, Bread, Side, Appetizer, or\n   Condiment. Cuisine is a specific cuisine such as Korean, Thai, or Mexican. Type is the dish form,\n   such as Tofu, Pasta, Soup, Sandwich, or Cookies.\n\nNever put a PDF into Drive by pasting its base64 text into the Drive connector's `create_file`.\nA 60 KB card arrived as 13 KB that way and was unusable.\n\n**Fallback.** If the folder cannot be reached, the user still has the PDF from step 7. Say in one\nline that the Drive copy and the sheet row were skipped and why. They can drag the file into the\nfolder and ask for the row afterward.",{"name":5,"description":7},"main","a411d4eff6e5df78411439a988e8cfdea2c55b61","Skills\u002Fprintable-recipe-card","https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills","https:\u002F\u002Fgithub.com\u002Fgeekbrownbear","Bearium.net","I like poking around and learning things.","2026-11-03 14:07:37",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add geekbrownbear\u002FAI-Skills --skill printable-recipe-card",{"tool":38,"command":39},"bunx","bunx skills add geekbrownbear\u002FAI-Skills --skill printable-recipe-card",{"tool":41,"command":42},"pnpm","pnpm dlx skills add geekbrownbear\u002FAI-Skills --skill printable-recipe-card","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002FSKILL.md",true,[46,52,56,60,66],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"README.md","REFERENCE","参考文档",6136,"https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002FREADME.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Ffixes-and-quantities.md",5201,"https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002Freferences\u002Ffixes-and-quantities.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fspec-format.md",4156,"https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002Freferences\u002Fspec-format.md",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fbuild_card.py","SCRIPT","脚本",18248,"https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002Fscripts\u002Fbuild_card.py",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Ffetch_recipe.py",12804,"https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fprintable-recipe-card\u002Fscripts\u002Ffetch_recipe.py",[71],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7DKFEGZR3ETQAHR8PJA9NZC","sample-skill","https:\u002F\u002Fgithub.com\u002Fgeekbrownbear\u002FAI-Skills\u002Fblob\u002Fmain\u002FSkills\u002Fsample-skill\u002FSKILL.md",[],[]]