graph-engineering
Use when the same shape of work will repeat (migration, port, batch fix, fan-out across files or threads). Judge first, keep state on disk, grow a rulebook, blind-review, and fix the process—not each instance. Skip for one-off exploration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- graph-engineering
- description
- Use when the same shape of work will repeat (migration, port, batch fix, fan-out across files or threads). Judge first, keep state on disk, grow a rulebook, blind-review, and fix the process—not each instance. Skip for one-off exploration.
03 SKILL.md 正文
Graph engineering
You do not fix the code. You fix the process that produced the code.
A loop (model decides the next step) is correct for one-off and unfamiliar work. A graph (named steps, disk state, a mechanical exit) is for work that repeats and a machine can tell right from wrong.
When to use this
Use it when you will do the same shape of work more than once and can write a command that returns 0/1.
Skip it when the task runs once, you do not know the steps yet, or only human taste can judge each item.
Middle path: run a loop first, write down every correction, then use those notes as the first rulebook for the second run.
Method
-
Judge first. Before generating at scale, decide the command that means “this item passed” without opening the output (
test, typecheck, schema check, or a yes/no model call). A thread going idle is a mood, not a judge. Break the judge on purpose once so a green result means something. -
Write the rulebook. Capture ambiguities in a file workers read: this skill, a sibling
.claude/skills/<name>/SKILL.md,AGENTS.md, or.claude/skills/review/SKILL.md. Every “in that case it should…” is a sentence. Nothing bypasses it — if you hand-edit output to match what the rulebook should have said, you have two sources of truth. -
Pilot three, then delete. Run three items two ways, diff them, fix the rules, throw away the pilot output so you do not keep two conventions.
-
State on disk. Pending vs done is a file, a worktree, or a thread record — not chat memory. Kill at 60% and the next run rebuilds the queue from disk.
-
Blind review. Reviewers (Sideboard
request_review, or a fresh session) see the output and the rulebook, not the worker’s reasoning. Prefer two isolated reviewers. Every finding cites a rule. Disagreement usually means the rulebook is ambiguous — edit it, do not coin-flip. -
Checks by cost. Anything a script can verify, a model must not. Fast checks (seconds) sit inside the loop. Slow checks (full CI, long compile) run once in a batch. Serialize the expensive operation (one build owner, many patchers).
-
Categories, not instances. The same miss in the third file is one bad rule. Edit the skill /
.claude/skills/review/SKILL.md/AGENTS.mdand rerun the batch. Do not patch three files and leave the process unchanged. -
Model by role. Stronger model for reviewers and anything that writes rules other agents will follow. Workers can stay on the default.
Where new guides go
This skill is the method. Each recurring process gets its own skill:
- Write
.claude/skills/<kebab-name>/SKILL.mdand commit it. Sideboard/name, Claude Code, andattachload that path. Native agents do not scan.sideboard/skills— do not put new guides only there. - Point Codex / OpenCode at the file from
AGENTS.md. - Optional: symlink
.cursor/skills/<name>to the Claude skill. - Skip a skill for a one-off.
After merge to the default branch, new worktrees inherit the file. Existing siblings need an update from that branch.
Sideboard mapping
| Graph idea | Here |
|---|---|
| Worker node | Workspace chat |
| Judge | Tests / typecheck / getPrChecks — not “the agent said done” |
| Rulebook | This skill, sibling skills, AGENTS.md, .claude/skills/review/SKILL.md |
| Blind reviewer | request_review (fresh tab, no worker chat) |
| Disk queue | Workspaces + chat store; pending = no output / no passing judge |
| Human gate | confirm_land / purge |
Do not lock Global / orchestration chat into a fixed topology. Exploratory fleet work stays a loop. Use this skill when you fan out the same shape across many items or threads.
04 同仓库更多 Skills
skill-improver
When a miss will recur — you made it twice, or a person told you the rule — write the lesson into the skill before the turn ends. One sentence, in the same change. Run in the turn, not on a schedule.
release
暂无简介
long-running
暂无简介
worktree-install
Reinstall dependencies in a Sideboard worktree after merge-from-main or a lockfile change. Use when `pnpm install` hangs, several worktrees install at once, or a native build is outside the permitted directory.
review
Merge-readiness review for this repository. Use when reviewing a PR, worktree diff, or Sideboard Review (Approve / Approve with nits / Request changes).
release
Cut a Sideboard version. Default: bump, README/changelog, commit, merge, then push/retarget the `v*` tag so `.github/workflows/release.yml` publishes npm (OIDC) and the signed Mac desktop. No workflow_dispatch. Do not pack Electron in a worktree turn. Use for electron release, desktop release, pnpm release, or “I’ll publish npms.”