work-loop

Coordinate planning, execution, gate verification, and adversarial review in a development loop.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/phanijapps/engram --skill work-loop-phanijapps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: work-loop
Source: https://github.com/phanijapps/engram/tree/main/.claude/skills/work-loop
Command: npx skills add https://github.com/phanijapps/engram --skill work-loop-phanijapps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of unreliable agent self-assessment by replacing subjective feelings of completion with objective, mechanical gates and adversarial review.

Core Features & Use Cases

  • Structured Execution: Enforces a strict PLAN -> EXECUTE -> GATES -> REVIEW -> DECIDE loop for non-trivial tasks.
  • Risk-Based Modes: Automatically scales ceremony between Light and Full modes based on the risk profile of the work.
  • Adversarial Review: Integrates mandatory adversarial-reviewer passes to catch drift, structural issues, and security vulnerabilities before code is committed.

Quick Start

Invoke the work-loop skill to initiate a formal development cycle for the current feature or bug fix.

Frequently Asked Questions about work-loop

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

FAQPage Schema
How do I enforce a verifiable agent workflow for complex code changes?

To enforce a verifiable agent workflow, you need a state-machine-driven development loop that coordinates planning, execution, gate verification, and adversarial review. This replaces subjective completion feelings with objective mechanical gates for high-quality code output.

What is an adversarial review process in agentic development?

An adversarial review process in agentic development mandates a dedicated reviewer pass to catch drift, structural issues, and security vulnerabilities. It acts as a mechanical gate before code is committed, ensuring durable and auditable repository changes.

How do I scale workflow ceremony based on the risk profile of a refactor?

Scaling workflow ceremony based on risk profile requires risk-based mode selection that automatically switches between Light and Full modes. This enforces structural boundaries and verifiable termination criteria appropriate to the complexity of infrastructure updates or refactors.

When do I need a state-machine-driven development loop for repository changes?

You need a state-machine-driven development loop for non-trivial repository changes like features, refactors, and infrastructure updates. It ensures auditable code output by enforcing a strict PLAN, EXECUTE, GATES, REVIEW, and DECIDE sequence.

Does the work-loop workflow work without external dependencies?

Yes, the work-loop workflow operates without external dependencies, utilizing internal scripts and references. It enforces rigorous governance and structural boundary verification directly within your agentic development environment.

Why does agent self-assessment fail during complex infrastructure updates?

Agent self-assessment fails during complex infrastructure updates because it relies on subjective feelings of completion rather than objective criteria. Replacing this with mechanical gates and mandatory adversarial review ensures verifiable termination and prevents structural drift.