agentleFS
lobu-ailobu-ai/lobu/skills/lobu-operator/SKILL.md

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
  1. Very specific:

    Read root AGENTS.md, the touched package's nearest AGENTS.md, and the relevant docs/GOTCHAS.md section.

    line 12
  2. Very specific:

    Read the concept docs before touching automation: docs/CONCEPTS.md (entities vs events, identity, end-to-end lifecycle), …

    line 13
  3. Very specific:

    Run make task-setup NAME=<slug> and work only in the resulting .claude/worktrees/<slug>/ directory.

    line 14
  4. Very specific:

    Read lobu.config.ts when configuration or runtime semantics matters.

    line 15
  5. Distinctive:

    Never bulk-delete production organizations.

    line 34
  6. Distinctive:

    Run focused tests while iterating, then the settled-diff gates in this order:

    line 41
  7. Distinctive:

    Never bypass a check that has not reported.

    line 60
  8. Very specific:

    Use knowledge.save for schema-less semantic history and entities.create / entities.update for strict structured records.

    line 67

≈ “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.

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

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

  1. Read root AGENTS.md, the touched package's nearest AGENTS.md, and the relevant docs/GOTCHAS.md section.
  2. 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).
  3. 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.
  4. Read lobu.config.ts when configuration or runtime semantics matters; inspect the active agent and skill directories because composition is data-driven.
  5. 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 run

Prerequisites 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.
  • events is 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 --admin

GitHub 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; use query_sdk for reads and run_sdk / lobu memory exec for writes.
  • Connectors plus feeds are the normal integration path. Use connections.connect, follow any setup_required continuation, then create and trigger a feed with feeds.create and feeds.trigger.
  • Find connector actions with operations.listAvailable and execute the returned target with operations.execute; do not guess operation or connection identifiers.
  • Use knowledge.save for schema-less semantic history and entities.create / entities.update for strict structured records. Chunk bulk work and use Promise.allSettled so conflicts are explicit.
  • lobu memory seed is suitable for small declarative YAML datasets, not large backfills.

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.