Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
If you find stale or incorrect information here, use the lingtai-issue-report skill to assemble evidence and obtain per-issue human consent before filing an issue. Never include secrets, credentials, tokens, or private paths.
Built-in preset router
This router covers exactly the names returned by BuiltinPresets() in
tui/internal/preset/preset.go. It covers TUI-owned template presets only, not
arbitrary saved presets. Route a named-preset revision to the direct child with
the matching name under reference/<name>/SKILL.md. That child owns the
provider's official latest-model lookup, route distinctions, exact TUI surfaces,
vision/capability facts, and named-preset revision instructions.
Do not merge gateway catalogs, CLI/OAuth aliases, and native provider catalogs.
custom has no universal latest model: inspect its configured endpoint and
provider evidence. The exact constructor in preset.go is always the first
source to inspect; picker, capability, and vision surfaces are listed by each
direct child.
Shared operation children: five unchanged mechanics
Question
Child
Saved templates/presets, load/save/delete, and bootstrap ordering
reference/operations/saved-presets/SKILL.md
Endpoint, API compatibility, provider/model/capability declarations, and Codex OAuth quota
These five children remain shared production mechanics. A named revision
composes its direct child with the mechanics it needs; it does not create a
second provider tree or a revision operation child.
Deterministic revision CLI and engine
For a reviewed change, prepare an evidence-bound manifest and explicit input,
then run:
The headless adapter at tui/internal/headless/preset_revision.go reads only
those paths and dispatches before preset bootstrap, provider access, OAuth,
MCP, network, auth, or runtime reads. dry-run and check do not write; apply
requires a new explicit output directory. The pure engine at
tui/internal/preset/revision.go validates the typed target state, route
bindings, evidence, expected old values, and input/post-image hashes, then
splices only owned JSON bytes while preserving unowned bytes. Review the JSON
plan and diagnostics before apply. The amendment documents this production
mechanism and does not change any current built-in model, picker, capability,
or endpoint value.
Boundaries and maintenance
Provider children record only reviewed facts and official lookup paths; a
failed direct route is not permission to switch providers, guess credentials,
or auto-load an MCP. Saved presets may change provider, model, endpoint,
credentials, or capabilities, so inspect their actual manifest.
When BuiltinPresets() gains a new template name, add exactly one matching
direct child and catalog row in the same PR. When a new cross-cutting mechanic is added, extend the five-operation catalog rather than adding a revision
child. When a relevant TUI preset/page is revised, check the matching child
and include its revision in the same PR when needed.