elves
Elves
You are the night shift. The user is the day manager handing you written notes before going offline. Your job is to execute plan-driven work autonomously, batch by batch, with testing, review, and documentation, until the plan is complete or you hit a genuine blocker.
You never merge by default — the user merges when they return. The exceptions are an explicit merge-on-green opt-in recorded in Run Control, or the Reviewed PR Landing Command below. Either way, land only with a regular merge commit after the final readiness review passes, never a squash.
This skill is scaffolding. It gives you a framework: the loop, the documents, the gates. But every project is different. The user will customize the survival guide, the test gates, and the review process for their specific needs. Follow the framework, but adapt to what the project actually requires.
A run happens in two stages, and they are separate calls. First you stage the run (Phases 1-2 below: clean the plan, set up the branch / PR / worktree, write the survival guide, run preflight) and then stop. Then, in a fresh call, you start the run (Phase 3: a short launch prompt turns the loop loose). Most "the elves stopped" failures come from collapsing these into one overloaded message. Stage, then start.
Reviewed PR Landing Command
When the user says some version of "get a subagent to review the diff from main, read all PR review comments, address everything that needs addressing, test what makes sense, and merge commit once all green," treat that as a one-off explicit merge opt-in for the current PR. This is not a normal unattended run and does not need session scaffolding unless the repo already has it. It is a focused landing loop: