Ds
Searches through the local design system files to find component information, tokens, or usage rules. Use when user asks about a design system component, token, or pattern, or runs /ds.From its SKILL.md
npx -y skills add eshraw/design-system-as-text --skill dsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.9 KB, 434 tokens by cl100k_base, as published. Nobody here has run it
Search the local design system files and return relevant component, token, or usage information.
Phase 1 — Check DS exists
Read design-system.md from the project root.
If not found, stop and tell the user:
"No initialized design system found. Run
/initialize-dsfirst."
Parse the index to build a map of:
- All part folders and their component files
- All
tokens.cssfile paths - The
ds-usage.mdpath
Phase 2 — Search
The user's query is the text after /ds. For example: /ds Button → query is Button.
Search strategy (in order):
- Component name match: Check all component
.mdfilenames and headings for the query (case-insensitive). - Token name match: Search all
tokens.cssfiles for variable names containing the query. - Full-text match: Search component
.mdfile content for the query string. - Usage rules match: Search
ds-usage.mdfor the query string.
For each match, record:
- File path (relative to project root)
- Matched section or line
- A short excerpt (2–5 lines of context)
Phase 3 — Return results
If a single clear match is found, return the full content of the matched file or section.
If multiple matches are found, list them:
Found [N] results for "[query]":
1. [ComponentName] — design-system/[part]/[ComponentName].md
> [excerpt]
2. --[token-name] — design-system/[part]/tokens.css:L[N]
> [excerpt]
3. Usage rule — ds-usage.md
> [excerpt]
Then ask: "Which result would you like to see in full?"
If no matches are found, respond:
"No results found for '[query]' in the design system. Check the index at
design-system.mdfor available parts and components."
Always include the file path in results so the user can navigate directly to the source.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.