コード風プロンプト例1 牛乳ジョーク:妻の依頼
Validates required arguments and outputs shopping list based on milk and egg stock.
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-plugins{"Milk.stock": number, "Egg.stock": number}Emulate the following code internally (without using external tools or interpreter) with environment: $ARGUMENTS
Output only what puts() commands would output. Do not show any explanations, code, variables, or other messages.
# Validate required arguments
raise "Required argument 'Milk.stock' is missing" if Milk.stock.nil?
raise "Required argument 'Egg.stock' is missing" if Egg.stock.nil?
# Shopping logic
puts("Bought 1 milk.")
if Egg.exists? # Egg.exists? means Egg.stock > 0
puts("Bought 6 eggs.")
end