lobu-operator
Skill224 starsChanged 5 months agoApache-2.0View on GitHub
Contribute safely to the Lobu monorepo: worktrees, package rules, red-to-green fixes, validation gates, SDK-first operations, PRs, and rollout checks.
- Reads credentials
- Commits and pushes
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Very specific: line 12
Read root AGENTS.md, the touched package's nearest AGENTS.md, and the relevant docs/GOTCHAS.md section.
- Very specific: line 13
Read the concept docs before touching automation: docs/CONCEPTS.md (entities vs events, identity, end-to-end lifecycle), …
- Very specific: line 14
Run make task-setup NAME=<slug> and work only in the resulting .claude/worktrees/<slug>/ directory.
- Very specific: line 15
Read lobu.config.ts when configuration or runtime semantics matters.
- Distinctive: line 34
Never bulk-delete production organizations.
- Distinctive: line 41
Run focused tests while iterating, then the settled-diff gates in this order:
- Distinctive: line 60
Never bypass a check that has not reported.
- Very specific: line 67
Use knowledge.save for schema-less semantic history and entities.create / entities.update for strict structured records.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Lobu Operator — Repo Guide
This is a fast index, not a replacement for repository instructions. Root AGENTS.md and the nearest package AGENTS.md are authoritative; CLAUDE.md includes the root rules for Claude sessions.
Before You Act
- Read root
AGENTS.md, the touched package's nearestAGENTS.md, and the relevantdocs/GOTCHAS.mdsection. - Read the concept docs before touching automation:
docs/CONCEPTS.md(entities vs events, identity, end-to-end lifecycle),docs/AUTOMATIONS.md(Automation contract),docs/connector-authoring.md(custom connectors),docs/README.md(index). - Run
make task-setup NAME=<slug>and work only in the resulting.claude/worktrees/<slug>/directory. Never switch branches or edit in the main checkout. - Read
lobu.config.tswhen configuration or runtime semantics matters; inspect the active agent and skill directories because composition is data-driven. - Reproduce a bug before changing code. Capture red→fix→green evidence and exercise every branch touched; a typecheck alone is not completion.
Dev Workflow
make task-setup NAME=<slug>
cd .claude/worktrees/<slug>
make dev # gateway + workers + Vite on the allocated port
make clean-workers # reap an orphaned gateway from a crashed dev runPrerequisites are Bun, the supported Node version, and Postgres with pgvector via DATABASE_URL. make dev uses the shared local Postgres; make dev-embedded uses per-worktree embedded Postgres. Read .env.local for the allocated ports.
Correctness Invariants
- Design for at least three replicas. Shared required state and cross-pod signals belong in Postgres, never a process-local singleton or
Map. eventsis append-only. Replace or hide records with superseding/tombstone events; never delete history.- User-facing reads must not aggregate growing history. Materialize bounded answers on writes and read them back by index.
- Never bulk-delete production organizations. Treat apparently empty organizations as real signups requiring individual confirmation.
- Workers receive placeholders/proxied access, device-pinned credentials, or short-lived provider-derived leases—never durable stored credentials.
- Agent-facing vocabulary always says Automation; engine-only vocabulary stays internal.
- Durable dispatch and delivery failures fail closed. Retry, defer, or surface terminal failure; never reinterpret an ambiguous coordination error as permission to proceed.
Validate and Ship
Run focused tests while iterating, then the settled-diff gates in this order:
bun test <path> # focused local iteration
make pr-fast # broad required graph; Daytona sandbox, else local
make review-fix # unposted fixer pass; inspect its edits
git add -- <paths> # explicit paths only, never -A
make pr-full # full staged Linux graph; Daytona sandbox, else local
git commit -m '<type>(<scope>): <summary>'
git diff --name-only origin/main...HEAD
git push -u origin <branch>
gh pr create
make review # once, on settled HEAD
gh pr checks <number> --required
gh pr merge <number> --squash --adminGitHub CI (ci.yml) is the canonical gate: free on this public repo, full Linux graph in ~5–7 min per PR. make pre-pr runs the fast local gates (typecheck, knip, lint, naming) before push; make review requires CI green for HEAD. make pr-full (Daytona ephemeral sandbox, else local) is optional tooling, not part of the required loop. Stage every intended new file explicitly before pushing.
Never bypass a check that has not reported. For a production-visible change, wait for deployment and prove the PR's squash merge commit is an ancestor of the deployed SHA before running the live check. Clean up the task worktree with make task-clean after merge.
Data Integration & Knowledge Ingestion
- Discover the current ClientSDK with
search_sdk; usequery_sdkfor reads andrun_sdk/lobu memory execfor writes. - Connectors plus feeds are the normal integration path. Use
connections.connect, follow anysetup_requiredcontinuation, then create and trigger a feed withfeeds.createandfeeds.trigger. - Find connector actions with
operations.listAvailableand execute the returned target withoperations.execute; do not guess operation or connection identifiers. - Use
knowledge.savefor schema-less semantic history andentities.create/entities.updatefor strict structured records. Chunk bulk work and usePromise.allSettledso conflicts are explicit. lobu memory seedis suitable for small declarative YAML datasets, not large backfills.
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
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.

