@usesketchbook/cli 0.2.1 → 0.4.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.
Files changed (125) hide show
  1. package/.agents/skills/component-builder/SKILL.md +16 -0
  2. package/.agents/skills/contract-author/SKILL.md +16 -0
  3. package/.claude/commands/add.md +1 -5
  4. package/.claude/skills/component-builder/SKILL.md +15 -101
  5. package/.claude/skills/contract-author/SKILL.md +14 -132
  6. package/README.md +14 -30
  7. package/docs/agent-compatibility.md +43 -9
  8. package/docs/cli.md +31 -31
  9. package/harness/catalog/kits/dashboard/files/{63cde4f28d1c141c401d → 09d34e607ea6836480d1} +1 -1
  10. package/harness/catalog/kits/dashboard/files/{11a5797c4c9189b59fbe → 2239c4e4f1d873b03305} +1 -1
  11. package/harness/catalog/kits/dashboard/files/{864acc7ce20f541cf67c → 567a658f80560e3945c6} +1 -1
  12. package/harness/catalog/kits/dashboard/manifest.json +4 -4
  13. package/harness/catalog/kits/data-table/files/{b5d5d7f18347734138e0 → 35c832acd45c642705b1} +1 -1
  14. package/harness/catalog/kits/data-table/files/{36bac8f8e53119768b2e → aaf2d576ed0b53013ac3} +1 -1
  15. package/harness/catalog/kits/data-table/files/{1786ba4d3e0dba1d6a1f → ac8792b3aa3a43002c5e} +1 -1
  16. package/harness/catalog/kits/data-table/manifest.json +4 -4
  17. package/harness/catalog/kits/docs-article/files/{dbc2840f315f672e1d74 → 3c554edf05e9c8bb52c7} +1 -1
  18. package/harness/catalog/kits/docs-article/files/{7f36cb5f0d4f5e103bde → 9d0bb5a1be919431e8ce} +1 -1
  19. package/harness/catalog/kits/docs-article/files/{c2018b502a8094818d8f → e80ea70679e0065026d0} +1 -1
  20. package/harness/catalog/kits/docs-article/manifest.json +4 -4
  21. package/harness/catalog/kits/form-states/files/{b52fb2fc480f0c6352bd → 55a0558891d66e11c216} +1 -1
  22. package/harness/catalog/kits/form-states/files/{88252259f19ed675a0dc → 64566f1a9cb16592d296} +1 -1
  23. package/harness/catalog/kits/form-states/files/{b0b51ebf587b21fd89a1 → f086df13cb85411108a1} +1 -1
  24. package/harness/catalog/kits/form-states/manifest.json +4 -4
  25. package/harness/catalog/kits/onboarding/files/{e669d75a65f4d15d8289 → 738531c9cf4c8bfb9e28} +1 -1
  26. package/harness/catalog/kits/onboarding/files/{ce466020247ecf1ff5fe → b72445926f9763db6c4f} +1 -1
  27. package/harness/catalog/kits/onboarding/files/{322cf4dfc2ee0a035d85 → c969943667ca18e8b0d3} +1 -1
  28. package/harness/catalog/kits/onboarding/manifest.json +4 -4
  29. package/harness/catalog/kits/profile/files/{4aeca453e4792abf29de → 38a6ccd576aca5c96612} +1 -1
  30. package/harness/catalog/kits/profile/files/{0fdd3c14afbdadcf1969 → adccaa2829c56d7fa215} +1 -1
  31. package/harness/catalog/kits/profile/files/{5b58bb5f93ecf12d69ff → de99237cdcfb4ddef8dd} +1 -1
  32. package/harness/catalog/kits/profile/manifest.json +4 -4
  33. package/harness/catalog/kits/settings/files/{d2ebbd6e94570b2c6434 → 08c4411e3c8dbc9e614f} +1 -1
  34. package/harness/catalog/kits/settings/files/{b4a7a4ccdc59465b8de5 → d1cd9cf4acd3416e3f63} +1 -1
  35. package/harness/catalog/kits/settings/files/{1a5d639c6803e7d03acc → f325b6c93ce84d356228} +1 -1
  36. package/harness/catalog/kits/settings/manifest.json +4 -4
  37. package/harness/catalog/kits/sign-in/files/{ca224349b746c530f922 → 0ac413f342ed59e8f3d9} +1 -1
  38. package/harness/catalog/kits/sign-in/files/{552bdad5ce7559849e81 → 796309acee1d478d2692} +1 -1
  39. package/harness/catalog/kits/sign-in/files/{361745a3ed43c753c615 → a106d6104e40b13d7e82} +1 -1
  40. package/harness/catalog/kits/sign-in/manifest.json +4 -4
  41. package/harness/checks/run.mjs +1 -2
  42. package/harness/cli/commands/add.mjs +5 -3
  43. package/harness/cli/commands/api.d.mts +4 -4
  44. package/harness/cli/commands/api.mjs +1 -1
  45. package/harness/cli/commands/audit-css.mjs +1 -1
  46. package/harness/cli/commands/audit-decisions.mjs +1 -1
  47. package/harness/cli/commands/audit-page.mjs +1 -1
  48. package/harness/cli/commands/brand.mjs +1 -1
  49. package/harness/cli/commands/check.d.mts +1 -1
  50. package/harness/cli/commands/check.mjs +1 -1
  51. package/harness/cli/commands/docs.mjs +2 -2
  52. package/harness/cli/commands/doctor.d.mts +2 -2
  53. package/harness/cli/commands/doctor.mjs +7 -5
  54. package/harness/cli/commands/explain.mjs +1 -1
  55. package/harness/cli/commands/generate.mjs +1 -1
  56. package/harness/cli/commands/help.mjs +5 -5
  57. package/harness/cli/commands/icons.mjs +1 -1
  58. package/harness/cli/commands/init.d.mts +1 -1
  59. package/harness/cli/commands/init.mjs +4 -4
  60. package/harness/cli/commands/kits.mjs +3 -1
  61. package/harness/cli/commands/list.mjs +1 -1
  62. package/harness/cli/commands/prefix.mjs +1 -1
  63. package/harness/cli/commands/presets.mjs +1 -1
  64. package/harness/cli/commands/propagate.mjs +1 -1
  65. package/harness/cli/commands/remove.mjs +4 -2
  66. package/harness/cli/commands/selftest.mjs +1 -1
  67. package/harness/cli/commands/status.mjs +6 -4
  68. package/harness/cli/commands/swap.mjs +1 -1
  69. package/harness/cli/commands/sync.mjs +3 -3
  70. package/harness/cli/commands/tokens.mjs +9 -8
  71. package/harness/cli/commands/upgrade.mjs +7 -3
  72. package/harness/cli/docs.mjs +2 -2
  73. package/harness/cli/interactive.mjs +10 -10
  74. package/harness/cli/known-commands.json +26 -26
  75. package/harness/cli/presentation.d.mts +1 -1
  76. package/harness/cli/presentation.mjs +1 -1
  77. package/harness/cli/run.d.mts +3 -3
  78. package/harness/cli/run.mjs +5 -5
  79. package/harness/cli.mjs +0 -0
  80. package/harness/commands/add.mjs +1 -1
  81. package/harness/commands/bootstrap.mjs +4 -3
  82. package/harness/kits/index.json +8 -8
  83. package/harness/lib/agent-config.d.mts +1 -0
  84. package/harness/lib/agent-config.mjs +7 -6
  85. package/harness/lib/design/docs.mjs +2 -2
  86. package/harness/lib/design/sync.d.mts +1 -1
  87. package/harness/lib/installed.mjs +3 -1
  88. package/harness/lib/propagation.mjs +2 -2
  89. package/harness/manifest.json +3 -1
  90. package/harness/starters/blank.json +1 -1
  91. package/harness/starters/foundations.json +1 -1
  92. package/harness/starters/from-codebase.json +1 -1
  93. package/harness/starters/import.json +1 -1
  94. package/harness/starters/library+kits.json +1 -1
  95. package/harness/starters/library.json +1 -1
  96. package/harness/starters/pick.json +1 -1
  97. package/harness/templates/CLAUDE.md +1 -1
  98. package/harness/templates/project/.agents/skills/sketchbook/SKILL.md +1 -1
  99. package/harness/templates/project/AGENT-WORKFLOWS.md +2 -2
  100. package/harness/templates/project/docs/getting-started.md +17 -20
  101. package/harness/templates/project/package-lock.json +2 -2
  102. package/harness/templates/project/src/stories/contract.ts +4 -1
  103. package/harness/templates/project/src/stories/foundations/BorderWidth.stories.ts +1 -1
  104. package/harness/templates/project/src/stories/foundations/Color.stories.ts +1 -1
  105. package/harness/templates/project/src/stories/foundations/Density.stories.ts +1 -1
  106. package/harness/templates/project/src/stories/foundations/Elevation.stories.ts +1 -1
  107. package/harness/templates/project/src/stories/foundations/IconSizes.stories.ts +1 -1
  108. package/harness/templates/project/src/stories/foundations/LayoutGrid.stories.ts +2 -2
  109. package/harness/templates/project/src/stories/foundations/Motion.stories.ts +1 -2
  110. package/harness/templates/project/src/stories/foundations/Opacity.stories.ts +1 -1
  111. package/harness/templates/project/src/stories/foundations/Radius.stories.ts +1 -1
  112. package/harness/templates/project/src/stories/foundations/Spacing.stories.ts +1 -1
  113. package/harness/templates/project/src/stories/foundations/Typography.stories.ts +1 -1
  114. package/harness/templates/project/src/stories/foundations/ZIndex.stories.ts +1 -1
  115. package/harness/test/agent-config.test.mjs +21 -1
  116. package/harness/test/agent-guidance.test.mjs +16 -0
  117. package/harness/test/bootstrap.test.mjs +84 -15
  118. package/harness/test/checks.test.mjs +4 -1
  119. package/harness/test/claude-live.test.mjs +8 -3
  120. package/harness/test/cli.test.mjs +25 -5
  121. package/harness/test/copilot-live.test.mjs +12 -13
  122. package/harness/test/docs-reference.test.mjs +17 -0
  123. package/harness/test/opencode-live.test.mjs +25 -10
  124. package/harness/test/package.test.mjs +1 -0
  125. package/package.json +3 -1
@@ -175,12 +175,19 @@ pkgTest('B3 init --dir creates the project in a new folder inside an existing re
175
175
  await rm(app, { recursive: true, force: true });
176
176
  });
177
177
  pkgTest('B4 a failing init leaves the folder exactly as it was', async () => {
178
- const dir = await empty();
179
- const r = run(dir, 'init', '--start', 'pick', '--components', 'not-a-thing', '--no-install', '--json');
180
- assert.equal(r.code, 1);
181
- assert.deepEqual(ls(dir), []);
182
- assert.deepEqual(ls(join(dir, '..')).filter((f) => f.startsWith('.sketchbook-init-')), [], 'no stage left behind');
183
- await rm(dir, { recursive: true, force: true });
178
+ const parent = await empty();
179
+ const dir = join(parent, 'project');
180
+ try {
181
+ await mkdir(dir);
182
+ const r = run(dir, 'init', '--start', 'pick', '--components', 'not-a-thing', '--no-install', '--json');
183
+ assert.equal(r.code, 1);
184
+ assert.deepEqual(ls(dir), []);
185
+ // Init stages next to its target; inspect a private parent, not the shared system temp folder.
186
+ assert.deepEqual(ls(parent), ['project'], 'no stage left behind');
187
+ }
188
+ finally {
189
+ await rm(parent, { recursive: true, force: true });
190
+ }
184
191
  });
185
192
  pkgTest('B5 init --dry-run in an empty folder runs the same build and checks, reports them, and writes nothing', async () => {
186
193
  const dir = await empty();
@@ -566,8 +573,9 @@ void realTest('B16 a fresh library+kits project lints and typechecks with no err
566
573
  pkgTest('portable instructions are restored only when missing and preserve team edits', async () => {
567
574
  const { dir } = await created('blank', '--agent', ALL_PROFILES);
568
575
  const file = join(dir, 'AGENTS.md');
576
+ const portable = [...new Set(Object.entries(PROFILE_PATHS).filter(([profile]) => profile !== 'claude').flatMap(([, paths]) => paths))].filter((path) => path !== 'AGENTS.md');
569
577
  assert.match(await readFile(join(dir, '.aiassistant/rules/sketchbook.md'), 'utf8'), /^---\napply: always\n---\n/);
570
- for (const path of ['.trae/rules/sketchbook.md', '.aiassistant/rules/sketchbook.md', '.agents/skills/sketchbook/SKILL.md', 'AGENT-WORKFLOWS.md', 'GEMINI.md', '.codex/hooks.json', '.codex/sketchbook-guard.mjs', '.gemini/settings.json', '.gemini/sketchbook-guard.mjs', '.github/copilot-instructions.md', '.github/hooks/sketchbook.json', '.github/hooks/sketchbook-guard.mjs']) {
578
+ for (const path of portable) {
571
579
  const target = join(dir, path);
572
580
  await writeFile(target, 'Team instructions\n');
573
581
  }
@@ -579,7 +587,7 @@ pkgTest('portable instructions are restored only when missing and preserve team
579
587
  assert.equal(custom?.['AGENTS.md'], 'not-detected');
580
588
  assert.equal(custom?.['.github/copilot-instructions.md'], 'not-detected');
581
589
  assert.match(run(dir, 'doctor').out, /Review preserved team instructions/);
582
- for (const path of ['.trae/rules/sketchbook.md', '.aiassistant/rules/sketchbook.md', '.agents/skills/sketchbook/SKILL.md', 'AGENT-WORKFLOWS.md', 'GEMINI.md', '.codex/hooks.json', '.codex/sketchbook-guard.mjs', '.gemini/settings.json', '.gemini/sketchbook-guard.mjs', '.github/copilot-instructions.md', '.github/hooks/sketchbook.json', '.github/hooks/sketchbook-guard.mjs']) {
590
+ for (const path of portable) {
583
591
  const target = join(dir, path);
584
592
  assert.equal(await readFile(target, 'utf8'), 'Team instructions\n');
585
593
  await rm(target);
@@ -594,7 +602,7 @@ pkgTest('portable instructions are restored only when missing and preserve team
594
602
  assert.match(await readFile(file, 'utf8'), /contract-first/);
595
603
  assert.equal(run(dir, 'doctor', '--json').json?.data.agentInstructionReferences['AGENTS.md'], 'referenced');
596
604
  assert.match(await readFile(join(dir, '.aiassistant/rules/sketchbook.md'), 'utf8'), /^---\napply: always\n---\n/);
597
- for (const path of ['.trae/rules/sketchbook.md', '.aiassistant/rules/sketchbook.md', '.agents/skills/sketchbook/SKILL.md', 'AGENT-WORKFLOWS.md', 'GEMINI.md', '.codex/hooks.json', '.codex/sketchbook-guard.mjs', '.gemini/settings.json', '.gemini/sketchbook-guard.mjs', '.github/copilot-instructions.md', '.github/hooks/sketchbook.json', '.github/hooks/sketchbook-guard.mjs'])
605
+ for (const path of portable)
598
606
  assert.ok(existsSync(join(dir, path)), path);
599
607
  await rm(dir, { recursive: true, force: true });
600
608
  });
@@ -668,12 +676,13 @@ pkgTest('the staged layer can be backed up to verify the installed copy and rest
668
676
  await rm(dir, { recursive: true, force: true });
669
677
  }
670
678
  });
671
- const SHARED_GUIDANCE = ['AGENTS.md', 'AGENT-WORKFLOWS.md'];
679
+ const PORTABLE_WORKFLOWS = ['.agents/skills/contract-author/SKILL.md', '.agents/skills/component-builder/SKILL.md'];
680
+ const SHARED_GUIDANCE = ['AGENTS.md', 'AGENT-WORKFLOWS.md', '.agents/skills/sketchbook/SKILL.md', ...PORTABLE_WORKFLOWS];
672
681
  const PROFILE_PATHS = {
673
- claude: ['CLAUDE.md', 'move-to-.claude/INSTALL.md', 'move-to-.claude/settings.json', 'move-to-.claude/skills/contract-author/SKILL.md'],
674
- codex: [...SHARED_GUIDANCE, '.agents/skills/sketchbook/SKILL.md', '.codex/hooks.json', '.codex/sketchbook-guard.mjs'],
682
+ claude: ['CLAUDE.md', ...PORTABLE_WORKFLOWS, 'move-to-.claude/INSTALL.md', 'move-to-.claude/settings.json', 'move-to-.claude/skills/contract-author/SKILL.md'],
683
+ codex: [...SHARED_GUIDANCE, '.codex/hooks.json', '.codex/sketchbook-guard.mjs'],
675
684
  gemini: [...SHARED_GUIDANCE, 'GEMINI.md', '.gemini/settings.json', '.gemini/sketchbook-guard.mjs'],
676
- copilot: [...SHARED_GUIDANCE, '.agents/skills/sketchbook/SKILL.md', '.github/copilot-instructions.md', '.github/hooks/sketchbook.json', '.github/hooks/sketchbook-guard.mjs'],
685
+ copilot: [...SHARED_GUIDANCE, '.github/copilot-instructions.md', '.github/hooks/sketchbook.json', '.github/hooks/sketchbook-guard.mjs'],
677
686
  trae: [...SHARED_GUIDANCE, '.trae/rules/sketchbook.md'],
678
687
  jetbrains: [...SHARED_GUIDANCE, '.aiassistant/rules/sketchbook.md'],
679
688
  generic: SHARED_GUIDANCE,
@@ -701,10 +710,29 @@ void realTest('the packed CLI installs only the selected agent files', checkoutO
701
710
  const expected = new Set(profiles.flatMap((profile) => PROFILE_PATHS[profile]));
702
711
  for (const path of paths)
703
712
  assert.equal(existsSync(join(dir, path)), expected.has(path), `${target}: ${path}`);
713
+ if (profiles.length) {
714
+ for (const path of PORTABLE_WORKFLOWS)
715
+ assert.deepEqual(await readFile(join(dir, path)), await readFile(join(ROOT, path)));
716
+ const consumer = await readJson(dir, 'package.json');
717
+ assert.ok(!consumer.files.some((file) => file.startsWith('.agents/')), 'the consumer library does not publish project instructions');
718
+ }
719
+ if (profiles.includes('claude')) {
720
+ for (const name of ['contract-author', 'component-builder']) {
721
+ const wrapper = join(dir, 'move-to-.claude/skills', name);
722
+ const source = await readFile(join(wrapper, 'SKILL.md'), 'utf8');
723
+ const path = must(/\]\(([^)]*\.agents\/skills\/[^)]*\/SKILL\.md)\)/.exec(source)?.[1], name);
724
+ assert.ok(existsSync(join(wrapper, path)), `${name} wrapper resolves in the installed project`);
725
+ }
726
+ }
704
727
  const expectedRoots = [...new Set([...expected].map((file) => file.split('/')[0]))].sort();
705
728
  assert.deepEqual(ls(dir).filter((name) => rootEntries.has(name)), expectedRoots, target);
706
729
  assert.ok(!existsSync(join(dir, '.claude')), target);
707
730
  assert.ok(existsSync(join(dir, '.githooks/pre-commit')), target);
731
+ const inventory = await readFile(join(dir, 'docs/harness.md'), 'utf8');
732
+ assert.match(inventory, /Later changes are not reflected automatically/);
733
+ assert.match(inventory, /sketchbook doctor/);
734
+ const guide = await readFile(join(dir, 'docs/getting-started.md'), 'utf8');
735
+ assert.match(guide, /core-only project includes neither integration/);
708
736
  assert.equal(parseJson(result.stdout).data.checks.exitCode, 0);
709
737
  if (!selection || selection === 'claude')
710
738
  assert.deepEqual(failing(await runChecks(dir)), []);
@@ -721,6 +749,40 @@ void realTest('the packed CLI installs only the selected agent files', checkoutO
721
749
  await rm(temp, { recursive: true, force: true });
722
750
  }
723
751
  });
752
+ pkgTest('a core-only project can install a component, change a foundation, and reach the planning gate', async () => {
753
+ const { dir } = await created('blank');
754
+ try {
755
+ const cli = (...args) => {
756
+ const result = run(dir, ...args, '--json');
757
+ assert.equal(result.code, 0, result.out + result.err);
758
+ return must(result.json, args.join(' '));
759
+ };
760
+ const button = join(dir, 'spec/components/button/contract.json');
761
+ cli('add', 'button', '--dry-run');
762
+ assert.ok(!existsSync(button));
763
+ cli('add', 'button');
764
+ assert.ok(existsSync(button));
765
+ const brand = join(dir, 'brand.config.json');
766
+ const initial = await readFile(brand, 'utf8');
767
+ cli('tokens', 'set', 'color.primary', '#0F766E', '--dry-run');
768
+ assert.equal(await readFile(brand, 'utf8'), initial);
769
+ cli('tokens', 'set', 'color.primary', '#0F766E');
770
+ assert.match(await readFile(brand, 'utf8'), /#0F766E/i);
771
+ const badge = join(dir, 'spec/components/badge');
772
+ cli('add', 'badge', '--blank', '--dry-run');
773
+ assert.ok(!existsSync(badge));
774
+ const scaffold = cli('add', 'badge', '--blank');
775
+ assert.match(scaffold.next ?? '', /planning gate.*stop for approval/);
776
+ assert.doesNotMatch(scaffold.next ?? '', /skill|Claude/i);
777
+ assert.match(await readFile(join(badge, 'plan.md'), 'utf8'), /Tests and code start only after approval/);
778
+ assert.ok(!existsSync(join(dir, 'src/components/badge')));
779
+ assert.ok(!existsSync(join(dir, 'playwright/tests/badge')));
780
+ cli('check');
781
+ }
782
+ finally {
783
+ await rm(dir, { recursive: true, force: true });
784
+ }
785
+ });
724
786
  pkgTest('adds profiles to an existing project, previews the same writes, and repairs only selected integrations', async () => {
725
787
  const { dir } = await created('blank');
726
788
  try {
@@ -739,7 +801,7 @@ pkgTest('adds profiles to an existing project, previews the same writes, and rep
739
801
  assert.ok(!existsSync(join(dir, '.trae')));
740
802
  const addition = must(run(dir, 'init', '--agent', 'trae,trae', '--json').json, 'profile addition');
741
803
  assert.deepEqual(addition.changed, preview.changed);
742
- assert.deepEqual(addition.changed.sort(), ['.trae/rules/sketchbook.md', 'AGENT-WORKFLOWS.md', 'harness.config.json']);
804
+ assert.deepEqual(addition.changed.sort(), ['.agents/skills/sketchbook/SKILL.md', ...PORTABLE_WORKFLOWS, '.trae/rules/sketchbook.md', 'AGENT-WORKFLOWS.md', 'harness.config.json'].sort());
743
805
  assert.deepEqual(addition.data.repair.preserved, ['AGENTS.md']);
744
806
  assert.equal(await readFile(teamGuide, 'utf8'), 'Team guide');
745
807
  assert.deepEqual(run(dir, 'init', '--agent', 'trae', '--json').json?.changed, []);
@@ -748,8 +810,15 @@ pkgTest('adds profiles to an existing project, previews the same writes, and rep
748
810
  assert.equal(run(dir, 'doctor', '--json').json?.data.agentInstructions['.trae/rules/sketchbook.md'], false);
749
811
  assert.deepEqual(run(dir, 'init', '--json').json?.changed, ['.trae/rules/sketchbook.md']);
750
812
  assert.equal(run(dir, 'upgrade', '--json').code, 0);
751
- for (const file of ['CLAUDE.md', 'move-to-.claude', 'GEMINI.md', '.codex', '.agents', '.github', '.aiassistant'])
813
+ for (const file of ['CLAUDE.md', 'move-to-.claude', 'GEMINI.md', '.codex', '.github', '.aiassistant'])
752
814
  assert.ok(!existsSync(join(dir, file)), file);
815
+ const [keptSkill, missingSkill] = PORTABLE_WORKFLOWS;
816
+ await appendFile(join(dir, keptSkill), '\nOur team note.\n');
817
+ await rm(join(dir, missingSkill));
818
+ const repaired = must(run(dir, 'init', '--json').json, 'shared skill repair');
819
+ assert.deepEqual(repaired.changed, [missingSkill]);
820
+ assert.ok(repaired.data.repair.preserved.includes(keptSkill));
821
+ assert.match(await readFile(join(dir, keptSkill), 'utf8'), /Our team note/);
753
822
  assert.equal(run(dir, 'init', '--agent', 'generic', '--with', 'forge', '--json').code, 0);
754
823
  assert.deepEqual((await readJson(dir, 'harness.config.json')).agentProfiles, ['trae', 'generic', 'claude']);
755
824
  assert.ok(existsSync(join(dir, 'move-to-.claude/skills/forge-me-a-skill/SKILL.md')));
@@ -6,7 +6,7 @@ import { readFile, writeFile, mkdir, rm, cp } from 'node:fs/promises';
6
6
  import { join } from 'node:path';
7
7
  import { execFile } from 'node:child_process';
8
8
  import { promisify } from 'node:util';
9
- import { runChecks } from '../checks/run.mjs';
9
+ import { formatHuman, runChecks } from '../checks/run.mjs';
10
10
  import { compileStyles, mediaVars } from '../../scripts/build-styles.mjs';
11
11
  import { fixture, reference, ROOT, sourceRepoOnly, readJson, writeJson, must } from './helpers.mjs';
12
12
  import { parseJson } from '../lib/files.mjs';
@@ -125,6 +125,9 @@ test('generator keeps a hand edit and check flags it (exit 2)', async () => {
125
125
  assert.equal(kept.radius.md.$value, '7px');
126
126
  const r = await runChecks(dir);
127
127
  assert.equal(r.exitCode, 2);
128
+ const [summary, ...details] = formatHuman(r);
129
+ assert.equal(summary, 'All checks passed (with overrides).');
130
+ assert.match(details.join('\n'), /radius\.md/);
128
131
  assert.equal(must(r.overrides[0], 'the first override').token, 'radius.md');
129
132
  });
130
133
  test('C2 rejects state and contrast references to unknown tokens', async () => {
@@ -2,14 +2,14 @@
2
2
  import { test } from 'node:test';
3
3
  import assert from 'node:assert/strict';
4
4
  import { execFile } from 'node:child_process';
5
- import { cp, mkdir, mkdtemp, readFile, realpath, rm, symlink, writeFile } from 'node:fs/promises';
5
+ import { cp, mkdir, mkdtemp, readFile, realpath, rename, rm, symlink, writeFile } from 'node:fs/promises';
6
6
  import { createServer } from 'node:http';
7
7
  import { tmpdir } from 'node:os';
8
8
  import { join } from 'node:path';
9
9
  import { promisify } from 'node:util';
10
10
  import { ROOT } from './helpers.mjs';
11
11
  const exec = promisify(execFile);
12
- test('Claude Code sends the project instructions to its model', { skip: process.env.SKETCHBOOK_TEST_CLAUDE_LIVE !== '1', timeout: 30000 }, async () => {
12
+ test('Claude Code advertises native wrappers installed by Sketchbook alongside its project instructions', { skip: process.env.SKETCHBOOK_TEST_CLAUDE_LIVE !== '1', timeout: 30000 }, async () => {
13
13
  const dir = await mkdtemp(join(tmpdir(), 'sketchbook-claude-live-'));
14
14
  let request = '';
15
15
  const server = createServer((req, res) => {
@@ -37,8 +37,11 @@ test('Claude Code sends the project instructions to its model', { skip: process.
37
37
  });
38
38
  });
39
39
  try {
40
+ await exec(process.execPath, [join(ROOT, 'harness/cli.mjs'), 'init', '--start', 'blank', '--agent', 'claude', '--no-install'], { cwd: dir });
40
41
  await mkdir(join(dir, 'config'));
41
- await cp(join(ROOT, 'harness/templates/CLAUDE.md'), join(dir, 'CLAUDE.md'));
42
+ // Activate only the skill directories here. The separate hook test activates the edit hooks.
43
+ await mkdir(join(dir, '.claude'));
44
+ await rename(join(dir, 'move-to-.claude/skills'), join(dir, '.claude/skills'));
42
45
  await new Promise((resolve, reject) => { server.once('error', reject); server.listen(0, '127.0.0.1', resolve); });
43
46
  const address = server.address();
44
47
  assert.ok(address && typeof address !== 'string');
@@ -51,6 +54,8 @@ test('Claude Code sends the project instructions to its model', { skip: process.
51
54
  assert.match(result.stdout, /OK/);
52
55
  assert.match(request, /initial installation inventory/);
53
56
  assert.match(request, /docs\/harness\.md/);
57
+ assert.match(request, /Draft, resync, or validate a component contract using the shared Sketchbook/);
58
+ assert.match(request, /Build a component from its approved contract using the shared Sketchbook/);
54
59
  }
55
60
  finally {
56
61
  if (server.listening)
@@ -164,8 +164,8 @@ test('L10 interactive: prompts with current values, dry run first, applies only
164
164
  assert.match(required.text, /Required\./);
165
165
  assert.deepEqual(required.calls, [['prefix', 'acme', '--dry-run']]);
166
166
  const choices = await menu([groupIndex('tokens'), 'b', 'q']);
167
- assert.match(choices.text, /1 {2}tokens\n {6}Change foundations/);
168
- assert.match(choices.text, /2 {2}presets\n {6}List the standards catalog/);
167
+ assert.match(choices.text, /1 {2}tokens\n {6}Set foundation values/);
168
+ assert.match(choices.text, /2 {2}presets\n {6}Browse foundation presets/);
169
169
  const bad = await menu(['9', 'x', 'b', 'q']);
170
170
  assert.match(bad.text, /Type 1-/);
171
171
  assert.deepEqual(bad.calls, []);
@@ -176,6 +176,7 @@ test('L10 interactive: prompts with current values, dry run first, applies only
176
176
  assert.match(defaultCancel.text, /Not applied/);
177
177
  const apply = await menu([groupIndex('design'), commandIndex('sync'), 'tokens', '', '', 'y', 'q']);
178
178
  assert.deepEqual(apply.calls, [['sync', 'tokens', '--dry-run'], ['sync', 'tokens']]);
179
+ assert.match(apply.text, /Preview changes[\s\S]*sketchbook sync tokens --dry-run[\s\S]*Apply these changes\?\n {2}sketchbook sync tokens\n/);
179
180
  const guided = await menu([groupIndex('tokens'), commandIndex('tokens'), 'set', '', 'typography.family Inter', '', 'n', 'q']);
180
181
  assert.match(guided.text, /Arguments for set: <key> <value>/);
181
182
  assert.match(guided.text, /Example to type: typography\.family Inter/);
@@ -234,10 +235,10 @@ test('project commands identify the nearest ancestor project without executing f
234
235
  assert.equal(result.code, 1);
235
236
  const fix = must(must(result.json, 'JSON envelope').errors[0], 'an error').fix ?? '';
236
237
  assert.ok(fix.includes(project), fix);
237
- assert.match(fix, /Change directory to the project root/);
238
+ assert.match(fix, /Change directory to .*Sketchbook resolves file paths from the project root/s);
238
239
  }
239
240
  const human = cli(nested, 'status');
240
- assert.match(human.err, /Change directory to the project root/);
241
+ assert.match(human.err, /Change directory to .*Sketchbook resolves file paths from the project root/s);
241
242
  assert.ok(human.err.includes(project));
242
243
  assert.equal((await readFile(join(project, 'harness.config.json'), 'utf8')), '{}');
243
244
  }
@@ -257,7 +258,7 @@ test('L13 generate rebuilds every generated output from the spec (what a project
257
258
  assert.deepEqual((await runChecks(dir, { only: ['G1'] })).results[0]?.errors, []);
258
259
  await rm(dir, { recursive: true });
259
260
  });
260
- test('terminal presentation abbreviates lists without changing pipes or JSON', async () => {
261
+ test('terminal presentation shows concise help and respects pipes, NO_COLOR, and JSON', async () => {
261
262
  const dir = await reference();
262
263
  const run = async (args, human) => {
263
264
  let out = '';
@@ -268,6 +269,24 @@ test('terminal presentation abbreviates lists without changing pipes or JSON', a
268
269
  const help = await run(['help'], true);
269
270
  assert.match(help.out, /SKETCHBOOK/);
270
271
  assert.match(help.out, /help --details/);
272
+ const short = await run(['help', 'init'], true);
273
+ assert.match(short.out, /Usage[\s\S]*sketchbook init[\s\S]*Try:/);
274
+ assert.doesNotMatch(short.out, /\nOptions:/);
275
+ const detailed = await run(['help', 'init', '--details'], true);
276
+ assert.match(detailed.out, /Options:[\s\S]*--adopt[\s\S]*Examples:/);
277
+ const saved = process.env.NO_COLOR;
278
+ try {
279
+ process.env.NO_COLOR = '';
280
+ const noColor = await run(['help', 'init'], true);
281
+ assert.match(noColor.out, /SKETCHBOOK/);
282
+ assert.equal(noColor.out.includes('\x1b['), false);
283
+ }
284
+ finally {
285
+ if (saved === undefined)
286
+ delete process.env.NO_COLOR;
287
+ else
288
+ process.env.NO_COLOR = saved;
289
+ }
271
290
  const brief = await run(['list'], true);
272
291
  const full = await run(['list', '--details'], true);
273
292
  assert.match(brief.out, /more\. Use sketchbook list --details/);
@@ -281,4 +300,5 @@ test('terminal presentation abbreviates lists without changing pipes or JSON', a
281
300
  assert.equal(error.code, 1);
282
301
  assert.match(error.err, /Unknown command/);
283
302
  assert.match(error.err, /Next/);
303
+ await rm(dir, { recursive: true });
284
304
  });
@@ -2,10 +2,10 @@
2
2
  import { test } from 'node:test';
3
3
  import assert from 'node:assert/strict';
4
4
  import { execFile, spawnSync } from 'node:child_process';
5
- import { cp, mkdir, mkdtemp, readFile, rm, symlink, writeFile } from 'node:fs/promises';
5
+ import { mkdir, mkdtemp, readFile, rm, symlink, writeFile } from 'node:fs/promises';
6
6
  import { createServer } from 'node:http';
7
7
  import { tmpdir } from 'node:os';
8
- import { join } from 'node:path';
8
+ import { dirname, join } from 'node:path';
9
9
  import { promisify } from 'node:util';
10
10
  import { ROOT } from './helpers.mjs';
11
11
  const exec = promisify(execFile);
@@ -43,25 +43,21 @@ test('installed Copilot CLI loads instructions and hooks from the tested workspa
43
43
  });
44
44
  });
45
45
  try {
46
- await mkdir(join(project, '.github/hooks'), { recursive: true });
47
- for (const folder of ['node_modules', 'generated', 'src'])
48
- await mkdir(join(project, folder));
49
- await mkdir(join(project, 'spec/decisions'), { recursive: true });
46
+ assert.equal(spawnSync('git', ['init', '-q', repo]).status, 0);
47
+ await exec(process.execPath, [join(ROOT, 'harness/cli.mjs'), 'init', '--adopt', '--start', 'blank', '--agent', 'copilot', '--no-install'], { cwd: repo });
48
+ const { name } = JSON.parse(await readFile(join(ROOT, 'package.json'), 'utf8'));
49
+ const engine = join(project, 'node_modules', name);
50
+ await mkdir(dirname(engine), { recursive: true });
51
+ await symlink(ROOT, engine, 'dir');
50
52
  const decisions = '# Decisions\n\n### SB-0001 · 2026-01-01 · Example\n**Status:** accepted\n**Decision:** Keep it.\n';
51
53
  const decisionFile = join(project, 'spec/decisions/DECISIONS.md');
52
54
  await writeFile(decisionFile, decisions);
53
55
  await mkdir(join(repo, '.github/hooks'), { recursive: true });
54
- await symlink(ROOT, join(project, 'node_modules/sketchbook'), 'dir');
55
- await cp(join(ROOT, 'harness/templates/project/.github/hooks/sketchbook-guard.mjs'), join(project, '.github/hooks/sketchbook-guard.mjs'));
56
- await cp(join(ROOT, 'harness/templates/project/.github/hooks/sketchbook.json'), join(project, '.github/hooks/sketchbook.json'));
57
- await cp(join(ROOT, 'harness/templates/project/.github/copilot-instructions.md'), join(project, '.github/copilot-instructions.md'));
58
- await cp(join(ROOT, 'harness/templates/project/AGENTS.md'), join(project, 'AGENTS.md'));
59
56
  const docs = await readFile(join(ROOT, 'docs/agent-compatibility.md'), 'utf8');
60
57
  const section = docs.split('## Copilot repository hooks for an adopted app')[1]?.split('## Model-family test targets')[0] ?? '';
61
58
  const config = /```json\n([\s\S]*?)\n```/.exec(section)?.[1];
62
59
  assert.ok(config);
63
60
  await writeFile(join(repo, '.github/hooks/sketchbook.json'), config);
64
- assert.equal(spawnSync('git', ['init', '-q', repo]).status, 0);
65
61
  await new Promise((resolve, reject) => { server.once('error', reject); server.listen(0, '127.0.0.1', resolve); });
66
62
  const address = server.address();
67
63
  assert.ok(address && typeof address !== 'string');
@@ -70,10 +66,13 @@ test('installed Copilot CLI loads instructions and hooks from the tested workspa
70
66
  if (/^(GITHUB_|GH_|COPILOT_|OPENAI_|ANTHROPIC_)|_PROXY$/i.test(key))
71
67
  delete env[key];
72
68
  Object.assign(env, { COPILOT_HOME: join(repo, 'copilot-home'), GH_CONFIG_DIR: join(repo, 'gh-config'), COPILOT_PROVIDER_BASE_URL: `http://127.0.0.1:${address.port}/v1`, COPILOT_MODEL: 'gpt-4.1', COPILOT_PROVIDER_TYPE: 'openai', NO_COLOR: '1' });
69
+ const foundSkills = await exec('copilot', ['skill', 'list', '--json'], { cwd: project, env, timeout: 10000 });
70
+ for (const skill of ['contract-author', 'component-builder'])
71
+ assert.match(foundSkills.stdout, new RegExp(`"${skill}"`));
73
72
  const run = async (file, operation = 'create', cwd = repo) => {
74
73
  const target = join(project, file);
75
74
  tool = operation;
76
- toolArgs = operation === 'bash' ? { command: 'node node_modules/sketchbook/harness/cli.mjs help --json' } : operation === 'edit' ? { path: target, old_str: 'Keep it.', new_str: 'Changed.' } : { path: target, file_text: 'test content' };
75
+ toolArgs = operation === 'bash' ? { command: `node ${JSON.stringify(join(engine, 'harness/cli.mjs'))} help --json` } : operation === 'edit' ? { path: target, old_str: 'Keep it.', new_str: 'Changed.' } : { path: target, file_text: 'test content' };
77
76
  requests = 0;
78
77
  firstRequest = '';
79
78
  toolResponse = '';
@@ -80,4 +80,21 @@ test('the project getting-started guide uses the installed CLI and matches its s
80
80
  assert.equal(template, source);
81
81
  assert.doesNotMatch(template, /node harness\/cli\.mjs/);
82
82
  assert.match(template, /npx sketchbook explain/);
83
+ assert.match(template, /snapshot does not automatically reflect later changes/);
84
+ assert.match(template, /core-only project includes neither integration/);
85
+ assert.match(template, /selected a shared agent profile/);
86
+ assert.match(template, /selected and activated the Claude integration/);
87
+ });
88
+ test('checkout and project guidance distinguish the initial inventory from current setup', sourceRepoOnly, async () => {
89
+ const checkout = await readFile(`${ROOT}AGENTS.md`, 'utf8');
90
+ const workflow = await readFile(`${ROOT}harness/templates/project/AGENT-WORKFLOWS.md`, 'utf8');
91
+ const quickstart = await readFile(`${ROOT}apps/docs/content/start/quickstart.md`, 'utf8');
92
+ assert.match(checkout, /docs\/README\.md.*checkout documentation/);
93
+ assert.match(checkout, /project created by `sketchbook init`[^.]*`docs\/harness\.md`/);
94
+ assert.match(workflow, /source checkout, inspect `\.claude\/skills\/` and `\.claude\/commands\/`/);
95
+ assert.match(quickstart, /initial installation inventory; it does not automatically reflect later changes/);
96
+ for (const file of ['CLAUDE.md', 'harness/templates/CLAUDE.md']) {
97
+ const text = await readFile(`${ROOT}${file}`, 'utf8');
98
+ assert.match(text, /`--dry-run` where supported/);
99
+ }
83
100
  });
@@ -7,12 +7,13 @@ import { createServer } from 'node:http';
7
7
  import { tmpdir } from 'node:os';
8
8
  import { join } from 'node:path';
9
9
  import { ROOT } from './helpers.mjs';
10
- test('OpenCode discovers nested guidance and invokes the CLI', { skip: process.env.SKETCHBOOK_TEST_OPENCODE_LIVE !== '1', timeout: 90000 }, async () => {
10
+ test('OpenCode discovers and loads portable skills in standalone and adopted projects', { skip: process.env.SKETCHBOOK_TEST_OPENCODE_LIVE !== '1', timeout: 90000 }, async () => {
11
11
  const temp = await mkdtemp(join(tmpdir(), 'sketchbook-opencode-live-'));
12
12
  const repo = join(temp, 'app');
13
13
  const project = join(repo, 'design-system');
14
+ const standalone = join(temp, 'standalone');
14
15
  let requests = [];
15
- let runCli = false;
16
+ let action = null;
16
17
  let clientOutput = '';
17
18
  let sentTool = false;
18
19
  const server = createServer((req, res) => {
@@ -23,10 +24,11 @@ test('OpenCode discovers nested guidance and invokes the CLI', { skip: process.e
23
24
  requests.push(body);
24
25
  const parsed = JSON.parse(body);
25
26
  // OpenCode may first request a session title without any tools.
26
- const tool = runCli && !sentTool && Boolean(parsed.tools?.length);
27
+ const tool = !sentTool && parsed.tools?.length && action ? (action === 'bash' ? 'bash' : 'skill') : null;
27
28
  if (tool)
28
29
  sentTool = true;
29
- const delta = tool ? { role: 'assistant', tool_calls: [{ index: 0, id: 'call_test', type: 'function', function: { name: 'bash', arguments: JSON.stringify({ command: 'node node_modules/sketchbook/harness/cli.mjs help --json', description: 'Inspect Sketchbook CLI help' }) } }] } : { role: 'assistant', content: 'Test completed.' };
30
+ const args = tool === 'skill' ? { id: action } : { command: 'node node_modules/sketchbook/harness/cli.mjs help --json', description: 'Inspect Sketchbook CLI help' };
31
+ const delta = tool ? { role: 'assistant', tool_calls: [{ index: 0, id: 'call_test', type: 'function', function: { name: tool, arguments: JSON.stringify(args) } }] } : { role: 'assistant', content: 'Test completed.' };
30
32
  const chunks = [
31
33
  { id: 'chat-test', object: 'chat.completion.chunk', created: 1, model: 'local', choices: [{ index: 0, delta, finish_reason: null }] },
32
34
  { id: 'chat-test', object: 'chat.completion.chunk', created: 1, model: 'local', choices: [{ index: 0, delta: {}, finish_reason: tool ? 'tool_calls' : 'stop' }], usage: { prompt_tokens: 10, completion_tokens: 10, total_tokens: 20 } },
@@ -36,17 +38,20 @@ test('OpenCode discovers nested guidance and invokes the CLI', { skip: process.e
36
38
  });
37
39
  });
38
40
  try {
39
- await mkdir(join(project, '.agents/skills/sketchbook'), { recursive: true });
40
- await mkdir(join(project, 'node_modules'));
41
- await symlink(ROOT, join(project, 'node_modules/sketchbook'), 'dir');
41
+ await mkdir(repo);
42
42
  assert.equal(spawnSync('git', ['init', '-q', repo]).status, 0);
43
43
  await writeFile(join(repo, 'AGENTS.md'), 'HOST_PROJECT_GUIDANCE: preserve the app.\n');
44
- await cp(join(ROOT, 'harness/templates/project/AGENTS.md'), join(project, 'AGENTS.md'));
45
- await cp(join(ROOT, 'harness/templates/project/.agents/skills/sketchbook/SKILL.md'), join(project, '.agents/skills/sketchbook/SKILL.md'));
44
+ for (const [cwd, mode] of [[repo, ['--adopt']], [temp, ['--dir', 'standalone']]]) {
45
+ const init = spawnSync(process.execPath, [join(ROOT, 'harness/cli.mjs'), 'init', ...mode, '--start', 'blank', '--agent', 'generic', '--no-install'], { cwd, encoding: 'utf8' });
46
+ assert.equal(init.status, 0, init.stdout + init.stderr);
47
+ }
48
+ await mkdir(join(project, 'node_modules'));
49
+ await symlink(ROOT, join(project, 'node_modules/sketchbook'), 'dir');
46
50
  await new Promise((resolve, reject) => { server.once('error', reject); server.listen(0, '127.0.0.1', resolve); });
47
51
  const address = server.address();
48
52
  assert.ok(address && typeof address !== 'string');
49
53
  await writeFile(join(repo, 'opencode.json'), JSON.stringify({ model: 'mock/local', providers: { mock: { name: 'Local mock', package: '@opencode/ai/providers/openai-compatible', settings: { baseURL: `http://127.0.0.1:${address.port}/v1`, apiKey: 'local-test' }, models: { local: { name: 'Local test', capabilities: { tools: true, input: ['text'], output: ['text'] }, limit: { context: 32768, output: 4096 } } } } } }));
54
+ await cp(join(repo, 'opencode.json'), join(standalone, 'opencode.json'));
50
55
  const env = { ...process.env };
51
56
  for (const key of Object.keys(env))
52
57
  if (/^(OPENAI_|ANTHROPIC_|GH_|GITHUB_|OPENCODE_|GOOGLE_)|_PROXY$/i.test(key))
@@ -80,7 +85,17 @@ test('OpenCode discovers nested guidance and invokes the CLI', { skip: process.e
80
85
  assert.match(nestedInput, /HOST_PROJECT_GUIDANCE/);
81
86
  assert.match(nestedInput, /This project uses the Sketchbook CLI and a contract-first design system/);
82
87
  assert.match(nestedInput, /Work on a Sketchbook design-system project/);
83
- runCli = true;
88
+ assert.match(nestedInput, /Draft, resync, or validate a Sketchbook component contract/);
89
+ assert.match(nestedInput, /Implement a Sketchbook Web Component/);
90
+ assert.doesNotMatch(rootInput, /Draft, resync, or validate a Sketchbook component contract/);
91
+ action = 'contract-author';
92
+ const standaloneInput = await run(standalone);
93
+ assert.ok(sentTool, 'the mock provider requested activation');
94
+ assert.match(standaloneInput, /Author a Sketchbook component contract/);
95
+ assert.match(standaloneInput, /Ask for explicit approval before any tests or implementation/);
96
+ action = 'component-builder';
97
+ assert.match(await run(project), /confirm failure for the intended behavior/);
98
+ action = 'bash';
84
99
  await run(project);
85
100
  assert.ok(sentTool, 'the mock provider requested the shell tool');
86
101
  assert.match(clientOutput, /"command"\s*:\s*"help"/, `OpenCode output: ${clientOutput.slice(-1000)}`);
@@ -44,6 +44,7 @@ test('sideEffects covers every registration, the barrel and the token CSS', chec
44
44
  const SHIPPED = [
45
45
  'harness/cli.mjs', 'harness/cli/run.mjs', 'harness/manifest.json', 'harness/catalog/index.json', 'harness/checks/run.mjs',
46
46
  'harness/templates/CLAUDE.md', 'harness/templates/project/harness.config.json', 'harness/templates/project/.claude/settings.json',
47
+ '.agents/skills/contract-author/SKILL.md', '.agents/skills/component-builder/SKILL.md',
47
48
  'harness/templates/project/gitignore', 'harness/templates/project/AGENTS.md', 'harness/templates/project/.trae/rules/sketchbook.md', 'harness/templates/project/.aiassistant/rules/sketchbook.md', 'harness/templates/project/.agents/skills/sketchbook/SKILL.md', 'harness/templates/project/AGENT-WORKFLOWS.md', 'harness/templates/project/GEMINI.md', 'harness/templates/project/.codex/hooks.json', 'harness/templates/project/.codex/sketchbook-guard.mjs', 'harness/templates/project/.gemini/settings.json', 'harness/templates/project/.gemini/sketchbook-guard.mjs', 'harness/agent/gemini-guard.mjs', 'harness/templates/project/.github/copilot-instructions.md', 'harness/templates/project/.github/hooks/sketchbook.json', 'harness/templates/project/.github/hooks/sketchbook-guard.mjs', '.claude/skills/hammock/SKILL.md', '.claude/hooks/guard-generated.mjs', '.claude/hooks/guard-decisions.mjs',
48
49
  '.claude/commands/add.md', '.claude/rules/contract-first.md', '.githooks/pre-commit', '.githooks/pre-push', 'scripts/build-barrel.mjs', 'docs/cli.md', 'docs/agent-compatibility.md', 'spec/schemas/contract.schema.json', 'harness/templates/move-to-claude-INSTALL.md',
49
50
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usesketchbook/cli",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "Provider-neutral harness for building an accessible, white-label Web Components design system from a spec.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -42,6 +42,8 @@
42
42
  "THIRD_PARTY_NOTICES.md",
43
43
  "harness",
44
44
  "scripts",
45
+ ".agents/skills/contract-author",
46
+ ".agents/skills/component-builder",
45
47
  ".claude/skills",
46
48
  ".claude/commands",
47
49
  ".claude/rules",