loft
它能做什么
这项技能让智能体构建一个小型的、可丢弃的原型,来解决仅靠文字无法回答的设计问题。适合在不同布局或行为之间做选择、并且通过看到选项学得最好的人。
适用场景
- ✓当一个设计问题反复兜圈子、文字讨论无法解决的时候。
- ✓当你需要通过实际查看来比较两种布局或界面选项的时候。
- ✓当你想在构建之前测试某个逻辑或状态模型是否合理的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/loft/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们无法决定商品页面的两种布局。你能为每种布局做一个快速版本,让我选出一个吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会选择合适类型的原型:在简单外壳中的逻辑模块,或同一页面上不同的界面变体。你对原型做出的反应就成为决定。原型会被丢弃,而不是发布。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Loft
Cut no steel until the shape is fair. Shipwrights loft the hull's lines full-scale and fair them before a single plate is cut. Loft applies the same order to design questions: when words have run out — two plausible answers, neither falsifiable by talk — build a cheap runnable artifact, let the captain react to it, and fold that reaction into the decision.
The role contract. The crew builds the artifact; the captain's only job is to react — and that reaction is the decision. The artifact is an instrument for seeing, never a head start on the deliverable.
When to loft
- a design question stalls in prose: repeatedly rephrased, still not settleable ("how should the path page look", "does this state model feel right")
- a navigator map carries a
loftticket - a spec discussion reaches "we would have to see it first"
Do not loft when:
- the question is answerable from repo evidence or by asking the captain (that is interviewing, not lofting)
- the destination itself is unclear (that is fog —
/oh-my-claudecode:ask-navigator) - the answer already lives in an ADR (do not re-loft settled decisions)
- the "design question" is actually a bug (that is the debugger's jurisdiction)
Choose the fork
Pick by what the question is asking. A wrong fork wastes the whole artifact.
Logic fork — is the model right?
For questions about state, business rules, data shape, or algorithms ("does unlocking regress on a retake?", "does this reducer hold at the edges?"):
- Isolate the decision-bearing core — the state machine, reducer, schema, or algorithm — as a pure module: no DOM, no I/O, no framework. Written so that, once the shape is confirmed, it moves into the real codebase unchanged.
- Wrap it in a single clickable HTML shell: one button per scenario, the tricky edge cases walked through in order, full state visible after every click.
- On confirmation the module is ready to lift — it re-enters as real work through launch. During the loft itself
mainstays untouched and the shell stays behind on the branch.
UI fork — what should it look like?
For questions of shape and arrangement ("steps or cards?", "where does progress live?"):
- One route, three variants that differ in structure — information architecture, navigation model, density. Variants that differ only in styling answer nothing: three reskins are wallpaper.
- A switcher on the page cycles the variants; embed into the existing product where possible, so real data density stresses the design instead of three tidy fake rows.
- On confirmation, the decision transfers and the variants stay behind on the branch as the record of why it looks this way.
The discipline
- One command to run — the repo's simplest existing serve command; inline the module into the shell if
file://module CORS would bite. Loads in seconds; no build step beyond what the repo already has. - No persistence, no tests, no abstractions, no error handling beyond the happy path. The artifact should be something you would not want to ship — the rules exist to keep it that way.
- Expect the first shape to be argued with: revise on the branch within the same session. The captain confirming the final shape is the decision; an artifact nobody argues with usually answered a question nobody had.
- The artifact's whole life is minutes to build and one session to decide. If it starts growing into production code, stop: that work is a launch effort, not a loft. Sunk cost is the failure mode this skill exists to prevent.
- One loft answers one question. Two questions are two lofts — or one question that was actually two.
Fold the answer
The artifact is evidence, not a landing. When the captain reacts:
- Record the decision where it lives — the issue comment, the spec's Implementation Decisions, or the pending-decision note — in the captain's own words plus one line of why. A fragment more precise than prose (the reducer, the state machine, the schema) may be inlined there, marked as lofted.
- Push the artifact to a
loft/<name>branch. It never merges: it stays as the primary source a future reader can open when the decision's "why" matters. - Nothing from the artifact lands in
main— for the logic fork the confirmed module re-enters as real work through launch, for the UI fork the real page is built fresh from the decision.
Scope and non-goals
- Loft produces answers, not deliverables: no runtime, no state files, not
常见问题
原型会成为正式产品吗?
不会。它只是用来做决定的工具,永远不会发布。
什么时候不应该使用它?
当问题可以通过阅读代码或直接询问你来回答,或者目标本身不清楚的时候,就不要使用。
原型有哪些类型?
用于规则和状态的逻辑原型,或用于界面问题的变体布局。
详情
作者的原始描述
Loft the shape before cutting steel — answer a design question that prose cannot settle by building a throwaway artifact: a pure logic module in a clickable shell, or structurally different UI variants behind one route. The captain reacts to the artifact; the answer folds into the decision; the artifact never docks. Use when a design question stalls in words, when a navigator map carries a loft ticket, or when a spec discussion reaches "we would have to see it".
热度
- GitHub 星标
- 41k
- 排名
- #7008
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-doc-discipline
41k教你的智能体编写其他 AI 智能体能够独立遵循的说明,规则可以检验,并且每条规则都附有明确的理由。
ai-slop-cleaner
41k帮你的智能体整理 AI 写出的代码,这些代码能运行但臃肿或重复,在不改变其功能的前提下删除多余部分。
architecture-survey
41k帮你的智能体审查代码库的结构,列出越来越难修改的部分并附上证据,且自身不做任何更改。
ask-navigator
41k帮你的智能体把模糊的项目整理成一张清晰的决策问题图,然后逐个处理,直到路径变得清楚。