npx skills add https://github.com/superdesigndev/superdesign-skill --skill superdesignقم بتثبيت هذه المهارة باستخدام واجهة سطر الأوامر (CLI) وابدأ في استخدام سير عمل SKILL.md في مساحة عملك.
SuperDesign helps you (1) find design inspirations/styles and (2) generate/iterate design drafts on an infinite canvas.
Install CLI
npm install -g @superdesign/cli@latest
Install skills for any coding agent
npx skills add superdesigndev/superdesign-skill
Prompt in any agent
/superdesign help me design X
--
Use these to discover style direction, references, and brand context:
Search prompt library (style/components/pages)
superdesign search-prompts --keyword "<keyword>" --json
superdesign search-prompts --tags "style" --json
superdesign search-prompts --tags "style" --keyword "<style keyword>" --json
Get full prompt details
superdesign get-prompts --slugs "<slug1,slug2,...>" --json
Extract brand guide from a URL
superdesign extract-brand-guide --url https://example.com --json
Use design agent to generate high quality design drafts:
.superdesign/replica_html_template/<name>.html (html should only contain & reflect how UI look now, the actual design should be handled by superdesign agent).superdesign/design-system.md.superdesign/design-system.md is missing, run Design System Setup first.askQuestion to ask high-signal questions (constraints, taste, tradeoffs).--json for machine parsing.The purpose of replica html template is creating a lightweight version of existing UI so design agent can iterate on top of it (Since superdesign doesn't have access to your codebase directly, this is important context)
Overall process for designing features on top of existing app:
.superdesign/replica_html_template/<name>.html (Only replicate how UI look now, do NOT design)replica_html_template = BEFORE state (what exists now). It provides context for SuperDesign agent.
Actual design will be done via superdesign agent, by passing the prompt
The replica_html_template must contain ONLY UI that currently exists in the codebase.
<!-- NEW FEATURE - DESIGN THIS -->.superdesign/replica_html_template/<name>.htmlNaming convention
Name replica_html_template for reusability: Use the page route (e.g., home.html, settings-profile.html, dashboard.html)
This makes it easy to identify if a page_template already exists.
Before creating a replica_html_template:
.superdesign/replica_html_template/ already contains a matching fileBAD approach:
<!-- replica_html_template includes a sketched Book Demo section -->
<section class="book-demo">
<!-- DESIGN THIS - Add CTA here -->
<h3>Book a Demo</h3>
<button>Schedule</button>
</section>
GOOD approach:
<!-- replica_html_template is pure replica of existing home page (hero + projects) -->
Then in the iterate command:
1/ create project passing this replica html
2/ create design draft based on design draft id
"Do you want to create a new design system or extract from the current codebase?"
.superdesign/design-system.mdsuperdesign search-prompts --tags "style" --jsonsuperdesign get-prompts --slugs ... --jsonsuperdesign extract-brand-guide --url ... --jsonaskQuestion) to choose direction.superdesign/design-system.md (product context + UX flows + visual design, adapted to references)askQuestion) about requirements + taste.superdesign/design-system.md exists (setup if missing).superdesign/replica_html_template/<page>-<feature>.htmldraftId):superdesign create-project \
--title "<feature>" \
--html-file .superdesign/replica_html_template/<file>.html \
--set-project-prompt-file .superdesign/design-system.md \
--json
→ Note: draftId in response is the baseline draftdraftId from step 3.3)superdesign iterate-design-draft \
--draft-id <draftId> \
-p "Dark theme with neon accents" \
-p "Minimal with more whitespace" \
-p "Bold gradients and shadows" \
--mode branch \
--json
3.5 Share design title & preview URL → collect feedback → iterate
Execute:
superdesign execute-flow-pages \
--draft-id <draftId> \
--pages '[{"title":"Signup","prompt":"..."},{"title":"Payment","prompt":"..."}]' \
--json
superdesign get-design --draft-id <draftId> --output ./design.html
# Inspirations
superdesign search-prompts --keyword "<keyword>" --json
superdesign search-prompts --tags "style" --json
superdesign get-prompts --slugs "<slug1,slug2>" --json
superdesign extract-brand-guide --url https://example.com --json
# Canvas - Create project
# Options: -s/--set-project-prompt (inline), --set-project-prompt-file (from file)
superdesign create-project --title "X" --set-project-prompt "..." --json
superdesign create-project --title "X" --set-project-prompt-file .superdesign/design-system.md --json
superdesign create-project --title "X" --html-file ./index.html --set-project-prompt-file .superdesign/design-system.md --json
# Iterate: replace mode (single variation, updates in place)
superdesign iterate-design-draft --draft-id <id> -p "..." --mode replace --json
# Iterate: Explore multiple versions & variations (each prompt = one variation, prompt should be just directional, do not specify color, style, let superdesign design expert fill in details, you just give direction)
superdesign iterate-design-draft --draft-id <id> -p "dark theme" -p "minimal" -p "bold" --mode branch --json
# Iterate: Auto explore (only give exploration direction, and let Superdesign fill in details, e.g. explore different styles; Default do not use this)
superdesign iterate-design-draft --draft-id <id> -p "..." --mode branch --count 3 --json
# Fetch & get designs
superdesign fetch-design-nodes --project-id <id> --json
superdesign get-design --draft-id <id> --json
# Create new design from scracth without any reference - ONLY use this for creating brand new design, default NEVER use this
superdesign create-design-draft --project-id <id> --title "X" -p "..." --json