@tekyzinc/gsd-t 2.69.10 → 2.69.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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to GSD-T are documented here. Updated with each release.
|
|
4
4
|
|
|
5
|
+
## [2.69.12] - 2026-04-05
|
|
6
|
+
|
|
7
|
+
### Fixed (gsd-t-design-audit, gsd-t-design-decompose)
|
|
8
|
+
- **Explicit `get_screenshot` prohibition** — agents were choosing `get_screenshot` (returns pixels) instead of `get_design_context` (returns structured code/tokens) for per-widget Figma extraction, defeating structured comparison. Both commands now have explicit tool guards: "NEVER use `get_screenshot` for Figma design extraction." `get_screenshot` is only acceptable for capturing the built page, not for extracting Figma source data.
|
|
9
|
+
|
|
10
|
+
## [2.69.11] - 2026-04-05
|
|
11
|
+
|
|
12
|
+
### Changed (gsd-t-design-audit)
|
|
13
|
+
- **Auto-fix prompt** — after audit completes, if CRITICAL/HIGH deviations found, automatically prompts `/user:gsd-t-quick` with the audit report as source of truth. Re-runs audit after fixes to verify. Up to 2 fix cycles before stopping.
|
|
14
|
+
|
|
5
15
|
## [2.69.10] - 2026-04-05
|
|
6
16
|
|
|
7
17
|
### Added
|
|
@@ -33,13 +33,16 @@ Figma node tree:
|
|
|
33
33
|
|
|
34
34
|
### 1b. Extract each widget node
|
|
35
35
|
|
|
36
|
-
For EACH widget-level node, call
|
|
36
|
+
For EACH widget-level node, call **`get_design_context`** (NOT `get_screenshot`) with the specific node ID. `get_design_context` returns structured code and component properties that you can extract exact values from. `get_screenshot` returns only visual images — do NOT use it for Figma data extraction.
|
|
37
|
+
|
|
38
|
+
Record from the `get_design_context` response:
|
|
37
39
|
- **Chart/element type**: what visual pattern does this node contain?
|
|
38
40
|
- **All text content**: every title, subtitle, label, column header, legend item, KPI value, axis label
|
|
39
41
|
- **Layout properties**: alignment, spacing, sizing from the returned code/structure
|
|
40
42
|
- **Colors**: exact hex values for fills, strokes, text
|
|
41
43
|
|
|
42
44
|
> **⚠ Size guard**: Never call `get_design_context` on the full page frame. Always call on individual widget/card nodes.
|
|
45
|
+
> **⚠ Tool guard**: NEVER use `get_screenshot` to extract Figma design values. It gives you pixels, not properties. Use `get_design_context` — it gives you code, tokens, and structured data.
|
|
43
46
|
|
|
44
47
|
### 1c. Classify each element using the taxonomy
|
|
45
48
|
|
|
@@ -182,12 +185,51 @@ Save the full report to `.gsd-t/design-audit-{page-name}-{YYYY-MM-DD}.md`
|
|
|
182
185
|
|
|
183
186
|
Display the summary to the user inline.
|
|
184
187
|
|
|
188
|
+
## Step 6: Fix Prompt (auto-triggered if deviations found)
|
|
189
|
+
|
|
190
|
+
If ANY CRITICAL or HIGH deviations were found, automatically prompt the fix workflow:
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
───────────────────────────────────────────────────────────────
|
|
194
|
+
|
|
195
|
+
## ▶ Fix Deviations
|
|
196
|
+
|
|
197
|
+
**{N} CRITICAL + {N} HIGH deviations found.** Fix them now?
|
|
198
|
+
|
|
199
|
+
The audit report at `.gsd-t/design-audit-{page-name}-{YYYY-MM-DD}.md`
|
|
200
|
+
has the exact Figma values for each deviation.
|
|
201
|
+
|
|
202
|
+
`/user:gsd-t-quick fix all CRITICAL and HIGH deviations from .gsd-t/design-audit-{page-name}-{YYYY-MM-DD}.md — use the Figma values in the report as the source of truth`
|
|
203
|
+
|
|
204
|
+
───────────────────────────────────────────────────────────────
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
If ONLY MEDIUM or LOW deviations remain, show:
|
|
208
|
+
|
|
209
|
+
```
|
|
210
|
+
───────────────────────────────────────────────────────────────
|
|
211
|
+
|
|
212
|
+
## ▶ Polish (optional)
|
|
213
|
+
|
|
214
|
+
**{N} MEDIUM + {N} LOW deviations.** These are minor — fix if you want pixel-perfect.
|
|
215
|
+
|
|
216
|
+
`/user:gsd-t-quick fix MEDIUM and LOW deviations from .gsd-t/design-audit-{page-name}-{YYYY-MM-DD}.md`
|
|
217
|
+
|
|
218
|
+
───────────────────────────────────────────────────────────────
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
If ZERO deviations → display "✅ Pixel-perfect. No fixes needed."
|
|
222
|
+
|
|
223
|
+
After fixes are applied, **re-run the audit automatically** to verify. Loop until:
|
|
224
|
+
- All CRITICAL and HIGH are resolved, OR
|
|
225
|
+
- 2 fix cycles have been attempted (then stop and present remaining deviations to user)
|
|
226
|
+
|
|
185
227
|
## Rules
|
|
186
228
|
|
|
187
|
-
- **You write ZERO code.** Report only.
|
|
229
|
+
- **You write ZERO code during the audit phase (Steps 1-5).** Report only. Code changes happen in Step 6 via `/user:gsd-t-quick`.
|
|
188
230
|
- **You do NOT "look close" at anything.** Every property gets an exact value from Figma and an exact value from the build. They match or they don't.
|
|
189
231
|
- **You do NOT skip widgets.** Every widget in the Figma AND every widget in the build gets audited.
|
|
190
|
-
- **You call `get_design_context` per widget node
|
|
232
|
+
- **You MUST call `get_design_context` per widget node — NOT `get_screenshot`.** `get_design_context` returns structured code, component properties, and design tokens. `get_screenshot` returns only a visual image that you cannot extract exact values from. Using `get_screenshot` for widget extraction defeats the entire purpose of structured comparison — you end up eyeballing instead of measuring. The ONLY acceptable use of `get_screenshot` is for the built page (Step 2) where you need to see what was actually rendered. For Figma source data, ALWAYS use `get_design_context`.
|
|
191
233
|
- **You walk the taxonomy decision tree** for every chart element — document your reasoning.
|
|
192
234
|
- **Minimum 10 rows per widget, 30+ for complex widgets.** Fewer rows means you skipped properties.
|
|
193
235
|
- **If you can't determine a value** (e.g., Figma MCP unavailable for exact px), note "⚠ estimated from screenshot" — but still provide your best measurement.
|
|
@@ -71,6 +71,8 @@ Node tree for page "Analytics":
|
|
|
71
71
|
|
|
72
72
|
**Anti-pattern**: Looking at a page screenshot and writing "I see a donut chart" without calling `get_design_context` on that specific node. The MCP returns structured data about the component — use it.
|
|
73
73
|
|
|
74
|
+
> **⚠ Tool guard**: NEVER use `get_screenshot` for Figma design extraction. `get_screenshot` returns pixels — you cannot extract exact property values, spacing, colors, or text from an image with confidence. `get_design_context` returns structured code, component properties, and design tokens. Always use `get_design_context` per widget node.
|
|
75
|
+
|
|
74
76
|
### 1d. Produce the flat inventory table WITH data inventory
|
|
75
77
|
|
|
76
78
|
| # | Element on Design | Figma Node ID | Appears On Pages | Text Content Extracted | Visual Variant |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekyzinc/gsd-t",
|
|
3
|
-
"version": "2.69.
|
|
3
|
+
"version": "2.69.12",
|
|
4
4
|
"description": "GSD-T: Contract-Driven Development for Claude Code — 54 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",
|