user-context
Skill này làm gì
Skill này lưu các tài liệu tham chiếu thiết kế và sản phẩm bạn dùng thường xuyên, rồi giữ chúng cho lần sau. Skill dành cho nhà thiết kế muốn nguồn và tùy chọn sẵn sàng mỗi lần bắt đầu.
Khi nào nên dùng
- ✓Khi bạn muốn thiết lập công việc thiết kế và lưu liên kết hoặc tệp sản phẩm.
- ✓Khi bạn muốn xem bối cảnh thiết kế nào đã được lưu.
- ✓Khi bạn muốn cập nhật một tùy chọn hoặc nguồn cho công việc thiết kế sau này.
Liên kết skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/product-design/workflows/user-context/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn lưu website sản phẩm, tệp Figma và màu thương hiệu của mình để công việc thiết kế sau này bắt đầu từ đó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra xem nó có thể lưu tệp cho các cuộc trò chuyện sau không, rồi đọc hoặc cập nhật tệp bối cảnh đã lưu. Nó chỉ dùng các tham chiếu mà tác vụ hiện tại cần.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có thể lưu những gì?
URL sản phẩm, tệp Figma, ảnh chụp màn hình, đường dẫn mã nguồn, hệ thống thiết kế, tài nguyên thương hiệu và tùy chọn trình duyệt.
Nếu không thể lưu thì sao?
Skill nói nó chỉ có thể dùng bối cảnh trong cuộc trò chuyện hiện tại, và sẽ không khẳng định bối cảnh đã được lưu để dùng sau.
Mỗi lần nó có đọc mọi tham chiếu đã lưu không?
Không. Nó chỉ kiểm tra các tham chiếu mà tác vụ hiện tại cần.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11346
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
effect
14kGiúp agent của bạn trả lời câu hỏi về framework TypeScript Effect bằng cách kiểm tra mã nguồn và tài liệu, thay vì dựa vào trí nhớ.
arxiv
14kGiúp agent của bạn tìm, đọc, trích dẫn và theo dõi các bài báo học thuật trên arXiv, gồm tóm tắt, trích dẫn BibTeX, tải PDF và liên kết trích dẫn.
claude-code
14kGiúp agent của bạn giao một tác vụ lập trình cho công cụ dòng lệnh Claude Code, dưới dạng chạy một lần, phiên tương tác hoặc tác vụ nền.
codex
14kGiúp agent của bạn chạy công cụ dòng lệnh OpenAI Codex mà không cần cửa sổ chat, cho tác vụ lập trình, tập lệnh và quy trình tự động.
Skill tương tự
canvas
394kCho phép agent của bạn hiện một widget trực quan được lưu trữ trên bảng Mac đã kết nối, rồi ẩn bảng hoặc chuyển nó sang trang khác.
control-ui
394kGiúp agent của bạn sắp xếp và khắc phục sự cố Control UI của OpenClaw, gồm các phiên, bảng điều khiển và Gateway đã kết nối.
diagram-maker
394kGiúp agent của bạn vẽ sơ đồ rõ ràng dạng SVG, HTML hoặc Excalidraw có thể sửa, cho quy trình, kiến trúc hệ thống và bản phác bảng trắng.