协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
preset-skill-claude【开发与工程】Use when revising the built-in claude TUI preset.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: preset-skill-claude description: "Use when revising the built-in claude TUI preset." version: 4.0.0 last_changed_at: "2026-09-29T00:00:00Z" related_files:
Use this child for the named built-in claude preset. claudePreset in
tui/internal/preset/preset.go uses canonical provider claude-code (shown as
"claude-p" in the TUI) and the local Claude Code CLI's OAuth login, with model
alias opus and no API-key env, base_url, web_search override, or LingTai
vision capability. The editor also offers fable, sonnet, and haiku aliases.
An Anthropic API key or an Anthropic-compatible endpoint is the separate
anthropic family (reference/anthropic/SKILL.md).
Read the official Claude Code workflows and Claude vision guide. This preset uses CLI/OAuth aliases, not an Anthropic API model catalog: use the installed claude CLI's documented model-selection/help surface to see aliases that the local CLI serves, and verify an alias with its normal print-mode selection. Do not replace an alias with a dated API ID or inspect credential contents. CLI alias support and API model availability are distinct facts. The current Claude Code mapping is fable to claude-fable-5-1; the TUI still stores the alias, not that full API identifier. Underlying CLI image support does not establish forwarding through LingTai's CLI adapter.
Start at claudePreset in tui/internal/preset/preset.go. Revise the claude-code entries in providerModels in tui/internal/tui/preset_editor.go when CLI aliases change. There is intentionally no constructor vision capability, and the editor exposes no reasoning or service-tier row for this provider; inspect only the model alias picker and fixed capability rendering if that contract changes. Follow the CLI-alias exemption in tui/CONTRACT.md.
Prepare an evidence-bound manifest and explicit input, then run lingtai-tui presets revise --manifest PATH --input PATH --mode dry-run|check|apply [--output-dir PATH]. Review the JSON plan, use dry-run/check before apply, and apply only to a new explicit output directory. revision.go validates hashes, route bindings, and evidence and preserves unowned bytes. This amendment does not change the current claude values.
Maintenance: If the relevant TUI preset/page is revised, check whether this sub-skill also needs revision and, if so, include it in the same PR.
For save, endpoint/capability, availability, activation/refresh, or
troubleshooting, use the five shared operation children under
reference/operations/; this child owns Claude CLI alias facts.