コード風プロンプト例3b カウンタ付きwhile文
Executes a counter-controlled while loop that prints "bar" repeatedly and ends with "baz".
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-plugins{"max_count": number}Emulate the following code internally (without using external tools or interpreter) with environment: $ARGUMENTS
Output only what print() commands would output. Do not show any explanations, code, variables, or other messages.
# Validate required arguments
if max_count is None:
raise ValueError("Required argument 'max_count' is missing")
# Loop
count = 0
while count < max_count:
print("bar")
count += 1
print("baz")