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. Do NOT proceed to step 3 if no code changes were made or if ce-work did not return control in return-to-caller mode. -
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.Do not commit in this step.
ce-simplify-codeleaves its changes in the working tree; step 4's review scopes the working tree (uncommitted changes included), and step 8'sce-commit-push-prcommits whatever remains. Committing here would sweep any still-uncommittedce-workedits into a misleadingrefactorcommit and could stall on a tree that never goes clean.