lfg
The facts
Its description
Take a request all the way to done, hands-off, through the right Compound Engineering skills. A code change ends as an open pull request, pushed without stopping. Use only when the user explicitly asks for autonomous end-to-end work or invokes lfg directly. Use ce-plan, ce-work, ce-debug, or ce-commit-push-pr for work the user reviews step by step.
The description the agent reads to decide when to use it.
When it starts
The agent picks this skill when the user explicitly asks for autonomous, hands-off, end-to-end work — taking a request all the way to done without step-by-step review — or invokes lfg by name. It is not chosen for ordinary work the user wants to review as it goes.
Things a person might say (the model's guesses)
- “lfg: add a dark mode toggle to the settings page”
- “take this bug report all the way to an open PR, don't stop to check in with me”
- “run lfg on issue #482”
A model's summary of when it is used.
What it takes when started
[feature, bug, issue reference, or plan path; optionally assign planning and/or implementation to a model or harness]
What to type after its name when you start it.
Files it mentions
references/intake.md, references/stage-routing.md, references/task-visibility.md, references/plan-brief.md (first 5 of 10 lines)
Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.
Stops for a person
1 line stops to ask a person
Lines that stop and wait for a person before going on. Found by matching words, so treat them as pointers.
What it leads to
- hands off to ce-handoff only after the user accepts the next-work offer next-work-handoff.md, line 62
- calls ce-babysit-pr when an open PR exists line 57
- calls ce-brainstorm only when a human is present line 16
- calls ce-code-review on the code-change routes line 43
- calls ce-commit-push-pr when a remote is configured line 55
- calls ce-compound only when durable reasoning was produced line 51
- calls ce-debug only on the defect route line 14
- calls ce-explain only when the result is not a code change intake.md, line 19
- calls ce-ideate only when the result is not a code change intake.md, line 19
- calls ce-noslop at close-out shipping.md, line 45
- calls ce-plan when the request changes code and no other route matches line 18
- calls ce-pov only when a change hangs on an unsettled judgment line 15
- calls ce-prototype only when the result is not a code change intake.md, line 19
- calls ce-simplify-code skip for docs-only or roughly sub-10-line changes line 41
- calls ce-test-browser line 53
- calls ce-work on the plan route line 39
Other skills this one hands off to, calls, requires or offers instead, as a model read them.
What leads to it
- ce-brainstorm hands off to this when the user picks Ship it autonomously with lfg ce-brainstorm/handoff.md, line 126
- ce-debug hands off to this in pipeline or return-to-caller mode ce-debug, line 22
- ce-sweep hands off to this ce-sweep, line 89
- ce-work hands off to this in return-to-caller mode ce-work/execution-engines.md, line 60
Other skills that hand off to this one, call it, require it or offer it instead, as a model read them.
Licence
MIT, from LICENSE
The terms its author shares it under, which let it be shown here.
Other files in this skill (10) Close
The text
Most marks come from matching words in the file, so treat them as pointers.
Outcome. The request reaches the end state its shape calls for, produced by the Compound Engineering skill whose job that is, with everything unresolved recorded where the user will see it. Most requests end with that skill's result and no branch. A change to the code is the one shape with more steps of its own: it ends in an open pull request whose URL you hold, with CI decided, after being implemented, simplified, reviewed with the eligible findings applied and the rest recorded, any durable learning captured, committed, and pushed. Merging stays with the user unless they granted it for this run.
Work source. On the routes that change the code, nothing is implemented without a work source verified this run, and only two things qualify: an implementation-ready plan, which ce-work implements; or a fixed return from ce-debug, where the fix is the implementation. The plan is one the session identifies, as references/intake.md defines. Never search the plans directory for a candidate or act on a file you discovered. Never plan from scratch over an existing plan.
Route by what the request is. Match the request to the skill whose job it is; the host's skill list is the catalog. Read references/intake.md before choosing; it alone defines the routes, their precedence, what each child skill is passed, and how each return is read. In short:
- A plan path, or a plan
ce-planwrote this session, takes the plan route. - A concrete report of failing or wrong behavior goes to
ce-debug; reproducing it is that skill's job, not intake's. - A change that hangs on a judgment the user did not settle goes to
ce-povfirst, and only a verdict that supports the change continues; a judgment with nothing to build ends at the verdict. - Product shape with more than one plausible reading goes to
ce-brainstormwhen a human is present, and toce-planin pipeline mode when not. - A request whose result is not a code change goes to the skill that owns that result (
ce-explain,ce-prototype,ce-pov,ce-ideate, and so on); that invocation is the whole run: return its result and end. - Any other change to the code goes to
ce-plan.
When unsure, take the route that asks more of the evidence.
Interaction. Ask the user only through ce-brainstorm, and only when a human is present. Everything else proceeds without waiting: reversible work is done and shown for the user to correct afterward, and only an irreversible action outside what they granted (a merge they did not grant, a force-push, deleting data) stops instead. lfg runs from schedulers, loops, and nested orchestrators. The one other question is the routing disambiguation references/stage-routing.md defines: when the conversation assigns planning or implementation to a model or harness, read that file before routing; it alone carries the carrier strings and the sanitization.
Stop, and say why, when any of these holds:
- The work source cannot be produced: planning returned blocked, the diagnosis found no safe fix, the fix would be divergent,
ce-povdid not support the change, or a stage assignment cannot be passed on. - A child return is anything but complete and evidenced.
- A settled decision is invalidated.
- A project-defined shipping process falls short.
A stop leaves nothing pushed that was not already pushed.
Resolve every skill named here against the host's available-skills list and invoke that exact entry; some hosts namespace it (compound-engineering:ce-plan). Read references/task-visibility.md before starting: it defines the stage view published through the platform's task-tracking capability, the chat narration, and the completion rule that a step is done only after it ran, a child skill's return resumes the next numbered step in the same turn, and the turn does not end before DONE or a stop.
The run (routes that change the code)
- Produce the work source per
references/intake.md. On the plan route, readreferences/plan-brief.mdfirst; it alone defines the settled-decisions brief and the artifact-root rule. Any explicitstatus: blockedreturn, includingsettled-decision-invalidated, stops the run. Blocked status outranks an existing artifact and is never retried. Only absence of both a blocker and a plan filece-planreported writing this run invokesce-plana second time with the same arguments, reusing the composed brief verbatim; the plan must then pass the readiness check inreferences/plan-brief.md. On the plan route theplan_model:<alias>carrier rides beside the request when a planning-stage directive resolved. Record the work source for every later step. LFG never launches/goaldirectly;ce-workimplements and returns control.
- **Read
references/work-return.mdfirst**, then invoke thece-workskill withmode:return-to-caller <plan-path-from-step-1>. On the defect route this step does not run:ce-debugalready implemented and committed, andreferences/debug-return.mdwas its gate. Only a validstatus: completefromce-workmay advance; every other status or malformed return stops the pipeline.
- **Read
references/review-followup.mdnow**; it governs steps 3 through 7. Invoke thece-simplify-codeskill withmode:pipelineon the branch diff; skip only the invocation for a docs-only or roughly sub-10-line change.
- Invoke the
ce-code-reviewskill withmode:agent plan:<plan-path-from-step-1>; on the defect route omitplan:. Asettled_conflictfinding whose evidence shows the settled decision cannot work (infeasible, wrong-thing, or destructive) stops the pipeline as blocked, with the finding reported, before the shipping precondition.
Shipping precondition (every push from step 5 on). Run git remote once. No remote means local-only: make every commit the steps call for, but skip every push, PR create/edit, and CI-watch action, including step 10 in full. That is terminal, not an error.
- Apply and persist review fixes as that file defines. Do not proceed to the residual handoff, run browser tests, or output DONE while eligible review fixes remain only in the working tree uncommitted.
- Autonomous residual handoff: whenever an unapplied actionable finding, a
settled_conflictstamp from step 4, or a proceeded-and-flaggedsettled_decision_conflictsentry from step 2 exists, record it durably per that file: in the PR body, or in tickets or the DONE report when no PR will exist. Skip only when none of the three exists. Do not output DONE until the residuals are durable. Never block DONE on tracker filing failures once the report states them. Do not prompt the user.
- Invoke the
ce-compoundskill withmode:non-interactivewhen the run produced durable reasoning the code, tests, and plan do not carry; that file states the full condition.Documentation skippedis success; running here puts the learning in the PR at open.
- Invoke the
ce-test-browserskill withmode:pipeline.
- **Read
references/shipping.mdfirst**; it governs steps 9 through 11. Then invoke thece-commit-push-prskill withmode:pipeline branding:on.
- Watch the PR to CI-decided with
ce-babysit-pr mode:pipeline <pr-url>when an open PR exists, asreferences/shipping.mddecides. Do not reimplement CI-watching here.
- Output
<promise>DONE</promise>after the close-out inreferences/shipping.md.
From EveryInc/compound-engineering-plugin at 3449230, 2026-10-31. Skills read by DeepSeek V4.1 Flash on 2026-11-04. Summary and techniques by Claude Opus 5.5 on 2026-11-06.