ux-flow-plan
它能做什么
这个技能让你的 AI 编写一份规划,从用户做什么以及系统如何响应开始。适合希望在修改代码前有清晰规划的产品和开发团队。
适用场景
- ✓你即将添加功能,想在编写代码前先梳理用户步骤的时候。
- ✓你想比较流程目前的运作方式与应有的运作方式的时候。
- ✓在开始构建前,你需要一份简短的设计决策和未决问题清单的时候。
技能链接
https://github.com/trycompai/crm/blob/release/.agents/skills/ux-flow-plan/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我们修改任何代码之前,请从用户点击的第一步开始,规划新邀请流程应如何为用户运作。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能把当前和期望的流程绘制为简单的树状图,然后添加对应的代码文件和函数,最后以简短的决策清单结束。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
UX Flow Plan
Create a high-level architecture plan that starts from the user experience and only then maps to code-level anchors.
Steps
Restate the feature goal in product terms, using the user's language.
Build the current-state UX flow as a tree:
User action └─ System behavior └─ Existing architectural layer └─ Relevant function/file anchorBuild the desired-state UX flow as a second tree:
User action └─ System behavior └─ New or changed architectural layer └─ Relevant function/file anchorIdentify the architectural boundary decisions:
- Which layer detects the condition
- Which layer owns side effects
- Which layer updates UI/status
- Which layer persists or mutates state
Attach implementation anchors after the trees, not before:
- Function names
- File paths
- Existing abstractions to reuse
- Tests that should cover the flow
End with a small decision list:
- Recommended architecture
- Alternatives rejected
- Open questions or assumptions
Rules
- Start with UX and system flow, not line numbers or code edits.
- Use tree diagrams for flows whenever possible.
- Keep function names and file paths attached as anchors, not as the main narrative.
- Do not over-specify implementation details before the architectural boundary is clear.
- Separate "current flow" from "desired flow".
- Call out whether a feature is coupled to an existing concept or intentionally independent from it.
- Prefer plain product and architecture language over framework-specific jargon unless the jargon names a real boundary.
常见问题
规划中包括代码细节吗?
只在接近结尾的部分包括。这个技能先构建用户流程,之后再添加函数名和文件路径。
最终清单包含什么?
它列出推荐的方案、被否决的替代方案,以及任何未决问题或假设。
规划中会列出测试吗?
会。这个技能将应覆盖该流程的测试列为实施的锚点之一。
详情
作者的原始描述
Create UX-first plans as flow trees, then attach concrete function names, files, and implementation anchors after the high-level flow is clear.
repo: trycompai/crm
热度
- GitHub 星标
- 12k
- 排名
- #11528
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
ai-elements
12k帮你的智能体用现成的组件构建 AI 聊天界面,包括对话、消息、工具显示和提示输入框。
ai-sdk
12k帮你的智能体使用 Vercel AI SDK 构建 AI 功能,包括文本生成、流式输出、工具调用和智能体。
better-accessibility
12k帮你的智能体让界面可以通过键盘和屏幕阅读器使用,涵盖焦点、标签、ARIA 和表单。
better-auth-best-practices
12k帮你的智能体按照官方文档步骤,在 TypeScript 应用中设置 Better Auth,实现登录、会话、OAuth 和插件。