$npx -y skills add educlopez/ui-craft --skill rememberRecord 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.
| 1 | <!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. --> |
| 2 | |
| 3 | **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. |
| 4 | |
| 5 | Load `references/brief.md` (sections 6 + Self-Correction) before proceeding. |
| 6 | |
| 7 | ## Step 1: Capture the constraint |
| 8 | |
| 9 | From the argument (or the immediately preceding correction in the conversation), capture: |
| 10 | - **What** changed or is preferred — the concrete rule. |
| 11 | - **Why** — the reason. Mandatory; without it the constraint can't generalize. If it isn't stated, ask one short question. |
| 12 | - Phrase the rule so a future build can apply it without this conversation's context. |
| 13 | |
| 14 | ## Step 2: Write it to the brief |
| 15 | |
| 16 | Append a dated entry to **section 6 (Learned constraints)** of `.ui-craft/brief.md`: |
| 17 | |
| 18 | ```markdown |
| 19 | - **YYYY-MM-DD** — <the rule>. *Why:* <reason>. |
| 20 | ``` |
| 21 | |
| 22 | 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. |
| 23 | |
| 24 | ## Step 3: Cross-project reach (optional) |
| 25 | |
| 26 | If the user signals this should apply to **all** their projects ("in all my projects", "siempre que trabajes conmigo"), that's general memory, outside the brief's project scope: |
| 27 | - If an external memory service is available to the agent, mirror the constraint there so other projects inherit it. |
| 28 | - If not, record it in this brief and note that cross-project recall would need such a service. |
| 29 | |
| 30 | ## Step 4: Confirm |
| 31 | |
| 32 | Report in one line where it landed and what it changes, e.g.: |
| 33 | > Anotado en el brief (constraint aprendida): nunca gradientes en hero aquí. |