一键导入
add-pantry-item
Add a new PantryItem to the enum with all required switch branches (displayName, emoji, imageName, shopPrice, shopCategory, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new PantryItem to the enum with all required switch branches (displayName, emoji, imageName, shopPrice, shopCategory, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build ChefAcademy on iPhone Simulator to verify a change against the real app.
Create an Xcode .imageset from a loose PNG file. Moves the image into Assets.xcassets with proper Contents.json.
Extract all PNGs from Assets.xcassets into a flat folder on Desktop for AirDrop to iPad/Procreate coloring.
Extract frames from a video file for sprite animations. Creates originals/cleaned/trimmed folders on Desktop.
| name | add-pantry-item |
| description | Add a new PantryItem to the enum with all required switch branches (displayName, emoji, imageName, shopPrice, shopCategory, etc.) |
| argument-hint | ["item-name"] |
| allowed-tools | Read,Edit,Grep |
The user wants to add a new ingredient to the PantryItem enum. This requires adding a case and updating 8+ computed properties.
Ask the user for (or infer from context):
lamb, chiliFlakes)Read RecipeCardExample.swift to find the PantryItem enum
Add the new case to the enum
Add entries to ALL computed properties — search for every switch self in PantryItem:
displayName → the display stringemoji → the emojiimageName → "farm_{snake_case}" (e.g., "farm_lamb")shopPrice → coin costshopCategory → category stringshopScale → default 2.0 (adjust if image needs different zoom)shopOffset → default -20 (Y offset to crop transparent top)shopFrameHeight → default 100 (card height in shop grid)Check if the image asset exists in Assets.xcassets/FarmItems/. If not, warn the user they need to add farm_{name}.imageset
Report what was added and any missing assets
/Users/pollakmarina/Dropbox/Mac/Desktop/ChefAcademy/ChefAcademy/RecipeCardExample.swift