@tekyzinc/gsd-t 2.56.11 → 2.56.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekyzinc/gsd-t",
3
- "version": "2.56.11",
3
+ "version": "2.56.12",
4
4
  "description": "GSD-T: Contract-Driven Development for Claude Code — 51 slash commands with headless CI/CD mode, graph-powered code analysis, real-time agent dashboard, execution intelligence, task telemetry, doc-ripple enforcement, backlog management, impact analysis, test sync, milestone archival, and PRD generation",
5
5
  "author": "Tekyz, Inc.",
6
6
  "license": "MIT",
@@ -259,7 +259,46 @@ MANDATORY:
259
259
 
260
260
  ---
261
261
 
262
- ## 10. CSS Precision Rules
262
+ ## 10. Naming Conventions (Classes, IDs, Data Attributes)
263
+
264
+ ```
265
+ MANDATORY:
266
+ ├── CSS class naming — use ONE consistent convention per project:
267
+ │ BEM: .block__element--modifier (e.g., .card__title--highlighted)
268
+ │ Tailwind: utility classes only (no custom class names needed)
269
+ │ CSS Modules: camelCase (e.g., styles.cardTitle)
270
+ │ Scoped CSS (Vue/Svelte): semantic kebab-case (e.g., .card-title)
271
+ │ NEVER mix conventions in the same project
272
+ ├── IDs — use sparingly, only when required:
273
+ │ Form label associations: <label for="email-input">
274
+ │ Anchor targets: <section id="pricing">
275
+ │ ARIA references: aria-labelledby, aria-describedby
276
+ │ NEVER use IDs for styling — classes only
277
+ │ NEVER use auto-generated or meaningless IDs (id="div1", id="el-47")
278
+ ├── Data attributes — for JavaScript hooks and testing:
279
+ │ data-testid for test selectors (e.g., data-testid="submit-button")
280
+ │ data-* for component state/config (e.g., data-active="true")
281
+ │ NEVER use classes or IDs for JavaScript selection — use data attributes
282
+ ├── Component naming — match the design system:
283
+ │ If Figma layers are named "Hero/CTA Button" → component is CTAButton
284
+ │ If design system has "Card > Title" → class is .card__title or .card-title
285
+ │ Align code names with design names for traceability
286
+ ├── Semantic naming — describe purpose, not appearance:
287
+ │ BAD: .blue-text, .big-box, .left-panel, .mt-20
288
+ │ GOOD: .primary-action, .feature-card, .sidebar, .section-spacing
289
+ │ Exception: utility classes in Tailwind (appearance-based by design)
290
+ └── File naming — match component names:
291
+ Component: FeatureCard.vue → styles: feature-card.css or scoped
292
+ Component: HeroSection.tsx → test: HeroSection.test.tsx
293
+ ```
294
+
295
+ **BAD** — `<div class="div1 blue-thing" id="x47" onclick="...">`
296
+
297
+ **GOOD** — `<section class="feature-card" data-testid="feature-card-pricing">`
298
+
299
+ ---
300
+
301
+ ## 11. CSS Precision Rules
263
302
 
264
303
  ```
265
304
  MANDATORY:
@@ -290,7 +329,7 @@ MANDATORY:
290
329
 
291
330
  ---
292
331
 
293
- ## 11. Typography Rendering
332
+ ## 12. Typography Rendering
294
333
 
295
334
  ```
296
335
  MANDATORY:
@@ -323,7 +362,7 @@ MANDATORY:
323
362
 
324
363
  ---
325
364
 
326
- ## 12. Color Accuracy
365
+ ## 13. Color Accuracy
327
366
 
328
367
  ```
329
368
  MANDATORY:
@@ -357,7 +396,7 @@ MANDATORY:
357
396
 
358
397
  ---
359
398
 
360
- ## 13. Interactive States
399
+ ## 14. Interactive States
361
400
 
362
401
  ```
363
402
  MANDATORY:
@@ -394,7 +433,7 @@ MANDATORY:
394
433
 
395
434
  ---
396
435
 
397
- ## 14. Visual Verification Loop
436
+ ## 15. Visual Verification Loop
398
437
 
399
438
  ```
400
439
  MANDATORY:
@@ -454,7 +493,7 @@ MANDATORY:
454
493
 
455
494
  ---
456
495
 
457
- ## 15. Anti-Patterns
496
+ ## 16. Anti-Patterns
458
497
 
459
498
  ```
460
499
  NEVER DO THESE:
@@ -474,7 +513,7 @@ NEVER DO THESE:
474
513
 
475
514
  ---
476
515
 
477
- ## 16. Design-to-Code Verification Checklist
516
+ ## 17. Design-to-Code Verification Checklist
478
517
 
479
518
  Before marking any design implementation task as complete:
480
519
 
@@ -486,6 +525,7 @@ Before marking any design implementation task as complete:
486
525
  - [ ] Every CSS value traces to a design contract entry
487
526
  - [ ] CSS custom properties (or Tailwind config) define all design tokens
488
527
  - [ ] Semantic HTML used (no div-soup, proper heading hierarchy)
528
+ - [ ] Naming conventions consistent: classes (BEM/Tailwind/Modules/scoped), IDs (minimal, semantic), data-testid for test hooks
489
529
  - [ ] All interactive states implemented (hover, focus, active, disabled)
490
530
  - [ ] Responsive behavior implemented for all target breakpoints
491
531
  - [ ] Visual verification loop completed at mobile, tablet, and desktop widths