コード風プロンプト例3e continue文でスキップするループ
Validates required arguments and loops with conditional skip. Use when you need to test argument validation and loop skipping logic.
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-plugins{"skip_at": 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 skip_at is None:
raise ValueError("Required argument 'skip_at' is missing")
# Loop with continue
for i in range(5):
if i == skip_at:
continue
print(f"foo{i}")