Setup lee engineering

From korallis/skills-collection · View interactive version

Setup lee engineering is an AI agent skill from the GitHub repository korallis/skills-collection. Set up the agent skills collection for whatever harness you are in. Links the skills into every harness from one copy, scans which models the account can actually reach, assigns them to engineering roles, writes the harness's own routing config, and confirms the assignment with the user role by role

How to use this skill

Skill file

Setup

One command does all three. Run it; do not predict its output.

bin/agent-setup            # link skills, scan models, assign roles, write harness config

--dry-run writes nothing. --status reports state without probing. The steps are also separate:

bin/agent-skills link      # one copy of the skills, linked into every harness
bin/agent-routes scan      # which models this account can actually reach
bin/agent-roles apply      # assign them to roles, and write the harness config

Everything lives in the skills-collection clone. Find it from any harness:

readlink -f ~/.agents/skills/setup-lee-engineering

Report back: which roots were linked and whether any had drifted, which harness was detected and

how, how many routes came from the harness versus a vendor CLI, the role assignment, and any gap.

1. One copy, many harnesses

link makes the clone the only copy on disk and symlinks it into every harness skill root present:

~/.agents/skills (the cross-agent convention, read by Cursor, Codex and Gemini CLI),

~/.claude/skills (Claude Code does not read the convention path), plus Cursor, Codex, Grok, Gemini,

Factory, Droid and T3 roots when those harnesses exist.

status flags a root that drifted into a copy. prune clears the dangling links a renamed skill

leaves behind.

link also makes CLAUDE.md a symlink to AGENTS.md, so Claude Code sees the file it looks for

while there is still only one file to edit. Never edit CLAUDE.md; edit AGENTS.md. If the two

already differ, the link is refused rather than clobbering either.

Do not install this collection as a plugin. Cursor and Claude Code both cache a plugin per harness,

which is the duplication this avoids.

2. Scan what you can reach

scan probes the harness you are in first, then any vendor CLI or manifest on the machine, and

writes ~/.agents/routes.json. Each route carries:

| Field | Meaning |

| --- | --- |

| sourceKind | harness for the one you are in, cli-fallback for anything else |

| family | model lineage from the model ID: what makes a review independent |

| pool | the provider account meter: what makes scheduling honest |

| preferOver | set when a CLI route duplicates a family the harness already reaches |

Read status per source before concluding anything: ok, empty, no-api (the tool publishes no

model list), failed, timeout, unavailable. A failure is not an absence.

Some harnesses publish no model list at all. The scan then emits one live-session route for the

model you are already talking to, with family: unknown. Keep working on it. Do not leave a working

session for a CLI just because the CLI produced a catalog.

3. Assign roles and write the config

agent-roles assign picks a route per role and writes ~/.agents/routing.json and

~/.agents/routing.md. agent-roles apply does that and also writes the current harness's own role

configuration when it has one.

| Role | Used for |

| --- | --- |

| plan | architecture, design, hard judgment |

| implement | writing and changing code |

| review | independent review; forced into a different family from implement |

| scout | cheap exploration and summarising |

| verify | checking claims; also a different family from implement |

Selection uses only what the scan carries plus vendor naming convention: harness before CLI, healthy

pool before constrained, reasoning support, per-family tier words, and the version parsed from the

model ID. The tier vocabulary and its first-party evidence live in

lee-engineering/references/model-facts.md; nothing here names a model. Price is deliberately not a

capability signal, because a legacy flagship is often the priciest entry in the catalog and the worst

choice.

Two rules hold everywhere:

pointing at an unreachable model breaks every delegation that reads it.

already uses, so nothing breaks when the file is missing or stale.

Harness adapters

apply writes the harness's native config where one exists:

omp config set, the supported mutation path. Roles it does not manage are preserved, the previous

values are saved to ~/.agents/backups/, and the thinking level is chosen from the levels each

model actually supports: highest for a capability role, lowest for a cheap one.

skills read it directly. That is reported, not treated as a failure.

Confirm the assignment with the user

After apply, show the user the role table and ask whether any role should change — do not assume

the heuristic got it right. For a role they want changed, list three or four suitable candidates

from the scan (matching the role's needs: reasoning for plan/implement/review, a different

family from implement for review/verify, cheap for scout) and let them choose. Prefer the

harness's structured question tool over free text when it has one.

Write the choice with the validated writer, never by hand-editing:

bin/agent-roles pin review <selector from the scan>
bin/agent-roles apply                # push the change into the harness config
bin/agent-roles pin review --clear   # back to the heuristic

pin rejects an unknown role and any selector the scan did not see, so a typo cannot write an

unreachable model. Pins live in ~/.agents/roles.overrides.json and win on every re-run; a pin that

would defeat the different-family rule for review/verify is ignored and reported at assign

time.

Re-run when

Re-running is idempotent: link is a no-op when everything is linked, and assign overwrites the

whole routing file so there is no accumulated state.

When nothing is found

With no harness detected and no CLI listing models, report what was probed and stop. Do not fall back

to assumption. If a harness was detected you always have at least the live-session route.

Adding a harness or CLI is one entry in PROBES in bin/agent-routes. Add it there rather than

working around it in prose.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.