Logo di Local Lane Build Loop

Local Lane Build Loop

Community
sherifican
local-lane-build-loop

Read BEFORE building features by dispatching a local coding model instead of writing the code yourself. Gives the build loop that makes a local lane safe and cheap — orchestrator-authored spec + test gate (never the implementer's own tests), bounded implementation by a local coding model, an audit-model pass treated as a surfacer-not-gate, and orchestrator adjudication + framework wiring — plus the test-hermeticity gotchas that bite any suite built this way.

Panoramica

Pubblicato dasherifican
RepositoryAgent-FleetOps
Nome della skilllocal-lane-build-loop
Stelle
34
Fork
0
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da sherifican su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Local Lane Build Loop in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/sherifican/Agent-FleetOps/tree/main/skills/local-lane-build-loop
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sherifican/Agent-FleetOps.git /tmp/Agent-FleetOps
mkdir -p .claude/skills
cp -r /tmp/Agent-FleetOps/skills/local-lane-build-loop .claude/skills/local-lane-build-loop
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Local Lane Build Loop in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Local Lane Build Loop non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Local Lane Build Loop non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

local-lane-build-loop — features via a test-gated local coding lane

A local coding model can build real features cheaply, but only inside a structure that makes its output verifiable and its failure modes survivable. The loop below is the structure. The failure stories are the evidence; keep them attached to the rules they paid for.

The architecture that makes it locally-buildable

Split the target app along a strict one-way seam so a local model can own the data/logic layer in bounded tasks without fighting the framework's event loop or runtime:

  1. Pure headless modules. Read inputs (files, shell-outs, APIs) → return records. Zero framework imports. Unit-testable against fixtures with no live system. The pattern that works: small read_*() readers each wrapped in try/except returning a distinguishable safe default (never raise — and never collapse cannot-read into looks-empty: the returned record carries a status, ok / empty / missing / permission / not-a-file / decode-error / parse-error, so a consumer can tell a VALID empty observation from a source it could not read; reference guard/reader_record.py, gated by guard/tests/test_reader_record.py. Two states earn their own name because the obvious groupings lie: a directory caught as an OSError reads as a permission problem and sends the reader to check file modes when the fault is a wrong path, and a decode failure is a ValueError raised inside .read() — so except OSError never sees it and a reader documented as never raising raises. Write the encoding case before you claim the reader is total.) + a pure build_*() composer (no I/O) + a status() convenience that calls the readers → the composer.
  2. Dumb pure formatters. Records → display strings. No I/O, no state.
  3. The framework app layer. Layout, timers, bindings, modals, the paint loop. This is the part the local lane does NOT own — see the division of labor below.
  4. Frozen dataclass contracts. Shared record types both sides compile against. Change a field → update every module that uses it.

Layers 1–2 are the local lane's territory; layer 3 is the orchestrator's; layer 4 is the contract between them.

The BUILD LOOP

  1. The orchestrator writes a tight spec + the test gate. The test is orchestrator-authored — never the local lane's own — so it can't be gamed. This is the anti-cheatable-test rule: an implementer writing its own acceptance test will (even unintentionally) write the test its implementation passes.
  2. A local coding model writes the source — dispatched through an AI-pair-programming edit CLI (e.g. aider), from inside the repo, handed the repo's agent docs + coding discipline + the spec + the test as read-only context, with an edit instruction of the form "write the file COMPLETELY". ⚠ Never put a fenced code block (triple-backtick) inside a file you pass as read-only spec/test context to an edit CLI. Aider's fence detection sees the pre-existing backticks and silently bumps its expected fence to 4 backticks, so the model's normal 3-backtick output matches ZERO blocks → it applies nothing, exits 0, prints no error. Put INDENTED pseudocode in spec context files instead. (This cost two silent no-op dispatches on the reference setup before it was root-caused — the dangerous kind of failure, because every signal says "success".)
  3. Deterministic tests are the real gate. The suite runs; green is the only acceptance signal from the lane. No "looks right" merges.
  4. A second local model's AUDIT is a SURFACER, not a gate. On the reference setup the audit model over-flags and sometimes confabulates specifics (e.g. reporting "dead try/except in status()" when there is none). Use its findings as a list of places to look; adjudicate every single finding against the actual code before acting. Never let the audit model block or approve a merge directly.
  5. The orchestrator verifies end-to-end + does the thin framework wiring (the app-layer glue is harder for the local lane than the pure logic). Division that works: local lane = pure logic/formatter modules; orchestrator = spec + test gate + wiring + adjudication. Long high-stakes SYNTHESIS docs (like this skill) are also orchestrator-authored: the lane truncates/confabulates on those; its sweet spot is bounded, test-gated code. ★ HARD RULE (an owner correction that stuck): the local coding lane — or a frontier leg — MUST write the source modules; the orchestrator does ONLY the spec, the test gate, the dispatch, the adjudication, and the framework wiring. Do NOT hand-write source logic yourself, even under rapid back-to-back feature requests. The failure mode is momentum: the orchestrator starts writing the source modules directly "to be fast". Dispatching IS the job; hand-coding the source is the miss. The owner's words: "have the coding legs do the work, you just dispatch them."
  6. For a SMALL bounded piece, orchestrate the edit CLI DIRECTLY (the orchestrator runs the loop) — don't wrap it in a background subagent. The wrapper adds failure surface (slow starts, transient API deaths mid-run) for little gain on a quick module. Reserve subagents for genuinely parallel or larger work.

Gotchas that generalize (each bit a real suite)

  • A test that mounts the real app leaks cosmetic GLOBALS. App startup applies user/cosmetic settings to module-global state (a color palette, active animation frames). If such a test sorts BEFORE a test that asserts the DEFAULT palette, it breaks it — order-dependent, invisible until a new test file lands in the wrong alphabetical slot. Fix: an autouse fixture (e.g. in conftest.py) that snapshots + restores those globals around every test. It makes the whole suite order-independent. A fixture that redirects is half of it. Assert AFTER each test that the real channel gained no row of test shape — a redirect that silently stops applying looks exactly like a redirect that worked. Cover every runtime FORM of the redirected path: bare, separator-terminated, the variable and the literal, and whatever the language's home-directory resolver returns; one uncovered form is enough for a sandboxed run to write the live file. And make the redirected tool itself REFUSE any invocation whose environment points outside the sandbox, so the isolation survives a refactor that stops using the stub.
  • A module-level time-cache poisons monkeypatched tests (order-dependent flake). A TTL cache (e.g. a 15s resource-reading cache) populated by an integration test's LIVE call makes a LATER monkeypatched-to-throw test read the cached REAL value instead of exercising the stub → passes alone, fails in full-suite order. Clear the cache at the top of any cache-BYPASSING test.
  • A global subprocess.Popen monkeypatch also captures the app's OWN background subprocesses (its refresh loop shells out during test pauses). Don't assert launched[0] — FILTER the captured calls for your argv ([a for a in launched if a[:2] == ["my", "command"]]), or the test flakes by race.
  • A click test whose OUTCOME depends on LIVE system state is non-hermetic — monkeypatch the function that decides the branch. Mounting the real app runs real startup → real state reads → the UI reflects the ACTUAL machine (busy workers, running jobs). A test that branches on that state passes or fails depending on what happens to be running. (On the reference setup a live worker was busy, so a body-click opened the in-flight modal and broke the old "→ inventory" assertion.) Fix: stub the branch-deciding source so the test controls the branch.
  • A scheduled check is proven under the scheduler's environment, not an interactive one. Run it with an empty environment plus only the variables the schedule sets (env -i VAR=... cmd), and treat any difference from the interactive run as a defect in the check rather than as flakiness. A scheduled job runs stripped of the session bus, most of the search path and per-user services, so a failure born there does not reproduce in a shell. This repository ships the scar and not the rule: guard/leg_canary.py:137-139 records that cron's default PATH lacks the directory every leg binary lives in, so the canary's first five days logged only UNMEASURED.
  • Display-only cleaners touch the RENDERED string only — never mutate the real value in the source. Pretty-printers (strip a long suffix for display, humanize an interval) exist for the screen; names, APIs, and matching logic depend on the real value. A cleaner that mutates upstream data turns a cosmetic tweak into a behavioral bug.
  • Click AND keyboard-nav handlers must index the SAME filtered/visible list the UI RENDERS — never the raw unfiltered data. When a filter or search is active the rendered rows are a subset; mapping a click-row or a selection index back into the unfiltered data selects the WRONG row. Compute the selection against the exact list you painted (a shared "visible items" helper used by both the renderer and the handlers).
  • Fixed-width columns + markup: compute padding on the PLAIN (markup-stripped) length, else invisible [tags] break column alignment — and a too-long cell that gets hard-truncated can silently drop its color markup and read as plain gray. Shorten the display string to fit; never assume styling survived.

Local coder EDIT protocol (how the lane touches files)

  • Dense existing blocks: small byte-exact hunks. Ask for the smallest search/replace-style hunk with its context stated exactly; an edit that does not match exactly once is refused, never fuzzy-applied.
  • A NEW file: one whole-file block. Generation is safe where there is nothing to clobber; the whole-file form is the CREATE path, not the edit path.
  • Escalate after N artifact-verified failures. When the same edit has failed N times — failures verified against the artifact, not taken from the lane's own report — hand the task to a tool-using builder instead of re-prompting. N is a PARAMETER measured on your own coder (the reference setup measured 3); re-measure it when the lane's model changes.
  • One coder per repository. Two lanes editing one tree collide silently; the shipped default is a dirty-tree refusal at edit-pass start — see specs/driver-lock-protocol.md (shipped default) and guard/one_writer_gate.py.

Working agreements that kept the lane honest

  • Never leave the suite red. Every change stays green; a visible change gets verified by rendering, not just by tests. See [[eval-integrity]] for the audit discipline the gate itself deserves.
  • Update the changelog every shipped wave — newest-first, one block per wave with [feat]/[fix]/ [qol] bullets naming what shipped (and the failure a fix closes).
  • Bump a visible VERSION marker per shipped wave if the app shows one. On the reference setup the marker silently drifted behind two shipped waves, so a relaunch couldn't visually confirm fresh code was running — the version marker is the TRIGGER to verify, never the proof: a marker is a claim the artifact makes about itself, exactly as stale as the artifact. On a bump, verify per [[verify-running-build]] (marker-diff the deployed files, prove the process reloaded, bind both to the serving PID). Bump it in the same commit as the wave so the trigger fires.

Domande frequenti

Cosa fa la skill IA Local Lane Build Loop?

Read BEFORE building features by dispatching a local coding model instead of writing the code yourself. Gives the build loop that makes a local lane safe and cheap — orchestrator-authored spec + test gate (never the implementer's own tests), bounded implementation by a local coding model, an audit-model pass treated as a surfacer-not-gate, and orchestrator adjudication + framework wiring — plus the test-hermeticity gotchas that bite any suite built this way.

Perché usare Local Lane Build Loop su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Local Lane Build Loop è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Local Lane Build Loop in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/sherifican/Agent-FleetOps/tree/main/skills/local-lane-build-loop. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Local Lane Build Loop?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Local Lane Build Loop?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Local Lane Build Loop: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Local Lane Build Loop è gratuita?

Sì. È pubblicata su GitHub da sherifican con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇