CommunityCoding & Developmentgithub.com

ameureka/loop-prompt-generator

Generates paste-ready loop prompts for Claude Code based on user input and dynamic context. Core process: task profiling → loop primitive selection (turn/goal/time/proactive) → deterministic stop conditions & quality gates → assembly of a nine-block structure prompt + operation manual.

What is loop-prompt-generator?

The **ameureka/loop-prompt-generator** is a skill designed to streamline the creation of persistent, looping prompts for Claude Code. It takes a user's task description and dynamic context (such as environment variables, file structures, or previous conversation history) and automatically generates a structured, paste-ready prompt that instructs Claude Code to enter a continuous execution loop. The skill's workflow involves four key phases: first, it profiles the user's task to understand its nature (e.g., batch processing, goal-oriented, scheduled monitoring, or event-driven). Second, it selects the appropriate loop primitive (`/turn`, `/goal`, `/time`, or `proactive`) to match the task's requirements. Third, it designs deterministic stop conditions and quality gates to ensure controlled and safe execution. Finally, it assembles a nine-block structured prompt—along with an operation manual—that the user can directly copy and paste into a Claude Code session. This skill is particularly useful for developers and AI agent users who need to run long, unattended batch jobs, converge on a verifiable goal, periodically monitor external systems, or maintain event-driven pipelines. It is designed for use with Claude Code and includes a template for batch spec execution (`templates/spec-batch-execution.template.md`). By automating prompt construction, the skill reduces boilerplate and human error, enabling more reliable and repeatable autonomous agent workflows.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ameureka/ameureka-skills/tree/main/skills/loop-prompt-generator

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does loop-prompt-generator do?

Generates paste-ready loop prompts for Claude Code based on user input and dynamic context. Core process: task profiling → loop primitive selection (turn/goal/time/proactive) → deterministic stop conditions & quality gates → assembly of a nine-block structure prompt + operation manual. Usage scenarios: (1) Large batch of specs/task queues to run unattended for extended periods (flagship scenario, template at templates/spec-batch-execution.template.md) (2) Goal-convergence tasks with verifiable exit conditions (/goal) (3) Scheduled monitoring of external systems or routine work (/loop, /schedule) (4) Resident event-driven pipelines (proactive combination)

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

Related Skills