@tekyzinc/gsd-t 2.56.11 → 2.56.13
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/commands/gsd.md +10 -0
- package/package.json +1 -1
- package/templates/stacks/design-to-code.md +47 -7
package/commands/gsd.md
CHANGED
|
@@ -57,6 +57,16 @@ When the same request could fit multiple commands at different scales:
|
|
|
57
57
|
- **Needs investigation before fixing** → `debug` (not `quick`)
|
|
58
58
|
- **Spec/requirements to verify against code** → `gap-analysis` (not `scan`)
|
|
59
59
|
|
|
60
|
+
### Design-to-code routing:
|
|
61
|
+
|
|
62
|
+
When the request involves UI implementation from a design (Figma, screenshots, mockups, "pixel-perfect", "match the design", "rebuild the frontend"):
|
|
63
|
+
- **NEVER route to `quick`** — design-to-code requires the full workflow with design contract, token extraction, and visual verification
|
|
64
|
+
- **If no active milestone exists** → route to `wave` (creates milestone → partition with design contract → plan → execute with visual verification)
|
|
65
|
+
- **If a milestone exists but no domains** → route to `partition` (creates design contract in Step 3.6)
|
|
66
|
+
- **If domains exist but no tasks** → route to `plan`
|
|
67
|
+
- **If tasks exist** → route to `execute` (design-to-code stack rule will inject)
|
|
68
|
+
- The design-to-code stack rule activates automatically when `.gsd-t/contracts/design-contract.md` exists or Figma MCP is configured — but the **partition step must run first** to create the design contract
|
|
69
|
+
|
|
60
70
|
## Step 3: Confirm and Execute
|
|
61
71
|
|
|
62
72
|
**MANDATORY — output one of these lines as the VERY FIRST thing in your response, before any tool calls or other output.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekyzinc/gsd-t",
|
|
3
|
-
"version": "2.56.
|
|
3
|
+
"version": "2.56.13",
|
|
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.
|
|
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
|
-
##
|
|
332
|
+
## 12. Typography Rendering
|
|
294
333
|
|
|
295
334
|
```
|
|
296
335
|
MANDATORY:
|
|
@@ -323,7 +362,7 @@ MANDATORY:
|
|
|
323
362
|
|
|
324
363
|
---
|
|
325
364
|
|
|
326
|
-
##
|
|
365
|
+
## 13. Color Accuracy
|
|
327
366
|
|
|
328
367
|
```
|
|
329
368
|
MANDATORY:
|
|
@@ -357,7 +396,7 @@ MANDATORY:
|
|
|
357
396
|
|
|
358
397
|
---
|
|
359
398
|
|
|
360
|
-
##
|
|
399
|
+
## 14. Interactive States
|
|
361
400
|
|
|
362
401
|
```
|
|
363
402
|
MANDATORY:
|
|
@@ -394,7 +433,7 @@ MANDATORY:
|
|
|
394
433
|
|
|
395
434
|
---
|
|
396
435
|
|
|
397
|
-
##
|
|
436
|
+
## 15. Visual Verification Loop
|
|
398
437
|
|
|
399
438
|
```
|
|
400
439
|
MANDATORY:
|
|
@@ -454,7 +493,7 @@ MANDATORY:
|
|
|
454
493
|
|
|
455
494
|
---
|
|
456
495
|
|
|
457
|
-
##
|
|
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
|
-
##
|
|
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
|