loop-contract

Scaffold repo-OS loop contracts with SPEC, WORKFLOW, TASKS, RUNLOG, and .loop files.

1|Updated Jun 20, 2026
One-click install
npx skills add https://github.com/SollanSystems/loop-engineer --skill loop-contract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loop-contract
Source: https://github.com/SollanSystems/loop-engineer/tree/main/skills/loop-contract
Command: npx skills add https://github.com/SollanSystems/loop-engineer --skill loop-contract

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill turns an architecture decision into a persistent, on-disk operating contract so an agent loop can keep its truth outside chat context. It prevents false completion by forcing the loop to store goals, workflow rules, task state, and evidence requirements in files that survive compaction, crashes, and runtime changes.

Core Features & Use Cases

  • Contract Scaffolding: Creates the core repo-OS artifacts needed to initialize a new agent loop, including SPEC, WORKFLOW, TASKS, RUNLOG, and .loop state files.
  • Verification-First Setup: Prepares verify-fast and verify-full skeletons plus the supporting manifest so success criteria can be checked deterministically.
  • Reflection and Safety Gates: Records an iteration-zero pre-execution review, captures approval gates, and enumerates terminal states to keep the loop auditable.
  • Use Case: Use it when you have an ADR and need to bootstrap a new loop workspace or extend an existing one with clearer criteria, evidence rules, and machine-readable state.

Quick Start

Ask the skill to scaffold the repo-OS operating contract for your project from the approved architecture decision and initialize the workspace files before any implementation changes.

Frequently Asked Questions about loop-contract

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

FAQPage Schema
How do I scaffold an agent loop with persistent task state and verification rules?

Scaffolding an agent loop with persistent task state requires creating on-disk operating contract files like SPEC, WORKFLOW, TASKS, and RUNLOG to store goals and evidence requirements outside chat context. This approach prevents false completion by keeping truth in files that survive compaction and crashes.

What is a repo-OS operating contract and when do I need it for agent workflows?

A repo-OS operating contract is a set of persistent on-disk files that define an agent loop's goals, workflow rules, and task state. You need it when turning an architecture decision into a verifiable loop workspace that remains auditable across runtime changes and context compaction.

How do I bootstrap a verifiable agent loop workspace from an architecture decision record?

Bootstrapping a verifiable agent loop from an ADR involves initializing workspace files including SPEC, WORKFLOW, TASKS, and RUNLOG, then recording an iteration-zero pre-execution review. The process wires terminal states and approval gates to keep the loop auditable before any implementation changes begin.

Can I extend an existing agent loop workspace with new verification criteria and state files?

Yes, you can extend an existing agent loop workspace by re-scaffolding its operating contract with clearer criteria, evidence rules, and machine-readable state. The process applies YAML frontmatter and deterministic file templates to update SPEC, WORKFLOW, TASKS, and .loop state files.

Does agent loop scaffolding support pre-execution reflection and approval gates?

Yes, agent loop scaffolding records an iteration-zero pre-execution review and captures explicit approval gates. It enumerates terminal states and prepares verify-fast and verify-full skeletons so success criteria can be checked deterministically throughout the workflow.

Why does my agent loop lose task state and claim false completion after context compaction?

Agent loops lose task state and claim false completion when goals and evidence requirements are stored only in chat context. Scaffolding a persistent on-disk operating contract with TASKS and RUNLOG files forces the loop to store truth in files that survive compaction, preventing false completion.