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

compose

Skill3 starsChanged 6 days agoMITView on GitHub

Internal compose engine; load only via stage holder HARD-GATE — do not invoke directly.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    Run $START_COMPOSE. Load {SKILL_ROOT}/compose/references/compose-ontology.md once.

    line 51
  2. Very specific:

    Run $SESSION_INFO --view session, then bind:

    line 55
  3. Distinctive:

    Ask: Deliver or Modify.

    line 76
  4. Very specific:

    Run $SESSION_INFO --view delivery-preview.

    line 83
  5. Distinctive:

    Wait for explicit delivery confirmation.

    line 84
  6. Very specific:

    Run $SESSION_CONTROL deliver --confirm.

    line 86
  7. Very specific:

    Run $SESSION_INFO --view stage-transitions.

    line 87

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “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

compose

Shared compose engine for stage holders. It takes one input document, runs one execution, and delivers one document. Step execution lives in references/execution.md.

Inputs

VariableRequiredSourceUse
$CYCLE_IDyesHolder runtime foundationActive cycle
$PROFILE_PATHyesHolder preflightRuntime compose-profile.json
$SCOPE_PACKAGEyesHolder preflightNormalized scope-package.json

Script Macros

Macro expansion: {SKILL_ROOT}/_runtime.md § Script Macros → Macro expansion. Non-zero exit → Blocking: stop, report (stderr / exit code), wait for user direction.

MacroCommand
$START_COMPOSEpython3 "$SKILL_ROOT/compose/scripts/session/start.py" --cycle-id "$CYCLE_ID" --profile-path "$PROFILE_PATH" --scope-package "$SCOPE_PACKAGE"
$SESSION_INFOpython3 "$SKILL_ROOT/compose/scripts/session/session_info.py" --cycle-id "$CYCLE_ID" --view <view>
$SESSION_CONTROLpython3 "$SKILL_ROOT/compose/scripts/session/session_control.py" --cycle-id "$CYCLE_ID" <subcommand>

Subcommands and stdout: script module docstrings or --help.

Execution macros are defined in {SKILL_ROOT}/compose/references/execution.md. Load that file before using them.

Lifecycle

stateDiagram-v2
  [*] --> Working: Start
  Working --> ReadyForDelivery: execution Completed
  ReadyForDelivery --> Working: Modify
  ReadyForDelivery --> Delivered: Deliver

Route only from $SESSION_INFO stdout. Do not invent the next step.

Entry

Start

Run $START_COMPOSE. Load {SKILL_ROOT}/compose/references/compose-ontology.md once.

Bind context

Run $SESSION_INFO --view session, then bind:

CiteJSON fieldUse
$REVISION_DIRrevision_dirrevision-scoped tools
$DEMAND_MANIFESTdemand_manifestDelivery demand atomization; skip when null
$CURRENT_STATEworkflow_state.current_stateOuter routing
$STEP_STATEexecution.stateStep routing

Done: $CURRENT_STATE=Working.

Working

Session state: Working.

Load {SKILL_ROOT}/compose/references/execution.md and follow it.

Done: $STEP_STATE=Completed → ## ReadyForDelivery.

ReadyForDelivery

Ask: Deliver or Modify.

  • Deliver → ## Delivery.
  • Modify → $SESSION_CONTROL return-to-working --confirm. Then ## Working. Preview is not required.

Delivery

  1. Run $SESSION_INFO --view delivery-preview. On failure → Blocking. Show the preview; full compose document only if asked.
  2. Wait for explicit delivery confirmation.
  3. Demand manifest (only when $DEMAND_MANIFEST is present): enumerate delivered demands per $DEMAND_MANIFEST.unit_rule, then $SESSION_CONTROL write-demand-manifest --units-json '<JSON array>'. Skip when $DEMAND_MANIFEST is null. On failure → Blocking.
  4. Run $SESSION_CONTROL deliver --confirm. On failure → Blocking (including leftover agenda.json blockers).
  5. Run $SESSION_INFO --view stage-transitions. On non-zero exit → Blocking. Prompt next stages when present.

Reference

DocumentWhen
{SKILL_ROOT}/compose/references/compose-ontology.mdStart, once per session
{SKILL_ROOT}/compose/references/execution.mdWorking
{SKILL_ROOT}/eval/SKILL.mdLoaded from execution Evaluating

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.