コード風プロンプト例1 牛乳ジョーク:夫の理解
Executes Ruby code with arguments and outputs only puts() results.
/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 (husband's misunderstanding)
milk_amount = 1
if Egg.exists? # Egg.exists? means Egg.stock > 0
milk_amount = 6
end
puts("Bought #{milk_amount} milks.")