design-system
यह क्या करती है
यह स्किल markdown से HTML टूल के लिए इस्तेमाल होने वाली ब्रांड सेटिंग्स का एक छोटा सेटअप चलाती है। यह उन लोगों के लिए है जो चाहते हैं कि बदले गए दस्तावेज़ उनके ब्रांड से मेल खाएँ।
कब इस्तेमाल करें
- ✓जब आप पहली बार markdown फ़ाइल को HTML में बदलें और उसे अपने ब्रांड के स्टाइल में चाहें।
- ✓जब आप अपने ब्रांड के रंग, फ़ॉन्ट या स्टाइल सेटिंग्स बदलना चाहें।
- ✓जब आप एक रिपॉज़िटरी के लिए प्रोजेक्ट-स्तर का अलग ब्रांड ओवरराइड चाहें।
Skill का लिंक
https://github.com/alirezarezvani/claude-skills/blob/main/markdown-html/skills/design-system/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ब्रांड के रंग और फ़ॉन्ट सेट कीजिए, ताकि बदले गए दस्तावेज़ हमारी कंपनी की शैली से मेल खाएँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह रंगों, फ़ॉन्ट, स्टाइल और विषय-सूची के बारे में कुछ छोटे सवाल पूछती है, रंग पैलेट में पढ़ने योग्य कंट्रास्ट जाँचती है, और सेटिंग्स सहेजती है ताकि कन्वर्टर उन्हें इस्तेमाल करें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Design System — Onboarding + Shared Brand Tokens
The design-system skill is the shared brand owner for the markdown-html plugin. Run its onboarding once. Every converter (md-document, md-review, md-slides) reads the resulting config via config_loader.py and applies the same 12 CSS custom properties to its output. Without this, conversions render with placeholder defaults — technically functional but unbranded.
This skill ships exactly three Python tools:
onboard.py— interactive (or--defaults/--set/--show/--reset) wizard.config_loader.py— importable customization loader with project > global > defaults precedence andMARKDOWN_HTML_NO_CONFIG=1bypass.brand_palette_validator.py— WCAG-AA contrast checker + HSL palette deriver.
All three are stdlib-only and contain no LLM calls (deterministic per Path-B discipline).
When to invoke
| Symptom | Action |
|---|---|
| User says "convert this markdown to HTML" for the first time in this workspace | Run python3 markdown-html/skills/design-system/scripts/onboard.py |
~/.config/markdown-html/design-system.json doesn't exist OR setup_completed_at is null |
Refuse conversion, surface onboarding |
| User wants per-repo brand override | python3 .../onboard.py --scope project |
| User wants to change a single field non-interactively | python3 .../onboard.py --set brand.primary=#FF6B35 |
| User wants to reset and re-onboard | python3 .../onboard.py --reset then re-run |
| User wants zero-touch defaults (CI, ephemeral session) | python3 .../onboard.py --defaults |
| Headless / containerized run that should ignore saved config | MARKDOWN_HTML_NO_CONFIG=1 ... |
Onboarding question set (10 questions)
| # | Key | Choices / Validator | Default |
|---|---|---|---|
| 1 | default_output_dir |
path; os.access(parent, os.W_OK) |
./markdown-html-out/ |
| 2 | brand.primary |
HEX ^#?[0-9a-fA-F]{6}$ |
#0A1628 |
| 3 | brand.accent |
HEX or blank (auto-derive) | derive from primary |
| 4 | typography.heading_font |
Google Font name (12 safe defaults) | Inter |
| 5 | typography.body_font |
Google Font name | Inter |
| 6 | design_style |
editorial / technical / minimal / playful |
technical |
| 7 | code_theme |
light / dark / auto |
auto |
| 8 | toc.behavior |
sticky-sidebar / collapsible-top / inline / none |
sticky-sidebar |
| 9 | company_name |
string (may be empty) | "" |
| 10 | logo_url |
URL or empty (base64-embedded at render) | "" |
Hard rules
- WCAG AA body-text contrast must pass.
brand_palette_validator.validate()runs after every change. Body text on bg must reach 4.5:1; link on bg must reach 4.5:1. If either fails,onboard.pyrefuses to save (exit code 4) and tells the user to pick a darker primary, blankbrand.bg/brand.textto let derivation pick a safe pair, or overridebrand.textdirectly. Canon: WCAG 2.2 §1.4.3. - Output directory must be writable.
onboard.pywalks up the path to find an existing ancestor and checksos.W_OK. Empty or unwritable path → exit code 3. The orchestrator'soutput_path_resolver.pyhonors the same rule per-conversion. - Customization must change behavior, not sit as decoration. Every consumer (md-document, md-review, md-slides) must read the config and render differently when the user changes
design_style,brand.primary,code_theme, ortoc.behavior. Decorative-only fields fail the design discipline. - Precedence is fixed. Project > global > defaults. The deep-merge preserves nested keys (e.g. you can override
brand.primaryin a project config without losingtypography.heading_fontfrom global). - Bypass env exists for a reason.
MARKDOWN_HTML_NO_CONFIG=1is for headless CI, ephemeral test containers, and the autoresearch-style evaluator loops. Never set it silently for an interactive user.
Derived 12-token palette
Once the user's brand is captured, brand_palette_validator.derive_palette() produces 12 CSS custom properties stored under derived_palette in the same config file. Every converter inlines these into its <style> block.
| Token | Purpose | Derivation |
|---|---|---|
--md-bg |
Document background | Primary if dark, near-neutral if vibrant |
--md-surface |
Card / callout / blockquote background | Bg ± 4-6% luminance |
--md-border |
Hairline dividers, table borders | Bg ± 8-12% luminance |
--md-text |
Body text | Off-white on dark bg |
अक्सर पूछे जाने वाले सवाल
क्या यह कम कंट्रास्ट वाले रंग अस्वीकार करती है?
हाँ, जो पैलेट WCAG AA कंट्रास्ट मानक पर खरे नहीं उतरते, उन्हें यह स्वीकार नहीं करती।
क्या मैं हर सवाल का जवाब दिए बिना सेट कर सकता हूँ?
हाँ, सेटअप टूल में डिफ़ॉल्ट के विकल्प हैं, और एक-एक फ़ील्ड बदलने का भी विकल्प है।
सेटिंग्स कहाँ सहेजी जाती हैं?
वे एक ग्लोबल कॉन्फ़िग फ़ाइल में सहेजी जाती हैं, या अगर आप प्रोजेक्ट-स्तर चुनें तो प्रोजेक्ट फ़ोल्डर में।
जानकारी
लेखक का मूल विवरण
Use when setting up brand settings before the first markdown-to-HTML conversion, or changing them. Runs a 10-question onboarding with onboard.py (colors, fonts, style, TOC) and refuses palettes that fail WCAG AA via brand_palette_validator.py.
लोकप्रियता
- GitHub स्टार
- 29k
- रैंकिंग में स्थान
- #9625
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-launcher-orchestrator
29kआपके एजेंट को एक साफ़ लक्ष्य से शुरू करके, अपने खाते में Claude मैनेज्ड एजेंट की योजना बनाने, बनाने, जांचने और शेड्यूल करने में चरण-दर-चरण मदद करती है।
grade-iterate
29kआपके एजेंट को किसी मैनेज्ड AI एजेंट के काम को रूब्रिक से आंकने और तय संख्या के दौरों में सुधारने देती है, ताकि वह कभी अनंत चक्र में न फंसे।
interview
29kआपके एजेंट को AI एजेंट के विचार पर आपसे इंटरव्यू लेने और कुछ भी लॉन्च होने से पहले आपके जवाबों को सरल निर्माण योजना में बदलने देती है।
run-without-you
29kआपके एजेंट को मैनेज्ड AI एजेंट शेड्यूल पर या किसी घटना पर चलाने में मदद करती है, लॉन्च से पहले cron समय की जांच के साथ।
मिलती-जुलती skills
brand-discovery
280kयह structured interviews के ज़रिए brand की पहचान तय करने में मदद करता है। यह brand के उद्देश्य, audience और personality के साथ एक पूरी गाइड बनाता है।
brand-voice
280kयह असली brand texts के आधार पर writing profile बनाता है। इससे content और communication में एक जैसा और असली style बना रहता है।
design-md
260kआपके एजेंट को DESIGN.md फ़ाइल लिखना, जांचना और निर्यात करना सिखाती है, जो किसी ब्रांड के रंग, फ़ॉन्ट और शैली को ऐसे रूप में सूचीबद्ध करती है जिसे AI टूल पढ़ सकें।