Build a collection from scratch
At the end, an empty folder is a collection with one line, summarize-issue, and one agent, and floor holds both. Running the agent’s visit needs a cluster agent.
-
Make the folders.
Terminal window mkdir -p my-collection/summarize-issue/agents -
Write
my-collection/summarize-issue/assembly-line.yaml. It has oneagentstation. The argument leaves outsubject: true, which a first-timer forgets.line:id: summarize-issueentry: summarizeexit: donefail: stoppedargs:issue_url: { kind: value }nodes:- { id: summarize, station: summarize-issue }- { id: done }- { id: stopped }edges:- { from: summarize, to: done, on: success }- { from: summarize, to: stopped, on: failed }stations:summarize-issue:description: An agent summarizes one issue into a file.kind: agentagent_definition: issue-summarizeroutcomes: [success, failed]needs:- { name: issue_url, kind: value }produces:- { name: summary, kind: file, path: summary.md } -
Write
my-collection/summarize-issue/agents/issue-summarizer.md. The prompt uses the need{issue_url}and the path{summary_path}of the produce.---image: ${AGENT_IMAGE}timeout_minutes: 10---Read the issue at {issue_url}. Write a three-line summary of it into {summary_path}.When the file is written, end your reply with this line on its own:LORE_NODE_RESULT: success -
Lint it. Lint needs no floor and no variables.
Terminal window npx @re-cinq/floor-pipeline lint my-collectionsummarize-issue/assembly-line.yaml: no arg carries subject: true, so the floor cannot refuse a second run for the same subject -
Fix it. Change the argument to
issue_url: { kind: value, subject: true }and lint again. A file namedassembly-line.ymlis refused too, and the rules list the rest.collection ok: 1 agents, 1 pipelines, 0 extensions -
Apply it with the image set.
FLOOR_API_URLandFLOOR_SERVICE_TOKENsay which floor.Terminal window AGENT_IMAGE=ghcr.io/acme/agent:1 npx @re-cinq/floor-pipeline apply my-collectionmy-collection:agent-definitions/issue-summarizer: changedstations/summarize-issue: changedassembly-lines/summarize-issue: changed -
Apply again. Nothing changes, so it is safe to repeat.
my-collection:agent-definitions/issue-summarizer: as it wasstations/summarize-issue: as it wasassembly-lines/summarize-issue: as it was -
Check it in CI with a step in
.github/workflows/lint.yml.steps:- uses: actions/checkout@v4- uses: actions/setup-node@v4with: { node-version: 22 }- run: npx @re-cinq/floor-pipeline lint . -
Keep a host’s lines apart from yours. Move
summarize-issueintomy-collection/stock/and copy it tomy-collection/ours/. Name the order inmy-collection/floor-collection.yaml.groups:- stock- oursTerminal window npx @re-cinq/floor-pipeline lint my-collectioncollection ok: 1 agents, 1 pipelines, 0 extensionsours/is read andstock/is left out. Without the list, the files instock/are refused as already set by those inours/.
With Claude Code, the floor skills do these steps for you.