jig-ui 0.1.0

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.
@@ -0,0 +1,637 @@
1
+ [
2
+ {
3
+ "id": "A-01",
4
+ "bucket": "hybrid",
5
+ "severity": "warning",
6
+ "detector": "violet-band-hue",
7
+ "since": "0.1.0"
8
+ },
9
+ {
10
+ "id": "A-02",
11
+ "bucket": "mechanical",
12
+ "severity": "error",
13
+ "detector": "gradient-text",
14
+ "fix": "solid-text-color",
15
+ "since": "0.1.0"
16
+ },
17
+ {
18
+ "id": "A-04",
19
+ "bucket": "mechanical",
20
+ "severity": "error",
21
+ "detector": "backdrop-blur",
22
+ "since": "0.1.0"
23
+ },
24
+ {
25
+ "id": "C-18",
26
+ "bucket": "mechanical",
27
+ "severity": "warning",
28
+ "detector": "pure-black-white",
29
+ "fix": "token-background",
30
+ "since": "0.1.0"
31
+ },
32
+ {
33
+ "id": "C-19",
34
+ "bucket": "mechanical",
35
+ "severity": "error",
36
+ "detector": "contrast-floor",
37
+ "since": "0.1.0"
38
+ },
39
+ {
40
+ "id": "E-29",
41
+ "bucket": "mechanical",
42
+ "severity": "error",
43
+ "detector": "focus-removed",
44
+ "fix": "add-focus-visible",
45
+ "since": "0.1.0"
46
+ },
47
+ {
48
+ "id": "H-47",
49
+ "bucket": "mechanical",
50
+ "severity": "error",
51
+ "detector": "hardcoded-value",
52
+ "fix": "token-substitute",
53
+ "since": "0.1.0"
54
+ },
55
+ {
56
+ "id": "A-03",
57
+ "bucket": "judgment",
58
+ "severity": "note",
59
+ "since": "0.1.0"
60
+ },
61
+ {
62
+ "id": "A-58",
63
+ "bucket": "judgment",
64
+ "severity": "note",
65
+ "since": "0.1.0"
66
+ },
67
+ {
68
+ "id": "A-59",
69
+ "bucket": "judgment",
70
+ "severity": "note",
71
+ "since": "0.1.0"
72
+ },
73
+ {
74
+ "id": "A-60",
75
+ "bucket": "judgment",
76
+ "severity": "note",
77
+ "since": "0.1.0"
78
+ },
79
+ {
80
+ "id": "A-67",
81
+ "bucket": "judgment",
82
+ "severity": "note",
83
+ "since": "0.1.0"
84
+ },
85
+ {
86
+ "id": "A-05",
87
+ "bucket": "judgment",
88
+ "severity": "note",
89
+ "since": "0.1.0"
90
+ },
91
+ {
92
+ "id": "A-06",
93
+ "bucket": "judgment",
94
+ "severity": "note",
95
+ "since": "0.1.0"
96
+ },
97
+ {
98
+ "id": "A-07",
99
+ "bucket": "judgment",
100
+ "severity": "note",
101
+ "since": "0.1.0"
102
+ },
103
+ {
104
+ "id": "A-08",
105
+ "bucket": "judgment",
106
+ "severity": "note",
107
+ "since": "0.1.0"
108
+ },
109
+ {
110
+ "id": "A-09",
111
+ "bucket": "judgment",
112
+ "severity": "note",
113
+ "since": "0.1.0"
114
+ },
115
+ {
116
+ "id": "A-10",
117
+ "bucket": "judgment",
118
+ "severity": "note",
119
+ "since": "0.1.0"
120
+ },
121
+ {
122
+ "id": "B-11",
123
+ "bucket": "judgment",
124
+ "severity": "note",
125
+ "since": "0.1.0"
126
+ },
127
+ {
128
+ "id": "B-12",
129
+ "bucket": "judgment",
130
+ "severity": "note",
131
+ "since": "0.1.0"
132
+ },
133
+ {
134
+ "id": "B-13",
135
+ "bucket": "judgment",
136
+ "severity": "note",
137
+ "since": "0.1.0"
138
+ },
139
+ {
140
+ "id": "B-14",
141
+ "bucket": "judgment",
142
+ "severity": "note",
143
+ "since": "0.1.0"
144
+ },
145
+ {
146
+ "id": "B-15",
147
+ "bucket": "judgment",
148
+ "severity": "note",
149
+ "since": "0.1.0"
150
+ },
151
+ {
152
+ "id": "B-16",
153
+ "bucket": "judgment",
154
+ "severity": "note",
155
+ "since": "0.1.0"
156
+ },
157
+ {
158
+ "id": "B-17",
159
+ "bucket": "judgment",
160
+ "severity": "note",
161
+ "since": "0.1.0"
162
+ },
163
+ {
164
+ "id": "B-75",
165
+ "bucket": "judgment",
166
+ "severity": "note",
167
+ "since": "0.1.0"
168
+ },
169
+ {
170
+ "id": "B-76",
171
+ "bucket": "judgment",
172
+ "severity": "note",
173
+ "since": "0.1.0"
174
+ },
175
+ {
176
+ "id": "B-77",
177
+ "bucket": "judgment",
178
+ "severity": "note",
179
+ "since": "0.1.0"
180
+ },
181
+ {
182
+ "id": "B-78",
183
+ "bucket": "judgment",
184
+ "severity": "note",
185
+ "since": "0.1.0"
186
+ },
187
+ {
188
+ "id": "C-66",
189
+ "bucket": "judgment",
190
+ "severity": "note",
191
+ "since": "0.1.0"
192
+ },
193
+ {
194
+ "id": "C-20",
195
+ "bucket": "judgment",
196
+ "severity": "note",
197
+ "since": "0.1.0"
198
+ },
199
+ {
200
+ "id": "C-21",
201
+ "bucket": "judgment",
202
+ "severity": "note",
203
+ "since": "0.1.0"
204
+ },
205
+ {
206
+ "id": "C-22",
207
+ "bucket": "judgment",
208
+ "severity": "note",
209
+ "since": "0.1.0"
210
+ },
211
+ {
212
+ "id": "C-49",
213
+ "bucket": "judgment",
214
+ "severity": "note",
215
+ "since": "0.1.0"
216
+ },
217
+ {
218
+ "id": "C-50",
219
+ "bucket": "judgment",
220
+ "severity": "note",
221
+ "since": "0.1.0"
222
+ },
223
+ {
224
+ "id": "C-68",
225
+ "bucket": "judgment",
226
+ "severity": "note",
227
+ "since": "0.1.0"
228
+ },
229
+ {
230
+ "id": "D-23",
231
+ "bucket": "judgment",
232
+ "severity": "note",
233
+ "since": "0.1.0"
234
+ },
235
+ {
236
+ "id": "D-24",
237
+ "bucket": "judgment",
238
+ "severity": "note",
239
+ "since": "0.1.0"
240
+ },
241
+ {
242
+ "id": "D-69",
243
+ "bucket": "judgment",
244
+ "severity": "note",
245
+ "since": "0.1.0"
246
+ },
247
+ {
248
+ "id": "D-96",
249
+ "bucket": "judgment",
250
+ "severity": "note",
251
+ "since": "0.1.0"
252
+ },
253
+ {
254
+ "id": "D-70",
255
+ "bucket": "judgment",
256
+ "severity": "note",
257
+ "since": "0.1.0"
258
+ },
259
+ {
260
+ "id": "D-71",
261
+ "bucket": "judgment",
262
+ "severity": "note",
263
+ "since": "0.1.0"
264
+ },
265
+ {
266
+ "id": "D-72",
267
+ "bucket": "judgment",
268
+ "severity": "note",
269
+ "since": "0.1.0"
270
+ },
271
+ {
272
+ "id": "D-25",
273
+ "bucket": "judgment",
274
+ "severity": "note",
275
+ "since": "0.1.0"
276
+ },
277
+ {
278
+ "id": "D-26",
279
+ "bucket": "judgment",
280
+ "severity": "note",
281
+ "since": "0.1.0"
282
+ },
283
+ {
284
+ "id": "D-27",
285
+ "bucket": "judgment",
286
+ "severity": "note",
287
+ "since": "0.1.0"
288
+ },
289
+ {
290
+ "id": "E-28",
291
+ "bucket": "judgment",
292
+ "severity": "note",
293
+ "since": "0.1.0"
294
+ },
295
+ {
296
+ "id": "E-30",
297
+ "bucket": "judgment",
298
+ "severity": "note",
299
+ "since": "0.1.0"
300
+ },
301
+ {
302
+ "id": "E-31",
303
+ "bucket": "judgment",
304
+ "severity": "note",
305
+ "since": "0.1.0"
306
+ },
307
+ {
308
+ "id": "E-32",
309
+ "bucket": "judgment",
310
+ "severity": "note",
311
+ "since": "0.1.0"
312
+ },
313
+ {
314
+ "id": "E-33",
315
+ "bucket": "judgment",
316
+ "severity": "note",
317
+ "since": "0.1.0"
318
+ },
319
+ {
320
+ "id": "E-34",
321
+ "bucket": "judgment",
322
+ "severity": "note",
323
+ "since": "0.1.0"
324
+ },
325
+ {
326
+ "id": "E-35",
327
+ "bucket": "judgment",
328
+ "severity": "note",
329
+ "since": "0.1.0"
330
+ },
331
+ {
332
+ "id": "E-51",
333
+ "bucket": "judgment",
334
+ "severity": "note",
335
+ "since": "0.1.0"
336
+ },
337
+ {
338
+ "id": "E-52",
339
+ "bucket": "judgment",
340
+ "severity": "note",
341
+ "since": "0.1.0"
342
+ },
343
+ {
344
+ "id": "E-61",
345
+ "bucket": "judgment",
346
+ "severity": "note",
347
+ "since": "0.1.0"
348
+ },
349
+ {
350
+ "id": "E-62",
351
+ "bucket": "judgment",
352
+ "severity": "note",
353
+ "since": "0.1.0"
354
+ },
355
+ {
356
+ "id": "E-63",
357
+ "bucket": "judgment",
358
+ "severity": "note",
359
+ "since": "0.1.0"
360
+ },
361
+ {
362
+ "id": "E-64",
363
+ "bucket": "judgment",
364
+ "severity": "note",
365
+ "since": "0.1.0"
366
+ },
367
+ {
368
+ "id": "E-65",
369
+ "bucket": "judgment",
370
+ "severity": "note",
371
+ "since": "0.1.0"
372
+ },
373
+ {
374
+ "id": "E-73",
375
+ "bucket": "judgment",
376
+ "severity": "note",
377
+ "since": "0.1.0"
378
+ },
379
+ {
380
+ "id": "E-74",
381
+ "bucket": "judgment",
382
+ "severity": "note",
383
+ "since": "0.1.0"
384
+ },
385
+ {
386
+ "id": "E-91",
387
+ "bucket": "judgment",
388
+ "severity": "note",
389
+ "since": "0.1.0"
390
+ },
391
+ {
392
+ "id": "E-92",
393
+ "bucket": "judgment",
394
+ "severity": "note",
395
+ "since": "0.1.0"
396
+ },
397
+ {
398
+ "id": "E-93",
399
+ "bucket": "judgment",
400
+ "severity": "note",
401
+ "since": "0.1.0"
402
+ },
403
+ {
404
+ "id": "E-94",
405
+ "bucket": "judgment",
406
+ "severity": "note",
407
+ "since": "0.1.0"
408
+ },
409
+ {
410
+ "id": "E-95",
411
+ "bucket": "judgment",
412
+ "severity": "note",
413
+ "since": "0.1.0"
414
+ },
415
+ {
416
+ "id": "F-36",
417
+ "bucket": "judgment",
418
+ "severity": "note",
419
+ "since": "0.1.0"
420
+ },
421
+ {
422
+ "id": "F-37",
423
+ "bucket": "judgment",
424
+ "severity": "note",
425
+ "since": "0.1.0"
426
+ },
427
+ {
428
+ "id": "F-38",
429
+ "bucket": "judgment",
430
+ "severity": "note",
431
+ "since": "0.1.0"
432
+ },
433
+ {
434
+ "id": "F-39",
435
+ "bucket": "judgment",
436
+ "severity": "note",
437
+ "since": "0.1.0"
438
+ },
439
+ {
440
+ "id": "F-40",
441
+ "bucket": "judgment",
442
+ "severity": "note",
443
+ "since": "0.1.0"
444
+ },
445
+ {
446
+ "id": "F-41",
447
+ "bucket": "judgment",
448
+ "severity": "note",
449
+ "since": "0.1.0"
450
+ },
451
+ {
452
+ "id": "F-97",
453
+ "bucket": "judgment",
454
+ "severity": "note",
455
+ "since": "0.1.0"
456
+ },
457
+ {
458
+ "id": "F-98",
459
+ "bucket": "judgment",
460
+ "severity": "note",
461
+ "since": "0.1.0"
462
+ },
463
+ {
464
+ "id": "F-99",
465
+ "bucket": "judgment",
466
+ "severity": "note",
467
+ "since": "0.1.0"
468
+ },
469
+ {
470
+ "id": "F-100",
471
+ "bucket": "judgment",
472
+ "severity": "note",
473
+ "since": "0.1.0"
474
+ },
475
+ {
476
+ "id": "F-101",
477
+ "bucket": "judgment",
478
+ "severity": "note",
479
+ "since": "0.1.0"
480
+ },
481
+ {
482
+ "id": "F-102",
483
+ "bucket": "judgment",
484
+ "severity": "note",
485
+ "since": "0.1.0"
486
+ },
487
+ {
488
+ "id": "F-103",
489
+ "bucket": "judgment",
490
+ "severity": "note",
491
+ "since": "0.1.0"
492
+ },
493
+ {
494
+ "id": "F-104",
495
+ "bucket": "judgment",
496
+ "severity": "note",
497
+ "since": "0.1.0"
498
+ },
499
+ {
500
+ "id": "G-42",
501
+ "bucket": "judgment",
502
+ "severity": "note",
503
+ "since": "0.1.0"
504
+ },
505
+ {
506
+ "id": "G-43",
507
+ "bucket": "judgment",
508
+ "severity": "note",
509
+ "since": "0.1.0"
510
+ },
511
+ {
512
+ "id": "G-44",
513
+ "bucket": "judgment",
514
+ "severity": "note",
515
+ "since": "0.1.0"
516
+ },
517
+ {
518
+ "id": "H-45",
519
+ "bucket": "judgment",
520
+ "severity": "note",
521
+ "since": "0.1.0"
522
+ },
523
+ {
524
+ "id": "H-46",
525
+ "bucket": "judgment",
526
+ "severity": "note",
527
+ "since": "0.1.0"
528
+ },
529
+ {
530
+ "id": "H-48",
531
+ "bucket": "judgment",
532
+ "severity": "note",
533
+ "since": "0.1.0"
534
+ },
535
+ {
536
+ "id": "I-53",
537
+ "bucket": "judgment",
538
+ "severity": "note",
539
+ "since": "0.1.0"
540
+ },
541
+ {
542
+ "id": "I-55",
543
+ "bucket": "judgment",
544
+ "severity": "note",
545
+ "since": "0.1.0"
546
+ },
547
+ {
548
+ "id": "I-79",
549
+ "bucket": "judgment",
550
+ "severity": "note",
551
+ "since": "0.1.0"
552
+ },
553
+ {
554
+ "id": "I-54",
555
+ "bucket": "judgment",
556
+ "severity": "note",
557
+ "since": "0.1.0"
558
+ },
559
+ {
560
+ "id": "I-80",
561
+ "bucket": "judgment",
562
+ "severity": "note",
563
+ "since": "0.1.0"
564
+ },
565
+ {
566
+ "id": "I-81",
567
+ "bucket": "judgment",
568
+ "severity": "note",
569
+ "since": "0.1.0"
570
+ },
571
+ {
572
+ "id": "I-82",
573
+ "bucket": "judgment",
574
+ "severity": "note",
575
+ "since": "0.1.0"
576
+ },
577
+ {
578
+ "id": "I-83",
579
+ "bucket": "judgment",
580
+ "severity": "note",
581
+ "since": "0.1.0"
582
+ },
583
+ {
584
+ "id": "I-84",
585
+ "bucket": "judgment",
586
+ "severity": "note",
587
+ "since": "0.1.0"
588
+ },
589
+ {
590
+ "id": "I-85",
591
+ "bucket": "judgment",
592
+ "severity": "note",
593
+ "since": "0.1.0"
594
+ },
595
+ {
596
+ "id": "I-86",
597
+ "bucket": "judgment",
598
+ "severity": "note",
599
+ "since": "0.1.0"
600
+ },
601
+ {
602
+ "id": "I-87",
603
+ "bucket": "judgment",
604
+ "severity": "note",
605
+ "since": "0.1.0"
606
+ },
607
+ {
608
+ "id": "I-88",
609
+ "bucket": "judgment",
610
+ "severity": "note",
611
+ "since": "0.1.0"
612
+ },
613
+ {
614
+ "id": "I-89",
615
+ "bucket": "judgment",
616
+ "severity": "note",
617
+ "since": "0.1.0"
618
+ },
619
+ {
620
+ "id": "I-57",
621
+ "bucket": "judgment",
622
+ "severity": "note",
623
+ "since": "0.1.0"
624
+ },
625
+ {
626
+ "id": "I-56",
627
+ "bucket": "judgment",
628
+ "severity": "note",
629
+ "since": "0.1.0"
630
+ },
631
+ {
632
+ "id": "I-90",
633
+ "bucket": "judgment",
634
+ "severity": "note",
635
+ "since": "0.1.0"
636
+ }
637
+ ]
@@ -0,0 +1,53 @@
1
+ Jig is a design system consumed by coding agents. Rules are numbered and stable;
2
+ cite the number when you follow or deliberately break one.
3
+
4
+ ## Before generating or reviewing any UI
5
+
6
+ 1. Load `{{rules_path}}/00-anti-patterns.md` and `{{rules_path}}/01-modes.md`.
7
+ 2. Determine the mode from `{{config_file}}`, or infer it using the procedure in
8
+ `{{rules_path}}/01-modes.md` and state the inference in one line before building.
9
+ 3. Load the relevant section of `{{rules_path}}/03-patterns.md` for the component you are building.
10
+ 4. Load `{{rules_path}}/05-copy.md` whenever you write a label, button, heading, error or empty state.
11
+ 5. Consume tokens by semantic name only. Never write a raw colour or pixel value
12
+ at a call site.
13
+ 6. Run the self-check at the end of `{{rules_path}}/00-anti-patterns.md` before finishing
14
+ (a future `check` command will automate this).
15
+ 7. Cite any rule you deliberately break, with the reason, in one line.
16
+
17
+ Load `{{rules_path}}/04-principles.md` only when two rules conflict.
18
+
19
+ ## Commands
20
+
21
+ {{available_commands}}
22
+
23
+ Commands marked `available` run via the CLI at `{{scripts_path}}`. Commands
24
+ marked `planned` are listed for context only — running one errors out, since
25
+ it is not yet registered.
26
+
27
+ ## Reading command output
28
+
29
+ Consume the full output of any Jig command. Never pipe it through `head`, `tail`,
30
+ `grep`, or `jq` — findings are ordered by severity, not by position, and
31
+ truncating drops the ones that matter.
32
+
33
+ If a command's output is already in this session's history and no files have
34
+ changed since, do not re-run it.
35
+
36
+ ## Asking the user
37
+
38
+ {{ask_instruction}}
39
+
40
+ ## Attestation
41
+
42
+ Before you finish a task that generated or modified UI, emit this line:
43
+
44
+ ```text
45
+ JIG_CHECK: version=<version> mode=<mode> self_check=<ran|skipped>
46
+ ```
47
+
48
+ <!-- `mechanical=<pass|fail>:<n>/<total>` and `judgment=<ran|skipped>` fields
49
+ belong here once the `check` command lands and can actually produce
50
+ them — do not add them back before that. -->
51
+
52
+ A skipped self-check must say `skipped` and give the reason. Do not report
53
+ `ran` for a check you did not perform.
@@ -0,0 +1,27 @@
1
+ {
2
+ "install": {
3
+ "description": "Install Jig rules and the agent skill file into a repository.",
4
+ "argumentHint": "--agent <name> [--scope project|global]",
5
+ "status": "available"
6
+ },
7
+ "update": {
8
+ "description": "Update the vendored rules to a newer version, showing a diff and skipping files you have edited.",
9
+ "argumentHint": "",
10
+ "status": "available"
11
+ },
12
+ "init": {
13
+ "description": "Set up Jig in this project: detect the CSS system, derive or interview for brand values, validate them against the token contract, and write tokens plus jig.config.json.",
14
+ "argumentHint": "",
15
+ "status": "planned"
16
+ },
17
+ "check": {
18
+ "description": "Check changed files or a named target against the rule set. Reports violations by rule id.",
19
+ "argumentHint": "[target]",
20
+ "status": "planned"
21
+ },
22
+ "explain": {
23
+ "description": "Print a rule's full text, its correction, and the version it was introduced in.",
24
+ "argumentHint": "<rule-id>",
25
+ "status": "planned"
26
+ }
27
+ }