user-context
它能做什么
这项技能存储你经常使用的产品和设计参考资料,并为今后的设计工作保留它们。适合希望每次开始时都能准备好来源和偏好的设计师。
适用场景
- ✓当你想设置设计工作并保存产品链接或文件的时候。
- ✓当你想查看已保存了哪些设计背景的时候。
- ✓当你想为今后的设计工作更新某项偏好或来源的时候。
技能链接
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/user-context/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想保存我的产品网站、Figma 文件和品牌颜色,使今后的设计工作从这些开始。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先确认它能否为之后的对话保存文件,然后读取或更新你已保存的背景文件。它只使用当前任务所需的参考资料。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
User Context
User Context stores the product and design references a designer uses often, so future Product Design work starts from the right sources.
Use this skill when the user asks to:
- set up Product Design
- get started with Product Design
- onboard with Product Design
- save product or design sources
- see what Product Design remembers
- update saved product or design context
- remember a Product Design preference
- setup my plugin
Critical Overrides
- Refer to the Plugin router $index before proceeding.
- Follow $critical-overrides.
- Before offering onboarding or saving context for future conversations, confirm that local shell access is available,
$CODEX_HOMEcan be resolved, and$CODEX_HOME/state/plugins/product-design/exists and is writable or can be created in a writable parent directory. Ifuser-context.mdalready exists, confirm that it is writable too. - If any check cannot be completed or fails, persistent context is unavailable. Do not offer saved-context onboarding or claim that new context was saved for future conversations. If the user asks to save something, explain that it can be used in the current conversation but not saved for future conversations.
Saved User Context
If user-context.md exists, use it by default.
Use saved product URLs, Figma files, screenshots, reference images, codebase paths, Storybook, tokens, design systems, brand assets, component refs, browser preferences, and share targets to ground Product Design work.
Ideation, prototypes, audits, clones, and critiques should match the saved product context unless the user asks for something different.
When a workflow needs visual grounding, attach or include relevant saved screenshots, reference images, tokens, design language, and component references in ImageGen, ideation, prototype, audit, and critique work.
State File
Saved context lives here:
$CODEX_HOME/state/plugins/product-design/user-context.md
Saved screenshots and reference images live next to it:
$CODEX_HOME/state/plugins/product-design/assets/
If the file does not exist, continue normally unless the user asks to set up Product Design, save context, or the current task is blocked by missing product/design context.
Preflight
When any Product Design workflow needs saved context, run:
python3 scripts/user_context_preflight.py
Use the returned saved entries as the starting context for the task.
If the script reports that no saved context exists, continue from the current user prompt unless setup context is required.
Do not browse, open, or inspect every saved reference during preflight. Inspect only the saved references needed for the current task.
Setup
Use references/onboarding.md when the user asks to set up Product Design, asks what Product Design can remember, asks what Product Design knows about their product, or provides product/design references to save.
For setup-only requests, explain what Product Design can remember and ask for useful sources.
Adjust the context-gathering request to match the user's request. First-time setup differs from updating existing context.
Do not inspect the workspace, install dependencies, scaffold a prototype, generate images, run audits, or start implementation during setup.
After the user provides references to save, run:
python3 scripts/init_user_context.py
Then add the references to the created user-context.md.
Save
Save useful, durable Product Design context:
- Product URLs
- Figma files
- Screenshots and reference images
- Codebase paths
- Storybook and component docs
- Design tokens and theme sources
- Brand, logo, icon, illustration, image, and asset sources
- Preferred browser, capture tools, and share targets
- Team conventions that make future Product Design work more accurate
When the user provides screenshots or reference images to save, copy them into assets/ next to user-context.md and link them from the saved entry.
Give each saved image a clear, descriptive filename that says what the image shows. Use names future Product Design runs can understand without opening the file.
Good image names:
assets/chatgpt-settings-modal-dark-mode.png
assets/payment-sheet-mobile-error-state.png
assets/product-dashboard-sidebar-navigation.png
assets/storybook-primary-button-states.png
assets/brand-logo-lockup-purple-gradi
常见问题
可以保存哪些内容?
产品网址、Figma 文件、截图、代码库路径、设计系统、品牌资源和浏览器偏好。
如果无法保存怎么办?
这项技能说明它只能在当前对话中使用这些背景,不会声称已为以后保存。
每次都会读取所有已保存的参考资料吗?
不会。它只检查当前任务所需的参考资料。
详情
作者的原始描述
Load or manage Product Design's saved user context. Use when the user asks to set up Product Design, get started, onboard, save product or design sources, see what Product Design remembers, update saved context, or remember Product Design preferences. Examples include product URLs, Figma files, screenshots, reference images, codebase paths, Storybook, tokens, design systems, brand assets, and general product/design notes.
repo: XiaomiMiMo/MiMo-Code
热度
- GitHub 星标
- 14k
- 排名
- #11346
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
effect
14k帮你的智能体通过查看源代码和文档来回答关于 Effect TypeScript 框架的问题,而不是依赖记忆。
arxiv
14k帮你的智能体在 arXiv 上搜索、阅读、引用和跟踪学术论文,包括摘要、BibTeX 引用、PDF 下载和引用关系。
claude-code
14k帮你的智能体把编程任务交给 Claude Code 命令行工具,可以是一次性运行、交互式会话或后台任务。
codex
14k帮你的智能体在没有聊天窗口的情况下运行 OpenAI Codex 命令行工具,用于编程任务、脚本和自动化流程。