Files
clawdbot/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose
2026-01-23 00:49:40 +00:00

21 lines
670 B
Plaintext

# Example: Fixed Loops in OpenProse
# Demonstrates repeat, for-each, and parallel for-each patterns
# Repeat block - generate multiple ideas
repeat 3:
session "Generate a creative app idea"
# For-each block - iterate over a collection
let features = ["authentication", "dashboard", "notifications"]
for feature in features:
session "Design the user interface for this feature"
context: feature
# Parallel for-each - research in parallel
let topics = ["market size", "competitors", "technology stack"]
parallel for topic in topics:
session "Research this aspect of the startup idea"
context: topic
session "Synthesize all research into a business plan"