Remember

educlopez/ui-craft/.opencode/skills/remember

作者 educlopezceecc8e1fb0c2befda73da996435900d6dd0c1ac无许可证375 个星标收录于 2026年10月9日更新于 2026年10月9日仓库5周前更新

Record a learned design constraint from a correction into the project brief. Invoke when the user asks for remember on their UI, or mentions 'remember' alongside design / UI / frontend work.

AI 生成的概览

将纠正中得到的 UI 设计约束记录到项目简报,供后续会话沿用。

功能
从用户纠正或参数中提取设计规则及其原因,并在 .ui-craft/brief.md 的第 6 节(已学约束)追加带日期的条目。若简报或该节不存在则创建;若新约束与既有约束冲突,则将其标记为弃用而非删除;可选地将规则同步到外部记忆服务以跨项目使用。最后用一行确认规则记录的位置。
适用场景
当用户要求记住某项 UI、设计或前端偏好,或纠正设计决策并希望其被保留时使用。它是更广泛的 ui-craft 技能的一个视角,面向设计工作而非一般笔记。
运行要求
仅为指令,无脚本。需要访问项目的 .ui-craft/brief.md 文件;若需跨项目记忆,还需要代理可用的外部记忆服务。
<!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. -->

Context: this sub-skill is one lens of the broader ui-craft skill. If the ui-craft skill is also installed, read its SKILL.md first for Discovery + Anti-Slop + Craft Test, then apply the specific lens below.

Load references/brief.md (sections 6 + Self-Correction) before proceeding.

Step 1: Capture the constraint

From the argument (or the immediately preceding correction in the conversation), capture:

  • What changed or is preferred — the concrete rule.
  • Why — the reason. Mandatory; without it the constraint can't generalize. If it isn't stated, ask one short question.
  • Phrase the rule so a future build can apply it without this conversation's context.

Step 2: Write it to the brief

Append a dated entry to section 6 (Learned constraints) of .ui-craft/brief.md:

markdown
- **YYYY-MM-DD** — <the rule>. *Why:* <reason>.

Create the brief (run /brief) or the section 6 heading if absent. If the new constraint contradicts an existing principle or constraint, mark the old one deprecated with a dated reason (brief is append-mostly) rather than deleting it. Never store a rule that breaches the accessibility/correctness floor — record the closest compliant interpretation and say so.

Step 3: Cross-project reach (optional)

If the user signals this should apply to all their projects ("in all my projects", "whenever you work with me"), that's general memory, outside the brief's project scope:

  • If an external memory service is available to the agent, mirror the constraint there so other projects inherit it.
  • If not, record it in this brief and note that cross-project recall would need such a service.

Step 4: Confirm

Report in one line where it landed and what it changes, e.g.:

Recorded in the brief (learned constraint): never gradients on a hero here.

Next step: Keep working. The constraint now lives in the brief, so every future session reads it (rung 2).

来源与署名

来源:educlopez/ui-craft位于.opencode/skills/remember提交ceecc8e

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架