originaleric/dig-ui-skill
حول
من تطوير Dig: نظام تصميم لـ Codex وCursor وClaude Code، يستطيع الوكلاء قراءته وتعامل فيه المطالبات بوصفها شيفرة. يضم فهارس وتخطيطات وكتلًا وسير عمل وإمكانية تخصيص واجهة المستخدم.
أدوات التطويرما يمكنك فعله
- Review an existing UI - Check layout consistency, catalog fit, missing states, responsive behavior, and common AI UI drift. - references/workflows/review.md
- Generate a product dashboard - Pick a layout recipe, apply a catalog, use block contracts, and run preflight. - references/layouts/dashboard-overview.md
- Build runtime or agent execution screens - Use execution workflows, log blocks, step timelines, and high-density operational surfaces. - references/layouts/agent-run-detail.md
- Customize a color system - Start from palette catalogs, export from Palette Lab, and sync a custom palette. - references/catalogs/palettes/
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل
Dig UI Skill
Agent-readable design systems for product UI.
One command to give Codex, Cursor, and Claude Code a durable UI design language.
中文 · Installation · Usage Guide · Catalog Previews · Shaders Effects · Personal Customization · What You Can Build
Dig UI Skill is a prompt-as-code design system for AI coding agents. It does not ship a conventional component library. Instead, it gives agents the catalogs, layout recipes, block contracts, workflows, local extension rules, and preview renders they need to generate consistent product interfaces.
Catalog gives taste.
Palette and Style give extensibility.
Personal rules give ownership.
Layouts and blocks give structure.
Shaders effects add motion and texture across visual systems.
Workflows make it repeatable.
Quick Start
Install Dig UI Skill into one AI tool:
npx dig-ui-skill install codex
npx dig-ui-skill install cursor
npx dig-ui-skill install claude-code
Install everywhere and check status:
npx dig-ui-skill install --all
npx dig-ui-skill status
Use it from your agent:
Use Dig UI. Start with references/dig-read.md, use the dashboard-overview layout, apply the dig catalog, and run preflight before delivery.
Choose the installed language:
npx dig-ui-skill install codex --lang en
npx dig-ui-skill install codex --lang zh-CN
To use Dig UI in WorkBuddy, see WorkBuddy.
For installation and update details, see the installation guide.
New Shaders Support
Add flowing gradients, dot grids, noise, halos, and pointer feedback to any catalog with Shaders, then preview, tune, and export them for reuse in Effect Lab.
Generate a preview with the CLI, then open it through a local development server:
npx dig-ui-skill effect preview flowing-ribbon --output ./effect-lab.html
New Styles
## Sub CatalogA child style inherits shared rules from a single parent and ships with complete light and dark themes. You can select, preview, tune, and export the parent and child independently. Each exported customstyle saves both themes as a standalone snapshot.
Paper Infographic builds on the outlines and rounded controls of Cozy Arcade. Say “Use Paper Infographic Style” to select the child directly.
<td align="center" width="216">
<a href="./renders/styles/paper-infographic.html"><img src="./assets/readme-paper-infographic-circle.png" alt="Paper Infographic — a hand-drawn guide to how plants build healthy soil" width="95%"></a>
<h3>Paper Infographic<br>纸面图解</h3>
</td>
<td align="center" width="216">
<a href="./assets/demos/liquid-glass/index.html"><img src="./assets/readme-liquid-glass-circle.png" alt="Liquid Glass — a translucent capsule with reflected edges" width="97%"></a>
<h3>Liquid Glass<br>液态玻璃</h3>
</td>
Monochrome
|
|
Hologram
|
Cyberpunk
|
In your prompt, write the style name, for example “Use Paper Infographic Style” or “Use Liquid Glass Style”. Liquid Glass Style Lab
Tune Colors Live
Click any color tile to preview it across the page instantly, then export the result as your own Style or Palette.
100% Personal Customization
Teach your agent the UI decisions you want to keep. Dig UI Skill turns natural-language preferences into user-owned rules, palettes, and styles that stay aligned across Codex, Cursor, and Claude Code.
| Keep | Own | Sync |
|---|---|---|
| Layout, density, hierarchy, and interaction preferences that should persist. | global-rules.local.md, custom palettes, and custom styles outside the repository. |
The same personal assets into every installed AI tool. |
Both Local Rules flows end at the same user-owned source of truth:
~/.config/dig-ui-skill/global-rules.local.md
1. You already have a global-rules.local.md
Import the Markdown file, then explicitly synchronize it to the installed tools:
npx dig-ui-skill local import --from ./global-rules.local.md
npx dig-ui-skill local sync --all --from-config
2. You have preferences in natural language
Tell any compatible Host Agent what you want to retain:
Use dig-ui. Add this to my local rules:
Use #0071e3 as the default blue accent, with white text on primary buttons.
See the usage guide for Local Rules.
What You Can Build
| You want to... | Use Dig UI Skill to... | Start with |
|---|---|---|
| Review an existing UI | Check layout consistency, catalog fit, missing states, responsive behavior, and common AI UI drift. | references/workflows/review.md |
| Generate a product dashboard | Pick a layout recipe, apply a catalog, use block contracts, and run preflight. | references/layouts/dashboard-overview.md |
| Build runtime or agent execution screens | Use execution workflows, log blocks, step timelines, and high-density operational surfaces. | references/layouts/agent-run-detail.md |
| Customize a color system | Start from palette catalogs, export from Palette Lab, and sync a custom palette. | references/catalogs/palettes/ |
| Capture a complete visual grammar | Export a style contract and sync it as a local custom style. | references/catalogs/styles/ |
| Add animated backgrounds and pointer feedback | Choose Shaders components, tune a recipe, and reuse it with your catalog and theme. | Shaders usage |
| Teach your agent personal UI taste | Persist local global rules, palettes, and styles outside the repository. | references/local-rules-builder.md |
Core System
| Layer | Role | Source |
|---|---|---|
| Dig Read | First-pass task framing, asset selection, and product dials. | references/dig-read.md |
| Catalog | 73 curated product UI languages: tokens, typography, surface rules, components, density, and tone. | references/catalogs/ |
| Palette | Color-first customization, Palette Lab, and importable palette contracts. | references/catalogs/palettes/ |
| Style | Full visual grammars, render archetypes, dual-theme tokens, and custom style exports. | references/catalogs/styles/ |
| Layouts | Information architecture, slots, responsive order, and QA notes. | references/layouts/ |
| Blocks | Reusable primitive and product-module behavior contracts. | references/blocks/ |
| Effects | Optional Shaders compositions, theme bindings, mounting, and static fallback across catalogs. | references/effects/ |
| Workflows | Repeatable review, redesign, execution, and image-reference processes. | references/workflows/ |
| Preflight | Delivery gate for states, structure, catalog choice, and anti-patterns. | references/preflight.md |
Shaders Effects
Add flowing gradients, dot fields, grain, halos, and pointer feedback with Shaders. Dig UI binds these components to your existing catalog tokens and handles mounting, pause/resume, static fallback, and cleanup through an independent Effects configuration layer:
Layout + one base catalog + Blocks + optional Effects
Use the same effect with brand, palette, style, or personal themes. The bundled provider is Shaders 4.0.4, with JavaScript and React adapters.
| Try | Shaders components | Tune |
|---|---|---|
flowing-ribbon |
FlowingGradient | Speed, distortion, variation |
dot-field |
DotGrid | Density, dot size, speed |
cursor-ripples |
FlowingGradient + CursorRipples | Intensity, radius, decay |
soft-grain |
SimplexNoise | Scale, contrast |
radial-halo |
RadialGradient | Radius |
Open the bilingual Effect Lab to choose a recipe, adjust its declared controls, switch themes, and export an editable ZIP. Custom component combinations are authored in recipe JSON; the Lab previews them and exposes their declared parameters.
Generate a preview and install an effect into your application:
npx dig-ui-skill effect preview flowing-ribbon --output ./effect-lab.html
npx dig-ui-skill effect install flowing-ribbon --project ./my-app
Serve the preview through your local development server on localhost/HTTPS for WebGPU. Reduced motion, pause, or unavailable GPU uses static decoration while content and controls remain usable. Exports bundle the provider locally; React is supplied by the host application. Effects commands are available in dig-ui-skill 1.1.0 and later. For local development, use node bin/dig-ui-skill.mjs in place of the npm entry.
Follow the Shaders usage guide for component composition, JS/React integration, theme binding, export, and project maintenance. See the Effects protocol for configuration and lifecycle details.
Catalogs
Choose one base catalog for a page or component group. Catalog gives you a mature product UI language, Palette starts from color relationships, and Style carries a complete visual grammar.
For choosing a catalog, palette, or style, see the usage guide.
Catalog
Start here when a known product language, a mature product surface, or a reliable baseline is your reference. Catalogs are agent-readable design contracts, not screenshots to copy and not component packages to import.
Includes: 73 product UI catalogs across AI, SaaS, fintech, dev tools, DevOps, creative tools, commerce, media, automotive, and Dig foundations. Start with dig, mono, wise, or apple, then browse the full set in renders/index.html.
Customize: keep the built-in catalog as the visual base and add project-specific rules through local global rules, layouts, and blocks. Personal preferences belong in local assets rather than a fork of an official catalog.
Palette
Start here when color relationships are the primary decision: an anchor color, an existing palette, a mood, or a site-level color system.
Includes: built-in palette catalogs and Palette Lab, which maps canvas, ink, primary, support, and semantic roles into usable Dig tokens.
Customize: tune anchors in Palette Lab, export a custompalette, then import and sync it across tools:
npx dig-ui-skill palette import ~/Downloads/palette01.custompalette.zip codex
npx dig-ui-skill palette list
npx dig-ui-skill palette sync --all
User-owned palettes live in ~/.config/dig-ui-skill/palettes/ and sync into references/local/palettes/ without changing the built-in catalog set.
Palette details: usage guide.
Style
Start here when you need more than a color theme. A style carries material choices, surface behavior, component tone, render archetype, and a complete light/dark token contract together.
Dig UI includes 17 built-in styles, including quant-signal-console, cyberpunk-neon, hologram-moire, business-editorial, research-lab, and Monochrome. Browse the style routing guide.
Glass on a single component. Try “Keep Dig as the base style and use Liquid Glass material on the bottom navigation.” Keep Dig’s colors, typography, and navigation behavior. Apply the frosted treatment, edge highlights, and opaque fallback to the navigation. Liquid Glass style contract
Customize: Style Lab temporarily tunes six core color roles in Light or Dark mode; export preserves both token maps in one customstyle, then import and sync it across tools:
npx dig-ui-skill style import ~/Downloads/quant-signal-console.customstyle.zip codex
npx dig-ui-skill style list
npx dig-ui-skill style sync --all
User-owned styles live in ~/.config/dig-ui-skill/styles/ and sync into references/local/styles/. They remain user assets, not built-in catalog entries.
Every brand catalog preview also includes Brand Lab. It uses the same temporary color controls and exports a compatible custompalette for the existing palette import and sync workflow.
Style details: usage guide.
Layouts And Blocks
Catalogs define look. Layouts define structure. Blocks define repeatable UI behavior.
Dig UI Skill includes 20 layout recipes for dashboards, docs, runtime consoles, table workspaces, settings forms, onboarding, pricing, search, auth, and marketing pages.
Blocks cover primitive and product-module protocols:
button, input, select, tooltip, modal, tabs
table-toolbar, runtime-log-stream, run-status-header
step-timeline, settings-row, notification-item, search-result-row
Core paths:
references/layouts/
references/blocks/
references/shared/layout-manifest.yaml
references/shared/block-manifest.yaml
Layout and Block details: usage guide.
Workflows
Workflows turn Dig UI Skill from a static asset library into a repeatable agent process.
references/workflows/review.md
references/workflows/redesign.md
references/workflows/execution.md
references/workflows/image-reference.md
references/anti-tells.md
references/preflight.md
Use them to review an existing UI, redesign a surface while preserving business meaning, build execution and runtime screens, translate from visual references, and filter common AI UI drift before delivery.
Review and redesign details: usage guide.
Use In Your AI Tool
Codex
npx dig-ui-skill install codex
Use the dig-ui skill. Review this page against the Dig catalog and the dashboard-overview layout.
Cursor
npx dig-ui-skill install cursor
npx dig-ui-skill install cursor --project /path/to/your/repo
Use Dig UI. Apply references/layouts/settings-form.md and references/catalogs/other/dig.md to this screen.
Claude Code
npx dig-ui-skill install claude-code
npx dig-ui-skill install claude
Use Dig UI to refactor this UI. Start from the runtime-console layout and apply the mono catalog.
WorkBuddy
Export a self-contained upload package:
npx dig-ui-skill export workbuddy
The default ~/.config/dig-ui-skill/dig-ui-workbuddy.zip includes the selected language and current personal assets. In WorkBuddy, choose Skills → Add Skill → Upload and select the ZIP; re-running the command replaces it.
For a custom output path or an English bundle, see the WorkBuddy installation guide.
Examples
Review a UI:
Use Dig UI. Review this settings page with references/workflows/review.md, references/layouts/settings-form.md, and references/catalogs/other/dig.md.
Generate a runtime surface:
Use Dig UI. Build an agent run detail page with agent-run-detail layout, mono catalog, run-status-header, step-timeline, and runtime-log-stream blocks.
Customize taste:
Use Dig UI. Add a local rule that #0071e3 is the default blue accent and primary buttons use white text.
Repository Structure
dig-ui-skill/
├── SKILL.md # Skill entry used by Codex-compatible tools
├── references/
│ ├── global-rules.md # Cross-catalog behavior rules
│ ├── dig-read.md # Agent task framing and product dials
│ ├── catalogs/ # Catalog, palette, and style assets
│ ├── layouts/ # Layout recipes
│ ├── blocks/ # Primitive and product block contracts
│ ├── effects/ # Shaders recipes and Effects protocol
│ ├── workflows/ # Repeatable agent workflows
│ ├── local/ # Project-level extensions
│ ├── anti-tells.md # Common AI UI drift filters
│ └── preflight.md # Delivery gate
├── renders/ # Catalog previews and standalone Effect Lab
├── assets/ # README assets, preview CSS, demos, and bundled Effects runtime
├── adapters/ # Tool adapters and React DigEffect wrapper
├── agents/ # Agent metadata
└── bin/dig-ui-skill.mjs # Installer and sync CLI
Development
Install dependencies:
npm install
Sync catalog previews:
./sync-renders.sh
Validate catalog previews:
npm run validate:catalogs
npm run validate:renders
Run Cross-platform CI from the GitHub Actions tab for manual validation on macOS, Windows, and Linux.
Build and verify Shaders recipes, the provider, and the Lab:
npm run build:effects
npm run validate:effects
npm run test:effects:browser
Use the local repository as the install source while developing:
node bin/dig-ui-skill.mjs install cursor --source .
node bin/dig-ui-skill.mjs install --all --source .
Contributing
This repository is being prepared for public open source release. Until a dedicated CONTRIBUTING.md lands, prefer small, reviewable changes and keep the source-of-truth boundaries clear:
- Catalogs describe visual language and tokens.
- Layouts describe information architecture and slots.
- Blocks describe reusable UI behavior contracts.
- Effects describe Shaders composition and runtime policy, independently of catalog selection.
- Workflows describe repeatable agent processes.
- User palettes, styles, effects, and personal rules stay outside the official asset set.
Open Source Notes
Catalog files describe design-language observations and abstract rules inspired by public product surfaces. Product names, logos, and trademarks belong to their respective owners. This project is not affiliated with, endorsed by, or sponsored by those companies.
If you contribute a new catalog, prefer design-system analysis over copied proprietary assets. Do not add private brand files, licensed fonts, screenshots, confidential design tokens, or unauthorized brand assets.
License
Licensed under the Apache License 2.0.
Bundled Shaders software is MIT-licensed; its license and third-party notices travel with exports. The five recipes are original Dig compositions. External presets and user resources require their own source and license records.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…


