agentleFS
lulufoolulufoo/lulu-workflow/lulu-exec/SKILL.md

lulu-exec

Skill3 starsChanged 59 days agoMITView on GitHub

Use when: execute a delivered work order, task exec, coding TDD, action task, lulu-exec workflow, lulu-workflow lulu-exec, git worktree delivery.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the workflow cannot advance: stop (no retry, skip, or workaround), report the reason (stderr, exit code, or TASK_FAILED), and wait for …

    line 17
  2. Very specific:

    Do NOT proceed until you have read ../_runtime.md and loaded:

    line 22
  3. Very specific:

    Do NOT proceed until you have read ../_subagent.md </HARD-GATE>

    line 30
  4. Distinctive:

    Run entry recovery probe, branch on stdout JSON:

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

code-workflow

Overview

Execute work-order tasks by kind. One task per sub-agent. coding runs in an isolated git worktree with TDD and a commit contract. action reaches a stated goal and records a receipt with evidence for every acceptance criterion; it runs in the project root unless the task names a worktree. Then a closing gate before delivery.

Blocking policy

If the workflow cannot advance: stop (no retry, skip, or workaround), report the reason (stderr, exit code, or TASK_FAILED), and wait for user direction before continuing.

Prerequisites

<HARD-GATE> Do NOT proceed until you have read `../_runtime.md` and loaded:
  • $SKILL_ROOT, $WORKFLOW_DIR, $PLATFORM, $CACHE_DIR from ## Platform Context
  • $SKILL_DIR = $SKILL_ROOT/lulu-exec (before Session Foundation)
  • Feature identification logic from ## Session Foundation</HARD-GATE>
<HARD-GATE> Do NOT proceed until you have read `../_subagent.md` </HARD-GATE>

Commands

/lulu-exec [<cycle_id>] — Entry point

Derive $CYCLE_ID via _runtime.md § Session Foundation, or use the explicit <cycle_id> argument if provided.

<HARD-GATE> `$CYCLE_ID` must be resolved before proceeding. If it cannot be resolved → stop and ask the user to provide it. </HARD-GATE>

Run entry recovery probe, branch on stdout JSON:

python3 "$SKILL_DIR/scripts/tc_session_control.py" \
  --cycle-dir "$CACHE_DIR/$CYCLE_ID" \
  check-recovery
  • recoverable: false → ## Starting
  • recoverable: true:
    • Feature container ($CYCLE_TYPE == feature): Announce current_state, active_session, and current_task (Executing only); auto-resume into ## {resume_section} — do not ask Yes/No.
    • Topic container ($CYCLE_TYPE == topic): Show the same fields; ask to resume. Yes → ## {resume_section} · No → ## Starting.

lulu-exec is on the feature stage line only (transition-table.json); topic exception documents fallback if /lulu-exec is invoked on a topic cycle.


State machine

Session states: Starting → Preparing → Executing → Closing → Delivered

Task phases live in the runner for $CTX.kind. Do not run the TDD chain for action.


Starting

Step 1: Run start.py

python3 "$SKILL_DIR/scripts/tc_start.py" \
  --cycle-id "<cycle_id>"

On non-zero exit: Apply § Blocking policy.

Exit: start.py succeeds → proceed to § Preparing.


Preparing

Load references/preparing.md.


Executing

Load references/executing.md.


Closing

Feature container ($CYCLE_TYPE == feature): Auto-complete delivery — run deliver without user confirmation.

Topic container ($CYCLE_TYPE == topic): Wait for explicit user confirmation before running deliver.

Run:

python3 "$SKILL_DIR/scripts/tc_session_control.py" \
  --cycle-dir "$CACHE_DIR/$CYCLE_ID" \
  deliver

Precondition: current_state must be Closing (enforced by script). On non-zero exit: Apply § Blocking policy.

Exit: deliver succeeds → § Delivered.


Delivered

Session complete; stop.


Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.