Skip to content

Add commands and prompts#18

Open
dallasbpeters wants to merge 28 commits intomainfrom
add-tools-commands
Open

Add commands and prompts#18
dallasbpeters wants to merge 28 commits intomainfrom
add-tools-commands

Conversation

@dallasbpeters
Copy link
Member

  • Introduced commands for checking color contrast, creating components, finding tokens, configuring icons, migrating CSS, and conducting design reviews.
  • Added recipes for sidebar and layout customizations with detailed usage examples.
  • Updated package.json to remove unnecessary test commands and include new documentation paths.

Why?

Why were the changes needed? What issues were the changes addressing?
(Note: some changes may seem unrelated to the ticket, this is a great place to explain further.)

What Changed

What changed in this PR?

  • Change 1
  • Change 2

Pre-merge checklist

  • Update relevant READMEs
  • Update version number in package.json

Screenshots

If any UI changes need to be shown off, please add screenshots here.

- Introduced commands for checking color contrast, creating components, finding tokens, configuring icons, migrating CSS, and conducting design reviews.
- Added recipes for sidebar and layout customizations with detailed usage examples.
- Updated package.json to remove unnecessary test commands and include new documentation paths.
"watch": "npx tsc --watch",
"start": "node dist/index.js",
"test": "node dist/test.js",
"test:interactive": "npm run build && node dist/interactive-client.js"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we want to remove this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jeremy-Walton I've added this back and removed the .claude commands. The prompts show up in your IDE with registerPrompt.

dallasbpeters and others added 26 commits February 5, 2026 11:02
# Conflicts:
#	src/index.ts
* extract

# Conflicts:
#	src/index.ts

* Remove unneeded import
* Extract Get Component Tokens Tool

* Address comment
* Extract Search Documentation Tool

# Conflicts:
#	src/index.ts

* Remove checklist
* Create read tool file method

* extract the theme generator

* Finish tool class extractions

* Extract md files

* specifiy import type

* update type

* removed unused parameter

* removed useless variable stuff
Extracts tokens and components from Optics source repo.
Generates optics-data.ts with 29 real components.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Helper to get token dependencies for components.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replaces 152 bloated entries with actual components:
- 26 from Storybook (Accordion through Tooltip)
- 3 layout utilities (Stack, Cluster, Split)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add npm run sync-data command
- Add @rolemodel/optics and ts-node as dev deps

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Document the two most common AI mistakes:
- Not pairing background/text colors
- Writing custom CSS instead of using existing components

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add missing cssVar property to generated tokens.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…theme creation

- Introduced new prompts: build-component, create-brand-theme, and review-code.
- Added tools for color validation, redundant CSS detection, and HSL token calculation.
- Updated resource paths for prompts and tools to include a templates directory.
- Enhanced existing prompts with detailed instructions and usage guidelines.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…and array registration

Co-authored-by: Cursor <cursoragent@cursor.com>
…ool.ts

Co-authored-by: Cursor <cursoragent@cursor.com>
…tool

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ToolFile now targets _templates

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants