lfg
CRITICAL: You MUST execute every step below IN ORDER. Do NOT skip any required step. Do NOT jump ahead to coding or implementation. The plan phase (step 1) MUST be completed and verified BEFORE any work begins. Violating this order produces bad output.
When invoking any skill referenced below, resolve its name against the available-skills list the host platform provides and use that exact entry. Some platforms list skills under a plugin namespace (e.g., compound-engineering:ce-plan); others list the bare name. Invoking a short-form guess that isn't in the list will fail — always match a listed entry verbatim before calling the Skill/Task tool.
-
Invoke the
ce-planskill with$ARGUMENTS.GATE: STOP. If ce-plan reported the task is non-software and cannot be processed in pipeline mode, stop the pipeline and inform the user that LFG requires software tasks. Otherwise, verify that the
ce-planworkflow produced a plan file indocs/plans/. If no plan file was created, invokece-planagain with$ARGUMENTS. Do NOT proceed to step 2 until a written plan exists. Record the plan file path — it will be passed to ce-work in step 2 and ce-code-review in step 4.Read the plan metadata before continuing. If the plan has
artifact_contract: ce-unified-plan/v1, proceed only when it hasartifact_readiness: implementation-readyandexecution: code. Stop the pipeline forartifact_readiness: requirements-only, any unrecognized readiness value,execution: knowledge-work, approach-plan outputs, answer-seeking/universal outputs, or invalid progress-like readiness values. LFG never launches/goaldirectly; when goal-mode or dynamic workflows are appropriate,ce-workowns that implementation engine choice and must return control to LFG afterward. -
Invoke the
ce-workskill withmode:return-to-caller <plan-path-from-step-1>.GATE: STOP. Verify that implementation work was performed - files were created or modified beyond the plan. Read the structured return and require
status: complete, the same plan path, changed files, U-IDs attempted/completed when present, verification results, blocker list, behavior-change signal, andstandalone_shipping_skipped: true. Whenbehavior_change: true, also requireverification_evidencethat names the relevant units/tasks, existing tests inspected, tests added/changed or used unchanged, red failure or characterization evidence when applicable, verification run, and any deliberate test exception. Do NOT decide the test strategy inside LFG; the evidence is ce-work's contract.If
behavior_change: truebutverification_evidenceis missing or too vague to tell how behavior was protected, invokece-workone more time with the samemode:return-to-caller <plan-path-from-step-1>argument. Do not prompt the user and do not alter the plan path argument. The retry relies on ce-work's idempotency path to inspect the already-implemented work, fill the missing evidence, and return without reimplementing. If the second return still lacks coherent verification evidence, stop as blocked and report the missing fields instead of continuing to simplify/review/ship. -
Invoke the
ce-simplify-codeskill on the branch diff.This runs before review so the code-review in step 4 covers the simplified code. Skip this step when the change is docs-only (only markdown/docs paths changed) or trivial (roughly under 10 changed lines). Otherwise let
ce-simplify-coderesolve the branch-diff scope itself; it preserves behavior and runs the test suite.