Files
playzer/.agents/skills/interface-design/references/validation.md
Jose Selesan c9ecdd2c77 Add interface design references and principles; implement sport service tests
- Introduced critique, example, principles, and validation documents for interface design.
- Enhanced backend service with coverage threshold and fixed variable declaration in sport service.
- Added comprehensive tests for create, update, and list sports functionalities.
2026-04-24 10:40:25 -03:00

1.0 KiB

Memory Management

When and how to update .interface-design/system.md.

When to Add Patterns

Add to system.md when:

  • Component used 2+ times
  • Pattern is reusable across the project
  • Has specific measurements worth remembering

Pattern Format

### Button Primary
- Height: 36px
- Padding: 12px 16px
- Radius: 6px
- Font: 14px, 500 weight

Don't Document

  • One-off components
  • Temporary experiments
  • Variations better handled with props

Pattern Reuse

Before creating a component, check system.md:

  • Pattern exists? Use it.
  • Need variation? Extend, don't create new.

Memory compounds: each pattern saved makes future work faster and more consistent.


Validation Checks

If system.md defines specific values, check consistency:

Spacing — All values multiples of the defined base?

Depth — Using the declared strategy throughout? (borders-only means no shadows)

Colors — Using defined palette, not random hex codes?

Patterns — Reusing documented patterns instead of creating new?