autonomous-loop

Automate story execution in PREVC with agent dispatch and TDD gates.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/NEXUZ-SYS/devflow --skill autonomous-loop-nexuz-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autonomous-loop
Source: https://github.com/NEXUZ-SYS/devflow/tree/main/skills/autonomous-loop
Command: npx skills add https://github.com/NEXUZ-SYS/devflow --skill autonomous-loop-nexuz-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Autonomous Loop automates the execution of stories within PREVC, dispatching specialist agents, enforcing TDD gates, and escalating when human intervention is required to keep workflows on track.

Core Features & Use Cases

  • Story-driven execution: processes stories one by one with status tracking, retries, and escalation paths.
  • Agent orchestration: loads and runs the assigned specialist agents per story via dispatch mechanisms.
  • TDD enforcement: enforces the RED → GREEN → REFACTOR cycle and conducts quality gates after each run.
  • Escalation & handoff: escalates to humans when failures occur or when dependencies block progress, and writes handoff state.
  • Checkpointing & reporting: writes progress to .checkpoint and compiles final loop reports for review.
  • Mode-aware behavior: adapts to assisted or autonomous operation with upgrade prompts and safety nets.

Quick Start

Activate autonomous-loop during PREVC Execution with autonomy set to assisted or autonomous to run stories sequentially and auto-escalate when needed.

Frequently Asked Questions about autonomous-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate story execution and enforce TDD gates in my workflow?

Autonomous story execution is automated by loading stories, dispatching specialist agents, and enforcing the RED → GREEN → REFACTOR cycle. The loop processes stories sequentially, applies retries, and escalates to humans when failures or dependencies block progress.

What is the best way to handle human escalation when autonomous agent dispatch fails?

Autonomous escalation handles failures by writing handoff state and pausing the story loop when dependencies block progress or errors occur. It automatically escalates to humans during assisted or autonomous operation to keep workflows safely on track.

Do I need an approved implementation plan before running autonomous story loops?

Yes, autonomous story execution requires an approved implementation plan, a stories.yaml file in the workflow context, and workspace readiness. These prerequisites ensure the loop can properly coordinate agent dispatch, testing, and security checks.

How does checkpointing work during sequential story processing?

Checkpointing during story processing writes progress state to a .checkpoint file after each agent dispatch and quality gate. This mechanism ensures the loop tracks story status, manages retries, and compiles final loop reports for review.

Can I run autonomous agent dispatch in assisted mode instead of fully autonomous?

Yes, agent dispatch adapts to both assisted and autonomous modes with upgrade prompts and safety nets. Mode-aware behavior allows the loop to run stories sequentially and auto-escalate when needed, providing flexibility for human-in-the-loop workflows.

When should I avoid using an autonomous loop for story execution?

You should avoid autonomous story execution if your workspace lacks readiness, an approved implementation plan, or a valid stories.yaml file. The loop requires these elements to properly coordinate TDD enforcement, agent dispatch, and security checks.