design-extract
यह क्या करती है
यह टूल कोड फ़ाइलों या इमेज में बिखरी डिज़ाइन की जानकारी, जैसे रंग, टाइपोग्राफ़ी और स्पेसिंग, इकट्ठा करता है, और उसे दूसरे प्रोग्राम के इस्तेमाल के लिए एक जगह व्यवस्थित करता है।
कब इस्तेमाल करें
- ✓जब आपके प्रोजेक्ट में अलग-अलग जगह डिज़ाइन के हिस्से फैले हों।
- ✓जब किसी डिज़ाइन को एक प्रोग्राम से दूसरे में ले जाना हो।
- ✓किसी वेबसाइट या ऐप की विज़ुअल स्टाइल को व्यवस्थित करने के लिए।
Skill का लिंक
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/design-extract/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे कोड और इमेज से डिज़ाइन के एलिमेंट निकालकर उन्हें एक फ़ाइल में व्यवस्थित करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
टूल अलग-अलग तरह की कोड फ़ाइलों (जैसे CSS या JavaScript) और इमेज में रंग, फ़ॉन्ट और स्पेसिंग की परिभाषाएँ ढूँढता है। यह जानकारी इकट्ठा करके एक मानक (standard) फ़ॉर्मैट में सेव करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Design extract
Spec §10 / §21.3.2: tokens scattered across a repo's CSS / theme
files / Tailwind config / styled-components helpers / SCSS partials
need to be lifted into one bag before token-map can crosswalk
them onto the active OD design system. This atom does the lifting;
the input shape is intentionally generic so the same atom serves
both code-migration and figma-migration when fed different sources.
Inputs
code/index.jsonfromcode-import(code-migration), ORfigma/tree.jsonfromfigma-extract(figma-migration), OR- A folder of screenshot images (tune-collab quick-tune flows).
Output
project-cwd/
└── code/
└── tokens.json # { colors[], typography[], spacing[], radius[], shadow[] }
Each token entry carries:
{
"kind": "color",
"name": "primary-500", // optional source name
"value": "#5b8def", // canonical value
"sources": ["styles/global.css:42", "tailwind.config.js:24"],
"usage": ["Header.tsx", "Footer.tsx"]
}
sources[] and usage[] are the audit trail token-map.unmatched.json
references when a target token can't be found.
Convergence
The atom completes when code/tokens.json exists. Empty token bags
emit a warning event but do not abort — token-map handles the
empty case by skipping its mapping pass.
Anti-patterns the prompt fragment forbids
- Hard-coded hex values inside JSX literals (
color: '#fff') are tokens for this atom's purposes; record them withkind:'color'and a synthetic name so they don't disappear into the noise. - Tailwind utility scans must dedupe palette references against the
active theme — never list
bg-blue-500andbg-blue-600as one token.
Status
Implemented by the daemon runner in
apps/daemon/src/plugins/atoms/design-extract.ts. It scans the indexed
source files, extracts CSS, Tailwind, and JavaScript token evidence, and
writes code/tokens.json.
अक्सर पूछे जाने वाले सवाल
'design tokens' क्या होते हैं?
ये किसी प्रोजेक्ट की दृश्य बनावट के बुनियादी हिस्से होते हैं, जैसे इस्तेमाल हुए सटीक रंग, फ़ॉन्ट के प्रकार और एलिमेंट्स के बीच की जगह।
इन 'tokens' को व्यवस्थित करना क्यों ज़रूरी है?
व्यवस्थित tokens से पूरे प्रोजेक्ट में डिज़ाइन को संभालना और एकरूप रखना आसान होता है, और दूसरे टूल भी इस जानकारी का बेहतर इस्तेमाल कर सकते हैं।
क्या टूल किसी भी तरह की फ़ाइल से डिज़ाइन निकाल सकता है?
यह आम कोड फ़ाइलों (CSS, JavaScript, Tailwind आदि) और इमेज के साथ काम करने के लिए बना है। Figma में बने जटिल डिज़ाइनों के लिए एक अतिरिक्त कदम लग सकता है।
जानकारी
लेखक का मूल विवरण
Extract design tokens (color / typography / spacing) from imported source code, screenshots, or Figma exports into the canonical token bag token-map consumes.
repo: nexu-io/open-design
लोकप्रियता
- GitHub स्टार
- 101k
- रैंकिंग में स्थान
- #981
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
sample-plugin
101kआपके एजेंट से टेस्ट के लिए metadata file बनवाता है। इससे पक्का होता है कि कोड अलग-अलग स्थितियों में सही चलता है।
aster-atelier
101kआपके एजेंट से क्लासिक लुक वाली एक कलात्मक website बनवाता है। इसमें खूबसूरत इमेज, नीला आसमान और serif fonts इस्तेमाल होते हैं, जिससे सिनेमाई एहसास मिलता है।
audio-jingle
101kआपके एजेंट से जिंगल्स और sound effects जैसा audio बनवाता है। यह music और voice बना सकता है और नतीजा audio file में सेव करता है।
blog-post
101kआपका एजेंट लंबे articles या blog posts लिखने में मदद करता है। इसमें images, quotes और author की जानकारी के लिए जगह भी होती है।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।