8000 GitHub - jangtrinh/design-os: Design CLI for Claude Code, Codex and Antigravity: describe the UI in plain words, get production-grade web, Figma and SwiftUI output through deterministic taste gates. · GitHub
[go: up one dir, main page]

Skip to content
jangtrinhPublic

About

Design CLI for Claude Code, Codex and Antigravity: describe the UI in plain words, get production-grade web, Figma and SwiftUI output through deterministic taste gates.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

37 stars

Watchers

2 watching

Forks

Latest commit

 

History

554 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DESIGN:OS (design-os)

Multi-runtime design operating system and CLI for Claude Code, OpenAI Codex, Gemini CLI, and Google Antigravity.

Install once to equip any AI coding agent with 12+ domain design skills, deterministic verification gates, 2:1 axonometric art direction, and live Figma / SVG / 3D / SwiftUI / packaging workflows.

DESIGN:OS is free to use and modify. Source-available under PolyForm Shield 1.0.0. Install with npx @easestart/design-os init.

DESIGN:OS CLI — 2:1 Axonometric Technical Architecture

PolyForm Shield 1.0.0 License Compatible agents Doctor command Live GitHub Pages Buy Me a Coffee

Quickstart · What it makes · Install · How it works · Commands · Limits


Why this exists

AI coding agents write functional code quickly, but their default visual output suffers from inconsistent spacing, hallucinated tokens, rainbow badges, and zero verification gates. DESIGN:OS turns aesthetic taste and design systems engineering into deterministic, runtime-agnostic contracts.

Dimension Generic AI / Manual Workflow DESIGN:OS CLI (DESIGN:OS)
Visual Quality Generic purple-gradient AI slop and ad-hoc CSS Token-locked typography, 8pt modular grid, and 2:1 axonometric art direction
Context Budget Dumping massive style guides into every prompt Progressive skill disclosure (SKILL.md router + on-demand domain packs)
Verification Visual eyeballing with zero automated checks Deterministic CLI gates (self_check.py, contrast, and anti-flop audits)
Multi-Agent Parity Locked to a single IDE or proprietary prompt format One canonical skill tree across Claude Code, Codex, Gemini CLI & Antigravity
Privacy & Telemetry Opaque cloud telemetry or unverified third-party APIs Zero telemetry — 100% local execution (PRIVACY.md audited)

Quickstart

1. Install the plugin or CLI

In Claude Code:

/plugin marketplace add jangtrinh/design-os
/plugin install design-os@design-os

Or from your terminal (Codex, Gemini CLI, Antigravity, OpenCode, or standalone CLI):

git clone https://github.com/jangtrinh/design-os.git
cd design-os
npx @easestart/design-os init

2. Ask in plain English

Open your project in your AI coding agent and describe what you need:

"Initialize DESIGN:OS in this repo and wire our design tokens and verification gates for Claude Code and Codex."

"Audit our current frontend components against DESIGN:OS typography, spacing, and WCAG 2.2 AA contrast gates."

"Scaffold a new product landing page with 2:1 axonometric B&W technical illustrations and SEO/AEO/GEO metadata."

3. Verify your setup

python3 scripts/self_check.py

What it makes

Every deliverable produced by design-os is backed by a deterministic verification gate rather than freehand AI guesswork.

DESIGN:OS CLI Output Specimen
Prompt: "Initialize DESIGN:OS in this repo and wire our design tokens and verification gates for Claude Code and Codex."

Deliverable / Mode Best for Output Format Verification Gate
Multi-Runtime Skill Pack Wiring Claude Code, Codex, Gemini CLI, and Antigravity to one design standard .claude-plugin + skills/ python3 scripts/self_check.py
Design System Tokens & Gates Enforcing spacing, typography, and WCAG 2.2 AA contrast in CI JSON / CSS / CLI exit code Zero contrast or grid violations
Cross-Engine Orchestration Routing tasks to Figma, SVG Animation, 3D Blender, Apple SwiftUI, or Origami CAD Verified domain artifacts 13-engine ecosystem parity
Design-System Guidelines Pack Teaching any design agent the rules a library cannot show — owner rulings, look-alike components, measured anti-patterns — and shipping them as a Figma library guidelines bundle design/guidelines/*.md + figma-guidelines/ ui ds guidelines check — no invented names, no tampered facts, Figma's 8-file / 200 KB limits
Three-tier web application
architecture — Three-tier web application
Survey dataset storage tiers
medallion — Survey dataset storage tiers
Revenue by region, FY2025
bar — Revenue by region, FY2025
Q3 initiatives by effort and impact
quadrant — Q3 initiatives by effort and impact
All 28 grammars rendered — every one of these is a committed artifact that passes its linter with zero findings
Nightly reporting run
data-flow
Data platform integration surfaces
dp-integration
Platform entitlement matrix
dp-security-matrix
Order model
er
Loan eligibility check
flowchart
Lakehouse capability sweep
high-level
Statistics estate before modernisation
it-state
Runtime stack, hardware upward
layers
Platform operating cycle
loop
Trust zones, outside in
nested
Engineering, who to reach
org-chart
Incident response runbook
process
Checkout flow, partial view
product-flow
User sign-in exchange
sequence
Subscription lifecycle
state
Expense claim ownership
swimlane
Catalogue taxonomy, root at the leading edge
tree
Reporting platform plan, H1 2026
gantt
Monthly active users, 2025
line
Self-serve conversion funnel, Q2
pyramid
Streaming engine capability profiles
radar
Response time against request size
scatter
Release history, 2025
timeline
Overlap between three workspace roles
venn

Installation

Choose the setup that matches your AI coding agent. Every option installs the same canonical skill (skills/design-os/SKILL.md) and /doctor diagnostic suite.

Claude Code

Run these two commands inside Claude Code:

/plugin marketplace add jangtrinh/design-os
/plugin install design-os@design-os

OpenAI Codex

Install to your personal Codex skills directory:

git clone https://github.com/jangtrinh/design-os.git /tmp/design-os
mkdir -p ~/.codex/skills/design-os ~/.codex/prompts
cp -R /tmp/design-os/skills/design-os/* ~/.codex/skills/design-os/
cp /tmp/design-os/prompts/doctor.md ~/.codex/prompts/design-os-doctor.md
rm -rf /tmp/design-os

Gemini CLI & Google Antigravity

git clone https://github.com/jangtrinh/design-os.git /tmp/design-os
mkdir -p ~/.gemini/skills/design-os
cp -R /tmp/design-os/skills/design-os/* ~/.gemini/skills/design-os/
rm -rf /tmp/design-os

OpenCode, Cursor, Windsurf & Other Agent Harnesses

git clone https://github.com/jangtrinh/design-os.git /tmp/design-os
mkdir -p ~/.agents/skills/design-os
cp -R /tmp/design-os/skills/design-os/* ~/.agents/skills/design-os/
rm -rf /tmp/design-os
Verify or uninstall

Verify installation:

python3 scripts/self_check.py

Or run /doctor inside Claude Code / Codex to inspect installed skill paths, plugin manifests, and gate health.

Uninstall:

rm -rf ~/.claude/skills/design-os ~/.codex/skills/design-os ~/.gemini/skills/design-os ~/.agents/skills/design-os

Usage & Prompt Cookbook

Once installed, skills/design-os/SKILL.md activates automatically when your prompt matches its domain triggers. Browse docs/cookbook.md for copy-paste prompt recipes.

Generate & Scaffold

"Initialize DESIGN:OS in this repo and wire our design tokens and verification gates for Claude Code and Codex."

Audit & Verify

"Audit our current frontend components against DESIGN:OS typography, spacing, and WCAG 2.2 AA contrast gates."

Export & Automate

"Scaffold a new product landing page with 2:1 axonometric B&W technical illustrations and SEO/AEO/GEO metadata."

Commands & Diagnostics

Command Environment What it does
/doctor Claude Code / Codex Read-only diagnostic check of installed skill paths, plugin manifests, and runtime prerequisites
python3 scripts/self_check.py Terminal / CI Deterministic offline verification of manifests, skill contracts, and governance files
npx @easestart/design-os doctor Terminal / CI Inspect active runtime adapters (Claude Code, Codex, Gemini CLI, Antigravity) and installed skill packs
ui taste-lint — 35 absolute checks Terminal / CI Generated-UI taste checks across motion, typography, spacing, and focus states
ui validate-layout — 20 checks Terminal / CI Structural and overflow safety checks (100vw traps, unclosed tags, sticky overflow)
ui content-lint — 15 checks Terminal / CI Honest copy checks (placeholder text, lorem-ipsum, generic names, all-caps shouting)
ui tell-lint — 43 checks, any language Terminal / CI Polyglot design-tell checks across HTML, JSX/TSX, Vue, Svelte, CSS, SwiftUI, and Flutter
ui ds guidelines build | check | export --target figma Terminal / CI Compile a cited guidelines pack from your sealed design system, rulings and glossary; lint it; export a ready-to-upload Figma library guidelines bundle
skills/design-os-designer — build.mjs, validate.mjs, look.mjs Any agent runtime The shipped design skill: build an evidence folder for a page, run ui gate plus file checks, render a three-width sheet with measured items; ui init wires it into Claude Code, Antigravity and Codex

How it works

  1. Intent Routing — Your AI agent matches your request against skills/design-os/SKILL.md frontmatter triggers.
  2. Progressive Context Loading — Only the entry-point SKILL.md router loads initially; detailed recipes and scripts load on demand.
  3. Deterministic Execution — Domain scripts and contracts execute locally with reproducible inputs and outputs.
  4. Gate Verification — scripts/self_check.py and domain verifiers (npx @easestart/design-os init) validate the artifact before completion.
  5. Zero-Telemetry Delivery — Verified files are written directly to your workspace with zero external network calls.
User Prompt / CLI Invocation
            │
            ▼
┌───────────────────────────────────────────────┐
│ skills/design-os/SKILL.md
│ Progressive disclosure router & hard rules    │
└───────────┬───────────────────────────────────┘
            │ loads on demand
            ▼
┌───────────────────────────────────────────────┐
│ npx @easestart/design-os doctor
│ Deterministic build & contract enforcement    │
└───────────┬───────────────────────────────────┘
            │ verifies
            ▼
┌───────────────────────────────────────────────┐
│ python3 scripts/self_check.py + /doctor       │
│ Zero-telemetry local verification gate        │
└───────────────────────────────────────────────┘

What loads when

design-os uses progressive context disclosure so your agent's context window stays fast and focused:

File Loaded when
skills/design-os/SKILL.md Always (~100–150 lines) — routing rules, triggers, and execution workflow
docs/cookbook.md When selecting multi-step prompt recipes or domain patterns
commands/doctor.md / prompts/doctor.md Only when running /doctor diagnostics
llms.txt When indexed by AI answer engines, RAG pipelines, or repo crawlers

File structure

design-os/
├── .claude-plugin/
│   ├── plugin.json                 # Claude Code plugin manifest
│   └── marketplace.json            # Claude Code marketplace catalog
├── .codex-plugin/
│   └── plugin.json                 # OpenAI Codex plugin & interface manifest
├── .agents/
│   └── plugins/marketplace.json    # Cross-agent local plugin registry
├── .factory-plugin/
│   ├── plugin.json                 # Factory / Droid plugin manifest
│   └── marketplace.json            # Factory marketplace metadata
├── skills/
│   └── design-os/
│       └── SKILL.md                # Canonical agent skill entrypoint
├── commands/
│   └── doctor.md                   # /doctor diagnostic slash command
├── prompts/
│   └── doctor.md                   # Codex diagnostic prompt mirror
├── scripts/
│   └── self_check.py               # Deterministic repository & skill self-check
├── docs/
│   ├── cookbook.md                 # Copy-paste prompt recipes by job
│   └── llms.txt                    # GEO / LLM discovery index
├── PRIVACY.md                      # Zero-telemetry & local-first privacy commitment
├── SECURITY.md                     # Vulnerability disclosure & security policy
├── CONTRIBUTING.md                 # Contribution workflow & verification rules
├── CODE_OF_CONDUCT.md              # Contributor Covenant code of conduct
├── CHANGELOG.md                    # Release history
├── llms.txt                        # Root LLM indexing manifest
├── LICENSE                         # PolyForm Shield 1.0.0
└── README.md

Quality bar & Limitations

It's working if...

  • python3 scripts/self_check.py prints ok: design-os self-check passed (design-os) and exits 0.
  • npx @easestart/design-os init passes with zero contract or test regressions.
  • Your AI coding agent loads skills/design-os/SKILL.md automatically when given any prompt from docs/cookbook.md.
  • Network traffic during execution remains zero (guaranteed by PRIVACY.md).

When not to use

  • Throwaway backend scripts with zero user-facing UI, CLI, or documentation surface.
  • Teams looking for a hosted cloud SaaS design tool rather than a local-first, git-tracked engineering toolchain.
  • Replacing human brand strategy — DESIGN:OS enforces and scales design systems, not customer discovery.

Watch

DESIGN:OS is free and source-available (PolyForm Shield). The Autonomous Design Agent talks from the design:os by Jang channel (Vietnamese, with English terms):

Xây dựng autonomous design agent cho doanh nghiệp? how? (YouTube, 7:06) Ontology là gì? apply vào build AI design agent như thế nào? (YouTube, 7:33) Autonomous Design Agent · Tập 03: Model + Harness và 6 trụ cột DESIGN:OS (YouTube, 8:44)

Autonomous Design Agent (ADA) short series, six short episodes (Vietnamese, with English terms; English-titled playlist: ADA (English), Vietnamese playlist: ADA · Tiếng Việt):

  1. Storybook + W3C DTCG Tokens: Hard Boundaries for Designers and AI Agents (3:10)
  2. Ontology Graph RAG: Why AI Picks the Wrong UI Component (3:02)
  3. Spec-Driven Development: Lock the Spec Before AI Writes Code (2:25)
  4. Harness 2.0: The Control Frame That Keeps AI Agents Out of Endless Loops (2:43)
  5. Two-way bridge: One Comment, the AI Fixes Design and Code (2:44)
  6. Watchers, a 2-Mac Cluster and PII Guard: Infrastructure for Long-Running AI Agents (2:06)

More: Autonomous Design Agent series.


DESIGN:OS Ecosystem

design-os is one of the 13 source-available engines in the DESIGN:OS ecosystem:

Engine Live Docs Repository Layer
DESIGN:OS CLI jangtrinh.github.io/design-os jangtrinh/design-os cli
Knowledge Builder jangtrinh.github.io/design-os-knowledge-builder jangtrinh/design-os-knowledge-builder compiler
Figma Plugin & CLI jangtrinh.github.io/design-os-figma-plugin jangtrinh/design-os-figma-plugin plugin
SVG Animation Engine jangtrinh.github.io/design-os-svg-animation jangtrinh/design-os-svg-animation engine
3D Blender Agent jangtrinh.github.io/design-os-3d-blender jangtrinh/design-os-3d-blender 3d / cad
OPAH ONE Drone jangtrinh.github.io/design-os-drone-showcase jangtrinh/design-os-drone-showcase hardware
GitHub Pages Engine jangtrinh.github.io/design-os-github-page jangtrinh/design-os-github-page pages
Apple Design OS jangtrinh.github.io/design-os-apple jangtrinh/design-os-apple swiftui
Agent Teacher jangtrinh.github.io/design-os-pedagogy jangtrinh/design-os-pedagogy pedagogy
Origami CAD jangtrinh.github.io/design-os-origami jangtrinh/design-os-origami packaging
Voice UX Architecture jangtrinh.github.io/design-os-voice-ux jangtrinh/design-os-voice-ux voice-ai
Code2Flow jangtrinh.github.io/design-os-code2flow jangtrinh/design-os-code2flow ast / audit
Generative UI jangtrinh.github.io/design-os-generative-ui jangtrinh/design-os-generative-ui runtime

Contributing, Governance & License


Listed on


If design-os saves you time, a star on GitHub helps other engineers and AI agents find it.

Buy Me a Coffee

About

Design CLI for Claude Code, Codex and Antigravity: describe the UI in plain words, get production-grade web, Figma and SwiftUI output through deterministic taste gates.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

37 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0