@sloppy-ai/skill-code 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/SKILL.md +2 -2
  2. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sloppy-code
3
3
  description: Specialist anti-slop skill for React/TypeScript component architecture, accessibility semantics, dead placeholder cleanup, and code comment hygiene. Load on-demand when writing component code, refactoring logic, or auditing comments.
4
4
  metadata:
5
- version: 1.4.0
5
+ version: 1.4.1
6
6
  ---
7
7
 
8
8
  # Sloppy Code: Component Semantics, Accessibility & Comment Hygiene
@@ -95,7 +95,7 @@ AI agents often fabricate type safety that compiles without runtime guarantees:
95
95
  - Always reach for `<button type="button">` over `<div onClick=... role="button">`.
96
96
  - Always reach for native `<dialog>` or native form controls (`<input type="date">`, `<select>`, `<input type="checkbox">`) before hand-rolling 300 lines of custom dropdown or modal state.
97
97
  - **CSS Transitions Over Heavy Runtime Engines**:
98
- - Use simple CSS transitions (`transition-all duration-150 ease-out`) for hover, focus, and state reveals.
98
+ - Use explicit CSS transitions (`transition-[color,background-color,border-color,opacity,transform] duration-150 ease-out`) for hover, focus, and state reveals. Never use `transition-all` (`MOT-06`).
99
99
  - Never import external physics libraries when 2 lines of CSS transitions accomplish the same user orientation.
100
100
  - **Minimal State Complexity**:
101
101
  - Compute values in-render where possible; avoid redundant `useState` + `useEffect` chains that lead to synchronization bugs and layout thrashing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sloppy-ai/skill-code",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Specialist anti-slop skill for React/TypeScript component architecture, accessibility semantics, and comment hygiene.",
5
5
  "main": "SKILL.md",
6
6
  "publishConfig": {