Manual invocation only; use only when the user explicitly requests `houmao-agent-loop-pairwise-v5` or an explicitly named loop operation to init editable loop-dir/intention material, generate or validate generated loop-dir/execplan contracts, or execute a generated loop through authoring and execution subskills.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Manual invocation only; use only when the user explicitly requests `houmao-agent-loop-pairwise-v5` or an explicitly named loop operation to init editable loop-dir/intention material, generate or validate generated loop-dir/execplan contracts, or execute a generated loop through authoring and execution subskills.
Houmao Agent Loop Tree
Terminology
This pairwise-named skill authors and operates tree loop execplans.
pairwise loop is a legacy alias for tree loop behavior.
Keep the explicit invocation name unchanged.
Activation
Use this Houmao skill only after the user explicitly selects it or names a supported loop operation.
If the user invokes this skill without another operation or prompt:
treat it as init;
ask for the output <loop-dir>;
do not create files until the user provides it.
Required Root
Require one user-selected <loop-dir> before creating or changing files.
Do not invent a loop root.
Treat <loop-dir>/intention/ as editable source material.
Treat <loop-dir>/execplan/ as generated operational material.
Do not treat generated execplan files as the user-editable source of truth.
<loop-dir>/
intention/
execplan/
runs/
Runtime References
Detailed guidance lives behind routed pages. Read only the page selected by routing and the references listed in that page's Read First section.
init: scaffold editable intention material and populate intention/project-context.md; default when invoked without another operation or prompt.
create-intention: create basic editable intention material without project-context detection.
clarify-intent: scan loop intent coverage, ask high-impact clarification questions, record accepted intent decisions as ADRs, and update intention Markdown. Treat clarify intent as an alias.
clarify-execplan: scan generated execplan implementation coverage, ask high-impact clarification questions, record accepted execplan decisions as ADRs, and update or flag generated execplan artifacts.
execplan-fast-forward: generate all execplan/ artifacts from current intention source in one non-interactive pass.
execplan-step-by-step: generate all execplan/ artifacts through one-question-at-a-time decisions recorded under execplan/adrs/.
execplan-specs-process: generate the process-first model at execplan/specs/collab/collab-overview.md.
execplan-specs-contract: derive objective, participant, topology, communication, state, record, workspace, and run contracts.
execplan-harness: generate loop-local harness surfaces from generated contracts.
execplan-skills: generate shared, event, tick, and operator skills.
execplan-agent-bindings: generate concrete Houmao agent bindings after generated skills exist.
execplan-finalize: generate support docs, package README, final manifest, metadata, omission notes, and consistency notes.
validate-execplan: validate generated execplan shape and generated-artifact posture.
update-execplan: update generated material after intention changes.
Execution:
prepare-agents: prepare Houmao agents and skill bindings from execplan/.
prepare-workspace: prepare or verify multi-agent workspaces from generated workspace contracts and prepared agent facts.
launch-agents: launch prepared loop agents without beginning loop work.
start: begin one generated loop by sending the first trigger.
status: inspect one generated loop without mutation.
pause: pause normal loop scheduling or wakeup posture.
resume: resume a paused loop.
recover: recover after interruption or inconsistent runtime posture.
stop: stop one generated loop.
Routing
Choose exactly one page.
Authoring pages:
Read subskills/authoring/init.md when the user asks for init, invokes this skill without another operation or prompt, or wants to scaffold <loop-dir>/intention/ with project-context.md.
Read subskills/authoring/create-intention.md when the user asks for create-intention or wants basic intention scaffolding without project-context detection.
Read subskills/execution/prepare-workspace.md when preparing or verifying participant workspaces from a generated execplan after agent/profile facts are prepared.
Do not auto-route generic loop requests here when the user did not explicitly select this skill.
Do not invent <loop-dir>.
Do not require adrs/ for the initial workflow.
Do not import policy from examples or reference plans as global behavior.
Treat prepare-agents, workspace readiness through prepare-workspace or equivalent manual evidence, validate-loop, launch-agents, and start as separate ordered execution stages when managed workspaces are required.
Do not make prepare-workspace and prepare-agents call each other.
Do not create agent workspaces directly from general execution pages; use houmao-utils-workspace-mgr through prepare-workspace for supported workspace planning and execution.
Do not duplicate maintained Houmao platform-operation contracts; route launch, messaging, mailbox, gateway, memory, lifecycle, and inspection work to their owning Houmao skills.
When asking for Houmao runtime or artifact-location inputs, separate Required and Optional values. Do not impose that shape on user-task or domain-intent questions unless they ask for Houmao runtime behavior.